arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.06158cs.DB
收藏

量化与投影:近似k近邻搜索的幸福婚姻

Quantization Meets Projection: A Happy Marriage for Approximate k-Nearest Neighbor Search

HKUST (GZ) & HKUST(香港科技大学(广州)及香港科技大学);University of Leicester(莱斯特大学)

Mingyu Yang, Liuchang Jing, Wentao Li, Wei Wang

AI总结:

MRQ通过结合投影与量化,提升近似k近邻搜索效率,实现任意压缩比和更快搜索速度。

摘要:

近似k近邻搜索(AKNN)是一个具有广泛应用基础性问题。为了减少内存并加快搜索速度,向量量化被广泛采用。然而,现有量化方法要么依赖于代码本——其查询速度受限于昂贵的表查找,要么采用逐维量化,将每个向量维度映射到一个小的量化代码以实现快速搜索。然而,后者却因量化代码长度固有地与原始维度数相关而受到固定压缩比的限制。为克服这些限制,我们提出了MRQ,一种将投影与量化相结合的新方法。关键思想是,在投影后,高维向量倾向于将大部分信息集中在前导维度中。MRQ利用这一特性,仅对信息密集的投影子空间进行量化——其大小完全由用户可调——从而将量化代码长度与原始维度数解耦。剩余的尾部维度则通过轻量级的统计摘要来捕捉。通过这样做,MRQ提升了现有量化方法的查询效率,同时通过投影步骤实现了任意压缩比。广泛的实验表明,MRQ在性能上显著优于现有最先进方法,实现了在可比精度下,搜索速度提高3倍,仅使用三分之一的量化位数。

英文摘要:

Approximate $k$-nearest neighbor (AKNN) search is a fundamental problem with wide applications. To reduce memory and accelerate search, vector quantization is widely adopted. However, existing quantization methods either rely on codebooks -- whose query speed is limited by costly table lookups -- or adopt dimension-wise quantization, which maps each vector dimension to a small quantized code for fast search. The latter, however, suffers from a fixed compression ratio because the quantized code length is inherently tied to the original dimensionality. To overcome these limitations, we propose MRQ, a new approach that integrates projection with quantization. The key insight is that, after projection, high-dimensional vectors tend to concentrate most of their information in the leading dimensions. MRQ exploits this property by quantizing only the information-dense projected subspace -- whose size is fully user-tunable -- thereby decoupling the quantized code length from the original dimensionality. The remaining tail dimensions are captured using lightweight statistical summaries. By doing so, MRQ boosts the query efficiency of existing quantization methods while achieving arbitrary compression ratios enabled by the projection step. Extensive experiments show that MRQ substantially outperforms the state-of-the-art method, achieving up to 3x faster search with only one-third the quantization bits for comparable accuracy.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑