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

LSM-VEC:一种大规模磁盘基系统用于动态向量搜索

LSM-Vec: A Memory-Efficient Disk-Based System for Large-Scale Dynamic Vector Search

Nanyang Technological University(南洋理工大学)

Dingheng Mo, Shurui Zhong, Yingzhuo Qian, Siqiang Luo

AI总结:

LSM-VEC结合分层图索引与LSM树存储,实现高效的动态向量搜索,支持出地更新,降低I/O开销,实验显示其在大规模数据集上优于现有磁盘基ANN系统。

摘要:

向量搜索是现代AI应用的基础,通过支持在检索增强生成(RAG)、推荐系统和多模态搜索等任务中对高维嵌入的近似最近邻(ANN)查询。传统ANN搜索索引(如HNSW)在大规模数据规模下受限于内存约束。基于磁盘的索引如DiskANN减少内存开销,但依赖于离线图构建,导致向量更新成本高且效率低。最先进的聚类方法SPFresh提供更好的可扩展性,但因粗粒度分区导致召回率下降。此外,SPFresh采用原地更新以维持其索引结构,限制了其在动态工作负载下处理高吞吐量插入和删除的效率。本文提出了LSM-VEC,一种基于磁盘的动态向量索引,整合了分层图索引与LSM树存储。通过将近似图分布到多个LSM树层级,LSM-VEC支持非原地向量更新。通过基于采样的概率搜索策略与自适应邻居选择提高搜索效率,连接性感知的图重排序进一步减少I/O而不需全局重建。在十亿级数据集上的实验表明,LSM-VEC在现有基于磁盘的ANN系统中表现更优。它实现了更高的召回率、更低的查询和更新延迟,并将内存占用减少超过66.2%,使其适用于具有动态更新的现实世界大规模向量搜索。

英文摘要:

RAG and AI retrieval have made vector approximate nearest-neighbor (ANN) search a key retrieval operation in modern data systems. These workloads are both large and dynamic. Vector collections grow until index state no longer fits in DRAM and must reside on disk, and every new record arrives as an update the index must absorb while queries continue to run. Existing dynamic designs on disk leave two architecture-level gaps. First, graph connections and vector data follow different access and update paths, yet many disk-based indexes store them as one physical record, so a graph-only update rewrites vector data it does not modify. Second, keeping an index fresh gives memory a role beyond caching, because these systems either hold recent updates in in-memory indexes or reserve memory to maintain a mutable disk layout. We present LSM-Vec, a disk-based dynamic vector search system built on a decoupled architecture. LSM-Vec stores the HNSW base layer in a graph-oriented LSM-tree that absorbs fine-grained edge changes out of place, and keeps vector data in a separate paged store. To keep this design query-efficient within a small memory budget, we design in-memory tree-based sketches that route each query to an entry close to its target on disk, so the resident hierarchy stays compact. We further introduce HNSW-based reordering, which places vector data that queries evaluate together on nearby disk pages and reduces scattered reads. On streaming SIFT and SPACEV workloads with up to a hundred million vectors, LSM-Vec requires up to 6.2$\times$ less memory and 7.6$\times$ less disk than FreshDiskANN and SPFresh, and writes up to 15$\times$ fewer bytes per insertion. At the hundred-million scale, where SPFresh's index outgrows memory and FreshDiskANN exhausts it, LSM-Vec keeps its tail latency stable throughout the update stream, 2.3--3.8$\times$ below SPFresh's at comparable recall.

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

↑