Fast kNN Graph Construction with Locality Sensitive Hashing.

Yan-Ming Zhang,Kaizhu Huang,Guanggang Geng,Cheng-Lin Liu
DOI: https://doi.org/10.1007/978-3-642-40991-2_42
2013-01-01
Abstract:The k nearest neighbors ( k NN) graph, perhaps the most popular graph in machine learning, plays an essential role for graph-based learning methods. Despite its many elegant properties, the brute force k NN graph construction method has computational complexity of O ( n 2 ), which is prohibitive for large scale data sets. In this paper, based on the divide-and-conquer strategy, we propose an efficient algorithm for approximating k NN graphs, which has the time complexity of O ( l ( d +log n ) n ) only (d is the dimensionality and l is usually a small number). This is much faster than most existing fast methods. Specifically, we engage the locality sensitive hashing technique to divide items into small subsets with equal size, and then build one k NN graph on each subset using the brute force method. To enhance the approximation quality, we repeat this procedure for several times to generate multiple basic approximate graphs, and combine them to yield a high quality graph. Compared with existing methods, the proposed approach has features that are: (1) much more efficient in speed (2) applicable to generic similarity measures; (3) easy to parallelize. Finally, on three benchmark large-scale data sets, our method beats existing fast methods with obvious advantages.
What problem does this paper attempt to address?