SGPT: GPT Sentence Embeddings for Semantic Search
About
Decoder transformers have continued increasing in scale reaching hundreds of billions of parameters. Due to their scale the same decoder sets state-of-the-art results on various language tasks via prompting or fine-tuning. Yet, these large foundation models remain unusable for the related fields of semantic search and sentence embeddings. This prevents possibly new state-of-the-art results and forces organizations to train and maintain separate models. To this end, we propose SGPT to use decoders for sentence embeddings and semantic search via prompting or fine-tuning. At 5.8 billion parameters SGPT improves on the previously best sentence embeddings by a margin of 7% and outperforms a concurrent method with 175 billion parameters as measured on the BEIR search benchmark. Code, models and result files are freely available at https://github.com/Muennighoff/sgpt.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Semantic Textual Similarity | STS tasks (STS12, STS13, STS14, STS15, STS16, STS-B, SICK-R) various (test) | STS12 Score72.27 | 412 | |
| Semantic Textual Similarity | STS-B | Spearman's Rho (x100)84.7 | 156 | |
| Information Retrieval | BEIR (test) | TREC-COVID Score0.807 | 126 | |
| Information Retrieval | BEIR | SciFact0.747 | 120 | |
| Information Retrieval | BEIR v1.0.0 (test) | ArguAna51.4 | 75 | |
| Reranking | MS MARCO (dev) | -- | 71 | |
| Information Retrieval | TREC-COVID | NDCG@1073 | 59 | |
| Semantic Textual Similarity | BIOSSES | Spearman Correlation83 | 55 | |
| Information Retrieval | SciFact | nDCG@100.682 | 51 | |
| Text Embedding | MTEB | -- | 50 |