LAANN: 面向磁盘近似最近邻搜索的I/O感知前瞻搜索
LAANN: I/O-Aware Look-Ahead Search for Disk-Based Approximate Nearest Neighbor Search
AI总结:
提出LAANN系统,通过协同优化CPU计算和I/O访问,采用前瞻搜索、优先级I/O-CPU流水线和轻量级内存图索引,显著提升磁盘ANNS的吞吐量和延迟。
摘要:
近似最近邻搜索(ANNS)是大规模检索、推荐和AI系统中的基本原语。随着向量数据集增长到数十亿甚至数万亿项,基于磁盘的ANNS系统通过将向量数据和索引结构存储在存储系统上来处理这种规模,但其查询性能仍然受I/O延迟主导。现有的基于磁盘的ANNS系统主要优化I/O效率或将I/O与计算重叠,但它们将CPU计算和I/O访问视为基本独立的组件。这种分离错过了一个关键机会:在做出I/O决策之前,有选择地处理已缓存在内存中的候选者可以减少不必要的磁盘访问并提高搜索质量。然而,利用这一机会具有挑战性,因为过多的计算可能延迟关键的I/O操作,而选择不当的计算则收益甚微,可能增加整体查询延迟。在本文中,我们提出了LAANN,一种基于磁盘的ANNS系统,通过协同优化CPU计算和I/O访问,使图搜索显式地感知I/O。LAANN结合了三种技术:前瞻搜索,它跨查询阶段调整搜索策略以平衡I/O减少和及时的I/O发出;优先级I/O-CPU流水线,它利用I/O等待时间根据候选者对即将到来的I/O决策的预期影响来处理缓存在内存中的候选者;以及快速轻量级的内存图索引,它提供高质量的初始候选者以加速收敛并减少磁盘访问。在百万和十亿规模数据集上的实验表明,LAANN显著优于最先进的基于磁盘的ANNS系统。在Recall@10 = 0.9时,LAANN实现了1.41倍至4.66倍的吞吐量提升,29%至79%的延迟降低,以及1.59倍至6.34倍的I/O操作减少。
英文摘要:
Approximate nearest neighbor search (ANNS) is a fundamental primitive in large-scale retrieval, recommendation, and AI systems. As vector datasets grow to billions or even trillions of items, disk-based ANNS systems have emerged to handle this scale by storing vector data and index structures on storage systems, but their query performance remains dominated by I/O latency. Existing disk-based ANNS systems primarily optimize I/O efficiency or overlap I/O with computation, but they treat CPU computation and I/O access as largely separate components. This separation misses a critical opportunity: selectively processing candidates already cached in memory before making I/O decisions can reduce unnecessary disk accesses and improve search quality. However, exploiting this opportunity is challenging because excessive computation can delay critical I/O operations, while poorly chosen computation provides little benefit, potentially increasing overall query latency. In this paper, we present LAANN, a disk-based ANNS system that makes graph search explicitly I/O-aware by co-optimizing CPU computation and I/O access. LAANN combines three techniques: look-ahead search, which adapts the search strategy across query stages to balance I/O reduction and timely I/O issuance; a priority I/O-CPU pipeline, which uses I/O waiting time to process candidates cached in memory according to their expected impact on upcoming I/O decisions; and a fast lightweight in-memory graph index, which provides high-quality initial candidates to accelerate convergence and reduce disk accesses. Experiments on million- and billion-scale datasets demonstrate that LAANN substantially outperforms state-of-the-art disk-based ANNS systems. At Recall@10 = 0.9, LAANN achieves 1.41x-4.66x higher throughput, 29%-79% lower latency, and 1.59x-6.34x fewer I/O operations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。