Abstract: Pre-trained deep language models (LM) have advanced the state-of-the-art of text retrieval. Rerankers fine-tuned from deep LM estimates candidate relevance based on rich contextualized matching signals. Meanwhile, deep LMs can also be leveraged to improve search index, building retrievers with better recall. One would expect a straightforward combination of both in a pipeline to have additive performance gain. In this paper, we discover otherwise and that popular reranker cannot fully exploit the improved retrieval result. We, therefore, propose a Localized Contrastive Estimation (LCE) for training rerankers and demonstrate it significantly improves deep two-stage models.
Introduction
Modern search systems typically employ a two-stage architecture: a fast, lightweight retriever (e.g., BM25) identifies a candidate set of documents, which is then processed by a computationally intensive reranker (e.g., BERT). Intuitively, as retrievers become more sophisticated through deep learning, the overall pipeline performance should improve.
However, this research identifies a "performance gap." Advanced retrievers do not just find more relevant documents; they also surface "harder" negatives—irrelevant documents that closely mimic the signals of relevant ones. Standard BERT rerankers, often trained using vanilla binary cross-entropy on independent document pairs, frequently fail to distinguish these high-quality decoys, leading to diminishing returns from retriever improvements.
Methodology: Localized Contrastive Estimation (LCE)
To bridge this gap, we propose Localized Contrastive Estimation (LCE). This training strategy aligns the reranker's training environment with its eventual inference environment through two primary mechanisms:
- Localized Negatives: Instead of using random or generic negative samples, LCE samples negatives directly from the top-ranked results of the specific retriever intended for production. This ensures the model learns to differentiate true positives from the exact hard negatives it will encounter at test time.
- Contrastive Loss: Rather than treating reranking as a binary classification task, LCE employs a contrastive form. It computes a softmax-like loss over a group containing one positive document and multiple retrieved negatives. This forces the model to focus on the nuanced differences between the best result and the "almost-best" results, preventing model collapse onto confounding features.
Experimental Results
We evaluated LCE using the MSMARCO document ranking dataset, which contains 3 million documents and 0.37 million training query-document pairs.
The Importance of Alignment
A critical finding is that a reranker's performance is heavily dependent on the alignment between its training negatives and the retriever's output. As shown in the heatmap below, performance is maximized when the training and testing retrievers match (the diagonal), and LCE consistently outperforms the vanilla training method across all retriever combinations.
State-of-the-Art Performance
LCE demonstrated significant gains across both the Dev set and the official Eval leaderboard. Notably, an ensemble model using LCE to rerank results from the HDCT retriever achieved 1st place on the MSMARCO document ranking leaderboard at the time of publication.
Conclusion
LCE provides a robust framework for training BERT rerankers that can fully exploit the capabilities of modern, high-performance retrievers. By focusing on localized hard negatives and contrastive group-wise loss, LCE improves accuracy without increasing inference latency or model complexity. This work highlights the necessity of viewing multi-stage retrieval as an integrated pipeline rather than a collection of isolated components.
Summary updated