paper

On the I/O complexity of the k-nearest neighbor problem

arXiv:2002.04870

Abstract

We consider static, external memory indexes for exact and approximate versions of the -nearest neighbor (-NN) problem, and show new lower bounds under a standard indivisibility assumption: - Polynomial space indexing schemes for high-dimensional -NN in Hamming space cannot take advantage of block transfers: block reads are needed to to answer a query. - For the metric the lower bound holds even if we allow -appoximate nearest neighbors to be returned, for . - The restriction to is necessary: For every metric there exists an indexing scheme in the indexability model of Hellerstein et al.~using space , where is the number of points, that can retrieve 3-approximate nearest neighbors using I/Os, which is optimal. - For specific metrics, data structures with better approximation factors are possible. For -NN in Hamming space and every approximation factor there exists a polynomial space data structure that returns -approximate nearest neighbors in I/Os. To show these lower bounds we develop two new techniques: First, to handle that approximation algorithms have more freedom in deciding which result set to return we develop a relaxed version of the -set workload technique of Hellerstein et al. This technique allows us to show lower bounds that hold in dimensions. To extend the lower bounds down to dimensions, we develop a new deterministic dimension reduction technique that may be of independent interest.

Appears in proceedings of PODS 2020