arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.02116cs.DBcs.IR
收藏

Starling:一种面向数据段上高维向量相似性搜索的 I/O 高效磁盘驻留图索引框架

Starling: An I/O-Efficient Disk-Resident Graph Index Framework for High-Dimensional Vector Similarity Search on Data Segment

Mengzhao Wang, Weizhi Xu, Xiaomeng Yi, Songlin Wu, Zhangyang Peng, Xiangyu Ke, Yunjun Gao, Xiaoliang Xu, Rentong Guo, Charles Xie

AI总结:

针对向量数据库单数据段内存与磁盘受限的问题,本文提出磁盘驻留图索引框架 Starling,通过局部性优化的数据布局和块搜索策略降低 I/O,在保持精度的同时显著提升吞吐并降低延迟。

摘要:

高维向量相似性搜索(HVSS)正作为适用于各类数据科学和 AI 应用的强大工具而日益受到重视。随着向量数据规模扩大,内存中索引因主存需求大幅增加而带来严峻挑战。一种潜在解决方案是采用基于磁盘的实现,将向量数据存储并搜索于 NVMe SSD 等高性能设备上。然而,在向量数据库中为数据段实现 HVSS 十分复杂,因为单台机器为实现系统可扩展性会包含多个段。在此场景下,每个段只能使用有限的内存和磁盘空间,因此必须在准确性、效率和空间成本之间精细平衡。现有基于磁盘的方法存在不足,因为它们没有从整体上同时满足所有这些需求。本文提出 Starling,这是一个 I/O 高效的磁盘驻留图索引框架,可优化段内的数据布局和搜索策略。它包含两个主要组件:(1)一种数据布局,结合内存中的导航图和经过重排、具有增强局部性的基于磁盘的图,以缩短搜索路径长度并尽量减少磁盘带宽浪费;(2)一种块搜索策略,旨在最小化向量查询执行期间高成本的磁盘 I/O 操作。通过大量实验,我们验证了 Starling 的有效性、效率和可扩展性。在具有 2GB 内存和 10GB 磁盘容量的数据段上,Starling 最多可容纳 3300 万个 128 维向量,并提供平均精度和 top-10 召回率超过 0.9、延迟低于 1 毫秒的 HVSS。结果展示了 Starling 的优越性能:在保持相同准确性水平的同时,与最先进方法相比,其吞吐量提高 43.9 倍,查询延迟降低 98%。

英文摘要:

High-dimensional vector similarity search (HVSS) is gaining prominence as a powerful tool for various data science and AI applications. As vector data scales up, in-memory indexes pose a significant challenge due to the substantial increase in main memory requirements. A potential solution involves leveraging disk-based implementation, which stores and searches vector data on high-performance devices like NVMe SSDs. However, implementing HVSS for data segments proves to be intricate in vector databases where a single machine comprises multiple segments for system scalability. In this context, each segment operates with limited memory and disk space, necessitating a delicate balance between accuracy, efficiency, and space cost. Existing disk-based methods fall short as they do not holistically address all these requirements simultaneously. In this paper, we present Starling, an I/O-efficient disk-resident graph index framework that optimizes data layout and search strategy within the segment. It has two primary components: (1) a data layout incorporating an in-memory navigation graph and a reordered disk-based graph with enhanced locality, reducing the search path length and minimizing disk bandwidth wastage; and (2) a block search strategy designed to minimize costly disk I/O operations during vector query execution. Through extensive experiments, we validate the effectiveness, efficiency, and scalability of Starling. On a data segment with 2GB memory and 10GB disk capacity, Starling can accommodate up to 33 million vectors in 128 dimensions, offering HVSS with over 0.9 average precision and top-10 recall rate, and latency under 1 millisecond. The results showcase Starling's superior performance, exhibiting 43.9$\times$ higher throughput with 98% lower query latency compared to state-of-the-art methods while maintaining the same level of accuracy.

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

↑