Fast kNN Graph Construction with Locality Sensitive Hashing

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.

Cite

Text

Zhang et al. "Fast kNN Graph Construction with Locality Sensitive Hashing." European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2013. doi:10.1007/978-3-642-40991-2_42

Markdown

[Zhang et al. "Fast kNN Graph Construction with Locality Sensitive Hashing." European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2013.](https://mlanthology.org/ecmlpkdd/2013/zhang2013ecmlpkdd-fast/) doi:10.1007/978-3-642-40991-2_42

BibTeX

@inproceedings{zhang2013ecmlpkdd-fast,
  title     = {{Fast kNN Graph Construction with Locality Sensitive Hashing}},
  author    = {Zhang, Yan-Ming and Huang, Kaizhu and Geng, Guanggang and Liu, Cheng-Lin},
  booktitle = {European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases},
  year      = {2013},
  pages     = {660-674},
  doi       = {10.1007/978-3-642-40991-2_42},
  url       = {https://mlanthology.org/ecmlpkdd/2013/zhang2013ecmlpkdd-fast/}
}