arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.11697cs.DC
收藏

面向分布式大规模k-NN图构建的图合并

Towards the Distributed Large-scale k-NN Graph Construction by Graph Merge

Cheng Zhang, Wan-Lei Zhao, Shihai Xiao, Jiajie Yao, Xuecang Zhang

AI总结:

本文提出通过高效图合并技术解决大规模k-NN图和索引图的分布式构建问题,能够在单节点或多节点环境下高效构建大规模图结构。

摘要:

为了支持与大语言模型的实时交互以及社交媒体上的即时搜索或推荐,构建大规模向量化的多媒体数据的k-NN图或索引图已成为迫切问题。在这样的场景中,数据规模或图规模可能超过单台机器的处理能力。本文旨在通过高效的图合并技术解决此类规模的图构建问题。对于单节点上的图构建,提出了两种通用且高度并行化的算法,即双向合并和多向合并,用于将子图合并为一个。对于多节点上的图构建,提出了一种基于双向合并的多节点过程。该过程使得在数据规模超过单个节点内存容量时,能够在单个节点或多个节点上构建大规模的k-NN图/索引图。进行了大量实验,测试了大规模k-NN图和索引图的构建。对于k-NN图构建,通过并行图合并构建了大规模且高质量的k-NN图。通常,仅使用三个节点时,可以大约在17小时内构建出十亿级的k-NN图。对于索引图构建,合并后的索引图在保持与原始索引图相似的NN搜索性能的同时,所需的构建时间大大减少。

英文摘要:

In order to support the real-time interaction with LLMs and the instant search or the instant recommendation on social media, it becomes an imminent problem to build a k-NN graph or an indexing graph for the massive number of vectorized multimedia data. In such scenarios, the scale of the data or the scale of the graph may exceed the processing capacity of a single machine. This paper aims to address the graph construction problem of such scale via efficient graph merge. For the graph construction on a single node, two generic and highly parallelizable algorithms, namely Two-way Merge and Multi-way Merge are proposed to merge subgraphs into one. For the graph construction across multiple nodes, a multi-node procedure based on Two-way Merge is presented. The procedure makes it feasible to construct a large-scale k-NN graph/indexing graph on either a single node or multiple nodes when the data size exceeds the memory capacity of one node. Extensive experiments are conducted on both large-scale k-NN graph and indexing graph construction. For the k-NN graph construction, the large-scale and high-quality k-NN graphs are constructed by graph merge in parallel. Typically, a billion-scale k-NN graph can be built in approximately 17h when only three nodes are employed. For the indexing graph construction, similar NN search performance as the original indexing graph is achieved with the merged indexing graphs while requiring much less time of construction.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑