English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Models (NVIDIA, 2024)

Forum topic · 小凯 · 2026-07-05

Summary

NV-Embed is a May 2024 NVIDIA research paper (arXiv:2405.17428) by Chankyu Lee, Rajarshi Roy, Mengyao Xu, Jonathan Raiman, Mohammad Shoeybi, Bryan Catanzaro and colleagues, presenting novel techniques for training large language models as generalist embedding models. The work introduces a bidirectional attention mechanism for LLM-based embeddings, replacing causal attention to improve representation quality, and a latent attention layer to produce better pooled embeddings. It also explores a two-stage contrastive instruction-tuning recipe with hard negative mining to enhance accuracy across diverse retrieval and non-retrieval tasks. NV-Embed achieved state-of-the-art retrieval performance on the MTEB (Massive Text Embedding Benchmark) at the time of release, scoring high on BEIR-style retrieval tasks while remaining strong on clustering, reranking, and classification. This forum entry summarizes the paper's motivation, architecture, training methodology, and evaluation setup, positioning it within the embedding-model landscape alongside BGE M3, Arctic-Embed 2.0, and related open-source efforts.

NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Models (NVIDIA, May 2024)

  • Paper: https://arxiv.org/abs/2405.17428
  • Authors: Chankyu Lee, Rajarshi Roy, Mengyao Xu, Jonathan Raiman, Mohammad Shoeybi, Bryan Catanzaro, et al. (NVIDIA)
  • Category: Embedding models
  • Key points

  • Goal: Train large language models as generalist embedding models that excel not only at retrieval but also at clustering, reranking, classification, and other semantic tasks.
  • Architectural innovations:
  • Replaces causal attention in the LLM with bidirectional attention to obtain better token representations for embedding.
  • Adds a latent attention pooling layer to produce the final sentence/document embedding, avoiding simplistic pooling strategies.
  • Training recipe:
  • Two-stage contrastive learning with instruction tuning: a first stage mixes retrieval and non-retrieval instruction data, followed by a second stage with curated retrieval data and hard negative mining to sharpen retrieval accuracy without sacrificing generality.
  • Results:
  • At release (May 2024), NV-Embed achieved state-of-the-art performance on MTEB, ranking first on the Massive Text Embedding Benchmark.
  • Strong results on retrieval benchmarks (e.g., BEIR-style datasets) while remaining competitive on non-retrieval tasks.
  • Significance: Demonstrates that LLMs, with the right architectural and training modifications, can serve as unified embedding backbones across heterogeneous tasks, rather than requiring specialized BERT-scale encoders.
  • Context in the embedding landscape

    NV-Embed is best read alongside related efforts:

  • BGE M3-Embedding (arXiv:2402.03216): multi-lingual, multi-functionality, multi-granularity embeddings.
  • Arctic-Embed 2.0 (arXiv:2412.04506): multilingual retrieval without compromise.
  • BGE-en-ICL / BGE-ICL (arXiv:2409.15700): few-shot learning for text embedders via in-context learning.
  • Scandinavian Embedding Benchmarks: multilingual evaluation of embedding models.
For practitioners, the paper highlights that embedding quality depends jointly on architecture (attention direction, pooling), data (instruction diversity, hard negatives), and evaluation protocol (generalist vs. task-specific benchmarks). Quantitative results should be verified against the original PDF tables before citation.

Tags

#nv-embed#embeddings#llm#retrieval#mteb#nvidia#contrastive-learning#information-retrieval

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/178208629