RAIRS: 优化冗余分配与列表布局以提升基于IVF的ANN搜索
RAIRS: Optimizing Redundant Assignment and List Layout for IVF-Based ANN Search
AI总结:
RAIRS通过优化冗余分配和列表布局,提升基于IVF的ANN搜索效率,实现1.33倍性能提升。
摘要:
IVF是向量数据库中最广泛使用的近似最近邻搜索(ANN)方法之一。冗余分配的概念是将数据向量分配到多个IVF列表中,以减少IVF搜索中遗漏真实邻居的可能性。然而,传统的策略,即根据数据向量与列表质心之间的距离选择第二个IVF列表,效果不佳。先前的工作仅关注内积距离,而没有针对最流行的欧几里得空间进行优化的列表选择研究。此外,IVF搜索可能会在多个列表中访问同一向量,导致冗余距离计算并降低查询吞吐量。在本文中,我们提出了RAIRS以解决上述两个挑战。针对列表选择的挑战,我们提出了一种优化的AIR度量标准,适用于欧几里得空间。AIR不仅考虑距离,还考虑方向,以支持更接近数据向量但远离第一个选定列表质心的查询。针对冗余距离计算的挑战,我们提出SEIL,一种优化的列表布局,利用共享单元以减少IVF搜索中的重复距离计算。我们的实验结果表明,使用代表性真实世界数据集时,RAIRS优于现有的冗余分配解决方案,并在IVF-PQ Fast Scan with refinement这一性能最佳的IVF方法上实现了高达1.33倍的提升。
英文摘要:
IVF is one of the most widely used ANNS (Approximate Nearest Neighbors Search) methods in vector databases. The idea of redundant assignment is to assign a data vector to more than one IVF lists for reducing the chance of missing true neighbors in IVF search. However, the naive strategy, which selects the second IVF list based on the distance between a data vector and the list centroids, performs poorly. Previous work focuses only on the inner product distance, while there is no optimized list selection study for the most popular Euclidean space. Moreover, the IVF search may access the same vector in more than one lists, resulting in redundant distance computation and decreasing query throughput. In this paper, we present RAIRS to address the above two challenges. For the challenge of the list selection, we propose an optimized AIR metric for the Euclidean space. AIR takes not only distances but also directions into consideration in order to support queries that are closer to the data vector but father away from the first chosen list's centroid. For the challenge of redundant distance computation, we propose SEIL, an optimized list layout that exploits shared cells to reduce repeated distance computations for IVF search. Our experimental results using representative real-world data sets show that RAIRS out-performs existing redundant assignment solutions and achieves up to 1.33x improvement over the best-performing IVF method, IVF-PQ Fast Scan with refinement.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。