Quake:面向向量搜索的自适应索引
Quake: Adaptive Indexing for Vector Search
AI总结:
本文提出自适应向量索引系统 Quake,通过多级分区、成本模型、召回估计和 NUMA 感知并行,在动态倾斜工作负载下显著降低查询与更新延迟。
摘要:
向量搜索是在高维向量数据库中查找查询向量的 k 个最近邻的任务,支撑着检索增强生成、推荐系统和信息检索等众多机器学习应用。然而,在数据分布不断演变的动态且倾斜的工作负载下,现有近似最近邻(ANN)方法表现不佳。我们提出 Quake,这是一种自适应索引系统,可在此类环境中保持低延迟和高召回率。Quake 采用多级分区方案,可根据更新和不断变化的访问模式进行调整,并由一个基于分区大小和访问频率预测查询延迟的成本模型指导。Quake 还使用一种新颖的召回率估计模型动态设置查询执行参数,以满足召回率目标。此外,Quake 利用 NUMA 感知的查询内并行机制,在搜索过程中提高内存带宽利用率。为评估 Quake,我们准备了一个 Wikipedia 向量搜索工作负载,并开发了一个工作负载生成器,用于创建具有可配置访问模式的向量搜索工作负载。我们的评估表明,在动态工作负载上,与 SVS、DiskANN、HNSW 和 SCANN 等最先进索引相比,Quake 将查询延迟降低了 1.5–38 倍,并将更新延迟降低了 4.5–126 倍。
英文摘要:
Vector search, the task of finding the k-nearest neighbors of a query vector against a database of high-dimensional vectors, underpins many machine learning applications, including retrieval-augmented generation, recommendation systems, and information retrieval. However, existing approximate nearest neighbor (ANN) methods perform poorly under dynamic and skewed workloads where data distributions evolve. We introduce Quake, an adaptive indexing system that maintains low latency and high recall in such environments. Quake employs a multi-level partitioning scheme that adjusts to updates and changing access patterns, guided by a cost model that predicts query latency based on partition sizes and access frequencies. Quake also dynamically sets query execution parameters to meet recall targets using a novel recall estimation model. Furthermore, Quake utilizes NUMA-aware intra-query parallelism for improved memory bandwidth utilization during search. To evaluate Quake, we prepare a Wikipedia vector search workload and develop a workload generator to create vector search workloads with configurable access patterns. Our evaluation shows that on dynamic workloads, Quake achieves query latency reductions of 1.5-38x and update latency reductions of 4.5-126x compared to state-of-the-art indexes such as SVS, DiskANN, HNSW, and SCANN.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。