EFANNA:基于kNN图的快速近似最近邻搜索算法
EFANNA : An Extremely Fast Approximate Nearest Neighbor Search Algorithm Based on kNN Graph
摘要:
近似最近邻(ANN)搜索是数据采掘、机器学习和计算机视觉的许多领域中的基本问题。传统的基于层次结构(树)的方法的性能随着数据维数的增加而下降,而基于哈希的方法通常在实践中缺乏效率。最近,基于图的方法引起了相当大的关注。其主要思想是,\emph{a neighbor of a neighbor is also likely to be a neighbor},我们称之为\emph{NN-expansion}。这些方法离线构造$k$ -最近邻($k$ NN)图。在在线搜索阶段,这些方法以某种方式(\eg,随机选择)找到查询点的候选邻居,然后迭代地检查这些候选邻居的邻居,以找到更接近的邻居。尽管取得了一些有希望的结果,但这些方法主要存在两个问题:1)这些方法往往收敛于局部最优。2)构造$k$ NN图是耗时的。我们发现,这两个问题可以很好地解决时,我们提供了一个良好的初始化NN-扩展。本文提出了一种基于$k$ NN图的快速近似最近邻搜索算法EFANA。Efanna很好地结合了基于层次结构的方法和基于最近邻图的方法的优点。大量的实验表明,EFANNA优于国家的最先进的算法在近似最近邻搜索和近似最近邻图的建设。据我们所知,EFANA是迄今为止最快的算法,无论是在近似最近邻图的建设和近似最近邻搜索。基于这项研究的库EFANNA发布在Github上。
英文摘要:
Approximate nearest neighbor (ANN) search is a fundamental problem in many areas of data mining, machine learning and computer vision. The performance of traditional hierarchical structure (tree) based methods decreases as the dimensionality of data grows, while hashing based methods usually lack efficiency in practice. Recently, the graph based methods have drawn considerable attention. The main idea is that \emph{a neighbor of a neighbor is also likely to be a neighbor}, which we refer as \emph{NN-expansion}. These methods construct a $k$-nearest neighbor ($k$NN) graph offline. And at online search stage, these methods find candidate neighbors of a query point in some way (\eg, random selection), and then check the neighbors of these candidate neighbors for closer ones iteratively. Despite some promising results, there are mainly two problems with these approaches: 1) These approaches tend to converge to local optima. 2) Constructing a $k$NN graph is time consuming. We find that these two problems can be nicely solved when we provide a good initialization for NN-expansion. In this paper, we propose EFANNA, an extremely fast approximate nearest neighbor search algorithm based on $k$NN Graph. Efanna nicely combines the advantages of hierarchical structure based methods and nearest-neighbor-graph based methods. Extensive experiments have shown that EFANNA outperforms the state-of-art algorithms both on approximate nearest neighbor search and approximate nearest neighbor graph construction. To the best of our knowledge, EFANNA is the fastest algorithm so far both on approximate nearest neighbor graph construction and approximate nearest neighbor search. A library EFANNA based on this research is released on Github.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。