Abstract
We prove conditional near-quadratic running time lower bounds for approximate Bichromatic Closest Pair with Euclidean, Manhattan, Hamming, or edit distance. Specifically, unless the Strong Exponential Time Hypothesis (SETH) is false, for every $\delta>0$ there exists a constant $\epsilon>0$ such that computing a $(1+\epsilon)$-approximation to the Bichromatic Closest Pair requires $n^{2-\delta}$ time. In particular, this implies a near-linear query time for Approximate Nearest Neighbor search with polynomial preprocessing time. Our reduction uses the Distributed PCP framework, but obtains improved efficiency using Algebraic Geometry (AG) codes.
Introduction
Nearest Neighbor Search (NNS) is a fundamental task in computer science, underpinning applications in information retrieval, recommendation systems, and pattern recognition. Given the "curse of dimensionality," where exact NNS becomes computationally expensive as the number of dimensions increases, researchers have turned to Approximate Nearest Neighbor (ANN) search. While algorithms like Locality Sensitive Hashing (LSH) provide efficient $(1+\epsilon)$-approximations, a critical theoretical question has persisted: are these algorithms optimal, or can we achieve significantly faster performance?
This paper addresses this question through the lens of fine-grained complexity, establishing that finding an approximate nearest neighbor is fundamentally difficult in high dimensions. By leveraging the Strong Exponential Time Hypothesis (SETH), we demonstrate that even a small constant approximation factor requires nearly quadratic time for the Bichromatic Closest Pair (BCP) problem.
The Bichromatic Closest Pair Problem
The core of the analysis focuses on the Bichromatic Closest Pair (BCP) problem: given two sets of $n$ vectors in $d$-dimensional space, find the pair (one from each set) with the minimum distance. BCP is a proxy for the difficulty of NNS; a fast data structure for NNS would imply a fast algorithm for BCP.
Previous research established that the exact version of BCP is hard under SETH—the conjecture that $k$-SAT cannot be solved in $2^{(1-\epsilon)n}$ time for any $\epsilon > 0$. However, proving hardness for the approximate version is significantly more challenging. A reduction must not only preserve the existence of a close pair but also maintain a "gap" such that any $(1+\epsilon)$-approximation can still distinguish between a "close" and "far" state.
Technical Innovation: Distributed PCPs and AG Codes
The reduction from SETH to BCP utilizes the "Distributed Probabilistically Checkable Proofs" (PCP) framework. Standard PCPs are generally too inefficient for fine-grained complexity because their "blowup" (the increase in input size) is too large to distinguish between $n^{1.99}$ and $n^2$ time. Distributed PCPs mitigate this by splitting the proof into "half-proofs" associated with different parts of the input.
The primary technical breakthrough in this work is the integration of Algebraic Geometry (AG) codes into the Distributed PCP framework. Previous attempts at this reduction relied on Reed-Solomon codes, which introduce a logarithmic overhead that prevents reaching the $n^{2-\delta}$ lower bound for all $\delta$. AG codes, which can be viewed as multivariate rational functions, offer two critical advantages:
- Constant Rate: They maintain a constant ratio between the message length and the codeword length.
- Polynomial Closure: They allow for the multiplication of codewords while remaining within a manageable algebraic structure.
By replacing Reed-Solomon codes with AG codes, the reduction achieves the density required to prove hardness for any constant approximation factor $\epsilon > 0$. This represents the first instance where efficient PCPs from AG codes have yielded new hardness results in this field.
Results across Metrics
The near-quadratic lower bound ($\\Omega(n^{2-\delta})$) is shown to hold for several key metrics:
- Euclidean ($\ell_2$), Manhattan ($\ell_1$), and Hamming distances.
- Edit Distance: By employing a black-box reduction from Hamming distance using random string gadgets, the author extends the hardness result to edit distance. This involves replacing individual bits with short random strings and analyzing how the edit distance of these strings concentrates around its expectation.
Implications for Data Structures
These results have profound implications for the design of ANN data structures. If a data structure uses polynomial preprocessing time ($O(n^c)$), the query time must be near-linear ($\Omega(n^{1-\delta})$). This suggests that for high-dimensional data ($d \approx \log n$), current algorithms with sub-linear query times are likely approaching the theoretical limits of efficiency.
Conclusion and Future Directions
This work provides a near-optimal lower bound for approximate BCP, yet several open questions remain. First, there is an exponential gap between the approximation factor $\epsilon$ and the hardness exponent $\delta$, which does not yet match the best-known upper bounds. Second, the current techniques are constrained by a "Factor 3" barrier; proving hardness for larger approximation factors (e.g., $c > 3$) would require overcoming fundamental geometric constraints like the triangle inequality. Finally, while these results apply to high-dimensional settings, the complexity of ANN in constant dimensions remains a major open problem.
Summary updated