Skip to main content
Article
Parallel Cosine Nearest Neighbor Graph Construction
Journal of Parallel and Distributed Computing (2017)
  • David C. Anastasiu, San Jose State University
  • George Karypis, University of Minnesota - Twin Cities
Abstract
The nearest neighbor graph is an important structure in many data mining methods for clustering, advertising, recommender systems, and outlier detection. Constructing the graph requires computing up to n2 similarities for a set of n objects. This high complexity has led researchers to seek approximate methods, which find many but not all of the nearest neighbors. In contrast, we leverage shared memory parallelism and recent advances in similarity joins to solve the problem exactly. Our method considers all pairs of potential neighbors but quickly filters pairs that could not be a part of the nearest neighbor graph, based on similarity upper bound estimates. The filtering is data dependent and not easily predicted, which poses load balance challenges in parallel execution. We evaluated our methods on several real-world datasets and found they work up to two orders of magnitude faster than existing methods, display linear strong scaling characteristics, and incur less than 1% load imbalance during filtering.
Keywords
  • similarity search,
  • neighborhood graph construction,
  • bounded similarity graph,
  • cosine similarity,
  • all-pairs,
  • nearest neighbors,
  • shared memory parallel
Publication Date
December 5, 2017
DOI
10.1016/j.jpdc.2017.11.016
Publisher Statement
This pre-print article was published by Elsevier and appeared in the Journal of Parallel and Distributed Computing, In Press, Corrected Proof, 2017. The final form of this article can be found online at https://doi.org/10.1016/j.jpdc.2017.11.016
Citation Information
David C. Anastasiu and George Karypis. "Parallel Cosine Nearest Neighbor Graph Construction" Journal of Parallel and Distributed Computing Vol. In Press, Corrected Proof (2017) ISSN: 0743-7315
Available at: http://works.bepress.com/david-anastasiu/20/