Abstract
Randomized smoothing is a technique for providing provable robustness guarantees against adversarial attacks while making minimal assumptions about a classifier. This method relies on taking a majority vote of any base classifier over multiple noise-perturbed inputs to obtain a smoothed classifier, and it remains the tool of choice to certify deep and complex neural network models. Nonetheless, non-trivial performance of such smoothed classifier crucially depends on the base model being trained on noise-augmented data, i.e., on a smoothed input distribution. While widely adopted in practice, it is still unclear how this noisy training of the base classifier precisely affects the risk of the robust smoothed classifier, leading to heuristics and tricks that are poorly understood. In this work we analyze these trade-offs theoretically in a binary classification setting, proving that these common observations are not universal. We show that, without making stronger distributional assumptions, no benefit can be expected from predictors trained with noise-augmentation, and we further characterize distributions where such benefit is obtained. Our analysis has direct implications to the practical deployment of randomized smoothing, and we illustrate some of these via experiments on CIFAR-10 and MNIST, as well as on synthetic datasets.
Introduction
Machine learning models are notoriously fragile; a tiny, invisible "adversarial" tweak to an input can trick a state-of-the-art model into misclassification. Randomized Smoothing (RS) has emerged as a leading defense, providing mathematical guarantees of robustness by taking a "majority vote" of a classifier’s predictions over many noise-perturbed versions of an input.
Crucially, the effectiveness of RS depends on the "base" model being trained on noise-augmented data. While practitioners have long used this as a standard heuristic—often setting the training noise level ($\alpha$) equal to the smoothing noise level ($\beta$) used at test time—the theoretical justification for this practice has remained elusive. This paper investigates whether this heuristic is optimal and identifies the conditions under which noise-augmentation is actually beneficial.
Methods: The Geometry of Interference
The authors introduce the concept of interference distance ($\zeta_h$) to characterize the data distribution's geometry. Imagine data as "islands" of one class in a "sea" of another. Interference distance measures the proximity of these islands.
The research identifies three distinct regimes:
- The "No Benefit" Regime: When interference distance is large (islands are far apart), training with noise is actually detrimental to the model's accuracy.
- The Upper Bound: A mathematical limit on the risk of a smoothed classifier based on noise levels and data geometry.
- The "Benefit" Regime: For distributions with small interference distances (crowded data), noise-augmentation is essential for low error.
Key Insights: Decoupling Training and Smoothing Noise
A significant finding is the "shrinkage" effect. Adding noise during training effectively shrinks decision regions. In sparse data (large $\zeta_h$), this causes information loss. However, in crowded data (small $\zeta_h$), it prevents class regions from "bleeding" into each other during the smoothing process, stabilizing predictions.
Furthermore, the authors demonstrate that the training noise ($\alpha$) and smoothing noise ($\beta$) do not need to be identical. Treating them as independent parameters allows for finding a "sweet spot" that outperforms the standard $\alpha = \beta$ heuristic.
Results and Empirical Validation
The theory was validated across several datasets:
- Synthetic Datasets: By controlling the placement of class-spheres, the authors observed a clear performance "flip": as interference distance decreased, the optimal training noise $\alpha$ shifted from zero to a positive value.
- MNIST and CIFAR-10: Experiments on these standard benchmarks suggest that natural image datasets naturally reside in the "low interference distance" regime, explaining the empirical success of noise-augmentation in practice.
Conclusion and Future Work
This work provides the first rigorous characterization of the trade-offs in noise-augmented training for randomized smoothing. While the current analysis focuses on binary classification, it lays the groundwork for understanding multi-class scenarios. Future research may focus on algorithms that automatically estimate optimal noise parameters based on a dataset's inherent geometry, leading to more robust and accurate certified AI models.
Summary updated