Skip to content
Technical GlossaryNatural Language Processing

Contrastive Embedding Learning

An approach that learns semantic representations by bringing similar texts closer and pushing dissimilar texts apart in vector space.

Contrastive embedding learning sits at the heart of semantic similarity and retrieval systems. The model is trained to produce discriminative representations through positive and negative example pairs. It makes a major difference in sentence embeddings, dual-encoder retrieval, and semantic search systems. The quality of negative sample selection is a decisive factor in its success.