SGPT: GPT Sentence Embeddings for Semantic Search
Niklas Muennighoff

TL;DR
SGPT leverages large decoder transformers to generate high-quality sentence embeddings for semantic search, outperforming existing methods and enabling the use of large language models for this task.
Contribution
Introduces SGPT, a method to use decoder transformers for sentence embeddings and semantic search, achieving state-of-the-art results with significantly fewer parameters.
Findings
SGPT improves sentence embedding quality by 7% over previous best.
SGPT outperforms a 175-billion-parameter model on BEIR benchmark.
Code and models are publicly available for reproducibility.
Abstract
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.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗Muennighoff/SBERT-base-msmarco-asymmodel
- 🤗Muennighoff/SBERT-base-msmarco-bitfitmodel· 2 dl2 dl
- 🤗Muennighoff/SBERT-base-msmarcomodel· 1 dl1 dl
- 🤗Muennighoff/SBERT-base-nli-v2-bitfitmodel· 2 dl2 dl
- 🤗Muennighoff/SBERT-base-nli-v2model· 2.7k dl2.7k dl
- 🤗Muennighoff/SBERT-large-nli-v2model· 1.6k dl· ♡ 11.6k dl♡ 1
- 🤗Muennighoff/SGPT-1.3B-mean-nlimodel· 4 dl· ♡ 14 dl♡ 1
- 🤗Muennighoff/SGPT-1.3B-weightedmean-msmarco-specb-bitfitmodel· 504 dl· ♡ 5504 dl♡ 5
- 🤗Muennighoff/SGPT-1.3B-weightedmean-nli-bitfitmodel· 170 dl170 dl
- 🤗Muennighoff/SGPT-1.3B-weightedmean-nlimodel· 1 dl1 dl
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Text Readability and Simplification
MethodsAttention Is All You Need · Linear Layer · Cosine Annealing · Refunds@Expedia|||How do I get a full refund from Expedia? · Discriminative Fine-Tuning · Byte Pair Encoding · Linear Warmup With Cosine Annealing · Adam · Dropout · Linear Warmup With Linear Decay
