arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2507.19802cs.DBcs.DCcs.DScs.IR
收藏

CleANN:基于图的近似最近邻搜索中的高效全动态性

CleANN: Efficient Full Dynamism in Graph-based Approximate Nearest Neighbor Search

Massachusetts Institute of Technology(麻省理工学院);University of British Columbia(不列颠哥伦比亚大学)

Ziyu Zhang, Yuanhao Wei, Joshua Engels, Julian Shun

AI总结:

研究基于图的近似最近邻搜索中的全动态性问题,提出CleANN系统,含工作负载感知链接、查询自适应邻域合并和半懒惰内存清理三个组件,在多数据集全动态工作负载评估中,实现吞吐量大幅提升且保持查询质量。

摘要:

近似最近邻搜索(ANNS)已成为人工智能工作负载中各种其他基础数据任务的典型算法问题。基于图的ANNS索引在索引成本、查询效率和查询近似质量方面具有出色的经验权衡。大多数现有基于图的索引是为静态场景设计的,构建索引后数据无更新。然而,全动态性(插入、删除和搜索)对于使用向量数据库的应用程序提供最新响应至关重要。现有基于动态图的索引存在至少一个以下问题:(1)随着更新发生,查询质量下降;(2)用于在更新时维护索引质量的图结构更新是全局的,因此成本高昂。为解决这些问题,我们提出了CleANN系统,它由三个主要组件组成:(1)工作负载感知的不同搜索树后代链接以应对分布变化;(2)查询自适应的即时邻域合并以有效处理删除的节点;(3)半懒惰内存清理以清理数据结构中的陈旧信息并减少前两个组件的工作量。我们在7个不同数据集上对全动态工作负载评估了CleANN,发现CleANN的查询质量至少与使用相应数据静态构建索引时一样好。在使用56个超线程的内存设置中,所有类型的查询同时运行,在相同召回水平下,CleANN在百万规模的真实世界数据集上实现了7 - 1200倍的吞吐量提升。据我们所知,CleANN是第一个在全动态性下保持质量的同时实现这种效率的并发ANNS索引。

英文摘要:

Approximate nearest neighbor search (ANNS) has become a quintessential algorithmic problem for various other foundational data tasks for AI workloads. Graph-based ANNS indexes have superb empirical trade-offs in indexing cost, query efficiency, and query approximation quality. Most existing graph-based indexes are designed for the static scenario, where there are no updates to the data after the index is constructed. However, full dynamism (insertions, deletions, and searches) is crucial to providing up-to-date responses in applications using vector databases. It is desirable that the index efficiently supports updates and search queries concurrently. Existing dynamic graph-based indexes suffer from at least one of the following problems: (1) the query quality degrades as updates happen; and (2) the graph structure updates used to maintain the index quality upon updates are global and thus expensive. To solve these problems, we propose the CleANN system which consists of three main components: (1) workload-aware linking of diverse search tree descendants to combat distribution shift; (2)query-adaptive on-the-fly neighborhood consolidation to efficiently handle deleted nodes; and (3) semi-lazy memory cleaning to clean up stale information in the data structure and reduce the work spent by the first two components. We evaluate CleANN on 7 diverse datasets on fully dynamic workloads and find that CleANN has query quality at least as good as if the index had been built statically using the corresponding data. In the in-memory setting using 56 hyper-threads, with all types of queries running concurrently, at the same recall level, CleANN achieves 7-1200x throughput improvement on million-scale real-world datasets. To the best of our knowledge, CleANN is the first concurrent ANNS index to achieve such efficiency while maintaining quality under full dynamism.

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

↑