[Paper Review] Approximate Nearest Neighbor Search through Comparisons
This paper proposes a novel approximate nearest neighbor search algorithm that operates using only a similarity oracle, which answers 'which of two reference objects is closer to a query object?'. By leveraging rank distortion and a combinatorial framework to model non-metric, perceptually-driven similarity spaces, the authors design a hierarchical search and rank-sensitive hashing (RSH) scheme that achieves sublinear query complexity. The key contribution is an O(D³ log²n log log n^{D³}) query cost with O(nD³ log²n log log n^{D³}) learning cost, along with a matching lower bound, and a new RSH scheme that retrieves (1+ε)r-nearest neighbors in n^{O(γ/ε)} queries, where γ is the rank distortion.
This paper addresses the problem of finding the nearest neighbor (or one of the R-nearest neighbors) of a query object q in a database of n objects. In contrast with most existing approaches, we can only access the ``hidden'' space in which the objects live through a similarity oracle. The oracle, given two reference objects and a query object, returns the reference object closest to the query object. The oracle attempts to model the behavior of human users, capable of making statements about similarity, but not of assigning meaningful numerical values to distances between objects.
Motivation & Objective
- To enable efficient approximate nearest neighbor search in non-metric spaces where only comparative similarity judgments (via a similarity oracle) are available.
- To model the inherent non-homogeneity and lack of transitivity in perceptual similarity spaces using rank distortion and combinatorial disorder (D).
- To develop a hierarchical search algorithm that leverages oracle responses to minimize query cost during search.
- To introduce rank-sensitive hashing (RSH) as a generalization of LSH for non-metric, comparison-based similarity spaces.
- To establish a theoretical lower bound on the average number of queries required for randomized algorithms in this setting.
Proposed method
- Uses a similarity oracle that, given two references and a query, returns the reference closer to the query, modeling human-like comparison behavior.
- Defines rank distortion γ as a measure of how well pairwise ranks correlate with average rank differences across all objects, capturing non-homogeneity in the space.
- Introduces a combinatorial framework with a disorder constant D, which quantifies the violation of approximate triangle inequalities on ranks.
- Develops a randomized hierarchical search structure that recursively partitions the space using oracle responses to guide search toward the nearest neighbor.
- Proposes rank-sensitive hashing (RSH) where hash functions are constructed by randomly selecting two objects and assigning a binary label based on which is closer to each data point.
- Proves that the RSH scheme is (r, (1+ε)r, 1 - f(r)/n², 1 - f((1+ε)r)/(n²γ))-rank-sensitive, with performance depending on the rank distortion γ.
Experimental results
Research questions
- RQ1Can efficient approximate nearest neighbor search be achieved using only a similarity oracle that returns comparative judgments, without numerical distance values?
- RQ2How can the inherent non-homogeneity and lack of transitivity in perceptual similarity spaces be characterized and exploited algorithmically?
- RQ3What is the theoretical query complexity lower bound for randomized algorithms in this oracle-based setting?
- RQ4Can rank-sensitive hashing (RSH) be designed to mimic the behavior of LSH in non-metric, comparison-based spaces?
- RQ5How does the performance of the proposed algorithms depend on the rank distortion and combinatorial disorder of the underlying space?
Key findings
- The proposed hierarchical search algorithm achieves a query complexity of O(D³ log²n log log n^{D³}) with O(nD³ log²n log log n^{D³}) learning cost, where D is the combinatorial disorder constant.
- A lower bound of Ω(D log(n/D²) + D²) average number of queries is established for randomized algorithms in the search phase, assuming all oracle answers from the learning phase are available.
- The rank-sensitive hashing (RSH) scheme retrieves one of the (1+ε)r-nearest neighbors with constant probability in n^{O(γ/ε)} queries, where γ is the rank distortion.
- When the rank distortion function f(r) is linear, the RSH scheme achieves a query complexity of n^{O(γ/ε)} for (1+ε)r-approximate nearest neighbor search.
- The RSH scheme naturally separates outliers (with high ranks across all objects) from central, popular objects, enabling a popularity-based ranking via repeated hashing.
- Numerical results suggest that even in high-dimensional, homogeneous spaces (e.g., uniform points in a torus), f(r) is nearly linear for small r, supporting the practicality of the RSH approach.
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.