arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.00734cs.DB
收藏

EMA:支持通用属性过滤和动态更新的近似最近邻搜索

EMA: Approximate Nearest Neighbor Search with General Attribute Filtering and Dynamic Updates

The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Microsoft Research(微软研究院);The Chinese University of Hong Kong(香港中文大学)

Mocheng Li, Xiao Yan, Baotong Lu, James Cheng, Chenhao Ma

AI总结:

提出EMA算法,通过引入附着在图边上的紧凑摘要Marker,实现支持混合数值和类别属性多谓词查询的过滤近似最近邻搜索,并支持高效动态更新,在多种工作负载下速度提升1.68至12.25倍。

摘要:

过滤近似最近邻(FANN)搜索是一项关键且新兴的任务,用于增强向量数据库的查询能力,支持推荐系统、检索增强生成(RAG)和智能体记忆等应用。然而,现有方法大多局限于范围或标签过滤,通常会导致不可接受的索引构建时间和内存开销。谓词无关的方法进一步难以有效处理各种谓词选择性。在本文中,我们提出EMA,一种过滤ANN算法,支持混合数值和类别属性上的多谓词查询以及高效的动态更新。EMA引入了附着在图边上的紧凑摘要Marker,在Marker级别提供保守的谓词和几何感知指导,且零假阴性。在查询处理过程中,EMA执行Marker增强的联合搜索,并带有有界边恢复机制,从而在保持图可导航性的同时实现高效过滤。大量实验表明,在各种工作负载下,EMA相对于最先进的通用过滤ANN方法实现了1.68倍至12.25倍的加速。

英文摘要:

Filtering approximate nearest neighbor search (Filtering ANNS) retrieves approximate nearest neighbors subject to attribute constraints in applications such as recommendation, retrieval-augmented generation (RAG), and LLM agent memory. However, predicate-specialized methods target either range or label filtering and can incur substantial index construction time, whereas predicate-agnostic methods support arbitrary predicates but struggle to sustain throughput and recall across a wide range of selectivities. In this paper, we propose EMA, a Filtering ANNS algorithm that supports multi-predicate queries over mixed numerical and categorical attributes as well as efficient dynamic updates. EMA attaches compact summaries, called Markers, to graph edges to record the attributes of candidates removed by geometric pruning. During query processing, EMA performs Marker-guided joint search with bounded edge recovery, enabling efficient filtering while preserving graph navigability. On multi-predicate workloads, EMA achieves 1.20x-28.18x the query throughput of the best competing baseline at comparable recall. In our complete-record replacement experiment, EMA retains approximately 98% of its initial query throughput without rebuilding the graph.

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

↑