Efficient Training of Retrieval Models using Negative Cache
Erik Lindgren, Sashank J. Reddi, Ruiqi Guo, Sanjiv Kumar
摘要
Factorized models, such as two tower neural network models, are widely used for scoring (query, document) pairs in information retrieval tasks. These models are typically trained by optimizing the model parameters to score relevant "positive" pairs higher than the irrelevant "negative" ones. While a large set of negatives typically improves the model performance, limited computation and memory budgets place constraints on the number of negatives used during training. In this paper, we develop a novel negative sampling technique for accelerating training with softmax cross-entropy loss. By using cached (possibly stale) item embeddings, our technique enables training with a large pool of negatives with reduced memory and computation. We also develop a streaming variant of our algorithm geared towards very large datasets. Furthermore, we establish a theoretical basis for our approach by showing that updating a very small fraction of the cache at each iteration can still ensure fast convergence. Finally, we experimentally validate our approach and show that it is efficient and compares favorably with more complex, state-of-the-art approaches.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Cache-Augmented Inbatch Importance Resampling for Training Recommender Retriever 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
- EMC2: Efficient MCMC Negative Sampling for Contrastive Learning with Global Convergence 引用了 Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval
- Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval 引用了 Poly-encoders: Architectures and Pre-training Strategies for Fast and Accurate Multi-sentence Scoring
- Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
- TPU-KNN: K Nearest Neighbor Search at Peak FLOP/s 引用了 Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
- TPU-KNN: K Nearest Neighbor Search at Peak FLOP/s 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
- Optimizing Dense Retrieval Model Training with Hard Negatives 引用了 Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval
- Dual-Encoders for Extreme Multi-label Classification 引用了 Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval
- Dual-Encoders for Extreme Multi-label Classification 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
引用它的顶会 Paper10
- Focused Transformer: Contrastive Training for Context ScalingSzymon Tworkowski, Konrad Staniszewski, Mikolaj Pacek, Yuhuai Wu 等NeurIPS 2023 · 190 次引用
- TPU-KNN: K Nearest Neighbor Search at Peak FLOP/sFelix Chern, Blake Hechtman, Andy Davis, Ruiqi Guo 等NeurIPS 2022 · 31 次引用
- Cache-Augmented Inbatch Importance Resampling for Training Recommender RetrieverJin Chen, Defu Lian, Yucheng Li, Baoyun Wang 等NeurIPS 2022 · 14 次引用
- Dual-Encoders for Extreme Multi-label ClassificationNilesh Gupta, Devvrit, Ankit Singh Rawat, Srinadh Bhojanapalli 等ICLR 2024 · 8 次引用
- EMC2: Efficient MCMC Negative Sampling for Contrastive Learning with Global ConvergenceChung-Yiu Yau, Hoi-To Wai, Parameswaran Raman, Soumajyoti Sarkar 等ICML 2024 · 3 次引用
它引用的 Paper7
- Scaling Up Visual and Vision-Language Representation Learning With Noisy Text SupervisionChao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen 等ICML 2021 · 5,401 次引用
- Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text RetrievalLee Xiong, Chenyan Xiong, Ye Li, Kwok-Fung Tang 等ICLR 2021 · 1,547 次引用
- Accelerating Large-Scale Inference with Anisotropic Vector QuantizationRuiqi Guo, Philip Sun, Erik Lindgren, Quan Geng 等ICML 2020 · 539 次引用
- Poly-encoders: Architectures and Pre-training Strategies for Fast and Accurate Multi-sentence ScoringSamuel Humeau, Kurt Shuster, Marie-Anne Lachaux, Jason WestonICLR 2020 · 316 次引用
- Optimizing Dense Retrieval Model Training with Hard NegativesJingtao Zhan, Jiaxin Mao, Yiqun Liu, Jiafeng Guo 等SIGIR 2021 · 242 次引用
相关 Paper
- Improving the Accuracy of Dense Retrieval on the Quantized Indexes via Gradient Optimization of the Target EmbeddingsCong Tan, Yongqi Shao, Hong Huo, Tao FangAAAI 2026
- A Fresh Take on Stale Embeddings: Improving Dense Retriever Training with Corrector NetworksNicholas Monath, Will Sussman Grathwohl, Michael Boratko, Rob Fergus 等ICML 2024 · 1 次引用
- A Gradient Accumulation Method for Dense Retriever under Memory ConstraintJaehee Kim, Yukyung Lee, Pilsung KangNeurIPS 2024 · 10 次引用
- A Tale of Two Efficient and Informative Negative Sampling DistributionsShabnam Daghaghi, Tharun Medini, Nicholas Meisburger, Beidi Chen 等ICML 2021 · 11 次引用
- Efficiently Teaching an Effective Dense Retriever with Balanced Topic Aware SamplingSebastian Hofstätter, Sheng-Chieh Lin, Jheng-Hong Yang, Jimmy Lin 等SIGIR 2021 · 297 次引用
