Definition
Contrastive Learning
Contrastive learning is a machine learning technique used primarily in unsupervised and semi-supervised settings to learn representations by distinguishing between similar and dissimilar data points. It involves training a model on pairs or groups of data, using a loss function to minimise the distance between embeddings of similar items and maximise the distance between embeddings of dissimilar ones. This approach is beneficial for enhancing performance in tasks like image recognition, natural language processing, and recommendation systems.