SIEVE:基于索引集合的高效过滤向量搜索
SIEVE: Effective Filtered Vector Search with Collection of Indexes
AI总结:
SIEVE提出通过构建多个服务于不同谓词形式的索引集合,并利用三维分析模型进行工作负载感知的索引打包与查询选择,在过滤向量搜索中实现高达8.06倍加速、低构建时间和有限内存开销。
摘要:
许多现实世界任务(例如推荐带有“儿童”标签的视频)可以归结为查找与硬谓词相关联的最相似向量。这一任务,即过滤向量搜索,具有挑战性,因为先前最先进的基于图的(未过滤)相似性搜索技术在考虑硬约束时会迅速退化。也就是说,有效的基于图的过滤相似性搜索依赖于足够的连通性,以便在仅几次跳跃内到达最相似的项。为了考虑谓词,近期工作提出修改图遍历,仅访问可能满足谓词的项。然而,它们无法在广泛的谓词范围内提供“仅几次跳跃”的特性:它们必须显著限制谓词,或者如果只有一小部分项满足谓词,则会损失效率。我们提出一种相反的方法:不是约束遍历,而是构建许多索引,每个索引服务于不同的谓词形式。为了有效构建,我们设计了一个三维分析模型,刻画索引大小、搜索时间和召回率之间的关系,并据此采用工作负载感知的方法,将尽可能多的有用索引打包到一个集合中。在查询时,再次使用该分析模型来辨别在给定召回率下提供最快搜索的索引。我们在具有不同选择性和谓词形式的数据集上展示了优越的性能和支持:与其他索引相比,我们的方法实现了高达8.06倍的加速,同时构建时间低至1%,内存开销不到标准HNSW图的2.15倍,并且只需对过去工作负载有适度了解。
英文摘要:
Many real-world tasks such as recommending videos with the kids tag can be reduced to finding most similar vectors associated with hard predicates. This task, filtered vector search, is challenging as prior state-of-the-art graph-based (unfiltered) similarity search techniques quickly degenerate when hard constraints are considered. That is, effective graph-based filtered similarity search relies on sufficient connectivity for reaching the most similar items within just a few hops. To consider predicates, recent works propose modifying graph traversal to visit only the items that may satisfy predicates. However, they fail to offer the just-a-few-hops property for a wide range of predicates: they must restrict predicates significantly or lose efficiency if only a small fraction of items satisfy predicates. We propose an opposite approach: instead of constraining traversal, we build many indexes each serving different predicate forms. For effective construction, we devise a three-dimensional analytical model capturing relationships among index size, search time, and recall, with which we follow a workload-aware approach to pack as many useful indexes as possible into a collection. At query time, the analytical model is employed yet again to discern the one that offers the fastest search at a given recall. We show superior performance and support on datasets with varying selectivities and forms: our approach achieves up to 8.06x speedup while having as low as 1% build time versus other indexes, with less than 2.15x memory of a standard HNSW graph and modest knowledge of past workloads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。