Distill-VQ:从密集嵌入中提取知识的面向学习检索的向量Quantization
Distill-VQ: Learning Retrieval Oriented Vector Quantization By Distilling Knowledge from Dense Embeddings
摘要:
基于矢量量化(VQ)的人工神经网络索引,如倒排文件系统(IVF)和乘积量化(PQ),由于具有竞争性的时间和存储效率,已被广泛应用于基于嵌入的文档检索。最初,学习VQ以最小化重建损失,即,原始密集嵌入与量化后重构的嵌入之间的失真。不幸的是,这样的目标是不一致的输入查询,这可能会导致检索质量的严重损失的选择地面实况文件的目标。最近的工作发现了这样的缺陷,并提出通过对比学习来最小化检索损失。然而,这些方法强烈依赖于查询与地面实况文件,其性能是有限的标记数据的不足。在本文中,我们提出了蒸馏VQ,它统一了知识蒸馏框架内的IVF和PQ的学习。在Distill-VQ中,密集嵌入被用作“教师”,预测查询与采样文档的相关性。VQ模块被视为“学生”,学习再现预测的相关性,使得重构的嵌入可以完全保留密集嵌入的检索结果。通过这样做,Distill-VQ能够从大量的未标记数据中获得大量的训练信号,这对检索质量有很大的贡献。本文对知识蒸馏的最优进行了全面的探索,为基于矢量量化的人工神经网络指标的学习提供了有益的启示。实验结果表明,对于高质量的矢量量化,标记数据不再是必需的,这表明Distill-VQ在实际中具有很强的适用性。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。