FAVOR: 基于选择性感知排除距离的高效滤波无关向量近似最近邻搜索
FAVOR: Efficient Filter-Agnostic Vector ANNS Based on Selectivity-Aware Exclusion Distances
AI总结:
FAVOR通过整合选择性估计与过滤ANNS执行,提出支持任意过滤条件的高效滤波无关向量ANNS,提升搜索效率并保持稳定性,实验显示其在Recall@10=95%时QPS比现有方法高1.3-5倍。
摘要:
现代检索系统日益需要将近似最近邻搜索(ANNS)与复杂属性过滤相结合,以处理推荐系统和检索增强生成(RAG)等应用中的混合查询。尽管基于HNSW的内联过滤方法有潜力,但现有方法在低选择性场景下难以实现高吞吐量,同时平衡搜索效率、过滤通用性和索引连通性。为解决这些问题,我们提出FAVOR,一种高效的滤波无关向量ANNS,支持任意过滤条件并在不同选择性水平下保持稳定性能。FAVOR引入三个新特性:(1)集成架构,统一选择性估计和过滤ANNS执行,为混合向量-属性查询提供统一解决方案;(2)基于HNSW的内联过滤算法,引入排除距离机制动态重塑向量距离分布,将非目标向量推离查询,促进有效候选者靠近查询,从而提高搜索效率而不影响通用性或图连通性;(3)选择性驱动的搜索选择器,估计查询选择性并动态在低选择性情况下的预过滤暴力算法和优化HNSW搜索算法之间路由,确保一致性能。在真实世界数据集上的广泛实验表明,FAVOR在Recall@10=95%时,比现有方法在任意过滤条件下实现1.3-5倍更高的QPS,同时在某些过滤条件下保持竞争性性能。
英文摘要:
Modern retrieval systems increasingly require integrating approximate nearest neighbor search (ANNS) with complex attribute filtering to handle hybrid queries in applications such as recommendation systems and retrieval-augmented generation (RAG). While HNSW-based inline-filtering methods show promise, existing approaches struggle to deliver high throughput under low-selectivity scenarios while balancing search efficiency, filtering generality, and index connectivity. To address these challenges, we propose FAVOR, an efficient filter-agnostic vector ANNS that supports arbitrary filtering conditions while maintaining stable performance across varying selectivity levels. FAVOR introduces three novel features: (1) an integrated architecture that unifies selectivity estimation and filtered ANNS execution, providing a cohesive solution for hybrid vector-attribute queries; (2) a HNSW-based inline-filtering algorithm that introduces an exclusion distance mechanism to dynamically reshape the vector distance distribution, pushing non-target vectors away from the query while promoting valid candidates toward the query, thus improving search efficiency without compromising generality or graph connectivity; and (3) a selectivity-driven search selector that estimates query selectivity and dynamically routes queries between a pre-filtering brute-force algorithm for low-selectivity cases and an optimized HNSW-based search algorithm for other scenarios, ensuring consistent performance. Extensive experiments on real-world datasets demonstrate that FAVOR achieves a 1.3-5$\times$ higher QPS at $Recall@10 = 95\%$ compared to state-of-the-art methods for arbitrary filtering conditions, while maintaining competitive performance even against tailored solutions in some filtering conditions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。