mlsanityData to 7 Oct 2026

Improving Dual-Encoder Training through Dynamic Indexes for Negative Mining

arXiv 2303.15311 ↗First posted 27 Mar 2023cs.LGcited by 5

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  5. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
  6. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  7. 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
  8. 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
  9. 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,160
  10. 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,135
  11. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
  12. 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
38 more
  1. 2021ColBERTv2: Effective and Efficient Retrieval via Lightweight Late Interactioncited by 464
  2. 2021Large Dual Encoders Are Generalizable Retrieverscited by 454
  3. 2020RocketQA: An Optimized Training Approach to Dense Passage Retrieval for Open-Domain Question Answeringcited by 410
  4. 2022Promptagator: Few-shot Dense Retrieval From 8 Examplescited by 233
  5. 2017Efficient Natural Language Response Suggestion for Smart Replycited by 228
  6. 2021RocketQAv2: A Joint Training Method for Dense Passage Retrieval and Passage Re-rankingcited by 175
  7. 2021Condenser: a Pre-training Architecture for Dense Retrievalcited by 162
  8. 2019Zero-Shot Entity Linking by Reading Entity Descriptionscited by 124
  9. 2019Learning Dense Representations for Entity Retrievalcited by 122
  10. 2019Scalable Zero-shot Entity Linking with Dense Entity Retrievalcited by 85
  11. 2021A Review of the Gumbel-max Trick and its Extensions for Discrete Stochasticity in Machine Learningcited by 82
  12. 2020On the Convergence of SGD with Biased Gradientscited by 79
  13. 2017REBAR: Low-variance, unbiased gradient estimates for discrete latent variable modelscited by 78
  14. 2013Revisiting the Nystrom Method for Improved Large-Scale Machine Learningcited by 76
  15. 2020Gradient Estimation with Stochastic Softmax Trickscited by 66
  16. 2021Efficient Passage Retrieval with Hashing for Open-domain Question Answeringcited by 53
  17. 2020PECOS: Prediction for Enormous and Correlated Output Spacescited by 50
  18. 2017Adaptive Sampled Softmax with Kernel Based Samplingcited by 38
  19. 2019Sampled Softmax with Random Fourier Featurescited by 33
  20. 2020Joint Item Recommendation and Attribute Inference: An Adaptive Graph Convolutional Network Approachcited by 30
  21. 2018Stochastic Negative Mining for Learning with Large Output Spacescited by 29
  22. 2021Entity Linking and Discovery via Arborescence-based Supervised Clusteringcited by 22
  23. 2021Fast and Effective Biomedical Entity Linking Using a Dual Encodercited by 16
  24. 2021Extreme Zero-Shot Learning for Extreme Text Classificationcited by 15
  25. 2014An Algorithm for Online K-Means Clusteringcited by 12
  26. 2022Multi-Vector Retrieval as Sparse Alignmentcited by 12
  27. 2016Simultaneous Learning of Trees and Representations for Extreme Classification and Density Estimationcited by 10
  28. 2021MOLEMAN: Mention-Only Linking of Entities with a Mention Annotation Networkcited by 10
  29. 2014Logarithmic Time Online Multiclass predictioncited by 7
  30. 2019Online Hierarchical Clustering Approximationscited by 7
  31. 2016Logarithmic Time One-Against-Somecited by 6
  32. 2022Hierarchical Agglomerative Graph Clustering in Poly-Logarithmic Depthcited by 6
  33. 2018Contextual Memory Treescited by 5
  34. 2020Online probabilistic label treescited by 5
  35. 2022Numerically Stable Sparse Gaussian Processes via Minimum Separation using Cover Treescited by 5
  36. 2013Tree-Independent Dual-Tree Algorithmscited by 4
  37. 2020Doubly-stochastic mining for heterogeneous retrievalcited by 4
  38. 2015Plug-and-play dual-tree algorithm runtime analysiscited by 3

50 most cited of 52 All 52 (JSON)

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 3; 2025: 1.

5 papers.