On Adversarial Risk and Training

Arun Sai Suggala, Adarsh Prasad, Vaishnavh Nagarajan, Pradeep Ravikumar

Abstract

Recent works on adversarial perturbations show that there is an inherent trade-off between standard test accuracy and adversarial accuracy. Specifically, they show that no classifier can simultaneously be robust to adversarial perturbations and achieve high standard test accuracy. However, this is contrary to the standard notion that on tasks such as image classification, humans are robust classifiers with low error rate. In this work, we show that the main reason behind this confusion is the inexact definition of adversarial perturbation that is used in the literature. To fix this issue, we propose a slight, yet important modification to the existing definition of adversarial perturbation. Based on the modified definition, we show that there is no trade-off between adversarial and standard accuracies; there exist classifiers that are robust and achieve high standard accuracy. We further study several properties of this new definition of adversarial risk and its relation to the existing definition.

Introduction

In machine learning, a widely held belief is that a fundamental trade-off exists between a model's standard accuracy and its robustness to adversarial attacks. Adversarial attacks involve tiny, often imperceptible perturbations that cause a model to flip its prediction. Conventional wisdom suggests that making a model robust to these attacks inevitably degrades its performance on clean, unperturbed data.

This paper argues that this trade-off is largely an artifact of how adversarial risk is defined. By refining the definition to account for how "true labels" change in the input space, the authors demonstrate that the best possible classifiers—Bayes optimal classifiers—can be both perfectly accurate and highly robust.

The Illusion of the Trade-off

The perceived trade-off arises because the standard definition of an adversarial attack is overly broad. Currently, any small change $\delta$ within a radius $\epsilon$ that flips a model's prediction is labeled "adversarial." However, if that change is large enough to alter the object's true identity (e.g., turning a '7' into a '1'), the model should change its prediction to remain accurate.

Examples of perturbations that change the semantic label (e.g., 7 to 1) while being considered 'adversarial' under old definitions.

The authors identify a "margin condition": the trade-off appears when the perturbation radius $\epsilon$ is larger than the actual distance between classes in the data. When classes overlap or sit very close together, a model must be sensitive to small changes to maintain high standard accuracy.

A Refined Definition of Adversarial Risk

To resolve this, the researchers propose a modified definition of Adversarial Risk using a Base Classifier ($g$), such as human vision, as a ground-truth reference.

Under this new definition, a perturbation is only considered "adversarial" if it changes the model's prediction ($f$) while the base classifier ($g$) still perceives the original label. If the perturbation is so significant that even the base classifier would change its mind, the model is not penalized for flipping its prediction.

Theoretically, the authors prove that the Bayes optimal classifier minimizes both standard risk and this modified adversarial risk simultaneously. This implies that there is no inherent conflict between accuracy and robustness.

Empirical Evidence and Model Capacity

The paper validates these theoretical findings using synthetic 2D datasets, MNIST, and CIFAR-10. A key insight is that increasing model complexity—contrary to some beliefs—actually helps.

Standard risk decreases as model capacity increases for both MNIST and CIFAR-10, suggesting that larger models approach the Bayes optimal classifier.

As shown in the experiments, increasing the number of hidden units in a simple network or scaling the capacity of a VGG11 network consistently lowers both standard and adversarial errors. This suggests that as models grow in capacity, they naturally move closer to the Bayes optimal classifier, improving both performance metrics concurrently.

Conclusion

The "trade-off" between accuracy and robustness is not a fundamental law of machine learning but a consequence of a definition that fails to account for semantic label shifts. By adopting a more nuanced definition of adversarial risk, we find that high-capacity models can achieve both high accuracy and strong robustness. Future work will focus on practical training algorithms that leverage this new definition without requiring a perfect reference model.

Summary updated

BibTeX
@inproceedings{suggala2019adversarial,
  author = {Arun Sai Suggala and Adarsh Prasad and Vaishnavh Nagarajan and Pradeep Ravikumar},
  title = {{On Adversarial Risk and Training}},
  booktitle = {AISTATS},
  year = {2019},
  url = {https://openreview.net/forum?id=m_92xyop5D4},
}
Figure