SPFresh实现百亿级向量搜索的实时增量更新,效率远超传统重建方法。
SPFresh: Incremental In-Place Update for Billion-Scale Vector Search

- 提出轻量级LIRE协议,仅重分配分区边界向量实现增量更新
- 在每日1%更新率下,内存与核心峰值消耗仅为1%和10%以内
- 适合需要高并发、低延迟的在线向量搜索系统使用
近似最近邻搜索(ANNS)广泛应用于信息检索、问答系统和推荐等场景。随着向量数据持续增长,支持索引更新至关重要。现有系统依赖二级索引积累更新,通过全局重建合并,但导致搜索延迟与精度波动大,且资源消耗高、重建耗时长。本文提出SPFresh,支持原地向量更新。其核心LIRE协议通过轻量级增量重平衡,仅重新分配分区边界处的向量以适应数据分布变化。由于高质量索引中此类向量极少,更新开销极低。在百亿规模向量索引、每日1%更新率条件下,SPFresh相比现有方案显著提升查询延迟与准确率,峰值仅需1%的DRAM和不足10%的CPU核心。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。