Introduction
Randomized smoothing is currently considered the gold standard for providing mathematical guarantees of neural network robustness. However, its reliance on a fixed noise level is a major limitation. While making noise input-dependent can theoretically improve performance, this paper demonstrates that it is severely constrained by a "curse of dimensionality." This curse forces the noise level to change extremely slowly to remain mathematically valid, challenging previous assumptions about the ease of implementing adaptive smoothing.
The Problem with Constant Noise
Deep neural networks are notoriously fragile, often fooled by "adversarial examples"—imperceptible perturbations to an input that flip the model's prediction. Randomized Smoothing (RS) is a popular defense that transforms a base classifier into a "smoothed" version by adding Gaussian noise to the input. This allows researchers to calculate a certified radius: a distance within which the model is mathematically guaranteed not to change its prediction.
Standard RS uses a constant noise level ($\sigma$) for every image, which leads to several headaches:
- Certified Accuracy Waterfalls: A sharp, sudden drop-off in certified accuracy at specific radii.
- The Accuracy-Robustness Trade-off: High noise levels provide better robustness but tank the "clean" accuracy on unperturbed images.
- Fairness Issues: Constant noise can unfairly disadvantage certain classes that are naturally closer to decision boundaries.
The intuitive solution is to make the noise input-dependent ($\sigma(x)$). While others have attempted this, the authors argue that previous methods lacked rigorous mathematical justification and reveal why creating valid certificates with variable noise is remarkably difficult.
Methods: A Rigorous Input-Dependent Framework
The authors extend foundational RS work to the input-dependent regime through several key theoretical contributions:
- Generalizing the Neyman-Pearson Lemma: They derive the "worst-case" classifier for scenarios where noise levels vary between a point and its potential adversary.
- Defining Semi-Elasticity: They introduce a strict constraint on the variance function $\sigma(x)$. To be certifiable, $\sigma(x)$ must be $r$-semi-elastic, meaning the log-variance changes slowly relative to the input distance.
- A New Certification Framework: They provide a practical algorithm that uses these $r$-semi-elastic functions to produce valid certificates even when the noise level isn't constant.
- $k$-NN Based Variance Design: They propose a specific $\sigma(x)$ function based on the distance to the $k$-nearest neighbors in the training set. The intuition is that points far from the training clusters (and thus likely far from decision boundaries) can handle higher noise levels.
Key Insights: The Curse of Dimensionality
The paper's central "aha moment" is identifying the Curse of Dimensionality in the context of randomized smoothing. In high dimensions, Gaussian distributions with even slightly different variances become "orthogonal" very quickly. To certify a point $x_0$ against an adversary $x_1$, the ratio of their noise levels ($\sigma_1/\sigma_0$) must be incredibly close to 1. For ImageNet-scale data, the noise level can barely change at all without breaking the mathematical certificate.
The authors prove that if the noise changes too fast, the certified radius effectively collapses to zero. They provide a tight theoretical bound showing exactly how the allowable variance change scales with $1/\sqrt{N}$, where $N$ is the dimension.
Despite this curse, input-dependent smoothing offers a major practical benefit: Smoothing the Waterfall. By allowing $\sigma$ to vary, the "waterfall" effect in accuracy plots disappears. Instead of a sharp drop, the certified accuracy degrades gracefully, as different points are certified at different optimal noise levels.
Results and Limitations
Evaluated on MNIST, CIFAR10, and synthetic datasets, the input-dependent approach outperforms constant RS at lower noise levels ($\sigma = 0.12$ and $0.25$). The experiments on high-dimensional toy data perfectly match theoretical predictions, confirming that as dimensions increase, the allowable "speed" of $\sigma(x)$ change must decrease.
While the method successfully fixes the "waterfall" issue, it doesn't automatically solve the accuracy-robustness trade-off or class-wise fairness issues. Furthermore, due to the extreme curse of dimensionality and numerical instability in calculating non-central chi-squared distributions, the method is currently difficult to apply to very high-dimensional datasets like ImageNet.
Future work will likely focus on developing $\sigma(x)$ functions based on metrics that better reflect the geometry of image manifolds—rather than simple Euclidean distance—and exploring more sophisticated, learned variance functions that respect the necessary semi-elasticity constraints.
Summary updated