近似最近邻搜索中的属性过滤:一项深入的实验研究
Attribute Filtering in Approximate Nearest Neighbor Search: An In-depth Experimental Study
AI总结:
本文系统研究了过滤近似最近邻搜索,提出统一接口与分类法,并在多数据集上广泛评估10种算法和12种方法,揭示关键组件影响并给出选型指南。
摘要:
随着结构化与非结构化数据的不断融合,出现了在向量上执行相似性搜索同时满足结构化属性约束的新方法,这一过程被称为过滤近似最近邻(Filtering ANN)搜索。由于其中许多算法仅在近年出现,并且被设计为可与多种基础索引方法和过滤策略协同工作,因此迫切需要一种统一的分析来识别其核心技术并实现有意义的比较。\n在本文中,我们提出了一个统一的Filtering ANN搜索接口,涵盖最新算法,并从多个角度对其进行广泛评估。首先,我们基于属性类型和过滤策略,提出了现有Filtering ANN算法的综合分类法。其次,我们分析其关键组成部分,即索引结构、剪枝策略和入口点选择,以阐明设计差异与权衡。然后,我们在4个数据集(每个数据集最多包含1000万个数据项)上对10种算法和12种方法进行了广泛的实验评估,其中包含合成属性和真实属性,并覆盖从0.1%到100%的选择率水平。最后,深入的组件分析揭示了剪枝、入口点选择以及边过滤成本对整体性能的影响。基于我们的发现,我们总结了每种方法的优势与局限,为选择合适方法提供了实用指南,并指出了未来研究的有前景方向。我们的代码可在以下地址获取:https://github.com/lmccccc/FANNBench。
英文摘要:
With the growing integration of structured and unstructured data, new methods have emerged for performing similarity searches on vectors while honoring structured attribute constraints, i.e., a process known as Filtering Approximate Nearest Neighbor (Filtering ANN) search. Since many of these algorithms have only appeared in recent years and are designed to work with a variety of base indexing methods and filtering strategies, there is a pressing need for a unified analysis that identifies their core techniques and enables meaningful comparisons. In this work, we present a unified Filtering ANN search interface that encompasses the latest algorithms and evaluate them extensively from multiple perspectives. First, we propose a comprehensive taxonomy of existing Filtering ANN algorithms based on attribute types and filtering strategies. Next, we analyze their key components, i.e., index structures, pruning strategies, and entry point selection, to elucidate design differences and tradeoffs. We then conduct a broad experimental evaluation on 10 algorithms and 12 methods across 4 datasets (each with up to 10 million items), incorporating both synthetic and real attributes and covering selectivity levels from 0.1% to 100%. Finally, an in-depth component analysis reveals the influence of pruning, entry point selection, and edge filtering costs on overall performance. Based on our findings, we summarize the strengths and limitations of each approach, provide practical guidelines for selecting appropriate methods, and suggest promising directions for future research. Our code is available at: https://github.com/lmccccc/FANNBench.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。