救援者:通过利用查询局部性加速向量搜索
Catapults to the Rescue: Accelerating Vector Search by Exploiting Query Locality
AI总结:
CatapultDB通过动态确定搜索起点,利用查询局部性提升向量搜索效率,比DiskANN提升2.51倍,效率媲美LSH方法且无需重建索引。
摘要:
图索引是向量数据库中近似最近邻搜索的主要方法,能够在数十亿个向量上提供高召回率和低延迟。然而,在此类索引中,邻近图的边集仅在索引数据发生变化时进行修改,从不适应查询工作负载。这很浪费:现实中的查询流表现出强的空间和时间局部性,但每次查询都必须重新遍历从固定或随机入口点开始的相同中间步骤。我们提出了CatapultDB,这是一种轻量级机制,首次在ANN索引上动态确定在查询时从何处开始搜索,从而利用查询局部性。CatapultDB注入了称为catapult的快捷边,将查询区域连接到频繁访问的终点节点。Catapults作为图上的额外层进行维护,因此标准的向量搜索算法保持不变:当存在适当的catapult时,查询会被路由到更好的起点。这种透明的设计保留了底层系统的完整功能集,包括过滤搜索、动态插入和磁盘驻留索引。我们实现了CatapultDB,并使用四个具有不同偏置的工作负载进行评估。我们的实验表明,CatapultDB在等效或更好的召回率下,比DiskANN的吞吐量提高了最多2.51倍,与基于LSH的方法效率相当,不牺牲过滤或不需要索引重建,并能优雅地适应工作负载变化,不像基于缓存的替代方案。
英文摘要:
Graph-based indexing is the dominant approach for approximate nearest neighbor search in vector databases, offering high recall with low latency across billions of vectors. However, in such indices, the edge set of the proximity graph is only modified to reflect changes in the indexed data, never to adapt to the query workload. This is wasteful: real-world query streams exhibit strong spatial and temporal locality, yet every query must re-traverse the same intermediate hops from fixed or random entry points. We present CatapultDB, a lightweight mechanism that, for the first time, dynamically determines where to begin the search in an ANN index on the fly, therefore exploiting query locality. CatapultDB injects shortcut edges called catapults that connect query regions to frequently visited destination nodes. Catapults are maintained as an additional layer on top of the graph, so the standard vector search algorithm remains unchanged: queries are simply routed to a better starting point when an appropriate catapult exists. This transparent design preserves the full feature set of the underlying system, including filtered search, dynamic insertions, and disk-resident indices. We implement CatapultDB and evaluate it using four workloads with varying amounts of bias. Our experiments show that CatapultDB increases throughput by up to 2.51x compared to DiskANN at equivalent or better recall, matches the efficiency of LSH-based approaches without sacrificing filtering or requiring index reconstruction, and adapts gracefully to workload shifts, unlike cache-based alternatives.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。