Squeeze Training for Adversarial Robustness

Qizhang Li, Yiwen Guo, Wangmeng Zuo, Hao Chen

This paper introduces a novel perspective on deep neural network (DNN) robustness by looking not just at the "peaks" of the loss landscape (adversarial examples), but also at its "valleys." By "squeezing" the discrepancy between the best-case and worst-case neighbors of a data point, the authors achieve state-of-the-art adversarial robustness.

TL;DR

While traditional adversarial training focuses on defending against high-loss "adversarial" examples, this paper introduces "collaborative" examples—nearby points with extremely low loss. By jointly optimizing both extremes to minimize their prediction discrepancy, the proposed Squeeze Training (ST) flattens the loss landscape and significantly improves robust accuracy across multiple benchmarks.

What Problem Does This Paper Address?

Deep neural networks are notoriously fragile. Small, imperceptible perturbations (adversarial examples) can cause them to make confident, incorrect predictions. The standard defense is Adversarial Training (AT), which involves training the model on these "worst-case" examples.

However, the authors point out a gap in our understanding of the local "loss landscape" around a benign image. Most research focuses on the "plateaus" or "peaks" where loss is high. This paper investigates the "valleys"—regions in the $\epsilon$-neighborhood of a benign image where the classification loss is significantly lower than the benign image itself. These "collaborative examples" represent a different kind of non-smoothness in the model.

Cross-entropy loss of adversarial (blue) and collaborative (red) examples across different training methods.

The authors argue that a truly robust model should have a flat loss landscape where neither adversarial nor collaborative examples are easy to find. As seen in the figure above, standard training and even some robust methods still exhibit a massive gap between the loss of adversarial (blue) and collaborative (red) examples.

Methods: Squeeze Training (ST)

The core contribution of this paper is Squeeze Training (ST). Here is how it differs from standard approaches:

  1. Collaborative Examples: The authors define these as points $x_{col}$ within an $\epsilon$-distance of a benign image $x$ that minimize the prediction loss. They are found using gradient descent (essentially the opposite of an adversarial attack).
  2. The "Squeeze" Objective: Instead of just minimizing the loss of adversarial examples (Vanilla AT) or the distance between benign and adversarial outputs (TRADES), ST minimizes the maximum possible discrepancy between any two points in the $\epsilon$-neighborhood.
  3. Joint Optimization: In the inner loop of training, the algorithm searches for a pair of points: one that maximizes loss (adversarial) and one that minimizes it (collaborative).
  4. Regularization: The training objective penalizes the difference between the outputs of these two extreme points using a regularization function $\ell_{reg}$ (such as Symmetric KL divergence or Jensen-Shannon divergence).

By forcing the "best-case" and "worst-case" neighbors to produce similar outputs, the model is effectively "squeezed" into becoming invariant to small perturbations across the entire local neighborhood.

Key Insights and Ideas

  • Robustness is linked to Valleys: The authors observed that as a model becomes more adversarially robust, it actually becomes harder to find collaborative examples. This suggests that "valleys" and "peaks" in the loss landscape are two sides of the same coin (non-smoothness).
Loss landscape comparison between normal and robust models.
  • Squeezing vs. Anchoring: Methods like TRADES "anchor" adversarial examples to the benign image. ST is more aggressive; it doesn't just care about the benign image, it tries to collapse the entire range of possible outputs within the neighborhood, leading to a visibly flatter loss landscape.
  • Better Trade-offs: A common problem in adversarial training is the "robustness-accuracy trade-off," where making a model robust makes it less accurate on clean data. ST appears to navigate this trade-off more effectively than previous SOTA methods like MART or TRADES.

Key Results

The authors evaluated their method on three standard computer vision benchmarks (CIFAR-10, CIFAR-100, and SVHN) using architectures like ResNet-18 and Wide ResNet. ST consistently outperformed existing methods:

  • CIFAR-10 (ResNet-18): ST achieved a robust accuracy (under AutoAttack) of 50.50%, compared to 49.37% for TRADES and 47.49% for MART.
  • Absolute Gains: On CIFAR-10, the method achieved an absolute robust accuracy gain of >+1.00% without requiring any additional data.
  • Scaling with Unlabeled Data: When combined with Robust Self-Training (RST), which uses extra unlabeled data, ST-RST reached 60.75% robust accuracy on CIFAR-10, setting a new benchmark for the field.
  • Compatibility: The paper shows that ST is "plug-and-play" and can be combined with other techniques like Adversarial Weight Perturbation (AWP) to push performance even higher.

Limitations and Future Work

While highly effective, ST does come with trade-offs:

  • Computational Overhead: Finding both an adversarial and a collaborative example in every training step increases the computational cost of the inner loop. While the authors suggest these can be computed in parallel, it still requires more resources than standard AT.
  • Hyperparameter Tuning: The scaling factor $\beta$ (which balances clean accuracy and robustness) remains a sensitive hyperparameter that needs to be tuned for different datasets.
  • Theoretical Grounding: While the empirical results are strong, the authors note that further theoretical work could help explain why squeezing the extremes of the neighborhood leads to better generalization than anchoring to the center.

Summary updated

BibTeX
@inproceedings{li2023squeeze,
  author = {Qizhang Li and Yiwen Guo and Wangmeng Zuo and Hao Chen},
  title = {{Squeeze Training for Adversarial Robustness}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=Z_tmYu060Kr},
}
Figure