Skip to main content
QUICK REVIEW

[Paper Review] Fast k-Nearest Neighbour Search via Prioritized DCI

Ke Li, Jitendra Malik|arXiv (Cornell University)|Mar 1, 2017
Advanced Image and Video Retrieval TechniquesComputer Science29 references13 citations
TL;DR

This paper proposes Prioritized DCI, a novel k-nearest neighbor search algorithm that improves upon Dynamic Continuous Indexing (DCI) by assigning priorities to indices to reduce query time dependence on intrinsic dimensionality. It achieves a linear increase in query time with intrinsic dimensionality—effectively countering exponential growth in nearby points—while reducing distance evaluations by up to 116× and memory use by up to 21× compared to LSH.

ABSTRACT

Most exact methods for k-nearest neighbour search suffer from the curse of dimensionality; that is, their query times exhibit exponential dependence on either the ambient or the intrinsic dimensionality. Dynamic Continuous Indexing (DCI) offers a promising way of circumventing the curse and successfully reduces the dependence of query time on intrinsic dimensionality from exponential to sublinear. In this paper, we propose a variant of DCI, which we call Prioritized DCI, and show a remarkable improvement in the dependence of query time on intrinsic dimensionality. In particular, a linear increase in intrinsic dimensionality, or equivalently, an exponential increase in the number of points near a query, can be mostly counteracted with just a linear increase in space. We also demonstrate empirically that Prioritized DCI significantly outperforms prior methods. In particular, relative to Locality-Sensitive Hashing (LSH), Prioritized DCI reduces the number of distance evaluations by a factor of 14 to 116 and the memory consumption by a factor of 21.

Motivation & Objective

  • Address the curse of dimensionality in k-nearest neighbor search, particularly the exponential growth in query time with intrinsic dimensionality.
  • Overcome limitations of space-partitioning methods like k-d trees and LSH, which suffer from poor performance in high-dimensional spaces due to boundary effects and fixed partitions.
  • Improve upon standard DCI by introducing a prioritization mechanism for indices to enhance search efficiency and reduce query time complexity.
  • Achieve sublinear query time scaling with intrinsic dimensionality while maintaining high accuracy and low memory usage.
  • Demonstrate significant improvements in speed and memory efficiency over state-of-the-art methods like LSH and product quantization on real-world datasets.

Proposed method

  • Propose Prioritized DCI, a variant of Dynamic Continuous Indexing (DCI), where each index is assigned a priority based on its expected contribution to query accuracy.
  • Construct multiple indices, each defining a random ordering of data points based on projections along random directions, ensuring nearby points in the data space have similar ranks.
  • Use a priority queue to dynamically select the most informative index at each query step, focusing computation on indices that are most likely to yield close neighbors.
  • Combine results from multiple prioritized indices to retrieve k-nearest neighbors, with early stopping heuristics to reduce unnecessary distance computations.
  • Maintain a data structure that supports dynamic updates without retraining, leveraging the continuous nature of the indexing scheme.
  • Optimize hyperparameters (e.g., number of indices, projection length) to balance accuracy, speed, and memory usage, with ablation on space-efficiency trade-offs.

Experimental results

Research questions

  • RQ1Can a prioritization strategy over DCI indices reduce the exponential dependence of query time on intrinsic dimensionality?
  • RQ2To what extent can Prioritized DCI reduce the number of distance evaluations compared to LSH and product quantization in high-dimensional settings?
  • RQ3How does Prioritized DCI compare in memory efficiency to LSH and standard DCI across different datasets and hyperparameter settings?
  • RQ4Does the prioritization mechanism lead to faster convergence in k-NN retrieval while maintaining or improving approximation quality?
  • RQ5Can Prioritized DCI scale effectively to datasets with high intrinsic dimensionality, such as CIFAR-100 and MNIST, with minimal performance degradation?

Key findings

  • On CIFAR-100, Prioritized DCI reduces distance evaluations by 90.9% to 93.8% compared to LSH, achieving a 14-fold improvement in query efficiency.
  • On MNIST, Prioritized DCI reduces distance evaluations by 98.8% to 99.3% compared to LSH, representing an 116-fold improvement in query efficiency.
  • Under the same hyperparameters as standard DCI, Prioritized DCI uses 95.5% less memory than LSH on CIFAR-100 and 95.3% less on MNIST, a 21-fold reduction.
  • With a space-efficient configuration, Prioritized DCI reduces memory usage by 98.2% on CIFAR-100 and 97.9% on MNIST compared to LSH, achieving 55× and 48× reductions respectively.
  • Prioritized DCI completes 100 queries on MNIST in 1.18 seconds, compared to 104.71 seconds for LSH, demonstrating a 89× speedup in wall-clock time.
  • The algorithm maintains high approximation quality, with approximation ratios close to 1 across all tested datasets and settings, confirming accuracy preservation despite reduced computation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.