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

E2E:通过自适应终止实现高效的过滤AKNN搜索

E2E: Efficient Filtered AKNN Search via Adaptive Termination

The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));University of Leicester(莱斯特大学);The Hong Kong University of Science and Technology(香港科技大学)

Wenxuan Xia, Mingyu Yang, Wentao Li, Wei Wang

AI总结:

针对带属性约束的近似k近邻搜索,提出基于早期探测阶段信息的轻量级模型实现自适应终止,在保证95%召回率下获得1.1-3.7倍加速。

摘要:

近似k近邻(AKNN)搜索广泛应用于向量数据库。当向量携带额外属性(如标签或数值)时,过滤AKNN搜索在属性约束下检索与查询向量最近的向量。现有方法大多使用固定终止条件,在遵守属性过滤器的同时搜索整个索引。然而,这会导致大量冗余计算,因为不同查询需要不同的搜索努力,从而错过了简单查询的早期终止机会。本文提出一个轻量级模型来估计过滤AKNN查询的搜索成本并实现自适应终止:对于简单查询,提前停止以减少延迟;对于困难查询,继续更长时间以保持准确性。关键挑战是在属性过滤器下进行准确的成本预测。为解决这一问题,我们表明在早期探测阶段收集的信息(如属性分布和中间距离统计)可以有效预测整体搜索成本。在六个真实数据集上的实验表明,在95%召回率下,相比最先进的基线方法实现了1.1-3.7倍的加速,同时保持了搜索准确性。

英文摘要:

Approximate k-Nearest Neighbor (AKNN) search is widely used in vector databases. When vectors carry additional attributes (e.g., labels or numerical values), filtered AKNN search retrieves the nearest vectors to a query vector under attribute constraints. Most existing methods use a fixed termination condition, searching the entire index while respecting attribute filters. However, this leads to substantial redundant computations, since different queries require different amounts of search effort, and thus misses early termination opportunities for easy queries. This paper proposes a lightweight model to estimate the search cost of filtered AKNN queries and enable adaptive termination: For easy queries, the search stops early to reduce latency, while for hard queries, it continues longer to preserve accuracy. The key challenge is accurate cost prediction under attribute filters. To address this, we show that information collected during an early probing phase (e.g., attribute distributions and intermediate distance statistics) can effectively predict the overall search cost. Experiments on six real-world datasets demonstrate 1.1-3.7 speedup over state-of-the-art baselines at 95% recall, while maintaining search accuracy.

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

↑