Skip to main content
QUICK REVIEW

[Paper Review] Learning To Retrieve: How to Train a Dense Retrieval Model Effectively and Efficiently

Jingtao Zhan, Jiaxin Mao|arXiv (Cornell University)|Oct 20, 2020
Topic ModelingComputer Science42 references14 citations
TL;DR

This paper proposes Learning To Retrieve (LTRe), a novel training method for dense retrieval models that improves effectiveness and efficiency by performing full corpus retrieval during training instead of relying on negative sampling. LTRe achieves over 170x faster training than prior state-of-the-art methods and significantly outperforms both sparse and dense baselines, even surpassing BM25-BERT cascade systems under latency constraints.

ABSTRACT

Ranking has always been one of the top concerns in information retrieval research. For decades, lexical matching signal has dominated the ad-hoc retrieval process, but it also has inherent defects, such as the vocabulary mismatch problem. Recently, Dense Retrieval (DR) technique has been proposed to alleviate these limitations by capturing the deep semantic relationship between queries and documents. The training of most existing Dense Retrieval models relies on sampling negative instances from the corpus to optimize a pairwise loss function. Through investigation, we find that this kind of training strategy is biased and fails to optimize full retrieval performance effectively and efficiently. To solve this problem, we propose a Learning To Retrieve (LTRe) training technique. LTRe constructs the document index beforehand. At each training iteration, it performs full retrieval without negative sampling and then updates the query representation model parameters. Through this process, it teaches the DR model how to retrieve relevant documents from the entire corpus instead of how to rerank a potentially biased sample of documents. Experiments in both passage retrieval and document retrieval tasks show that: 1) in terms of effectiveness, LTRe significantly outperforms all competitive sparse and dense baselines. It even gains better performance than the BM25-BERT cascade system under reasonable latency constraints. 2) in terms of training efficiency, compared with the previous state-of-the-art DR method, LTRe provides more than 170x speed-up in the training process. Training with a compressed index further saves computing resources with minor performance loss.

Motivation & Objective

  • To address the discrepancy between training (reranking sampled negatives) and inference (retrieving from full corpus) in dense retrieval models.
  • To improve the effectiveness of dense retrieval by teaching models to retrieve relevant documents from the entire corpus rather than just reranking biased samples.
  • To enhance training efficiency for large-scale corpora, reducing training time and GPU resource consumption.
  • To investigate the use of compressed indexes to further reduce memory footprint without significant performance loss.
  • To establish consistency between training and inference by aligning the retrieval scope during both phases.

Proposed method

  • LTRe pre-encodes all documents using a fixed, pretrained document encoder and stores them in a vector index.
  • At each training step, the query encoder generates batched query representations, which are used to perform full retrieval over the entire indexed corpus.
  • Model parameters are updated based on the full retrieval results, directly optimizing the model to retrieve relevant documents from the entire corpus.
  • The method avoids negative sampling by treating full retrieval as the primary optimization signal, ensuring alignment between training and inference.
  • LTRe supports compressed indexes (e.g., FAISS with quantization) to reduce GPU memory usage, enabling training on large-scale corpora with limited hardware.
  • The training process is designed to be scalable, with full retrieval operations having sub-linear time complexity relative to corpus size.

Experimental results

Research questions

  • RQ1Does training a dense retrieval model on full corpus retrieval yield better generalization than on sampled negatives?
  • RQ2Can full retrieval during training significantly improve retrieval effectiveness compared to existing sparse and dense baselines?
  • RQ3How does LTRe's training efficiency compare to state-of-the-art methods like ANCE, especially on large-scale corpora?
  • RQ4To what extent can compressed indexes be used in LTRe training without degrading performance?
  • RQ5Is consistency between training and inference retrieval scope critical for model performance?

Key findings

  • LTRe achieves a 170x speed-up in training time compared to the previous state-of-the-art method, ANCE, on the TREC 2019 passage retrieval task.
  • On the TREC 2019 document retrieval task, LTRe outperforms all competitive sparse and dense retrieval baselines, including BM25-BERT cascade systems, under reasonable latency constraints.
  • Using a compressed index with n=96 reduces GPU memory usage to 3% of the uncompressed version while maintaining nearly identical performance (0.656 vs. 0.654 MRR@10 on TREC 2019).
  • A heavily compressed index (n=12) reduces memory footprint to 0.6% and still outperforms all baselines except ANCE, demonstrating strong resource efficiency.
  • Over-compression (n=6) leads to performance degradation similar to random negative sampling, validating the importance of index quality.
  • The best performance is achieved when the same index is used for both training and inference, confirming the importance of consistency in retrieval scope.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.