PathFinder:高效支持过滤近似最近邻搜索中的合取和析取
PathFinder: Efficiently Supporting Conjunctions and Disjunctions for Filtered Approximate Nearest Neighbor Search
AI总结:
本文提出PathFinder索引框架,通过基于代价的优化器支持跨多属性合取和析取的复杂过滤ANNS,在召回率0.95下吞吐量比最佳基线高9.8倍。
摘要:
过滤近似最近邻搜索(ANNS)将搜索限制在属性满足给定过滤条件的数据对象上,并检索与查询对象语义最相似的前$K$个对象。现有许多基于图的ANNS索引旨在实现高效的过滤ANNS,但在适用性或性能上仍存在局限:针对特定属性优化的索引虽在该属性过滤上效率高,却无法支持跨多属性的任意合取和析取复杂过滤。受关系数据库设计启发,本文提出新索引框架PathFinder,允许用户选择性地为特定属性过滤创建优化的ANNS索引,并采用基于代价的优化器高效利用它们处理复杂过滤。PathFinder包含三项新技术:1)新优化指标,权衡查询执行时间与精度;2)两阶段优化,处理含合取和析取的过滤;3)索引借用优化,利用属性特定索引处理另一属性的过滤。在四个真实数据集上的实验表明,在召回率0.95下,PathFinder的查询吞吐量比最佳基线高9.8倍。
英文摘要:
Filtered approximate nearest neighbor search (ANNS) restricts the search to data objects whose attributes satisfy a given filter and retrieves the top-$K$ objects that are most semantically similar to the query object. Many graph-based ANNS indexes are proposed to enable efficient filtered ANNS but remain limited in applicability or performance: indexes optimized for a specific attribute achieve high efficiency for filters on that attribute but fail to support complex filters with arbitrary conjunctions and disjunctions over multiple attributes. Inspired by the design of relational databases, this paper presents PathFinder, a new indexing framework that allows users to selectively create ANNS indexes optimized for filters on specific attributes and employs a cost-based optimizer to efficiently utilize them for processing complex filters. PathFinder includes three novel techniques: 1) a new optimization metric that captures the tradeoff between query execution time and accuracy, 2) a two-phase optimization for handling filters with conjunctions and disjunctions, and 3) an index borrowing optimization that uses an attribute-specific index to process filters on another attribute. Experiments on four real-world datasets show that PathFinder outperforms the best baseline by up to 9.8x in query throughput at recall 0.95.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。