Abstract: Randomized smoothing is the current state-of-the-art defense with provable robustness against $\ell_2$ adversarial attacks. Many works have devised new randomized smoothing schemes for other metrics, such as $\ell_1$ or $\ell_\infty$; however, substantial effort was needed to derive such new guarantees. This begs the question: can we find a general theory for randomized smoothing? We propose a novel framework for devising and analyzing randomized smoothing schemes, and validate its effectiveness in practice. Our theoretical contributions are: (1) we show that for an appropriate notion of "optimal", the optimal smoothing distributions for any "nice" norms have level sets given by the norm's Wulff Crystal; (2) we propose two novel and complementary methods for deriving provably robust radii for any smoothing distribution; and, (3) we show fundamental limits to current randomized smoothing techniques via the theory of Banach space cotypes. By combining (1) and (2), we significantly improve the state-of-the-art certified accuracy in $\ell_1$ on standard datasets. Meanwhile, we show using (3) that with only label statistics under random input perturbations, randomized smoothing cannot achieve nontrivial certified accuracy against perturbations of $\ell_p$-norm $\Omega(\min(1, d^{\frac{1}{p} - \frac{1}{2}}))$, when the input dimension $d$ is large.
Introduction
Deep learning models are notoriously fragile against adversarial examples—tiny, calculated perturbations that flip a model's prediction. Randomized Smoothing (RS) has emerged as a leading "certified" defense. Instead of just classifying an image $x$, the system classifies the average output of the model under random noise added to $x$. This provides a mathematical guarantee that the prediction will remain constant within a certain radius.
Until recently, RS was primarily associated with Gaussian noise and $\ell_2$ (Euclidean) robustness. Extending it to other norms like $\ell_1$ (Manhattan distance) or $\ell_\infty$ (maximum change per pixel) required bespoke, mathematically intensive proofs for every new noise type. This work addresses the lack of a general theory to determine the optimal noise distribution for a given norm and the fundamental limits of this approach.
A Unified Theoretical Framework
The paper introduces three major theoretical pillars to generalize randomized smoothing:
1. Wulff Crystals as Optimal Shapes
Borrowing from 1901-era physics, the authors show that the "optimal" smoothing distribution for a specific norm should have level sets shaped like that norm's Wulff Crystal. For instance, for an $\ell_1$ adversary, the optimal level set is actually a cube (the $\ell_\infty$ ball). This geometric insight allows for the design of noise distributions tailored to specific adversarial threats.
2. Derivation Frameworks for Robust Radii
To compute exact robust radii—the distance within which a prediction is guaranteed to stay the same—the authors propose two complementary methods:
- The Level Set Method: This approach computes radii by integrating over the geometry of the noise's superlevel sets.
- The Differential Method: A more flexible approach that uses infinitesimal perturbations to derive lower bounds on robustness. This often results in clean, symbolic formulas for robust radii that are easy for engineers to implement.
3. Fundamental Limits via Banach Space Cotypes
To prove what cannot be achieved, the authors utilize the theory of "cotypes" from functional analysis. They demonstrate that if a method only uses the probabilities of labels (the standard RS setup), it cannot achieve non-trivial certified accuracy for $\ell_p$ norms where $p > 2$ (such as $\ell_\infty$) as the input dimension $d$ grows large. This "no-go" theorem provides a rigorous explanation for the community's difficulty in securing $\ell_\infty$ robustness via randomized smoothing.
Empirical Validation and Key Insights
The framework was validated on standard benchmarks: CIFAR-10 and ImageNet. The authors also utilized semi-supervised training on the 80 Million Tiny Images dataset and pre-training on downsampled ImageNet to boost empirical results.
The Geometry of Noise
A key insight is that the shape of the noise is often more important than the "heaviness" of the distribution's tails. For $\ell_1$ robustness, using Uniform noise (which has cubical level sets) significantly outperforms standard Gaussian noise. The paper elegantly links robustness to the "surface area" of the noise distribution. Minimizing the increase in probability measure under a shift is equivalent to finding a shape with minimal surface energy—exactly what a Wulff Crystal does in nature.
State-of-the-Art Results
By using Uniform noise (the Wulff Crystal for $\ell_1$) and advanced training techniques like stability training, the authors achieved a new state-of-the-art (SOTA) in $\ell_1$ robustness. On CIFAR-10, they achieved over 30% higher certified accuracy than previous methods at large radii (e.g., radius $\ge 1.5$). Furthermore, they provided a comprehensive "Table of Robust Radii" for dozens of noise/norm combinations, simplifying the application of these techniques for practitioners.
Limitations and Future Directions
While this work provides a powerful general theory, it also highlights an "information bottleneck." The impossibility results apply to "information-limited" smoothing—methods that only look at final label probabilities. To bypass the $\ell_\infty$ barrier, future work may need to leverage "full-information" methods that incorporate a model's internal logits or gradients. Additionally, while the framework is theoretically robust, the computational cost remains high, as certification requires thousands of forward passes per image.
Code Availability: The authors have open-sourced their framework at github.com/tonyduan/rs4a.
Summary updated