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

最大内积即查询缩放的最近邻

Maximum Inner Product is Query-Scaled Nearest Neighbor

Tingyang Chen, Cong Fu, Kun Wang, Xiangyu Ke, Yunjun Gao, Wenchao Zhou, Yabo Ni, Anxiang Zeng

AI总结:

本文提出无需空间变换即可将 MIPS 等价于 NNS 的理论框架,并结合 PSP 图索引与 AET 策略,实现更高搜索效率、35% 平均加速和三分之一索引体积。

摘要:

面向高维向量的最大内积搜索(MIPS)在数据库、信息检索和人工智能领域都具有关键作用。现有方法要么将 MIPS 归约为最近邻搜索(NNS),但会承受有害的向量空间变换;要么尝试直接处理 MIPS,却因缺乏三角不等式而难以减少冗余计算。本文提出一种新的理论框架,可在无需空间变换的情况下使 MIPS 与 NNS 等价,从而使我们能够利用先进的基于图的 NNS 索引和高效的边剪枝策略,显著减少不必要的计算。尽管理论分析已经确立了很强的基线,我们仍识别并解决了两个持续存在的挑战,以进一步改进方法:引入具有球面路径的邻近图(Proximity Graph with Spherical Pathway,PSP),用于缓解 MIPS 解聚集在大范数向量附近的问题;以及实现自适应提前终止(Adaptive Early Termination,AET),在达到精度瓶颈后有效削减过度探索。大量实验表明,我们的方法在搜索效率、可扩展性和实际适用性方面优于现有最先进技术。与最先进的基于图的方法相比,其查询处理平均加速 35%,索引大小减少至三分之一。值得注意的是,我们的方法已在知名在线购物平台 Shopee 的搜索引擎中得到验证和部署。我们还将发布代码和用于离线评估的工业规模数据集,以弥补公共基准中电子商务数据缺失的问题。

英文摘要:

Maximum Inner Product Search (MIPS) for high-dimensional vectors is pivotal across databases, information retrieval, and artificial intelligence. Existing methods either reduce MIPS to Nearest Neighbor Search (NNS) while suffering from harmful vector space transformations, or attempt to tackle MIPS directly but struggle to mitigate redundant computations due to the absence of the triangle inequality. This paper presents a novel theoretical framework that equates MIPS with NNS without requiring space transformation, thereby allowing us to leverage advanced graph-based indices for NNS and efficient edge pruning strategies, significantly reducing unnecessary computations. Despite a strong baseline set by our theoretical analysis, we identify and address two persistent challenges to further refine our method: the introduction of the Proximity Graph with Spherical Pathway (PSP), designed to mitigate the issue of MIPS solutions clustering around large-norm vectors, and the implementation of Adaptive Early Termination (AET), which efficiently curtails the excessive exploration once an accuracy bottleneck is reached. Extensive experiments reveal the superiority of our method over existing state-of-the-art techniques in search efficiency, scalability, and practical applicability. Compared with state-of-the-art graph based methods, it achieves an average 35% speed-up in query processing and a 3x reduction in index size. Notably, our approach has been validated and deployed in the search engines of Shopee, a well-known online shopping platform. Our code and an industrial-scale dataset for offline evaluation will also be released to address the absence of e-commerce data in public benchmarks.

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

↑