优化SSD驻留图索引以实现高吞吐量向量搜索
Optimizing SSD-Resident Graph Indexing for High-Throughput Vector Search
AI总结:
VeloANN通过局部性感知的数据布局和异步运行时优化,提升SSD驻留图索引的高吞吐量向量搜索性能。
摘要:
基于图的近似最近邻搜索(ANNS)方法(例如HNSW)因其高精度和低延迟已成为事实上的技术标准。为了扩展到主内存之外,最近的离内存ANNS系统利用SSD存储大规模向量索引。然而,它们仍然受到严重CPU利用率低和读取放大(即存储停滞)的影响,这是由于图遍历期间访问局部性有限所致。我们提出了VeloANN,通过一种局部性感知的数据布局和基于协程的异步运行时来缓解存储停滞。VeloANN利用分层压缩和基于亲和力的数据放置方案,将相关向量放置在相同页面中,有效减少碎片化和过度获取。我们进一步设计了一个记录级缓冲池,其中每个记录组成了向量的邻居;通过持久化保留热门记录在内存中,它在受限内存预算下消除了过多的页面交换。为了在磁盘I/O中断期间最小化CPU调度开销,VeloANN采用基于协程的异步运行时进行轻量级任务调度。在此基础上,它结合了异步预取和束感知搜索策略以优先缓存数据,最终提高了整体搜索效率。广泛的实验表明,VeloANN在吞吐量上比最先进的基于磁盘的ANNS系统高出多达5.8倍,在延迟减少方面高出3.25倍,同时在仅使用10%内存足迹的情况下实现了与内存系统相媲美的吞吐量。
英文摘要:
Graph-based approximate nearest neighbor search (ANNS) methods (e.g., HNSW) have become the de facto state of the art for their high precision and low latency. To scale beyond main memory, recent out-of-memory ANNS systems leverage SSDs to store large vector indexes. However, they still suffer from severe CPU underutilization and read amplification (i.e., storage stalls) caused by limited access locality during graph traversal. We present VeloANN, which mitigates storage stalls through a locality-aware data layout and a coroutine-based asynchronous runtime. VeloANN utilizes hierarchical compression and affinity-based data placement scheme to co-locate related vectors within the same page, effectively reducing fragmentation and over-fetching. We further design a record-level buffer pool, where each record groups the neighbors of a vector; by persistently retaining hot records in memory, it eliminates excessive page swapping under constrained memory budgets. To minimize CPU scheduling overheads during disk I/O interruptions, VeloANN employs a coroutine-based asynchronous runtime for lightweight task scheduling. On top of this, it incorporates asynchronous prefetching and a beam-aware search strategy to prioritize cached data, ultimately improving overall search efficiency. Extensive experiments show that VeloANN outperforms state-of-the-art disk-based ANN systems by up to 5.8x in throughput and 3.25x in latency reduction, while achieving 0.92x the throughput of in-memory systems using only 10% of their memory footprint.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。