HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

SGPT: GPT Sentence Embeddings for Semantic Search

Niklas Muennighoff

SGPT: GPT Sentence Embeddings for Semantic Search

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.

Code Repositories

muennighoff/sgpt
Official
jax
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
information-retrieval-on-cqadupstackSGPT-BE-5.8B
mAP@100: 0.160
passage-retrieval-on-msmarco-beirSGPT-CE-6.1B
nDCG@10: 0.290
passage-retrieval-on-msmarco-beirSGPT-BE-5.8B
nDCG@10: 0.399
passage-retrieval-on-msmarco-beirSGPT-CE-2.7B
nDCG@10: 0.278
question-answering-on-fiqa-2018-beirSGPT-BE-5.8B
nDCG@10: 0.372
question-answering-on-fiqa-2018-beirSGPT-CE-6.1B
nDCG@10: 0.401
question-answering-on-hotpotqa-beirSGPT-CE-6.1B
nDCG@10: 0.699
question-answering-on-hotpotqa-beirSGPT-BE-5.8B
nDCG@10: 0.593
question-answering-on-nq-beirSGPT-BE-5.8B
nDCG@10: 0.524
question-answering-on-nq-beirSGPT-CE-6.1B
nDCG@10: 0.401

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
SGPT: GPT Sentence Embeddings for Semantic Search | Papers | HyperAI