DiskANN++:基于查询敏感入口顶点的同构映射图索引上的高效页式搜索
DiskANN++: Efficient Page-based Search over Isomorphic Mapped Graph Index using Query-sensitivity Entry Vertex
AI总结:
DiskANN++通过查询敏感入口顶点选择和同构映射优化的SSD布局及异步Pagesearch,解决了DiskANN路由路径长和冗余I/O问题,在相同精度下将QPS提升1.5至2.2倍。
摘要:
给定一个向量数据集 $\mathcal{X}$ 和一个查询向量 $\vec{x}_q$,基于图的近似最近邻搜索(ANNS)旨在构建一个图索引 $G$,并通过在 $G$ 上搜索来近似返回与 $\vec{x}_q$ 距离最小的向量。基于图的 ANNS 的主要缺点是,图索引可能过大而无法装入内存,尤其是对于大规模 $\mathcal{X}$。为了解决这个问题,一种称为 DiskANN 的基于乘积量化(PQ)的混合方法被提出,它在内存中存储低维 PQ 索引,并将图索引保留在 SSD 中,从而在确保高搜索精度的同时减少内存开销。然而,它存在两个显著影响整体效率的 I/O 问题:(1)从入口顶点到查询邻域的路由路径过长,导致大量 I/O 请求;(2)路由过程中存在冗余 I/O 请求。我们提出了一种优化的 DiskANN++ 来克服上述问题。具体来说,针对第一个问题,我们提出了一种查询敏感的入口顶点选择策略,用一个动态确定的、靠近查询的入口顶点来替代 DiskANN 的静态图中心入口顶点。针对第二个 I/O 问题,我们在 DiskANN 的图索引上提出了一种同构映射来优化 SSD 布局,并基于优化后的 SSD 布局提出了一种异步优化的 Pagesearch,作为 DiskANN 的 beamsearch 的替代方案。在八个真实世界数据集上的综合实验研究表明,我们的 DiskANN++ 在效率上具有优越性。在相同精度约束下,与 DiskANN 相比,我们在 QPS 上实现了显著的 1.5 倍到 2.2 倍的提升。
英文摘要:
Given a vector dataset $\mathcal{X}$ and a query vector $\vec{x}_q$, graph-based Approximate Nearest Neighbor Search (ANNS) aims to build a graph index $G$ and approximately return vectors with minimum distances to $\vec{x}_q$ by searching over $G$. The main drawback of graph-based ANNS is that a graph index would be too large to fit into the memory especially for a large-scale $\mathcal{X}$. To solve this, a Product Quantization (PQ)-based hybrid method called DiskANN is proposed to store a low-dimensional PQ index in memory and retain a graph index in SSD, thus reducing memory overhead while ensuring a high search accuracy. However, it suffers from two I/O issues that significantly affect the overall efficiency: (1) long routing path from an entry vertex to the query's neighborhood that results in large number of I/O requests and (2) redundant I/O requests during the routing process. We propose an optimized DiskANN++ to overcome above issues. Specifically, for the first issue, we present a query-sensitive entry vertex selection strategy to replace DiskANN's static graph-central entry vertex by a dynamically determined entry vertex that is close to the query. For the second I/O issue, we present an isomorphic mapping on DiskANN's graph index to optimize the SSD layout and propose an asynchronously optimized Pagesearch based on the optimized SSD layout as an alternative to DiskANN's beamsearch. Comprehensive experimental studies on eight real-world datasets demonstrate our DiskANN++'s superiority on efficiency. We achieve a notable 1.5 X to 2.2 X improvement on QPS compared to DiskANN, given the same accuracy constraint.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。