Lune

EMNLP2022顶会

Efficient Nearest Neighbor Search for Cross-Encoder Models using Matrix Factorization

Nishant Yadav, Nicholas Monath, Rico Angell, Manzil Zaheer, Andrew McCallum

摘要

Efficient k-nearest neighbor search is a fundamental task, foundational for many problems in NLP. When the similarity is measured by dot-product between dual-encoder vectors or ℓ 2 -distance, there already exist many scalable and efficient search methods. But not so when similarity is measured by more accurate and expensive black-box neural similarity models, such as cross-encoders, which jointly encode the query and candidate neighbor. The cross-encoders' high computational cost typically limits their use to reranking candidates retrieved by a cheaper model, such as dual encoder or TF-IDF. However, the accuracy of such a two-stage approach is upper-bounded by the recall of the initial candidate set, and potentially requires additional training to align the auxiliary retrieval model with the cross-encoder model. In this paper, we present an approach that avoids the use of a dual-encoder for retrieval, relying solely on the cross-encoder. Retrieval is made efficient with CUR decomposition, a matrix decomposition approach that approximates all pairwise cross-encoder distances from a small subset of rows and columns of the distance matrix. Indexing items using our approach is computationally cheaper than training an auxiliary dual-encoder model through distillation. Empirically, for k > 10, our approach provides test-time recall-vs-computational cost trade-offs superior to the current widely-used methods that re-rank items retrieved using a dual-encoder or TF-IDF. Score Query Embedding Item Embedding Score Joint Query-Item Embedding Linear Layer Score Contextualized Query Embedding Contextualized Item Embedding Query (q) … … … Item (i) … … … Special Tokens Query & Item Tokens a) Dual-Encoder b) [CLS]-Cross-Encoder c) [EMB]-Cross-Encoder Model (e.g. BERT) Model (e.g. BERT) Model (e.g. BERT) Model (e.g. BERT) (a) Model architecture -10 0 10 Query-Item Score 10 -3 10 -2

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • A Bi-metric Framework for Efficient Nearest Neighbor Search 引用了 Dense Passage Retrieval for Open-Domain Question Answering
  • Dense Passage Retrieval for Open-Domain Question Answering 引用了 ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT
  • Comparing Neighbors Together Makes it Easy: Jointly Comparing Multiple Candidates for Efficient and Effective Retrieval 引用了 Dense Passage Retrieval for Open-Domain Question Answering
  • Comparing Neighbors Together Makes it Easy: Jointly Comparing Multiple Candidates for Efficient and Effective Retrieval 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
  • Comparing Neighbors Together Makes it Easy: Jointly Comparing Multiple Candidates for Efficient and Effective Retrieval 引用了 Scalable Zero-shot Entity Linking with Dense Entity Retrieval
  • Comparing Neighbors Together Makes it Easy: Jointly Comparing Multiple Candidates for Efficient and Effective Retrieval 引用了 ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT
  • Scalable Zero-shot Entity Linking with Dense Entity Retrieval 引用了 Dense Passage Retrieval for Open-Domain Question Answering
  • USTAD: Unified Single-model Training Achieving Diverse Scores for Information Retrieval 引用了 Dense Passage Retrieval for Open-Domain Question Answering
  • USTAD: Unified Single-model Training Achieving Diverse Scores for Information Retrieval 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
  • Adaptive Retrieval and Scalable Indexing for k-NN Search with Cross-Encoders 引用了 Trans-Encoder: Unsupervised sentence-pair modelling through self- and mutual-distillations
  • Adaptive Retrieval and Scalable Indexing for k-NN Search with Cross-Encoders 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
  • Adaptive Retrieval and Scalable Indexing for k-NN Search with Cross-Encoders 引用了 Scalable Zero-shot Entity Linking with Dense Entity Retrieval
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. Automated Evaluation of Retrieval-Augmented Language Models with Task-Specific Exam GenerationGauthier Guinet, Behrooz Omidvar-Tehrani, Anoop Deoras, Laurent CallotICML 2024 · 35 次引用
  2. A Bi-metric Framework for Efficient Nearest Neighbor SearchHaike Xu, Sandeep Silwal, Piotr IndykICML 2026 · 3 次引用
  3. Comparing Neighbors Together Makes it Easy: Jointly Comparing Multiple Candidates for Efficient and Effective RetrievalJonghyun Song, Cheyon Jin, Wenlong Zhao, Andrew McCallum 等EMNLP 2024 · 3 次引用
  4. USTAD: Unified Single-model Training Achieving Diverse Scores for Information RetrievalSeungyeon Kim, Ankit Singh Rawat, Manzil Zaheer, Wittawat Jitkrittum 等ICML 2024 · 3 次引用
  5. Adaptive Retrieval and Scalable Indexing for k-NN Search with Cross-EncodersNishant Yadav, Nicholas Monath, Manzil Zaheer, Rob Fergus 等ICLR 2024 · 2 次引用

它引用的 Paper9

  1. ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTOmar Khattab, Matei ZahariaSIGIR 2020 · 1,246 次引用
  2. Accelerating Large-Scale Inference with Anisotropic Vector QuantizationRuiqi Guo, Philip Sun, Erik Lindgren, Quan Geng 等ICML 2020 · 539 次引用
  3. Scalable Zero-shot Entity Linking with Dense Entity RetrievalLedell Wu, Fabio Petroni, Martin Josifoski, Sebastian Riedel 等EMNLP 2020 · 336 次引用
  4. Dense Passage Retrieval for Open-Domain Question AnsweringVladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis 等EMNLP 2020 · 142 次引用
  5. Trans-Encoder: Unsupervised sentence-pair modelling through self- and mutual-distillationsFangyu Liu, Yunlong Jiao, Jordan Massiah, Emine Yilmaz 等ICLR 2022 · 36 次引用

相关 Paper

  1. Efficient k-NN Search with Cross-Encoders using Adaptive Multi-Round CUR DecompositionNishant Yadav, Nicholas Monath, Manzil Zaheer, Andrew McCallumEMNLP Findings 2023
  2. Thinking Fast and Slow: Efficient Text-to-Visual Retrieval With TransformersAntoine Miech, Jean-Baptiste Alayrac, Ivan Laptev, Josef Sivic 等CVPR 2021
  3. Efficient Re-ranking with Cross-encoders via Early ExitFrancesco Busolin, Claudio Lucchese, Franco Maria Nardini, Salvatore Orlando 等SIGIR 2025 · 9 次引用
  4. 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
  5. Fast Deterministic CUR Matrix Decomposition with Accuracy AssuranceYasutoshi Ida, Sekitoshi Kanai, Yasuhiro Fujiwara, Tomoharu Iwata 等ICML 2020 · 14 次引用
黄昏的海面,两侧是细线勾勒的悬崖