Curated summary
Text and code embeddings by contrastive pre-training
Machine LearningNatural Language ProcessingContrastive LearningSemantic SearchGptCode SearchText Embeddings
Contrastive pre-training on large amounts of unsupervised data produces high-quality vector representations of both text and code, replacing the use-case-specific models that earlier work relied on. The same unsupervised text embeddings set new state-of-the-art results on linear-probe classification and perform strongly on semantic search, sometimes competing with fine-tuned models. The same approach applied to (text, code) pairs also improves code search.
Unsupervised Text Embeddings for Classification
- Averaged across 7 linear-probe classification tasks, the best unsupervised model improves on the previous best unsupervised text embeddings by 4% (relative).
- It also improves on the previous best supervised text embedding models by 1.8% (relative).
Large-Scale Semantic Search
- On MS MARCO, the embeddings improve on the previous best unsupervised methods by 23.4% (relative).
- On Natural Questions, the improvement is 14.7% (relative).
- On TriviaQA, the improvement is 10.6% (relative).
Code Embeddings
- Code embedding models are trained on (text, code) pairs using the same contrastive approach as the text models.
- They achieve a 20.8% (relative) improvement over the prior best work on code search.
Related reading
Continue with another curated summary.
Meta2026-04-21 Modernizing the Facebook Groups Search to Unlock the Power of Community Knowledge
Read original
OpenAI2024-06-19 A Holistic Approach to Undesired Content Detection in the Real World
Read original
OpenAI2019-02-13 Better language models and their implications
Read original
OpenAI2018-02-06 Discovering types for entity disambiguation
Read original