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

利用导航扩展图进行快速近似最近邻搜索

Fast Approximate Nearest Neighbor Search With The Navigating Spreading-out Graph

Zhejiang University(浙江大学)

Cong Fu, Chao Xiang, Changxu Wang, Deng Cai

AI总结:

本文针对十亿节点规模近似最近邻搜索提出导航扩展图NSG,通过近似单调相对邻域图MRNG并同时优化图连通性、平均出度、搜索路径和索引规模,显著超越现有算法并已部署于淘宝搜索引擎。

摘要:

近似最近邻搜索(ANNS)是数据库和数据挖掘中的一个基本问题。一个可扩展的ANNS算法应当同时具备内存高效性和快速性。一些早期的基于图的方法在搜索时间复杂度方面展示了有吸引力的理论保证,但它们都面临索引时间复杂度高的问题。近年来,一些基于图的方法被提出,通过近似传统图来降低索引复杂度;这些方法在百万级数据集上取得了革命性的性能。然而,它们仍然无法扩展到十亿节点规模的数据库。在本文中,为了进一步提高基于图的方法的搜索效率和可扩展性,我们首先引入四个方面:(1)确保图的连通性;(2)降低图的平均出度以实现快速遍历;(3)缩短搜索路径;以及(4)减小索引规模。然后,我们提出了一种新的图结构,称为单调相对邻域图(MRNG),它保证了非常低的搜索复杂度(接近对数时间)。为了进一步降低索引复杂度并使其适用于十亿节点规模的ANNS问题,我们通过近似MRNG提出了一种新的图结构,命名为导航扩展图(NSG)。NSG同时考虑了上述四个方面。大量实验表明,NSG显著优于所有现有算法。此外,NSG在淘宝(阿里巴巴集团)的电商搜索场景中表现出优越的性能,并已被集成到其十亿节点规模的搜索引擎中。

英文摘要:

Approximate nearest neighbor search (ANNS) is a fundamental problem in databases and data mining. A scalable ANNS algorithm should be both memory-efficient and fast. Some early graph-based approaches have shown attractive theoretical guarantees on search time complexity, but they all suffer from the problem of high indexing time complexity. Recently, some graph-based methods have been proposed to reduce indexing complexity by approximating the traditional graphs; these methods have achieved revolutionary performance on million-scale datasets. Yet, they still can not scale to billion-node databases. In this paper, to further improve the search-efficiency and scalability of graph-based methods, we start by introducing four aspects: (1) ensuring the connectivity of the graph; (2) lowering the average out-degree of the graph for fast traversal; (3) shortening the search path; and (4) reducing the index size. Then, we propose a novel graph structure called Monotonic Relative Neighborhood Graph (MRNG) which guarantees very low search complexity (close to logarithmic time). To further lower the indexing complexity and make it practical for billion-node ANNS problems, we propose a novel graph structure named Navigating Spreading-out Graph (NSG) by approximating the MRNG. The NSG takes the four aspects into account simultaneously. Extensive experiments show that NSG outperforms all the existing algorithms significantly. In addition, NSG shows superior performance in the E-commercial search scenario of Taobao (Alibaba Group) and has been integrated into their search engine at billion-node scale.

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

↑