Abstract
Conventional randomized smoothing (RS) employs a fixed noise level for all inputs, leading to a rigid trade-off between classification accuracy and adversarial robustness. This paper introduces Variational Randomized Smoothing, a framework that utilizes a dedicated neural network to select an optimal, sample-wise noise level for each individual input. By incorporating a "dual smoothing" mechanism, the framework further protects the noise selector itself from adversarial manipulation, achieving a superior balance of performance and certifiable security.
Introduction
Deep neural networks are highly susceptible to adversarial attacks—small, often imperceptible perturbations that can drastically alter a model's output. Randomized Smoothing (RS) has emerged as a leading defense strategy. It works by adding random noise to an input and using the majority vote of the model's predictions to produce a stable result.
However, standard RS is limited by its "one-size-fits-all" approach. Using a low noise level ($\sigma$) preserves accuracy on clean images but offers weak protection, while a high noise level provides robust defense at the cost of significant accuracy degradation. This research addresses the reality that not all images require the same level of smoothing; some are inherently more robust, while others are highly sensitive to noise.
Methodology: Sample-Wise and Dual Smoothing
The authors propose three primary innovations to transition from global to adaptive smoothing:
1. The Noise Level Selector ($h$)
Instead of a static parameter, the framework employs a small neural network, $h$, that predicts a custom noise level ($\sigma_s$) for each specific input $x$. This allows the system to be "cautious" with high noise only when necessary and "confident" with low noise on easier samples.
2. Dual Smoothing Mechanism
A significant vulnerability in adaptive defense is that an attacker might target the selector itself to force it to choose an ineffective noise level. To mitigate this, the authors introduce Dual Smoothing. As shown in the comparison below, while variational smoothing adapts to the input, dual smoothing applies median smoothing to the selector's output, ensuring the defense remains stable even under attack.
3. Universal Training and Meta-Learning
To avoid retraining for every different robustness requirement, the authors use a universal training scheme. A regularization parameter ($\lambda$) is fed directly into the selector, allowing users to adjust the "robustness vs. accuracy" trade-off at test time without retraining the model.
Experimental Results
The framework was evaluated on the CIFAR-10 dataset against standard baselines. The results highlight several key advantages:
- Improved Empirical Robustness: The variational approach consistently outperformed fixed-noise models when tested against Projected Gradient Descent (PGD) attacks.
- Higher Clean Accuracy: By applying minimal noise to "easy" images, the model maintained higher accuracy on un-attacked data compared to models forced to use high global noise.
- Certified Robustness: The paper provides a theoretical guarantee of correctness within a specific mathematical "radius" of perturbation. As seen in the figure below, different noise configurations provide varying levels of certified accuracy across different radii.
Discussion and Future Work
While Variational Randomized Smoothing offers a more nuanced defense, it comes with increased computational costs. The "Dual Smoothing" process requires multiple forward passes for both the selector and the classifier, making it slower than standard inference.
Future research directions include scaling this approach to high-resolution datasets like ImageNet and optimizing the sampling efficiency to reduce the computational overhead. Nonetheless, the shift toward sample-wise, adaptive defense represents a significant step forward in building truly resilient neural networks.
Summary updated