Theoretically Principled Trade-off between Robustness and Accuracy

Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric P. Xing, Laurent El Ghaoui, Michael I. Jordan

Introduction

Deep neural networks have achieved remarkable success in various domains, yet they remain notoriously vulnerable to adversarial examples—inputs modified by tiny, often human-imperceptible perturbations designed to induce incorrect predictions. While adversarial training has emerged as a primary defense mechanism, it frequently leads to a significant reduction in standard (natural) accuracy on clean data. This paper provides a formal theoretical characterization of this inherent trade-off and introduces a novel defense framework, TRADES, to optimize the balance between these two competing objectives.

The TRADES Framework

The core contribution of this work is the mathematical decomposition of robust error (the error rate on adversarial examples) into two distinct, interpretable components:

  1. Natural Error: The standard classification error on clean, unperturbed data.
  2. Boundary Error: The probability that a data point lies so close to the model's decision boundary that a perturbation within a specified radius can push it to the incorrect side of that boundary.
Visualization of decision boundaries and the effect of smoothing in TRADES.

Using the theory of classification-calibrated loss, the authors derive a tight, differentiable upper bound on robust error. This theoretical foundation leads to the TRADES (TRadeoff-inspired Adversarial DEfense via Surrogate-loss minimization) algorithm. Unlike standard adversarial training, which simply fits labels to perturbed inputs, TRADES minimizes a composite loss function:

$$\min_{f} \mathbb{E} \{ \mathcal{L}(f(X), Y) + \lambda \cdot \max_{X' \in \mathbb{B}(X, \epsilon)} \mathcal{L}(f(X), f(X')) \}$$

Here, the first term maximizes natural accuracy, while the second term—a regularization term—penalizes differences between the model's predictions on clean and adversarial versions of the same input. The hyperparameter $\lambda$ allows practitioners to explicitly control the trade-off between robustness and accuracy.

The Inherent Trade-off

A key insight of the paper is that the trade-off between robustness and accuracy is a fundamental mathematical property, not merely a limitation of current training methods. Through toy examples and theoretical bounds, the authors demonstrate that in certain data distributions, the classifier that is optimal for natural accuracy (the Bayes optimal classifier) can have a robust error of 100%.

Comparison of robust error components for different classifiers.

As shown in the table above, a classifier optimized solely for natural error ($\mathcal{R}_{\text{nat}}$) may suffer from maximal boundary error ($\mathcal{R}_{\text{bdy}}$) and robust error ($\mathcal{R}_{\text{rob}}$). Conversely, a trivial "all-one" classifier might achieve optimal robustness at the cost of significant natural error. This underscores the necessity of the $\lambda$ parameter in TRADES to navigate this spectrum.

Empirical Results and Interpretability

The TRADES methodology has demonstrated state-of-the-art performance in rigorous benchmarks:

  • Competition Success: TRADES won 1st place in the NeurIPS 2018 Adversarial Vision Challenge, outperforming the runner-up by a margin of 11.41% in mean $L_2$ perturbation distance.
  • White-Box Defense: On the CIFAR10 dataset under a strong PGD attack, TRADES achieved a robust accuracy of 56.61%, significantly higher than the previous state-of-the-art of 47.04%.
  • Tunability: Experiments confirmed that adjusting $\lambda$ allows for a smooth transition between high natural accuracy (e.g., 88.64%) and high robust accuracy (e.g., 56.61%).

Beyond numerical performance, TRADES-trained models exhibit enhanced visual interpretability. When these models are eventually fooled by large-scale perturbations, the resulting adversarial images often resemble the target class to human observers. This suggests that the model has learned robust, semantically meaningful features rather than relying on brittle, non-robust shortcuts.

Conclusion and Future Work

TRADES provides a theoretically grounded framework for understanding and managing the trade-off between accuracy and robustness. While the computational cost of generating adversarial examples during training remains a challenge (often 10x slower than standard training), the method's success in competitions and its theoretical elegance make it a cornerstone for future research. Potential extensions include applying the TRADES regularization term to semi-supervised learning, leveraging unlabeled data to better estimate and minimize boundary error.

Summary updated

BibTeX
@inproceedings{zhang2019theoretically,
  author = {Hongyang Zhang and Yaodong Yu and Jiantao Jiao and Eric P. Xing and Laurent El Ghaoui and Michael I. Jordan},
  title = {{Theoretically Principled Trade-off between Robustness and Accuracy}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure