NV-Retriever: Improving text embedding models with effective hard-negative mining
Gabriel de Souza P. Moreira, Radek Osmulski, Mengyao Xu, Ronay Ak, Benedikt Schifferer, Even Oldridge
TL;DR
This work tackles the challenge of selecting high-quality hard negatives for contrastive fine-tuning of text embedding models. It introduces positive-aware hard-negative mining methods, notably TopK-MarginPos and TopK-PercPos, which leverage the positive relevance score to filter potential false negatives and stabilize training. Through extensive ablations across teacher-model choices, ensembling strategies, and mining configurations, the study demonstrates substantial gains in retrieval accuracy, culminating in the NV-Retriever-v1 model achieving top performance on MTEB Retrieval/BEIR benchmarks. The results show that careful mining strategy is a key driver of state-of-the-art dense retrieval, with practical implications for scalable, high-accuracy retrieval systems in RAG and semantic search contexts.
Abstract
Text embedding models have been popular for information retrieval applications such as semantic search and Question-Answering systems based on Retrieval-Augmented Generation (RAG). Those models are typically Transformer models that are fine-tuned with contrastive learning objectives. One of the challenging aspects of fine-tuning embedding models is the selection of high quality hard-negative passages for contrastive learning. In this paper we introduce a family of positive-aware mining methods that use the positive relevance score as an anchor for effective false negative removal, leading to faster training and more accurate retrieval models. We provide an ablation study on hard-negative mining methods over their configurations, exploring different teacher and base models. We further demonstrate the efficacy of our proposed mining methods at scale with the NV-Retriever-v1 model, which scores 60.9 on MTEB Retrieval (BEIR) benchmark and placed 1st when it was published to the MTEB Retrieval on July, 2024.
