Abstract
Neural network robustness is a major concern in safety-critical applications. Certified robustness provides a reliable lower bound on worst-case robustness, and certified training methods have been developed to enhance it. However, certified training methods often suffer from over-regularization, leading to lower certified robustness. This work addresses this issue by introducing the concepts of neuron variance and neuron stability, examining their impact on over-regularization and model robustness. To tackle the problem, we extend the Signal-to-Noise Ratio (SNR) into the realm of model robustness, offering a novel perspective and developing SNR-inspired losses aimed at optimizing neuron variance and stability to mitigate over-regularization. Through both empirical and theoretical analysis, our SNR-based approach demonstrates superior performance over existing methods on the MNIST and CIFAR-10 datasets. In addition, our exploration of adversarial training uncovers a beneficial correlation between neuron variance and adversarial robustness, leading to an optimized balance between standard and robust accuracy that outperforms baseline methods.
Introduction
Deep learning models are notoriously vulnerable to small, adversarial perturbations. To combat this, researchers use certified training, which provides a mathematical guarantee (a lower bound) that a model’s prediction will remain constant within a specific perturbation range. However, certified training faces a major hurdle: over-regularization. To make a model "easy to certify," training algorithms often penalize the model so harshly that its actual robustness and accuracy suffer. This work identifies two primary culprits behind this phenomenon: neuron variance and neuron instability.
Neuron Variance and Stability
The authors define two key metrics to characterize neuron behavior under perturbation:
- Neuron Variance: The degree to which a neuron's output fluctuates when the input is perturbed.
- Neuron Instability: In ReLU networks, a neuron is considered "unstable" if its input can cross zero under perturbation. This forces certification algorithms to use loose "convex relaxations" that overestimate the worst-case error, creating an over-approximation gap.
Different certification methods are sensitive to different factors. For instance, "Box" (or IBP) relaxation is primarily hindered by high neuron variance, while tighter methods like "Star" or "Zonotope" are more affected by neuron instability.
Methods: SNR-Inspired Losses
Borrowing from signal processing, the authors propose a framework based on the Signal-to-Noise Ratio (SNR). They treat the clean output of a neuron as the "signal" and the deviation caused by perturbation as the "noise." Two specific loss functions are introduced:
- Layer SNR (Variance Loss): This minimizes the inverse of the SNR at each layer, forcing the network to keep the "noise" (perturbation deviation) small relative to the "signal" (clean output scale). To prevent the model from simply increasing weights to "cheat" the ratio, gradients are stopped from flowing through the signal term.
- Neuron SNR (Stability Loss): This neuron-wise loss pushes neurons away from the activation boundary (zero for ReLU). It encourages neurons to be consistently "on" or "off" under perturbation, making the model significantly easier for formal verifiers to handle.
Experimental Results
The SNR-based approach was evaluated on MNIST and CIFAR-10, comparing against high-profile baselines such as COLT, CROWN-IBP, and SABR. The proposed method consistently achieved state-of-the-art (SOTA) results:
- CIFAR-10: At a 2/255 perturbation, the method reached 62.99% certified accuracy, surpassing SABR (62.84%). At 8/255, it achieved 35.44%.
- MNIST: Reached a record 98.24% certified accuracy at 0.1 perturbation.
- Adversarial Training Synergy: Adding the SNR variance loss to standard adversarial training (like TRADES) resulted in a superior trade-off between natural accuracy and robust accuracy, as adversarial training naturally tends to increase SNR in deeper layers.
Conclusion
By optimizing neuron variance and stability through SNR-inspired losses, this work successfully mitigates the over-regularization common in certified training. Future work will explore the scalability of these losses to more complex architectures and further decouple the effects of variance and stability to refine training dynamics.
Summary updated