Improving Dual-Encoder Training through Dynamic Indexes for Negative Mining
Not on the map. Why?
Abstract (arXiv)
Dual encoder models are ubiquitous in modern classification and retrieval. Crucial for training such dual encoders is an accurate estimation of gradients from the partition function of the softmax over the large output space; this requires finding negative targets that contribute most significantly ("hard negatives"). Since dual encoder model parameters change during training, the use of traditional static nearest neighbor indexes can be sub-optimal. These static indexes (1) periodically require expensive re-building of the index, which in turn requires (2) expensive re-encoding of all targets using updated model parameters. This paper addresses both of these challenges. First, we introduce an algorithm that uses a tree structure to approximate the softmax with provable bounds and that dynamically maintains the tree. Second, we approximate the effect of a gradient update on target encodings with an efficient Nystrom low-rank approximation. In our empirical study on datasets with over twenty million targets, our approach cuts error by half in relation to oracle brute-force negative mining. Furthermore, our method surpasses prior state-of-the-art while using 150x less accelerator memory.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 52 of its 87 references that are in the map. First posted on arXiv 27 Mar 2023.
Builds on
52 of 87 references.
References · 52
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
- 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,160
- 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,135
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
- 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
38 more
- 2021ColBERTv2: Effective and Efficient Retrieval via Lightweight Late Interactioncited by 464
- 2021Large Dual Encoders Are Generalizable Retrieverscited by 454
- 2020RocketQA: An Optimized Training Approach to Dense Passage Retrieval for Open-Domain Question Answeringcited by 410
- 2022Promptagator: Few-shot Dense Retrieval From 8 Examplescited by 233
- 2017Efficient Natural Language Response Suggestion for Smart Replycited by 228
- 2021RocketQAv2: A Joint Training Method for Dense Passage Retrieval and Passage Re-rankingcited by 175
- 2021Condenser: a Pre-training Architecture for Dense Retrievalcited by 162
- 2019Zero-Shot Entity Linking by Reading Entity Descriptionscited by 124
- 2019Learning Dense Representations for Entity Retrievalcited by 122
- 2019Scalable Zero-shot Entity Linking with Dense Entity Retrievalcited by 85
- 2021A Review of the Gumbel-max Trick and its Extensions for Discrete Stochasticity in Machine Learningcited by 82
- 2020On the Convergence of SGD with Biased Gradientscited by 79
- 2017REBAR: Low-variance, unbiased gradient estimates for discrete latent variable modelscited by 78
- 2013Revisiting the Nystrom Method for Improved Large-Scale Machine Learningcited by 76
- 2020Gradient Estimation with Stochastic Softmax Trickscited by 66
- 2021Efficient Passage Retrieval with Hashing for Open-domain Question Answeringcited by 53
- 2020PECOS: Prediction for Enormous and Correlated Output Spacescited by 50
- 2017Adaptive Sampled Softmax with Kernel Based Samplingcited by 38
- 2019Sampled Softmax with Random Fourier Featurescited by 33
- 2020Joint Item Recommendation and Attribute Inference: An Adaptive Graph Convolutional Network Approachcited by 30
- 2018Stochastic Negative Mining for Learning with Large Output Spacescited by 29
- 2021Entity Linking and Discovery via Arborescence-based Supervised Clusteringcited by 22
- 2021Fast and Effective Biomedical Entity Linking Using a Dual Encodercited by 16
- 2021Extreme Zero-Shot Learning for Extreme Text Classificationcited by 15
- 2014An Algorithm for Online K-Means Clusteringcited by 12
- 2022Multi-Vector Retrieval as Sparse Alignmentcited by 12
- 2016Simultaneous Learning of Trees and Representations for Extreme Classification and Density Estimationcited by 10
- 2021MOLEMAN: Mention-Only Linking of Entities with a Mention Annotation Networkcited by 10
- 2014Logarithmic Time Online Multiclass predictioncited by 7
- 2019Online Hierarchical Clustering Approximationscited by 7
- 2016Logarithmic Time One-Against-Somecited by 6
- 2022Hierarchical Agglomerative Graph Clustering in Poly-Logarithmic Depthcited by 6
- 2018Contextual Memory Treescited by 5
- 2020Online probabilistic label treescited by 5
- 2022Numerically Stable Sparse Gaussian Processes via Minimum Separation using Cover Treescited by 5
- 2013Tree-Independent Dual-Tree Algorithmscited by 4
- 2020Doubly-stochastic mining for heterogeneous retrievalcited by 4
- 2015Plug-and-play dual-tree algorithm runtime analysiscited by 3
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 1.
5 papers.
- 2025Retro-Rank-In: A Ranking-Based Approach for Inorganic Materials Synthesis Planningcited by 5
- 2023EHI: End-to-end Learning of Hierarchical Index for Efficient Dense Retrievalcited by 1
- 2024EMC2: Efficient MCMC Negative Sampling for Contrastive Learning with Global Convergencecited by 1
- 2024Adaptive Two-Phase Finetuning LLMs for Japanese Legal Text Retrievalcited by 1
- 2024A Fresh Take on Stale Embeddings: Improving Dense Retriever Training with Corrector Networkscited by 0
- 2025Retro-Rank-In: A Ranking-Based Approach for Inorganic Materials Synthesis Planning6 Feb 2025
- 2024Adaptive Two-Phase Finetuning LLMs for Japanese Legal Text Retrieval3 Dec 2024
- 2024A Fresh Take on Stale Embeddings: Improving Dense Retriever Training with Corrector Networks3 Sep 2024
- 2024EMC2: Efficient MCMC Negative Sampling for Contrastive Learning with Global Convergence16 Apr 2024
- 2023EHI: End-to-end Learning of Hierarchical Index for Efficient Dense Retrieval13 Oct 2023