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

LIRA:一种面向大规模ANN搜索的基于学习的查询感知分区框架

LIRA: A Learning-based Query-aware Partition Framework for Large-scale ANN Search

Ximu Zeng, Liwei Deng, Penghao Chen, Xu Chen, Han Su, Kai Zheng

AI总结:

提出LIRA框架,通过基于学习的探测模型直接定位查询的kNN分区,并整合冗余策略,解决分区搜索中的无关探测和边界问题,在准确性、延迟和扇出间实现更优权衡。

摘要:

近似最近邻搜索是信息检索中的基础问题。以往基于分区的方法通过探测部分分区来提高搜索效率,但面临两个常见问题。在查询阶段,常见策略是基于查询到分区质心的距离排名来探测分区,这不可避免地会探测不相关的分区,因为它忽略了数据分布。在分区构建阶段,所有基于分区的方法都面临边界问题,该问题将查询的最近邻分割到多个分区,导致kNN分布呈长尾状,并降低了最优nprobe(即探测分区的数量)。为解决这一不足,我们提出了LIRA,一个基于学习的查询感知分区框架。具体而言,我们提出一个探测模型,直接探测包含查询的kNN的分区,这可以减少探测浪费,并允许以个体化的nprobe进行查询感知探测。此外,我们将探测模型整合到基于学习的冗余策略中,以减轻长尾kNN分布对搜索效率的不利影响。在真实世界向量数据集上的大量实验表明,LIRA在准确性、延迟和查询扇出之间的权衡方面具有优越性。代码可在https://github.com/SimoneZeng/LIRA-ANN-search获取。

英文摘要:

Approximate nearest neighbor search is fundamental in information retrieval. Previous partition-based methods enhance search efficiency by probing partial partitions, yet they face two common issues. In the query phase, a common strategy is to probe partitions based on the distance ranks of a query to partition centroids, which inevitably probes irrelevant partitions as it ignores data distribution. In the partition construction phase, all partition-based methods face the boundary problem that separates a query's nearest neighbors to multiple partitions, resulting in a long-tailed kNN distribution and degrading the optimal nprobe (i.e., the number of probing partitions). To address this gap, we propose LIRA, a LearnIng-based queRy-aware pArtition framework. Specifically, we propose a probing model to directly probe the partitions containing the kNN of a query, which can reduce probing waste and allow for query-aware probing with nprobe individually. Moreover, we incorporate the probing model into a learning-based redundancy strategy to mitigate the adverse impact of the long-tailed kNN distribution on search efficiency. Extensive experiments on real-world vector datasets demonstrate the superiority of LIRA in the trade-off among accuracy, latency, and query fan-out. The codes are available at https://github.com/SimoneZeng/LIRA-ANN-search.

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

↑