SGPT: GPT Sentence Embeddings for Semantic Search

Niklas Muennighoff
2/17/2022
cs.CLcs.AIcs.IR

Official code: Muennighoff/sgpt (869 stars, Jupyter Notebook, MIT, last commit 2024-02-17).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Muennighoff/sgptOfficial100%
MIT

SGPT: GPT Sentence Embeddings for Semantic Search

86950Jupyter Notebook, PythonFeb 11, 20222 years agoMIT
gptinformation-retrievallanguage-modellarge-language-modelsneural-search+5 more

Similar Papers

Cite this paper

@article{muennighoff2022sgpt,
  title  = {SGPT: GPT Sentence Embeddings for Semantic Search},
  author = {Niklas Muennighoff},
  year   = {2022},
  eprint = {2202.08904},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.08904}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2202.08904.svg)](https://codeofpaper.com/paper/2202.08904)

Discussion