TL;DR
Finding similar items in massive, high-dimensional datasets—the backbone of modern search and Retrieval-Augmented Generation (RAG)—typically relies on randomized algorithms that break if a clever user adapts their queries based on previous answers. Standard defenses add random noise to hide the algorithm's inner workings, which fails when you are required to return an actual, unmodified item from your database. This paper introduces the first fast, sublinear-time search algorithms that remain mathematically unbreakable against adaptive adversaries, even on the worst-possible datasets.
What Problem Does This Paper Address?
Approximate Nearest Neighbor (ANN) search is the workhorse behind recommendation engines, DNA sequencing, and vector databases. In high dimensions, finding near-neighbors quickly (in sublinear time, without scanning everything) requires randomness—classically via Locality-Sensitive Hashing (LSH), which hashes similar points into the same buckets.
However, classic LSH assumes an oblivious world where queries are independent of the random hash functions chosen during setup. What if an adversary—or even a feedback loop in a complex ML pipeline—chooses the next query based on what the system just returned? Recent work showed that adaptive queries leak information about LSH's internal randomness, allowing an attacker to quickly find blind spots and force the search to fail.
For estimation problems (like counting items), researchers defend against this using Differential Privacy (DP): add a splash of noise to the numerical output so the internal randomness stays hidden. Search problems don't have that luxury. You must return a valid, exact point from the dataset—you can't "round" or add noise to a database record. Previous attempts at robust ANN only worked if the dataset was "well-behaved" (assuming no massive, dense clusters of points). What if an adversary designs both a pathological dataset with dense clusters and an adaptive stream of queries?
Methods
Instead of treating differential privacy as a black box, the authors build three search-specific mechanisms for spaces equipped with LSH:
- Exact Fairness as a Shield: Building on "fair" LSH (which uses rejection sampling to ensure every valid neighbor has an equal chance of being returned), the authors prove that exact uniform sampling leaks zero information about the underlying hash tables.
- Search-to-Decision Bucketing: Fair LSH slows down dramatically if a query lands next to a dense cluster of valid points. To eliminate dataset assumptions, the authors chop the dataset into $n^{1-\alpha}$ smaller, sublinear-sized buckets. Inside each bucket, they run a DP-protected decision algorithm that merely answers a noisy yes/no: "Is there a near neighbor in here?" (Noise is allowed here because it's just a yes/no check!). Once a bucket says "yes," they simply brute-force scan that single small bucket.
- Concentric LSH Annuli: Pure bucketing hits a speed limit—query times can't beat $\sqrt{n}$. To go faster, the authors slice the search radius around a query into $k$ concentric rings (annuli), like an onion. By a neat mathematical pigeonhole argument, at least one ring is guaranteed to have a low local point-density ratio, meaning fair LSH will run fast inside it. They use DP to privately test and identify a "fast" ring, then execute a held-out fair LSH instance on just that ring.
(Bonus: For low-dimensional spaces, they also construct a deterministic-style metric covering that guarantees correctness for all possible queries simultaneously.)
Datasets
Not discussed in the paper. Because this is a purely theoretical work proving worst-case asymptotic guarantees against all possible datasets and adaptive adversaries, fixed empirical benchmarks cannot certify these properties.
Key Insights and Ideas
- Fairness implies adversarial robustness: This is a delightful conceptual bridge. If an algorithm guarantees its output is sampled uniformly at random from the true geometric neighborhood in the dataset, the output distribution depends only on the data, not on the random hash functions used to find it. No leaked randomness means adaptive attackers have nothing to exploit.
- Isolating noise to the routing layer: You cannot add noise to a search result, so add noise to where you choose to look. Whether picking a bucket or picking a concentric ring around the query, DP hides the internal state during the "routing" phase, leaving the final retrieval clean and exact.
- Outsmarting worst-case geometry: Even if an adversary packs millions of points near a query to bog down the search, the concentric annuli trick guarantees via telescoping ratios that some distance scale isn't overly crowded relative to the ring just inside it.
Key Results
Let $n$ be the dataset size, $d$ the dimension, $Q$ the number of adaptive queries, $c$ the approximation factor, and $\rho \in (0, 1)$ the standard LSH exponent:
- Fairness alone (Theorem 1.2): Achieves $\widetilde{O}(n^{1+\rho})$ space and $\widetilde{O}(d \cdot (D + n^\rho))$ query time without blowing up space by $\sqrt{Q}$, though it suffers if the local density ratio $D$ is large.
- Bucketing (Theorem 1.3): Completely removes dataset density assumptions! It answers $Q$ adaptive queries in strictly sublinear $\widetilde{O}(d n^{1/(2-\rho)})$ time per query using $\widetilde{O}(\sqrt{Q} \cdot n^{1 + \rho/(2-\rho)})$ space.
- Concentric Annuli (Theorem 1.4): Breaks the $\sqrt{n}$ query-time barrier of bucketing. Query time drops to $\widetilde{O}(dn^\beta)$ and space to $\widetilde{O}(\sqrt{Q} \cdot n^{1+\beta})$, where $\beta$ shrinks toward $0$ as the approximation factor $c$ grows (specifically, $\beta = \Theta(\frac{\log \log c}{\log c})$ in Hamming space).
- Dynamic Updates: All three primary methods smoothly handle adaptive insertions and deletions.
Limitations and Future Work
- Slow exponent decay: While the concentric annuli exponent $\beta$ approaches $0$ as you allow looser approximations ($c \to \infty$), it shrinks very slowly—at a rate of $\frac{\log \log c}{\log c}$. Speeding this up or proving a matching theoretical lower bound remains an open problem.
- Space overhead: Like most DP-based robust algorithms, the assumption-free methods pay a $\sqrt{Q}$ multiplier in space and update time to survive $Q$ adaptive queries.
- Theory to practice: Moving these asymptotic guarantees into real-world vector databases—and tuning the hidden polylogarithmic factors—is left for future engineering and empirical work.
Summary updated