Non-Asymptotic Uniform Rates of Consistency for k-NN Regression.

Heinrich JiangAAAI 2019

TL;DR

This paper provides the first finite-sample, high-probability uniform (sup-norm) convergence rates for $k$-nearest neighbor ($k$-NN) regression. The authors prove that $k$-NN is minimax optimal up to logarithmic factors and, crucially, that it automatically adapts to the intrinsic dimension of data lying on a lower-dimensional manifold without any modifications to the algorithm.

What Problem Does This Paper Address?

While $k$-NN regression is a cornerstone of nonparametric statistics, most of its theoretical guarantees are either asymptotic (describing what happens as the number of samples $n$ goes to infinity) or based on integrated risk (like Mean Squared Error). Integrated risk is a "weak" measure because it allows for large errors in small regions of the input space.

In contrast, many practical tasks—like finding the peak of a function or identifying regions where a function exceeds a certain threshold (level sets)—require uniform consistency. This means we need a guarantee that the error is small everywhere simultaneously (the $L_\infty$ or sup-norm). Before this paper, finite-sample uniform bounds for $k$-NN regression were largely missing from the literature.

Methods

The author analyzes $k$-NN regression under a standard additive noise model: $y = f(x) + \xi$, where $f$ is the target function and $\xi$ is sub-Gaussian noise. The core of the proof relies on decomposing the error into bias and variance components:

  1. Bias Control: The author uses uniform VC-type concentration bounds to show that the $k$-NN radius (the distance to the $k$-th neighbor) is uniformly small across the entire support. This ensures that the points being averaged are close to the target point.
  2. Variance Control: To handle the noise across all possible points $x$, the author uses a clever partitioning argument. They show that while there are infinitely many points $x$, there are only a polynomial number of "distinct" $k$-NN sets. This allows the use of a union bound combined with Hoeffding’s inequality to bound the noise contribution uniformly.
  3. Manifold Analysis: The analysis is extended to cases where data lies on a $d$-dimensional manifold embedded in a $D$-dimensional space ($d < D$). By using manifold-specific volume bounds, the author proves that the convergence rate depends on $d$ rather than $D$.

Datasets

This is a purely theoretical paper. No empirical datasets or benchmarks were used for evaluation. The results are mathematical proofs that hold under specified assumptions (e.g., support regularity, sub-Gaussian noise, and Hölder continuity).

Key Insights and Ideas

  • The "Aha" Moment on Manifolds: The paper shows that $k$-NN regression "escapes" the curse of dimensionality automatically. If your data lives on a 3D surface inside a 100D space, $k$-NN converges at the 3D rate without the user ever needing to know the data is on a manifold or what its dimension is.
  • Plug-in Utility: Because the bounds are uniform, the $k$-NN estimator can be safely "plugged in" to other algorithms. For example, if you want to estimate the level set $\{x : f(x) \geq \lambda\}$, you can simply use $\{x : f_k(x) \geq \lambda - \epsilon\}$. The paper provides the first Hausdorff distance guarantees for such level-set estimators using $k$-NN.
  • Optimality: The derived rates match the known minimax optimal rates for Hölder continuous functions (up to logarithmic factors), confirming that $k$-NN is not just a simple heuristic but a theoretically potent tool.

Key Results

  • Uniform Convergence Rate: For an $\alpha$-Hölder continuous function, the error $|f(x) - f_k(x)|$ is bounded by $\tilde{O}(n^{-\alpha/(2\alpha+D)})$ with high probability.
  • Manifold Adaptation: On a $d$-dimensional manifold, this rate improves to $\tilde{O}(n^{-\alpha/(2\alpha+d)})$, effectively ignoring the ambient dimensions.
  • Level Set Recovery: The authors establish a Hausdorff recovery rate of $\tilde{O}(n^{-1/(2\beta+d)})$ for level sets, where $\beta$ describes the "sharpness" of the function near the threshold.
  • Global Maxima: The distance between the estimated maximum (from $k$-NN) and the true maximum of a function converges at a rate of $\tilde{O}(n^{-1/(4+D)})$.

Limitations and Future Work

  • Assumptions on Noise: The results assume sub-Gaussian white noise. While standard, this might not cover all real-world "heavy-tailed" noise scenarios.
  • Support Regularity: The proofs assume the support of the data density doesn't become "arbitrarily thin," which might be violated in some complex geometric settings.
  • Computational Constants: While the rates are optimal, the constants involved in the bounds (like those depending on the manifold's condition number) can be quite large, which might limit their use in predicting exact error values for small sample sizes.
  • Future Directions: The author suggests that these uniform bounds could be applied to other structures, such as estimating the "ridges" of a function or more complex topological features.

Summary updated

BibTeX
@inproceedings{jiang2019non,
  author = {Heinrich Jiang},
  title = {{Non-Asymptotic Uniform Rates of Consistency for k-NN Regression.}},
  booktitle = {AAAI},
  year = {2019},
  url = {https://openreview.net/forum?id=SQCWrQfe_aB},
}
Figure