Introduction
Training state-of-the-art dense retrieval (DR) models has traditionally been a "rich man’s game," requiring massive compute clusters and enormous batch sizes. High-performance methods like ANCE or RocketQA often rely on continuously refreshing a massive document index or using gargantuan batch sizes (e.g., 4,000), putting cutting-edge research out of reach for most practitioners. This paper introduces TAS-Balanced, a sampling strategy designed to democratize DR training by enabling top-tier performance on a single consumer-grade GPU in under 48 hours.
Methodology: Topic Aware Sampling
The core innovation lies in how training batches are constructed. The authors propose TAS-Balanced, which moves away from standard random sampling where "negative" passages are often topically unrelated to the query, providing a weak learning signal.
The approach involves:
- Topic Aware Sampling (TAS): Training queries are clustered by topic once before training begins. Each batch is drawn from a single cluster, ensuring that in-batch negatives are topically related and "harder" to distinguish, forcing the model to learn finer details.
- TAS-Balanced: To prevent the model from being overwhelmed by excessive hard negatives, the batch is "balanced" by ensuring a uniform distribution of teacher-defined margins (the score gap between positive and negative passages).
- Dual-Teacher Supervision: The model learns from two "teachers"—BERT-CAT (a pairwise cross-encoder) and ColBERT (an in-batch model)—using a Margin-MSE loss to mimic the score differences calculated by these experts.
Training Efficiency and Accessibility
A key insight of this work is that efficiency is a feature. By using clustering as a proxy for hard negative mining, the method avoids the computational overhead of re-indexing the entire collection during training.
As shown in the comparison above, TAS-Balanced requires significantly fewer resources than competing methods. While models like RocketQA require 8x V100 GPUs and batch sizes of 4,000, TAS-Balanced achieves state-of-the-art results on a single GTX 1080Ti with a batch size of only 32.
Evaluation and Results
The model was evaluated on the MSMARCO-Passage collection (8.8 million passages) and the TREC-DL ’19 & ’20 datasets.
- Performance: TAS-Balanced outperformed BM25 by 44% and the previous best dense retriever by 5% in terms of NDCG@10 on TREC-DL.
- Recall: It is the first dense retriever to consistently outperform BM25 and docT5query at every recall cutoff on TREC-DL.
- Latency: The resulting 6-layer DistilBERT model maintains a low latency of approximately 64ms per query, making it suitable for real-time production environments.
Conclusion
TAS-Balanced demonstrates that high-quality dense retrieval does not require massive infrastructure. However, the authors noted a "ceiling" effect when using the retriever with existing re-rankers (like mono-duo-T5) that were trained on BM25 distributions. Future work will focus on training re-ranking models specifically on the output distributions of advanced dense retrievers to fully realize the gains in first-stage recall.
Summary updated