Distill-VQ: Learning Retrieval Oriented Vector Quantization By Distilling Knowledge from Dense Embeddings
Shitao Xiao, Zheng Liu, Weihao Han, Jianjin Zhang, Defu Lian, Yeyun Gong, Qi Chen, Fan Yang, Hao Sun, Yingxia Shao, Xing Xie
摘要
Vector quantization (VQ) based ANN indexes, such as Inverted File System (IVF) and Product Quantization (PQ), have been widely applied to embedding based document retrieval thanks to the competitive time and memory efficiency. Originally, VQ is learned to minimize the reconstruction loss, i.e., the distortions between the original dense embeddings and the reconstructed embeddings after quantization. Unfortunately, such an objective is inconsistent with the goal of selecting ground-truth documents for the input query, which may cause severe loss of retrieval quality. Recent works identify such a defect, and propose to minimize the retrieval loss through contrastive learning. However, these methods intensively rely on queries with ground-truth documents, whose performance is limited by the insufficiency of labeled data. In this paper, we propose Distill-VQ, which unifies the learning of IVF and PQ within a knowledge distillation framework. In Distill-VQ, the dense embeddings are leveraged as "teachers'', which predict the query's relevance to the sampled documents. The VQ modules are treated as the "students'', which are learned to reproduce the predicted relevance, such that the reconstructed embeddings may fully preserve the retrieval result of the dense embeddings. By doing so, Distill-VQ is able to derive substantial training signals from the massive unlabeled data, which significantly contributes to the retrieval quality. We perform comprehensive explorations for the optimal conduct of knowledge distillation, which may provide useful insights for the learning of VQ based ANN index. We also experimentally show that the labeled data is no longer a necessity for high-quality vector quantization, which indicates Distill-VQ's strong applicability in practice. The evaluations are performed on MS MARCO and Natural Questions benchmarks, where Distill-VQ notably outperforms the SOTA VQ methods in Recall and MRR. Our code is avaliable at https://github.com/staoxiao/LibVQ.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 11 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- LexMAE: Lexicon-Bottlenecked Pretraining for Large-Scale Retrieval 引用了 Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval
- LexMAE: Lexicon-Bottlenecked Pretraining for Large-Scale Retrieval 引用了 Pre-training Tasks for Embedding-based Large-scale Retrieval
- RaBitQ: Quantizing High-Dimensional Vectors with a Theoretical Error Bound for Approximate Nearest Neighbor Search 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
- Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
- Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval 引用了 Pre-training Tasks for Embedding-based Large-scale Retrieval
- Model-enhanced Vector Index 引用了 Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval
- LED: Lexicon-Enlightened Dense Retriever for Large-Scale Retrieval 引用了 Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval
- PQCache: Product Quantization-based KVCache for Long Context LLM Inference 引用了 RaBitQ: Quantizing High-Dimensional Vectors with a Theoretical Error Bound for Approximate Nearest Neighbor Search
- PQCache: Product Quantization-based KVCache for Long Context LLM Inference 引用了 Model-enhanced Vector Index
引用它的顶会 Paper11
- RaBitQ: Quantizing High-Dimensional Vectors with a Theoretical Error Bound for Approximate Nearest Neighbor SearchJianyang Gao, Cheng LongSIGMOD 2024 · 83 次引用
- LED: Lexicon-Enlightened Dense Retriever for Large-Scale RetrievalKai Zhang, Chongyang Tao, Tao Shen, Can Xu 等WWW 2023 · 27 次引用
- LexMAE: Lexicon-Bottlenecked Pretraining for Large-Scale RetrievalTao Shen, Xiubo Geng, Chongyang Tao, Can Xu 等ICLR 2023 · 14 次引用
- PQCache: Product Quantization-based KVCache for Long Context LLM InferenceHailin Zhang, Xiaodong Ji, Yilin Chen, Fangcheng Fu 等SIGMOD 2025 · 13 次引用
- Model-enhanced Vector IndexHailin Zhang, Yujing Wang, Qi Chen, Ruiheng Chang 等NeurIPS 2023 · 12 次引用
它引用的 Paper18
- Big Self-Supervised Models are Strong Semi-Supervised LearnersTing Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi 等NeurIPS 2020 · 2,611 次引用
- TinyBERT: Distilling BERT for Natural Language UnderstandingXiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang 等EMNLP Findings 2020 · 1,787 次引用
- 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 次引用
- Pre-training Tasks for Embedding-based Large-scale RetrievalWei-Cheng Chang, Felix X. Yu, Yin-Wen Chang, Yiming Yang 等ICLR 2020 · 325 次引用
相关 Paper
- Self-supervised Product Quantization for Deep Unsupervised Image RetrievalYoung Kyun Jang, Nam Ik ChoICCV 2021 · 90 次引用
- Disentangled Representation Learning for Unsupervised Neural QuantizationHaechan Noh, Sangeek Hyun, Woojin Jeong, Hanshin Lim 等CVPR 2023
- Knowledge Distillation for High Dimensional Search IndexZepu Lu, Jin Chen, Defu Lian, Zaixi Zhang 等NeurIPS 2023 · 10 次引用
- Routing-Guided Learned Product Quantization for Graph-Based Approximate Nearest Neighbor SearchQiang Yue, Xiaoliang Xu, Yuxiang Wang, Yikun Tao 等ICDE 2024 · 5 次引用
- Matching-oriented Embedding Quantization For Ad-hoc RetrievalShitao Xiao, Zheng Liu, Yingxia Shao, Defu Lian 等EMNLP 2021 · 11 次引用
