Statistically robust neural network classification

Benjie Wang, Stefan Webb, Tom Rainforth

Abstract

Despite their numerous successes, there are many scenarios where adversarial risk metrics do not provide an appropriate measure of robustness. For example, test-time perturbations may occur in a probabilistic rather than adversarial manner. This paper introduces Statistically Robust Risk (SRR), a framework for optimizing average-case probabilistic perturbations, offering a more practical and computationally efficient alternative to adversarial training.

Introduction

Deep learning models are notoriously sensitive to small input perturbations. Traditionally, research has focused on Adversarial Risk, which considers the "worst-case" loss within a neighborhood. However, this approach has significant drawbacks: it often misaligns with real-world noise (like sensor imperfections), suffers from a large generalization gap in high dimensions, and incurs high computational costs.

In this work, we argue that for many applications—such as autonomous driving or medical imaging—statistical robustness to random noise is more relevant than defense against a malicious adversary.

The Statistically Robust Risk (SRR) Framework

We propose Statistically Robust Risk (SRR), which measures the expected loss over a distribution of perturbations rather than the worst-case. To quantify this, we introduce the Total Statistical Robustness Metric (TSRM), which evaluates performance across the entire data distribution under probabilistic corruption.

TSRM evaluation across different training methods and noise scales.

Training for Statistical Robustness

A key finding is that SRR can be optimized through "Corruption Training"—simply adding noise to inputs during training. We prove that even a single random sample per image is sufficient for effective training due to the law of large numbers across the dataset. Theoretically, we show that SRR generalization error scales with $O(\log(d_{max}))$, making it fundamentally easier to learn in high-dimensional spaces compared to adversarial risk, which is lower-bounded by $O(\sqrt{d_{in}})$.

Key Results and Generalization

Our experiments on MNIST and CIFAR-10 demonstrate that SRR training provides robustness "for free" without the significant computational overhead of adversarial methods like PGD.

Comparison of Natural and SRR training regimes. SRR training (right) significantly reduces the generalization gap in SRR evaluation compared to natural training (left).

On CIFAR-10, while adversarial training often exhibits a massive gap between train and test accuracy (up to 27.2%), SRR training behaves more like natural training with a much smaller gap (around 8%). Furthermore, SRR-trained models outperform PGD-trained models when evaluated on probabilistic noise, achieving 92.4% test performance on CIFAR-10 with a noise radius of 0.157, compared to 88.1% for PGD.

Discussion and Limitations

While SRR offers a practical path to robustness, it is not a replacement for adversarial defense. SRR-trained models remain vulnerable to targeted adversarial attacks. Additionally, the choice of perturbation distribution remains a critical hyperparameter. Nevertheless, SRR provides a stable, efficient, and theoretically grounded framework for building models that are robust to the types of noise encountered in real-world deployment.

This summary is based on the paper "Statistically robust neural network classification" presented at UAI 2021.

Summary updated

BibTeX
@inproceedings{wang2021statistically,
  author = {Benjie Wang and Stefan Webb and Tom Rainforth},
  title = {{Statistically robust neural network classification}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=s34_TKFhBPs},
}
Figure