SPFresh:面向十亿级向量搜索的增量原地更新
SPFresh: Incremental In-Place Update for Billion-Scale Vector Search
AI总结:
SPFresh 提出轻量级增量再平衡协议 LIRE,通过仅调整分区边界向量实现十亿级向量索引的低开销原地更新,显著降低资源消耗并提升查询性能。
摘要:
近似最近邻搜索(ANNS)现已广泛应用于信息检索、问答、推荐以及相似高维向量搜索等各类应用中。随着向量数据量的持续增长,支持向量索引更新变得愈发重要,向量索引是实现高效、准确 ANNS 的关键技术。由于高维灾难,识别单个新向量的正确邻居往往代价高昂,而这一过程是索引更新的必要环节。为了分摊更新成本,现有系统维护一个二级索引来累积更新,并由主索引通过周期性全局重建整个索引来完成合并。然而,这种方法在搜索延迟和准确率上存在较大波动,更不用说全局重建需要大量资源且极其耗时。我们提出了 SPFresh,一个支持原地向量更新的系统。SPFresh 的核心是 LIRE,一种轻量级增量再平衡协议,用于拆分向量分区并重新分配邻近分区中的向量,以适应数据分布的变化。LIRE 通过仅重新分配分区边界处的向量来实现低开销的向量更新,而在高质量向量索引中,这类向量的数量被认为很少。借助 LIRE,SPFresh 在查询延迟和准确率上优于基于全局重建的方案,在十亿级向量索引、每日 1% 向量更新率的场景下,与最先进方案相比,峰值时仅需 1% 的 DRAM 和不到 10% 的核心数。
英文摘要:
Approximate Nearest Neighbor Search (ANNS) is now widely used in various applications, ranging from information retrieval, question answering, and recommendation, to search for similar high-dimensional vectors. As the amount of vector data grows continuously, it becomes important to support updates to vector index, the enabling technique that allows for efficient and accurate ANNS on vectors. Because of the curse of high dimensionality, it is often costly to identify the right neighbors of a single new vector, a necessary process for index update. To amortize update costs, existing systems maintain a secondary index to accumulate updates, which are merged by the main index by global rebuilding the entire index periodically. However, this approach has high fluctuations of search latency and accuracy, not even to mention that it requires substantial resources and is extremely time-consuming for rebuilds. We introduce SPFresh, a system that supports in-place vector updates. At the heart of SPFresh is LIRE, a lightweight incremental rebalancing protocol to split vector partitions and reassign vectors in the nearby partitions to adapt to data distribution shift. LIRE achieves low-overhead vector updates by only reassigning vectors at the boundary between partitions, where in a high-quality vector index the amount of such vectors are deemed small. With LIRE, SPFresh provides superior query latency and accuracy to solutions based on global rebuild, with only 1% of DRAM and less than 10% cores needed at the peak compared to the state-of-the-art, in a billion scale vector index with 1% of daily vector update rate.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。