# Efficient Autotuning of Hyperparameters in Approximate Nearest Neighbor   Search

**Authors:** Elias J\"a\"asaari, Ville Hyv\"onen, Teemu Roos

arXiv: 1812.07484 · 2019-04-25

## TL;DR

This paper introduces an automatic hyperparameter tuning algorithm for randomized space-partitioning trees in approximate nearest neighbor search, significantly reducing tuning time while maintaining competitive accuracy and speed.

## Contribution

It presents a novel, fast hyperparameter tuning method for randomized trees that improves over grid search and enhances indexing efficiency.

## Key findings

- Tuning algorithm finds optimal hyperparameters with minimal overhead.
- The method is significantly faster than existing tuning approaches.
- Indexing methods remain competitive in query time and are faster to build.

## 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.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1812.07484/full.md

## Figures

5 figures with captions in the complete paper: https://tomesphere.com/paper/1812.07484/full.md

## References

18 references — full list in the complete paper: https://tomesphere.com/paper/1812.07484/full.md

---
Source: https://tomesphere.com/paper/1812.07484