atlas

Research map / Large language models / Language, safety and interpretability

NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Models

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Pruning and circuits in LLMs · 10 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces NV-Embed, a decoder-only Mistral-7B embedding model with latent attention pooling, bidirectional attention, and two-stage contrastive instruction tuning, reaching No.1 on MTEB (72.31 for v2).

Problem

Decoder-only LLMs have underperformed bidirectional encoders on general-purpose text embedding tasks due to causal attention and last-token pooling; the paper seeks a generalist embedding model that excels across retrieval and non-retrieval tasks.

Approach

Remove the causal mask during contrastive training, replace mean/EOS pooling with a trainable latent-attention pooling layer (512 latents), and train in two stages: retrieval with in-batch and hard negatives, then blended retrieval and non-retrieval tasks with in-batch negatives disabled.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train with two stages rather than a single stage with in-batch negatives (ablation)NV-Embed · MTEB (56 tasks)Avg.: 70.83 -> 72.31Helped
train with two stages rather than a single stage without in-batch negatives (ablation)NV-Embed · MTEB (56 tasks)Avg.: 71.94 -> 72.31Helped
reverse the order of the two training stages (ablation)NV-Embed · MTEB (56 tasks)Avg.: 72.31 -> 71.85Hurt
replace label-based class and cluster documents with sampled examples (ablation)NV-Embed · MTEB (56 tasks)Avg.: 70.82 -> 72.31Helped
add hard-negative mining (ablation)NV-Embed stage-one training · MTEB (56 tasks)Avg.: 70.73 -> 71.83Helped
add additional public retrieval datasets (ablation)NV-Embed stage-one training · MTEB (56 tasks)Avg.: 71.83 -> 72.07Helped
add synthetically generated data (ablation)NV-Embed stage-one training · MTEB (56 tasks)Avg.: 72.07 -> 72.31Helped
remove the causal attention mask (ablation)NV-Embed · MTEB (56 tasks), second-stage trainingAverage: 68.47 -> 69.32Helped
use latent-attention pooling instead of mean pooling (ablation)NV-Embed · MTEB (56 tasks), second-stage trainingAverage: 68.97 -> 69.32Helped
use self-attention pooling instead of mean pooling (ablation)NV-Embed · MTEB (56 tasks), second-stage trainingAverage: 68.97 -> 69.10No clear effect
use latent-attention pooling instead of EOS-token pooling (ablation)NV-Embed · MTEB (56 tasks), second-stage trainingAverage: 67.85 -> 69.32Helped
add hard-negative mining (ablation)NV-Embed stage-one training · MTEB Retrieval (15)nDCG@10: 59.22 -> 61.52Helped

Surprising findings

Limitations

Experimental setup

Datasets: MSMARCO HotpotQA Natural Questions PAQ StackExchange Natural Language Inference SQuAD ArguAna BioASQ FiQA FEVER HoVer

Benchmarks: MTEB AIR-Bench 24.04

Metrics: nDCG@10 MAP V-measure accuracy Spearman correlation Recall@10 average MTEB score across 56 tasks

Baselines: E5-mistral-7b-instruct SFR-Embedding-2R SFR-Embedding-Mistral bge-en-icl Gte-Qwen2-7B-instruct Stella-1.5B-v5 Linq-Embed-Mistral text-embedding-3-large

Builds on: E5-mistral-7b-instruct Perceiver IO LoRA Mistral 7B

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy