释放图划分在大规模最近邻搜索中的潜力
Unleashing Graph Partitioning for Large-Scale Nearest Neighbor Search
AI总结:
针对分布式大规模 ANNS,本文提出可与任意划分方法配合的模块化快速路由算法,首次支持平衡图划分,并在十亿规模数据上显著提升 QPS 与召回性能。
摘要:
我们研究将大规模近似最近邻搜索(ANNS)问题分解为若干更小子问题这一基础性问题。目标是把输入点划分为能够保留邻域关系的分片,使任意点的最近邻只包含在少数几个分片中。当查询到达时,使用路由算法识别应当为其搜索最近邻的分片。该方法构成了分布式 ANNS 的主干;在分布式 ANNS 中,数据集规模过大,必须拆分到多台机器上。本文设计了简单且高效的路由方法,并证明了关于其性能的强理论保证。我们的路由算法的一个关键特征是其本质上具有模块化特性,可与任意划分方法配合使用。这解决了以往方法的一个关键缺陷:此前的路由算法与其相应的划分方法密不可分。特别地,我们的新路由方法支持使用平衡图划分,这是一种高质量的划分方法,但并没有天然配套的路由算法。因此,我们提出了首批利用平衡图划分进行路由的方法,这些方法训练速度极快、延迟低,并能实现高召回率。我们在十亿规模数据集上对完整的划分与路由流水线进行了全面评估;结果表明,该流水线显著优于现有的可扩展划分方法,在 90% recall@10 下,其 QPS 最高可达最佳竞争方法的 2.14 倍。
英文摘要:
We consider the fundamental problem of decomposing a large-scale approximate nearest neighbor search (ANNS) problem into smaller sub-problems. The goal is to partition the input points into neighborhood-preserving shards, so that the nearest neighbors of any point are contained in only a few shards. When a query arrives, a routing algorithm is used to identify the shards which should be searched for its nearest neighbors. This approach forms the backbone of distributed ANNS, where the dataset is so large that it must be split across multiple machines. In this paper, we design simple and highly efficient routing methods, and prove strong theoretical guarantees on their performance. A crucial characteristic of our routing algorithms is that they are inherently modular, and can be used with any partitioning method. This addresses a key drawback of prior approaches, where the routing algorithms are inextricably linked to their associated partitioning method. In particular, our new routing methods enable the use of balanced graph partitioning, which is a high-quality partitioning method without a naturally associated routing algorithm. Thus, we provide the first methods for routing using balanced graph partitioning that are extremely fast to train, admit low latency, and achieve high recall. We provide a comprehensive evaluation of our full partitioning and routing pipeline on billion-scale datasets, where it outperforms existing scalable partitioning methods by significant margins, achieving up to 2.14x higher QPS at 90% recall$@10$ than the best competitor.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。