English

Efficient Autotuning of Hyperparameters in Approximate Nearest Neighbor Search

Data Structures and Algorithms 2019-04-25 v1 Machine Learning Machine Learning

Abstract

Approximate nearest neighbor algorithms are used to speed up nearest neighbor search in a wide array of applications. However, current indexing methods feature several hyperparameters that need to be tuned to reach an acceptable accuracy--speed trade-off. A grid search in the parameter space is often impractically slow due to a time-consuming index-building procedure. Therefore, we propose an algorithm for automatically tuning the hyperparameters of indexing methods based on randomized space-partitioning trees. In particular, we present results using randomized k-d trees, random projection trees and randomized PCA trees. The tuning algorithm adds minimal overhead to the index-building process but is able to find the optimal hyperparameters accurately. We demonstrate that the algorithm is significantly faster than existing approaches, and that the indexing methods used are competitive with the state-of-the-art methods in query time while being faster to build.

Keywords

Cite

@article{arxiv.1812.07484,
  title  = {Efficient Autotuning of Hyperparameters in Approximate Nearest Neighbor Search},
  author = {Elias Jääsaari and Ville Hyvönen and Teemu Roos},
  journal= {arXiv preprint arXiv:1812.07484},
  year   = {2019}
}

Comments

Accepted for the 23rd Pacific-Asia Conference on Knowledge Discovery and Data Mining (PAKDD) 2019

R2 v1 2026-06-23T06:46:35.383Z