[Paper Review] Fast k-Nearest Neighbour Search via Dynamic Continuous Indexing
This paper proposes Dynamic Continuous Indexing (DCI), a novel k-nearest neighbor search method that avoids space partitioning by using randomized one-dimensional projections to create continuous, data-adaptive indices. Unlike traditional methods, DCI enables sub-linear time complexity in intrinsic dimensionality and dataset size, supports dynamic updates, and achieves superior approximation quality and space efficiency compared to LSH, requiring 61.3%–78.7% fewer candidate points and less than 1/20 the memory.
Existing methods for retrieving k-nearest neighbours suffer from the curse of dimensionality. We argue this is caused in part by inherent deficiencies of space partitioning, which is the underlying strategy used by most existing methods. We devise a new strategy that avoids partitioning the vector space and present a novel randomized algorithm that runs in time linear in dimensionality of the space and sub-linear in the intrinsic dimensionality and the size of the dataset and takes space constant in dimensionality of the space and linear in the size of the dataset. The proposed algorithm allows fine-grained control over accuracy and speed on a per-query basis, automatically adapts to variations in data density, supports dynamic updates to the dataset and is easy-to-implement. We show appealing theoretical properties and demonstrate empirically that the proposed algorithm outperforms locality-sensitivity hashing (LSH) in terms of approximation quality, speed and space efficiency.
Motivation & Objective
- Address the curse of dimensionality in k-nearest neighbor search, which plagues existing space-partitioning methods like k-d trees and LSH.
- Overcome limitations of space partitioning, such as exponential complexity in high dimensions and poor handling of variable data density.
- Develop a method that enables fast, dynamic, and adaptive k-NN retrieval without relying on fixed partitions or complex data structures.
- Achieve sub-linear time complexity in intrinsic dimensionality and dataset size, while maintaining constant space in ambient dimensionality.
Proposed method
- Construct continuous indices using randomized one-dimensional projections to induce an ordering of data points based on proximity.
- Use multiple random projections (m) and multiple iterations (L) to refine the search space dynamically at query time.
- Apply a randomized algorithm that iteratively prunes candidate points based on projection-based proximity, avoiding explicit space partitioning.
- Control approximation quality at query time by adjusting the number of iterations, enabling per-query trade-offs between speed and accuracy.
- Support dynamic updates by incrementally maintaining the continuous indices without full recomputation.
- Leverage the fact that points close in projection space are likely close in vector space, using statistical guarantees from random projection theory.
Experimental results
Research questions
- RQ1Can k-NN search be made efficient in high-dimensional spaces without relying on space partitioning?
- RQ2Can a method be designed that adapts to local data density variations without requiring data-dependent preprocessing?
- RQ3Is it possible to achieve better approximation quality and space efficiency than LSH while maintaining linear time complexity in ambient dimensionality?
- RQ4Can dynamic updates to the dataset be supported efficiently in a k-NN indexing scheme without reindexing?
- RQ5Can per-query control over accuracy and speed be achieved without predefining approximation levels?
Key findings
- The proposed DCI method outperforms LSH in approximation quality across all tested levels of approximation on both CIFAR-100 and MNIST datasets.
- On MNIST, DCI requires 61.3% to 78.7% fewer candidate points than LSH to achieve the same approximation ratio, demonstrating superior efficiency.
- DCI uses less than 1/20 of the memory required by LSH, significantly improving space efficiency.
- The method achieves linear time complexity in ambient dimensionality and sub-linear time in intrinsic dimensionality and dataset size, enabling scalability.
- DCI supports dynamic updates and on-the-fly adaptation to data density variations, unlike LSH which is sensitive to hash function choice and data distribution.
- Empirical results show that DCI maintains strong performance even on challenging, dense datasets like MNIST, where LSH degrades significantly.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.