Abstract: Training neural networks with high certified accuracy against adversarial examples remains an open challenge despite significant efforts. While certification methods can effectively leverage tight convex relaxations for bound computation, in training, these methods, perhaps surprisingly, can perform worse than looser relaxations. Prior work hypothesized that this phenomenon is caused by the discontinuity, non-smoothness, and perturbation sensitivity of the loss surface induced by tighter relaxations. In this work, we theoretically show that Gaussian Loss Smoothing (GLS) can alleviate these issues. We confirm this empirically by instantiating GLS with two variants: a zeroth-order optimization algorithm, called PGPE, which allows training with non-differentiable relaxations, and a first-order optimization algorithm, called RGS, which requires gradients of the relaxation but is much more efficient than PGPE. Extensive experiments show that when combined with tight relaxations, these methods surpass state-of-the-art methods when training on the same network architecture for many settings. Our results clearly demonstrate the promise of Gaussian Loss Smoothing for training certifiably robust neural networks and pave a path towards leveraging tighter relaxations for certified training.
Introduction
Training neural networks that are provably robust against adversarial attacks is a "holy grail" in trustworthy AI. However, researchers have long been puzzled by a strange phenomenon: using more precise mathematical approximations during training often leads to worse results. This paper provides both a theoretical explanation and a practical cure for this "Paradox of Certified Training."
The Paradox of Certified Training
To guarantee that a network won't flip its prediction if an input is slightly perturbed, we use Certified Training. Since calculating the exact "worst-case" loss is computationally impossible, we use convex relaxations to approximate it.
The paradox is that Interval Bound Propagation (IBP) is a very "loose" (imprecise) approximation, while DeepPoly is much "tighter" (precise). Logically, DeepPoly should produce better models. In reality, IBP usually wins because tighter relaxations create a "nightmare" loss landscape for optimizers.
As shown above, the tighter relaxation (DeepPoly) provides a more accurate bound but introduces complexities in the loss surface. These surfaces become discontinuous, non-smooth, and highly sensitive to small changes in weights, causing standard gradient descent to fail.
Gaussian Loss Smoothing (GLS)
The authors propose mitigating these landscape issues by applying Gaussian Loss Smoothing (GLS). Instead of optimizing the loss at a single point in weight space, they optimize the expected loss over a Gaussian distribution centered at those weights.
GLS is instantiated using two distinct algorithms:
- PGPE (Policy Gradients with Parameter-based Exploration): A zeroth-order approach that does not require backpropagation through the relaxation, allowing training with non-differentiable methods like $\alpha$-CROWN.
- RGS (Randomized Gradient Smoothing): A first-order approach that averages gradients from multiple perturbed versions of the weights, offering a 40x speedup over PGPE.
Key Insights and Results
By smoothing the weights rather than the input, GLS fundamentally changes the optimization objective to be infinitely differentiable and Lipschitz continuous. The authors theoretically prove that GLS reduces the "deviation from convexity" of the loss surface, making it easier for first-order optimizers to find high-quality solutions.
Extensive experiments on MNIST, CIFAR-10, and TinyImageNet demonstrate that once optimization hurdles are removed via smoothing, tighter relaxations finally outperform looser ones:
- CIFAR-10: DeepPoly + RGS achieved 54.91% certified accuracy, surpassing state-of-the-art methods like SABR.
- TinyImageNet: DeepPoly + RGS reached 19.73% certified accuracy, a significant jump over the IBP baseline of 13.92%.
- Tightness Correlation: Results show a clear trend: as the relaxation becomes tighter (IBP $\rightarrow$ CROWN-IBP $\rightarrow$ DeepPoly), certified accuracy improves when GLS is employed.
Conclusion
Gaussian Loss Smoothing provides a robust framework for training certifiably robust neural networks. While challenges remain regarding computational overhead and hyperparameter tuning for the smoothing strength ($\sigma$), GLS paves a path towards leveraging the most precise convex relaxations for certified training.
Summary updated