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

高维空间中低延迟的外存ANN搜索

Low-Latency Out-of-Core ANN Search in High-Dimensional Space

Northeastern University(东北大学)

Ziwen Song, Bin Wang, Xiaochun Yang, Junhua Zhang

AI总结:

本文提出SkipDisk算法,通过混合外存和内存方法,在减少内存占用的同时实现与HNSW相当或更低的搜索延迟,采用三角不等式下界优化和三级数据剪枝策略。

摘要:

内存基于图的近似最近邻(ANN)搜索具有优越的搜索性能,但导致显著的内存占用。基于磁盘的方法减少了内存使用,但面临高磁盘访问延迟。本文提出SkipDisk,一种磁盘-内存混合的ANN搜索方法,在显著减少内存占用的同时,实现了与内存方法HNSW相当或更低的搜索延迟。通过分析现有磁盘方法,发现磁盘访问仍是主要瓶颈,现有基于下界的方法过于宽松,无法有效减少磁盘访问。因此,我们设计SkipDisk,通过低内存占用实现紧致下界以减少搜索延迟。首先,我们为每个点设计专用的pivot以提高三角不等式的下界以实现有效的过滤。我们进一步基于此下界设计基于估计的方法。其次,为减少内存占用,我们采用三级数据剪枝策略以在内存中保留信息数据。第三,为进一步减少搜索延迟,我们设计基于内存搜索与磁盘访问解耦的异步I/O策略,通过在内存中存储邻居节点。实验表明,我们的方法在内存占用约为10的情况下,延迟为HNSW的85;在内存占用略高约20的情况下,延迟为HNSW的63。

英文摘要:

In-memory graph-based approximate nearest neighbor (ANN) search has superior search performance but incurs significant memory footprint. Disk-based methods reduce memory usage but suffer from high disk access latency. A common challenge is how to achieve low-latency search while significantly reducing memory footprint. In this paper, we propose SkipDisk, a disk-memory hybrid ANN search that significantly reduces memory footprint while achieving search latency comparable to or lower than in-memory method HNSW. By analyzing existing disk-based methods, we observed that disk access remains the primary bottleneck, and existing lower bound based filtering methods are two loose to effectively reduce disk access. Therefore, we design SkipDisk to achieve tight lower bound with low memory footprint to reduce the search latency. First, we design a dedicated pivot for each point to improve the lower bound of the triangle inequality for effective filtering. We further design an estimation-based approach based on this lower bound. Second, to reduce the memory footprint, we employ a three-level data pruning strategy to preserve informative data in memory. Third, to further reduce search latency, we design an asynchronous I/O strategy based on the decoupling of in-memory search and disk access by storing neighbor nodes in memory. Experiments show that our method achieves a latency of 85 of HNSW's latency with approximately 10 memory footprint, and a latency to 63 of HNSW's with a slightly higher memory footprint of around 20.

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

↑