Skip to main content
QUICK REVIEW

[Paper Review] Self-Ensemble Adversarial Training for Improved Robustness

Hongjun Wang, Yisen Wang|arXiv (Cornell University)|Mar 18, 2022
Adversarial Robustness in Machine LearningComputer Science19 citations
TL;DR

This paper proposes Self-Ensemble Adversarial Training (SEAT), a method that improves adversarial robustness by averaging weights from multiple history models during adversarial training, achieving state-of-the-art robustness on CIFAR-10 and CIFAR-100 with only a single training run and the standard cross-entropy loss.

ABSTRACT

Due to numerous breakthroughs in real-world applications brought by machine intelligence, deep neural networks (DNNs) are widely employed in critical applications. However, predictions of DNNs are easily manipulated with imperceptible adversarial perturbations, which impedes the further deployment of DNNs and may result in profound security and privacy implications. By incorporating adversarial samples into the training data pool, adversarial training is the strongest principled strategy against various adversarial attacks among all sorts of defense methods. Recent works mainly focus on developing new loss functions or regularizers, attempting to find the unique optimal point in the weight space. But none of them taps the potentials of classifiers obtained from standard adversarial training, especially states on the searching trajectory of training. In this work, we are dedicated to the weight states of models through the training process and devise a simple but powerful \emph{Self-Ensemble Adversarial Training} (SEAT) method for yielding a robust classifier by averaging weights of history models. This considerably improves the robustness of the target model against several well known adversarial attacks, even merely utilizing the naive cross-entropy loss to supervise. We also discuss the relationship between the ensemble of predictions from different adversarially trained models and the prediction of weight-ensembled models, as well as provide theoretical and empirical evidence that the proposed self-ensemble method provides a smoother loss landscape and better robustness than both individual models and the ensemble of predictions from different classifiers. We further analyze a subtle but fatal issue in the general settings for the self-ensemble model, which causes the deterioration of the weight-ensembled method in the late phases.

Motivation & Objective

  • Address the limitation of standard adversarial training, which focuses on finding a single optimal weight point without leveraging intermediate training states.
  • Overcome the high computational cost and redundancy of traditional ensemble methods that require training multiple separate models.
  • Explore whether model weight ensembling along the optimization trajectory can yield better robustness than prediction-based ensembling or individual models.
  • Identify and resolve a subtle but critical issue in learning rate scheduling that causes performance degradation in late-phase self-ensemble models.
  • Demonstrate that weight ensembling leads to a smoother loss landscape and improved robustness across multiple attack types.

Proposed method

  • Propose SEAT, a self-ensemble method that averages model weights from multiple snapshots collected during the standard adversarial training process.
  • Use exponential moving average (EMA) to combine historical model weights, with a configurable initial safeguard period to exclude poorly trained early models.
  • Introduce an epoch-based or iteration-based ensembling strategy to control the frequency of model snapshot collection.
  • The method requires only one end-to-end adversarial training run, avoiding the need for retraining multiple models.
  • Theoretical analysis shows that weight ensembling leads to a smoother loss landscape compared to individual models or prediction-based ensembles.
  • Investigate the impact of learning rate scheduling on self-ensemble performance and identify a critical flaw in standard strategies that causes late-phase degradation.

Experimental results

Research questions

  • RQ1Can leveraging intermediate model states during adversarial training improve robustness more effectively than relying on final model weights?
  • RQ2How does weight-based ensembling compare to prediction-based ensembling in terms of robustness and generalization?
  • RQ3What is the impact of the learning rate schedule on the performance of self-ensemble models, and is there an intrinsic flaw in standard settings?
  • RQ4Can a single adversarial training run with weight ensembling achieve robustness comparable to or better than multiple independently trained models?
  • RQ5Does the proposed SEAT method lead to a smoother loss landscape, and how does this relate to improved robustness?

Key findings

  • SEAT achieves 57.77% robust accuracy against AutoAttack on CIFAR-10 with ResNet18 using only the standard cross-entropy loss, outperforming individual models and prediction-based ensembles.
  • The combination of SEAT with MART and CutMix achieves the best or second-best robustness across all attacks on CIFAR-10, with 58.01% robust accuracy under AutoAttack.
  • Iteration-based ensembling slightly outperforms epoch-based ensembling in terms of natural accuracy and robustness degradation rate, though both are nearly equivalent in performance.
  • A large initial safeguard (c) leads to worse robustness due to discarding too many early training states, confirming the importance of preserving a sufficient number of historical models.
  • Theoretical and empirical analysis confirms that SEAT results in a smoother loss landscape compared to individual models and prediction-based ensembles, contributing to improved robustness.
  • A subtle but critical issue in learning rate scheduling is identified: standard strategies cause performance deterioration in late-phase self-ensemble models, which can be mitigated by proper data augmentation or retraining strategies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.