On Model Robustness Against Adversarial Examples

Shufei Zhang, Kaizhu Huang, Zenglin Xu · DOI

TL;DR

This paper introduces a novel theoretical framework for understanding and improving model robustness against adversarial examples by focusing on the stability of the loss function. They propose an "energy function" to quantify this stability and show that minimizing it leads to better adversarial robustness than existing methods like AT and VAT, which only minimize a lower bound of this energy.

What Problem Does This Paper Address?

Deep neural networks (DNNs) have achieved remarkable success in various tasks, but they are notoriously vulnerable to adversarial examples. These are subtly modified inputs, imperceptible to humans, that can cause DNNs to misclassify them with high confidence. While previous research has focused on generating adversarial examples and developing adversarial training methods to defend against them, a rigorous theoretical understanding of why models are vulnerable and how to systematically improve robustness has been lacking. This paper aims to bridge this gap by providing a new theoretical perspective based on the stability of the loss function in the vicinity of natural data points.

Methods

The core of the paper's contribution lies in its theoretical framework.

  • Energy Function for Stability: The authors propose an "energy function" that measures the stability of the loss function within a small neighborhood around a natural data point. This energy is defined as the integral of the squared norm of the loss function's gradient with respect to the input, over that neighborhood. Intuitively, a lower energy means the loss function doesn't change drastically in that region, implying greater stability.
  • Theoretical Link to Robustness: They prove that minimizing this energy function guarantees robustness against adversarial examples within that neighborhood.
  • Critique of Existing Methods: The paper analyzes traditional adversarial training methods like Adversarial Training with $l_2$ norm constraint (AT) and Virtual Adversarial Training (VAT). They show that these methods essentially minimize a lower bound of their proposed energy function. However, minimizing only the lower bound can lead to insufficient robustness because it doesn't account for the overall variation of the loss function in the entire neighborhood.
  • Proposed Energy Regularization: To address this limitation, they introduce a more rational method that regularizes the loss function by penalizing both the lower and upper bounds of the energy function. This is achieved by adding a term that maximizes the gradient norm within the neighborhood to the standard adversarial training objective.
  • Practical Optimization: They develop practical optimization algorithms (ATER for AT and VATER for VAT) that approximate the maximization of the gradient norm using finite differences, making the proposed methods computationally feasible.

Datasets

The proposed methods were evaluated on the following benchmark datasets:

  • MNIST: A dataset of handwritten digits, used for supervised learning.
  • CIFAR-10: A dataset of 10 object classes, used for supervised learning.
  • SVHN: The Street View House Numbers dataset, used for semi-supervised learning.

The paper does not introduce new datasets but uses these standard benchmarks to compare their methods against existing ones.

Key Insights and Ideas

  • Robustness as Loss Stability: The most significant insight is reframing adversarial robustness not just as resisting specific perturbations, but as a property of the loss function's stability in the local input space. A stable loss function is less susceptible to being pushed into misclassification by small input changes.
  • Limitations of Lower-Bound Minimization: The paper provides a theoretical explanation for why methods like AT and VAT, which focus on minimizing a lower bound of the loss (or its gradient), might not achieve optimal robustness. They can leave "risk regions" where the loss still varies significantly, even if the worst-case point is handled.
  • The Importance of Upper-Bound Regularization: By explicitly penalizing the maximum variation (upper bound of the energy) within a neighborhood, the proposed methods ensure a more uniform stability across the entire region, leading to demonstrably better robustness.
  • Energy Function as a Unified Measure: The proposed energy function provides a unified theoretical lens to analyze and improve various adversarial training techniques.

Key Results

The paper demonstrates the effectiveness of their proposed methods (ATER and VATER) through extensive experiments:

  • Superior Robustness: ATER and VATER consistently achieve significantly better robustness against adversarial examples (generated by FGSM and $l_2$ attacks) compared to baseline methods, AT, and VAT on MNIST and CIFAR-10. This is particularly evident when adversarial noise levels increase.
  • Competitive Accuracy: On MNIST and CIFAR-10 (supervised tasks), their methods achieve competitive or superior test error rates compared to existing adversarial training methods.
  • Strong Semi-Supervised Performance: For semi-supervised tasks on SVHN and CIFAR-10, VATER also outperforms traditional methods like VAT.
  • Faster Convergence: Figure 3 suggests that their proposed methods (VATER and ATER) exhibit better convergence on the test set compared to VAT and AT, even though training curves are similar.

Limitations and Future Work

  • Computational Cost: While the authors propose practical optimization algorithms, computing the gradient of the gradient (required for approximating the maximizer) can still be computationally intensive.
  • Hyperparameter Tuning: The performance of their methods relies on a hyperparameter ($\lambda$) that balances the standard loss term with the energy regularization term. While they report empirical choices, optimal tuning might be dataset-dependent.
  • Deeper Architectures: The authors note that while their methods perform well on standard architectures, applying them to much deeper architectures like DenseNet and ResNet might require further investigation to achieve even greater improvements.
  • Future Work: The paper suggests exploring the application of their methods to deeper network structures and investigating further improvements to the energy regularization.

Summary updated

Abstract

We study the model robustness against adversarial examples, referred to as small perturbed input data that may however fool many state-of-the-art deep learning models. Unlike previous research, we establish a novel theory addressing the robustness issue from the perspective of stability of the loss function in the small neighborhood of natural examples. We propose to exploit an energy function to describe the stability and prove that reducing such energy guarantees the robustness against adversarial examples. We also show that the traditional training methods including adversarial training with the $l_2$ norm constraint (AT) and Virtual Adversarial Training (VAT) tend to minimize the lower bound of our proposed energy function. We make an analysis showing that minimization of such lower bound can however lead to insufficient robustness within the neighborhood around the input sample. Furthermore, we design a more rational method with the energy regularization which proves to achieve better robustness than previous methods. Through a series of experiments, we demonstrate the superiority of our model on both supervised tasks and semi-supervised tasks. In particular, our proposed adversarial framework achieves the best performance compared with previous adversarial training methods on benchmark datasets MNIST, CIFAR-10, and SVHN. Importantly, they demonstrate much better robustness against adversarial examples than all the other comparison methods.
BibTeX
@misc{zhang2019model,
  author = {Shufei Zhang and Kaizhu Huang and Zenglin Xu},
  title = {{On Model Robustness Against Adversarial Examples}},
  year = {2019},
  eprint = {1911.06479},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.06479},
}
Figure