Certified Robust Neural Networks: Generalization and Corruption Resistance

M. Amine Bennouna, Ryan Lucas, Bart P. G. Van Parys · DOI

Abstract

Neural networks are notoriously fragile, susceptible to evasion attacks at test time and poisoning attacks during training. Standard defenses like Adversarial Training (AT) frequently encounter "robust overfitting," where test performance degrades significantly after prolonged training. This paper proposes Holistic Robust (HR) training, a unified framework that protects against evasion, poisoning, and statistical errors. By leveraging Distributionally Robust Optimization (DRO) with a hybrid ambiguity set, HR training provides a certified upper bound on adversarial test loss and ensures monotonic improvement throughout training.

Introduction

The vulnerability of deep learning models to adversarial perturbations is a major hurdle for deployment in safety-critical systems. Evasion attacks involve small, imperceptible changes to input data at inference, while poisoning attacks involve malicious alterations to the training set. While Adversarial Training (AT) is a common defense, it is plagued by robust overfitting—a phenomenon where the model's test accuracy drops sharply after a certain number of training epochs, unlike standard training. Furthermore, most existing defenses address these threats in isolation. This work seeks a holistic approach to handle multiple corruption types and the statistical noise inherent in finite datasets.

Methodology

The core of the proposed approach is the Holistic Robust (HR) loss, derived from the principles of Distributionally Robust Optimization.

The Ambiguity Set

The authors define a set of "likely" data distributions around the empirical training distribution. This ambiguity set is constructed using two metrics:

  1. Levy-Prokhorov (LP) metric: Accounts for data corruption, including both poisoning and evasion.
  2. Kullback-Leibler (KL) divergence: Accounts for statistical fluctuations arising from finite sampling.

Theoretical Foundations

The paper proves that the gap between training and testing performance in AT can be decomposed into a standard generalization gap and an "adversarial shift" term. This shift represents the model's over-sensitivity to the specific perturbations used during training. The HR algorithm provides a tractable reformulation that acts as a "smart reweighting" of adversarial examples, adding less than 6% computational overhead compared to standard PGD-based training.

Experimental Evaluation

The framework was evaluated on MNIST, CIFAR-10, and Tiny ImageNet.

Mitigating Robust Overfitting

A key finding is that HR training (with statistical error parameter $r > 0$) effectively smooths out the training process. Unlike standard AT or TRADES, where test loss typically spikes after 100 epochs, HR training results in a test loss that decreases monotonically, eliminating the need for heuristic early stopping.

Figure 5: HR training mitigates 'robust overfitting' compared to standard PGD and TRADES, showing monotonic test loss improvement.

Certified Robustness and Performance

The HR loss provides a mathematical guarantee: the training loss serves as a high-probability upper bound on the true adversarial test loss. On CIFAR-10, HR achieved a final robust test error of 49.6%, outperforming plain PGD (53.9%) and TRADES (52.0%) over 200 epochs. Experimental results confirm that HR is the only method where the training loss consistently bounds the testing loss across various corruption scenarios.

Figure 6: Comparison of training and testing losses. HR is the only method where the training loss (blue) consistently bounds the testing loss (pink).

Conclusion

Holistic Robust training offers a unified, computationally efficient defense against a spectrum of data corruptions. By theoretically addressing the root causes of robust overfitting, the method provides certified guarantees that hold empirically. While the framework introduces additional hyperparameters, its ability to provide tight bounds and stable training makes it a significant advancement in robust machine learning.

Summary updated

BibTeX
@inproceedings{bennouna2023certified,
  author = {M. Amine Bennouna and Ryan Lucas and Bart P. G. Van Parys},
  title = {{Certified Robust Neural Networks: Generalization and Corruption Resistance}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=4cvSExetbO},
}
Figure