OpenAI says large-scale contrastive pre-training produces general-purpose text and code embeddings that improve classification, semantic search and code search against prior methods.
OpenAI says its large-scale contrastive pre-training approach can produce general-purpose embeddings from unsupervised data. Rather than building separate systems for each use case, the method is designed to transfer across semantic search, similarity and linear-probe classification.
The company says its best unsupervised text model set a new high mark across seven linear-probe classification tasks, with a relative improvement of 4% over the previous best unsupervised text embedding model and 1.8% over the previous best supervised model. It also reported relative semantic-search gains of 23.4% on MSMARCO, 14.7% on Natural Questions and 10.6% on TriviaQA compared with prior unsupervised methods.
OpenAI says extending the approach to text-and-code pairs produced code embeddings that outperformed prior work on code search by 20.8%. The results could help systems compare meaning across documents, questions, answers and code rather than relying only on keyword matches.