基于图索引的范围检索
Range Retrieval with Graph-Based Indices
AI总结:
本文针对高维向量空间的范围检索问题,提出基于图索引的改进搜索算法,在八个大规模数据集上实现最高百倍吞吐量提升。
摘要:
在高维向量空间中基于邻近度检索点是信息检索应用中的关键步骤。近似最近邻搜索(ANNS)问题,即为查询识别$k$个最近邻,近年来已被广泛研究。然而,对于在给定距离内查找查询点所有点的相关问题——范围检索问题,尽管其在重复检测、抄袭检查和面部识别等领域有应用,却受到相对较少的关注。在本文中,我们提出了基于图的向量索引上的范围检索新技术,已知这些索引在ANNS查询上表现出卓越性能。由于范围查询在数据库中可能从无匹配结果到数千个匹配结果不等,我们引入了一组基于标准图搜索修改的范围检索算法,这些算法能适应性地在前一类查询上快速终止,并为后一类查询投入更多资源以找到结果。由于缺乏现有的范围检索基准,我们还对现有嵌入数据集的范围特征进行了全面研究,并为八个现有数据集(包含多达10亿个点)以及一个现有基准选择了合适的范围检索半径。我们在这些数据集上测试了我们的算法,发现与标准图搜索和FAISS-IVF范围搜索算法相比,查询吞吐量最多提高了100倍。我们还发现,与先前建议的标准束搜索修改相比,最多提高了10倍,并且在多达10亿个数据点上表现出强劲性能。
英文摘要:
Retrieving points based on proximity in a high-dimensional vector space is a crucial step in information retrieval applications. The approximate nearest neighbor search (ANNS) problem, which identifies the $k$ nearest neighbors for a query, has been extensively studied in recent years. However, comparatively little attention has been paid to the related problem of finding all points within a given distance of a query, the range retrieval problem, despite its applications in areas such as duplicate detection, plagiarism checking, and facial recognition. In this paper, we present new techniques for range retrieval on graph-based vector indices, which are known to achieve excellent performance on ANNS queries. Since a range query may have anywhere from no matching results to thousands of matching results in the database, we introduce a set of range retrieval algorithms based on modifications of the standard graph search that adapt to terminate quickly on queries in the former group, and to put more resources into finding results for the latter group. Due to the lack of existing benchmarks for range retrieval, we also undertake a comprehensive study of range characteristics of existing embedding datasets, and select a suitable range retrieval radius for eight existing datasets with up to 1 billion points in addition to one existing benchmark. We test our algorithms on these datasets, and find up to 100x improvement in query throughput over a standard graph search and the FAISS-IVF range search algorithm. We also find up to 10x improvement over a previously suggested modification of the standard beam search, and strong performance up to 1 billion data points.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。