Learning Nearest-Neighbor Maps from Adaptive Queries

Hadley Black, Geelon SoarXiv 2026

TL;DR

This paper pins down the exact query complexity of reconstructing a hidden point set using adaptive nearest-neighbor queries, revealing a fundamental link to the geometric concept of the "kissing number." The authors show that while recovering points in a Euclidean ball or cone inherently suffers from the curse of dimensionality, the unit sphere allows for a randomized dimension-reduction trick that completely bypasses this exponential overhead when the hidden set is small.

What Problem Does This Paper Address?

Imagine a black-box system containing a hidden dictionary of $n$ points ($H$) in a $d$-dimensional space. You cannot see these points directly, but you can probe the space by submitting a query point $q$. The system (an oracle) responds by returning whichever point in $H$ is closest to $q$. This mapping is known as a nearest-neighbor map.

The fundamental question is: How many adaptive queries are required to exactly reconstruct the hidden set $H$?

This problem sits at the intersection of exact query learning and computational geometry. It has direct implications for understanding the vulnerability or interpretability of black-box models, proximity search, and error-correcting mechanisms (where the hidden set acts as a dictionary of codes). While prior work evaluated specific domains like the Boolean hypercube, this paper provides a unified geometric framework to characterize query complexity across arbitrary normed spaces and domains.

Methods

The authors introduce a deterministic Voronoi cell-covering algorithm (Algorithm 1). The algorithm maintains a set of discovered points $X \subseteq H$ and looks at the Voronoi cells they induce over the domain. To certify whether a cell contains any remaining hidden points, the algorithm uses a greedy "tangent-ball covering" strategy. By strategically placing queries, it constructs open balls that cover the cell. If a query returns an already-known point, the entire open ball around that query is certified empty.

Figure 1: An illustration showing an application of Lemma 2.2 in Alg. 1 under the ℓ2 norm. Black points denote the set X. Four queries q1, q2, q3, q4 ∈VX(x) are selected such that the open balls B(qi, ∥qi −x∥) form a cover of the Voronoi cell, VX(x) \ {x}.

The number of queries needed to cover a cell is elegantly bounded by the kissing number ($\kappa$) of the underlying norm—defined as the maximum number of non-overlapping unit balls that can simultaneously touch a central unit ball.

To prove lower bounds in continuous domains like the ball and cone, the authors use probabilistic geometry. They show that guessing a hidden point on a boundary reduces to an unstructured search over a spherical cap, where each query covers only a tiny fraction of the total surface area.

Finally, for the special case of the unit sphere, they design a randomized dimension-reduction subroutine. This routine discovers the affine span of $H$ using just $O(k)$ queries (where $k$ is the rank of $H$), effectively collapsing the problem's dimensionality from $d$ to $\min(n, d)$ without needing to know $k$ or $n$ upfront.

Datasets

Not discussed in the paper. This is a purely theoretical and algorithmic work, so no empirical datasets or benchmarks were used.

Key Insights and Ideas

  • The Kissing Number Connection: The most striking insight is that worst-case query complexity is tightly controlled by $\Theta(n\kappa)$. The kissing number $\kappa$ perfectly captures the geometric hardness of a normed space by quantifying how many independent "directions" exist at a fixed scale.
  • The Sphere vs. Ball Dichotomy: The paper exposes a massive topological rift between learning on a solid ball versus a hollow sphere. In a solid ball, a hidden point can hide "deep" inside, forcing an exponential search ($\exp(\Omega(d))$). On a sphere, the data is rigidly constrained to the surface, allowing the randomized dimension-reduction trick to quickly pin down the low-dimensional subspace containing the hidden points.
  • Structure Dictates Hardness: Hardness isn't just a function of the number of points $n$ or dimensions $d$; it depends heavily on the domain's constraints. For example, the Boolean hypercube is much easier to learn than a general Euclidean space because its discrete structure prevents worst-case geometric pathological configurations.

Key Results

  • Minimax Optimality: The authors prove a tight worst-case query complexity of $\Theta(n\kappa)$ for general compact domains in normed spaces.
  • Curse of Dimensionality in Convex Bodies: They show that exponential queries are unavoidable even in simple, nice Euclidean domains. Specifically, an algorithm requires at least $\Omega(n + 2^{0.2075d})$ queries for the $\ell_2$-unit ball (even when $n=2$) and $\Omega(n \cdot 2^{0.0156d})$ queries for the $\ell_2$-cone.
  • Bypassing the Curse on the Sphere: For the unit sphere $S^{d-1}$, the specialized randomized algorithm requires only $(2n+3) + 2n \cdot \min\{\kappa_{2,n}, \kappa_{2,d}\}$ queries. Crucially, if the number of hidden points is constant ($n = O(1)$), the query complexity drops to $O(1)$, completely eliminating the exponential dependence on $d$.

The exact values of these kissing numbers ($\kappa_{2,d}$) grow rapidly with dimension, as illustrated by the historical values compiled in the paper:

Table of known kissing numbers across dimensions

Limitations and Future Work

The authors outline several open avenues for future research:

  • General Metric Spaces: The current framework relies on normed vector spaces. How does query complexity behave in general metric spaces or discrete structures like graphs?
  • Average-Case Complexity: This work focuses on worst-case bounds. It remains unknown whether natural distributions of hidden points offer significantly easier "average-case" instances.
  • Noisy and Inexact Oracles: The algorithms assume a perfect oracle. Real-world applications would require strategies that tolerate approximate nearest neighbors or noisy responses.
  • Computational Efficiency: The paper deals strictly with query complexity (information theory). Translating these query-optimal strategies into computationally efficient, polynomial-time algorithms remains an open challenge.

Summary updated

BibTeX
@misc{black2026learning,
  author = {Hadley Black and Geelon So},
  title = {{Learning Nearest-Neighbor Maps from Adaptive Queries}},
  year = {2026},
  eprint = {2608.07352},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.07352},
}
Figure