Abstract
Modern information retrieval (IR) systems predominantly rely on BERT-based models that rank documents independently, neglecting the relative context between candidate documents and query-specific characteristics. We present Co-BERT, an end-to-end retrieval model designed to incorporate local and query-specific context. Co-BERT utilizes a Pseudo-Relevance Feedback (PRF) Calibrator to refine document representations based on top-ranked "prototypes" and a Groupwise Scorer to model document interactions. Our evaluation on the Robust04 and GOV2 benchmarks demonstrates that Co-BERT achieves state-of-the-art performance, improving nDCG@20 by up to 14.7% over standard BERT rankers with minimal computational overhead.
Introduction
The prevailing "Probability Ranking Principle" in neural IR evaluates query-document pairs $(q, d)$ in isolation. This independence assumption overlooks two critical factors:
- Local Ranking Context: The relevance of a document is often relative to other candidates in the same list.
- Query-specific Context: Different queries exhibit varying difficulty levels and content distributions, requiring adaptive ranking strategies.
While traditional Learning to Rank (L2R) models addressed these via handcrafted features, integrating such context into deep Transformer architectures has been hindered by sequence length constraints and high computational costs. Co-BERT overcomes these challenges by efficiently modeling inter-document relationships and query-specific prototypes.
Methodology
Co-BERT introduces a novel architecture that integrates context through two primary modules: the PRF Calibrator and the Groupwise Scorer.
PRF Calibrator
The model identifies the top-$m$ documents from an initial ranking to serve as query-specific "prototypes." A shallow 2-layer BERT calibrator then adjusts the target document's representation by comparing it against these prototypes. This process allows the model to capture the "vibe" of relevance for a specific query.
Groupwise Scorer
Rather than scoring documents individually, Co-BERT processes a group of $n$ calibrated representations through a 4-layer BERT scorer. This enables the model to capture cross-document interactions before generating final relevance scores.
Residual Connections and Training
To preserve the primary relevance signal, a residual connection averages the calibrated representation with the original one. Unlike traditional PRF methods applied only during inference, Co-BERT is trained end-to-end using pointwise cross-entropy loss, allowing both components to optimize jointly.
Experimental Setup
We evaluated Co-BERT on two standard IR benchmarks:
- Robust04: 528,000 news articles and 249 queries, focused on difficult topics.
- GOV2: 25 million documents from .gov domains and 150 queries. Models were pre-trained on the MS MARCO passage ranking dataset and fine-tuned on the target collections.
Results and Discussion
Co-BERT demonstrates significant improvements across multiple metrics on both datasets.
On the GOV2 dataset, Co-BERT improved nDCG@20 by 14.7% and MAP@1K by 13.9% compared to a BERT-Base baseline. On Robust04, it achieved a 6.6% boost in MAP@1K.
Efficiency and Insights
A key advantage of Co-BERT is its efficiency. On GOV2, it requires only 2.4% more FLOPs than a standard BERT-Base ranker, whereas competing models like BERT-QE are over five times slower.
Our analysis revealed several critical insights:
- Latent Prototypes: PRF is more effective when used to create latent prototypes rather than simple query expansion.
- Residual Importance: The "skip" connection is vital; without it, calibration can degrade performance by over-smoothing the relevance signal.
- Batch Shuffling: Shuffling training batches prevents the model from overfitting to the biases of the initial ranker.
Conclusion
Co-BERT successfully bridges the gap between independent document ranking and context-aware retrieval. While currently limited by GPU memory constraints on group sizes, future work will explore more memory-efficient Transformers like Longformer to capture even broader contexts. Additionally, we aim to integrate these techniques into "two-tower" models like ColBERT for enhanced scalability in production environments.
Summary updated