paper-with-me

Papers

Distill-VQ: Learning Retrieval Oriented Vector Quantization By Distilling Knowledge from Dense Embeddings

2022-04-01 · Shitao Xiao, Zheng Liu, Weihao Han, Jianjin Zhang, Defu Lian, Yeyun Gong, Qi Chen, Fan Yang, Hao Sun, Yingxia Shao, Denvy Deng, Qi Zhang, 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.

📄 PDF Abstract BibTeX arXiv:2204.00185

Code (2)

staoxiao/libvq 공식 구현 pytorch
microsoft/ar2 pytorch

Tasks

Contrastive LearningKnowledge DistillationQuantizationRetrieval

Methods 이 논문이 사용한 방법론

Knowledge Distillation A very simple way to improve the performance of almost any machine learning algorithm is to train many different models on the same data and then to average their predictions.…

Similar Papers 제목 키워드 기반

Distilling Vision-Language Pretraining for Efficient Cross-Modal Retrieval

2024-05-23 · Young Kyun Jang, Donghyun Kim, Ser-Nam Lim

``Learning to hash'' is a practical solution for efficient retrieval, offering fast search speed and low storage cost. It is widely applied in various applications, such as image-text cross-modal search. In this paper, w…

Cross-Modal RetrievalQuantizationRepresentation LearningRetrieval

Can't Hide Behind the API: Stealing Black-Box Commercial Embedding Models

2024-06-13 · Manveer Singh Tamber, Jasper Xian, Jimmy Lin

Embedding models that generate dense vector representations of text are widely used and hold significant commercial value. Companies such as OpenAI and Cohere offer proprietary embedding models via paid APIs, but despite…

Retrieval

DLIP: Distilling Language-Image Pre-training

2023-08-24 · Huafeng Kuang, Jie Wu, Xiawu Zheng, Ming Li 외

Vision-Language Pre-training (VLP) shows remarkable progress with the assistance of extremely heavy parameters, which challenges deployment in real applications. Knowledge distillation is well recognized as the essential…

Image CaptioningImage-text RetrievalKnowledge DistillationModel Compression+4

Improving Topic Modeling by Distilling Soft Labels from Language Models

2026-02-20 · Raymond Li, Amirhossein Abaskohi, Chuyuan Li, Gabriel Murray 외 arxiv

Traditional neural topic models are typically optimized by reconstructing the document's Bag-of-Words (BoW) representations, overlooking contextual information and struggling with data sparsity. In this work, we introduc…

Topic Models

Jointly Optimizing Query Encoder and Product Quantization to Improve Retrieval Performance

2021-08-02 · Jingtao Zhan, Jiaxin Mao, Yiqun Liu, Jiafeng Guo 외

Recently, Information Retrieval community has witnessed fast-paced advances in Dense Retrieval (DR), which performs first-stage retrieval with embedding-based search. Despite the impressive ranking performance, previous …

CPUGPUInformation RetrievalQuantization+1