Revealing the Limits of Adversarial Training Against Norm-Constrained Adversarial ExamplesUncovering the Limits of Adversarial Training against Norm-Bounded Adversarial Examples
DeepMind systematically studied the factors of adversarial training, combining TRADES, large models, Swish/SiLU, and weight averaging, achieving 65.88% robust accuracy on CIFAR-10 ℓ∞ 8/255 with additional data.
The defender trains an image classifier robust to norm-bounded adversarial perturbations: the threat models are ℓ∞ (ε=8/255 on CIFAR-10/100 and SVHN, ε=0.3 on MNIST) and ℓ2 (ε=128/255 on CIFAR-10) perturbations; evaluation uses the AutoAttack and MultiTargeted strong attack combination.
- Adversarial training is the mainstream method for training robust neural networks, but the authors state that progress over the past two years has been slow, and that there is a lack of systematic study of each component of adversarial training (loss, data, scale, techniques), so the upper limit of robustness is unclear.
- Train more than 150 robust models, systematically ablating the outer loss (AT/TRADES/MART), the inner attack loss and radius, the quality and ratio of unlabeled data, model depth and width, weight averaging and activation functions, then combine the effective factors into Wrn-70-16.
- The combined model reaches 65.88% (AA) with extra data and 57.20% without extra data under CIFAR-10 ℓ∞ 8/255; transferring the same setting to CIFAR-10 ℓ2 128/255 reaches 80.53%, and CIFAR-100 ℓ∞ 8/255 reaches 36.88%, which the authors state all exceed the previous best.
- The authors state that increasing the training radius for TRADES yields unstable gains, that 1M unlabeled data instead reduces robustness, and that label smoothing is harmful for unlabeled data; the experiments are limited to CIFAR-10/100, MNIST, SVHN and the WRN architecture, with no statistical significance tests.
- Evaluated models
- Wrn-70-16Wrn-34-20Wrn-28-10Wrn-28-15Wrn-28-20Wrn-34-10Wrn-34-15Wrn-40-10Wrn-40-15Wrn-40-20Wrn-46-10Wrn-46-15Wrn-46-20
- Benchmarks
- Cifar-10Cifar-100MnistSvhn80M-Ti(额外无标注数据)
- Metrics
- robust accuracy(AA+MT 与 AA 下)clean accuracy
DeepMind researchers systematically study the effects of training loss, model scale, activation functions, and the addition of unlabeled data via pseudo-labels on adversarial robustness, finding that combining larger models, Swish/SiLU activations, and model weight averaging can train robust models that substantially surpass previous best results. On CIFAR-10, when using additional unlabeled data, the model achieves 65.88% accuracy under attack for 8/255 ℓ∞ perturbations, 6.35% higher than the previous best; without additional data, it achieves 57.20% (+3.46%). Without additional modifications, the same method achieves 80.53% (+7.62%) on CIFAR-10 for 128/255 ℓ2 perturbations, and 36.88% (+8.46%) on CIFAR-100 for 8/255 ℓ∞ perturbations.
Paper analysis
What problem does this paper attempt to solve?
Systematically study the effect of each component of adversarial training on robustness, and find the upper limit of robustness that the current combination of methods can reach.
Core question: where is the robustness upper limit of adversarial training, and which combination of training factors can push it to the highest.
- Problem setting: neural networks are not robust to ℓ_p norm-bounded adversarial perturbations; adversarial training, represented by Madry et al. (2018), is the mainstream defense, but the authors state that progress over the past two years (2018–2020) has been slow (Figure 1).
- Existing shortcomings: the authors state that there was previously a lack of systematic study of adversarial training, that the various improvements (TRADES, MART, unlabeled data, early stopping) were proposed separately, and that their combined effect is unknown; the study of Rice et al. (2020) on robust overfitting shows that understanding of adversarial training is still insufficient.
- Core hypothesis: the accumulation of multiple small improvement factors (larger models, Swish/SiLU activation, model weight averaging WA, better ways of using unlabeled data) can surpass the state-of-the-art at the time.
- Paper output: train more than 150 robust models for systematic ablation, and provide a set of models evaluated with AutoAttack on CIFAR-10/100, MNIST, SVHN; the authors claim to have set robust accuracy records in multiple settings.
- Threat models:
- Attacker goal: add norm-bounded perturbations to the input to make the model misclassify.
- Perturbation sets: ℓ∞ (ε=8/255 on CIFAR-10/100 and SVHN, ε=0.3 on MNIST) and ℓ2 (ε=128/255 on CIFAR-10).
- Victim system: Wide ResNet image classifier; the evaluation attacks are the AutoAttack and MultiTargeted combination (white-box gradient attacks plus the black-box Square Attack).
What related research exists?
Along four lines—adversarial training and its variants, unlabeled data, robust evaluation, and concurrent work—the authors say no systematic study existed previously.
Adversarial training and its variants
- Madry et al. (2018): proposed the PGD-based saddle point adversarial training framework, which is the baseline method of this paper (AT).
- TRADES of Zhang et al. (2019) and MART of Wang et al. (2020): use KL regularization and a boosted loss, respectively, to balance clean and robust accuracy; the paper's experiments find that MART exhibits gradient masking under weak attacks, and that TRADES with early stopping outperforms classic AT.
- Rice et al. (2020): studied robust overfitting and stated that classic PGD adversarial training with early stopping can reach the level of TRADES/MART; the paper states that its experimental conclusions are the opposite (Table 1), and this work is also one of the motivations for the overall analysis in this paper.
Unlabeled data and data augmentation
- Carmon et al. (2019), Uesato et al. (2019), Najafi et al. (2019), Zhai et al. (2019): concurrently proposed using extra unlabeled data to improve robustness; this paper follows the pseudo-label mechanism and 80M-Ti data of Carmon et al.
- Hendrycks et al. (2019): used extra labeled ImageNet data to improve CIFAR-10 robustness.
Robust evaluation and other defenses
- AutoAttack (Croce & Hein, 2020) and MultiTargeted (Gowal et al., 2019b): the strong attack evaluation combination adopted in this paper; the paper notes that many defenses are broken by stronger attacks, and that robust accuracy under different evaluation protocols cannot be compared directly.
- Certified defenses (Cohen et al., 2019, etc.): the paper states that their guarantees do not yet match the empirical robustness of adversarial training, and they are outside the scope of this paper.
Concurrent work
- Pang et al. (2020a): also systematically organized adversarial training hyperparameters; its Wrn-34-20 combination reaches 54.39% (without extra data), while this paper reaches 56.86% with the same architecture.
- Wu et al. (2020) and Chen et al. (2021): proposed adversarial weight perturbation and independently found that WA improves robustness, respectively; the authors believe WA may already have a similar effect.
Baselines and benchmarks: the baselines are AT (Madry et al., 2018), TRADES, MART and the previous best models listed in Table 5; the benchmarks are Cifar-10, Cifar-100, Mnist, Svhn, with extra data from 80M-Ti. The authors position this paper as a systematic study of each component of adversarial training, and state that to their knowledge no such systematic study existed before.
How does the paper address this problem?
With a fixed training pipeline, factor-by-factor ablation was performed, and then the effective factors (TRADES, large models, Swish/SiLU, WA) were combined to train the final model.
Overall approach: under a unified adversarial training pipeline, conduct controlled ablation experiments on each factor that may affect robustness, then combine the effective factors into one large model and evaluate with strong attacks. The method has no separate name and can be summarized as "systematic ablation + factor combination".
Problem formulation
- Adopt the saddle point problem of Madry et al. (2018): argminθ 𝔼(x,y)∼ D maxδ ∈ 𝕊 l(f(x+δ;θ), y), where 𝕊 is the allowed perturbation set (ℓ∞ or ℓ2 ball).
- The inner maximization is approximated with Pgd10 (step size 2/255 for ℓ∞ and 15/255 for ℓ2); the outer minimization by default minimizes the cross-entropy loss on adversarial examples (AT), or uses the TRADES or MART loss instead.
Experimental setup (subsection 3.1)
- Architecture: Wide ResNet, baseline Wrn-28-10 (36M parameters), largest Wrn-70-16 (267M parameters).
- Training: SGD + Nesterov momentum, initial learning rate 0.1, multistep decay, weight decay 5×10⁻⁴; without extra data, batch 128 and 200 epochs; with extra data, batch 1024 (512 labeled + 512 unlabeled), 19.5K steps, pseudo-labels from the mechanism of Carmon et al. (2019).
- Evaluation protocol: train 2 models per hyperparameter set, use Pgd40 on 1024 validation samples for early stopping to select the checkpoint, then pick the one with higher validation robust accuracy and evaluate it on the full test set with the AA+MT combination (AutoPgd cross-entropy 5 restarts 100 steps, AutoPgd DLR loss 5 restarts 100 steps, MultiTargeted margin loss 10 restarts 200 steps).
Ablated factors
- Outer loss: AT, TRADES, MART (subsection 4.1).
- Inner maximization: attack loss (cross-entropy/KL/margin) and training perturbation radius (1.1×, 1.2× of 8/255) (subsection 4.2).
- Unlabeled data: quantity and quality (200K/500K/1M re-sampled vs. the 500K of Carmon et al.), ratio of labeled to unlabeled within a batch (subsection 4.3).
- Model size: depth 28–70, width 10–20 (subsection 4.4).
- Other techniques: model weight averaging (WA, exponential moving average of parameters, decay rate τ) and activation functions (ReLU, Swish/SiLU, Leaky ReLU, ELU, Softplus, GELU) (subsection 4.5).
Final combination (section 5)
- Combine TRADES, WA (τ=0.995, counted over 1024 samples), Wrn-70-16, Swish/SiLU; without extra data use a multistep learning rate and batch 512; with extra data use cosine decay (better than multistep for large models) and a 3:7 labeled-to-unlabeled ratio.
- To test generality, the same hyperparameter set is used directly for CIFAR-10 ℓ2 128/255 and CIFAR-100 ℓ∞ 8/255 without additional modification.
What experiments did the paper conduct?
After factor-by-factor ablation, the factors were combined into Wrn-70-16, which the authors say surpasses the previous best on four settings, by up to +8.46 percentage points.
Experimental Setup
- Models tested: self-trained Wide ResNet series (Wrn-28-10/15/20, Wrn-34-10/15/20, Wrn-40-10/15/20, Wrn-46-10/15/20, Wrn-70-16); comparisons are with previously published models (Carmon et al. 2019, Rice et al. 2020, Pang et al. 2020b, Engstrom et al. 2019, Augustin et al. 2020, Hendrycks et al. 2019, etc., Table 5).
- Datasets: Cifar-10, Cifar-100, Mnist, Svhn; the extra unlabeled data are 200K/500K/1M subsets drawn from 80M-Ti.
- Baselines: AT (Madry et al., 2018), TRADES (Zhang et al., 2019), MART (Wang et al., 2020), reproduced with the same pipeline.
- Metrics: clean accuracy and robust accuracy; robust accuracy mainly uses the AA+MT combination, and the final model additionally reports AutoAttack (AA) numbers.
- Review method: no LLM or human review; the attack is the review. For each hyperparameter set, 2 models were trained and the best on the validation set was taken; the baseline Wrn-28-10 was trained 10 times and the mean and standard deviation are reported (50.80±0.23% without extra data, 58.41±0.25% with extra data).
- Main threat model: CIFAR-10 ℓ∞ ε=8/255; generalization experiments use CIFAR-10 ℓ2 ε=128/255, CIFAR-100 ℓ∞ ε=8/255, MNIST ℓ∞ ε=0.3, SVHN ℓ∞ ε=8/255.
Main Results
According to Table 5 (the robust accuracy column is AA, i.e., AutoAttack; "–" means the paper did not report it):
Swipe horizontally to read the table
Setting Model Clean AA CIFAR-10 ℓ∞ 8/255 without extra data Pang et al. (2020b) (Wrn-34-20) 85.14% 53.74% Same as above Ours (Wrn-70-16) 85.29% 57.20% Same as above Ours (Wrn-34-20) 85.64% 56.86% CIFAR-10 ℓ∞ 8/255 with extra data Carmon et al. (2019) (Wrn-28-10) 89.69% 59.53% Same as above Ours (Wrn-70-16) 91.10% 65.88% CIFAR-10 ℓ2 128/255 with extra data Augustin et al. (2020) (ResNet-50) 91.08% 72.91% Same as above Ours (Wrn-70-16) 94.74% 80.53% CIFAR-100 ℓ∞ 8/255 with extra data Hendrycks et al. (2019) (ResNet-18) 59.23% 28.42% Same as above Ours (Wrn-70-16) 69.15% 36.88% - The authors say that on CIFAR-10 ℓ∞ 8/255 the improvement is +3.46% without extra data and +6.35% with extra data; at the same model size (Wrn-34-20) the improvements are +3.12% and +3.27%.
- The authors say the model without extra data surpasses four previous methods that use extra data, and with extra data it "for the first time" exceeds 60%.
- Generalization settings (same hyperparameters, unmodified): CIFAR-10 ℓ2 without extra data 74.50% (previous 69.24%), CIFAR-100 ℓ∞ without extra data 30.03% (previous 18.95%); on MNIST ℓ∞ 0.3, Ours (Wrn-28-10) is 96.34% (previous Zhang et al. 2020 was 93.96%).
External Loss Comparison (Table 1, Table 2)
- What was tested: AT, TRADES, MART and different combinations of internal attack losses.
- Results: TRADES has higher robust accuracy than AT under both data settings (without extra data 51.91% vs 50.80%, with extra data 59.45% vs 58.41%); MART is unstable (with extra data 58.25%, lower than AT).
- Authors' interpretation: contrary to what Rice et al. (2020) state, TRADES with early stopping outperforms classic AT; MART and margin internal losses produce gradient masking—a Wrn-70-16 + MART model has 71.08% accuracy against Pgd20, dropping to 60.63% against a strong attack combination; AT-MARGIN drops by up to -6.35% from Pgd40margin to AA+MT.
Unlabeled Data and Model Scale (Table 4, Figure 2, Figure 3, Table 14)
- Data quality and quantity: the re-drawn 500K is +0.71% higher than Carmon et al.'s 500K; 200K→500K improves by +1.83%, while 500K→1M instead drops by -0.23%, which the authors say reflects a quality-quantity trade-off.
- Labeled-unlabeled ratio: 3:7 is optimal, +0.95% higher than 1:1 (Carmon data) and +1.32% (1M data, Appendix A.3.1).
- Scale: both depth and width improve robustness; with similar training time, Wrn-46-15 is +0.96% higher than Wrn-28-20 (without extra data) and +0.66% (with extra data), and the authors say deeper models may be better at the same parameter count.
Other Ablations and Analyses
- WA (Table 15): at τ=0.9975, 52.31% without extra data (+1.41%); at τ=0.995, 59.14% with extra data (+0.73%); the authors say the improvement from WA under low data is comparable to TRADES (+1.11%).
- Activation function (Table 16): Swish/SiLU is best (51.40% without extra data, 59.54% with extra data); the authors say other "smooth" activations do not necessarily improve, differing from the observation of Xie et al. (2020a) on ImageNet.
- Training radius (Table 3, Table 9): AT trained with 9.6/255 rises to 51.81%; increasing the radius for TRADES gives unstable gains.
- Internal attack steps (Table 8): K from 4 to 8, 8 to 10, and 10 to 16 gives +2.59%, +0.75%, and +0.51% respectively (without extra data).
- Negative results: label smoothing is harmful with unlabeled data (Table 10); AutoAugment/RandAugment/AugMix reduce robust accuracy (Table 12); training longer leads to robust overfitting (Table 7, 400→800 epochs drops -1.43%).
- Loss landscape (Appendix D): Figures 9–11 show the adversarial loss landscapes of the best model and Carmon et al.'s model on 5 test images; the authors say most landscapes are smooth with no sign of gradient masking, and the black-box Square Attack found no misclassified samples other than those from AutoPgd and MultiTargeted.
What are some points that can be further explored?
The authors note that radius adjustment, the WA mechanism and others are not yet understood, and that the experiments are limited to four datasets and the WRN architecture, with no statistical tests.
Limitations and future directions noted by the authors
- The mechanism of the training radius is unclear (subsubsection 4.2.2): the authors state that understanding when and how to use a larger training perturbation radius may be key to understanding robust generalization, and that this direction is "largely under-explored".
- WA merits further study (subsubsection 4.5.1): the authors state that WA has not yet been explored in adversarial training, that they find it brings considerable improvement, and that they hope future work will investigate this phenomenon.
- The learning rate schedule may not be optimal (subsubsection A.1.1): the authors state that they do not rule out the possibility of a better schedule, and that the optimal schedule may depend on the architecture and attack method.
- Weight decay could be tuned more finely (subsubsection A.1.3): the authors state that finer-grained tuning might improve robustness (but to a limited extent).
- Fundamentally new techniques are needed (section 1): the authors state that the accumulation of small factors can surpass the existing best, but that fundamentally new techniques may be needed, and that understanding the limitations of current methods is therefore important.
- Combining with concurrent techniques (Appendix B): the authors state that combining the findings of this paper with the adversarial weight perturbation of Wu et al. (2020) may bring further improvement (but they believe WA may already have a similar effect).
Scope of experimental coverage
- The models tested are the Wide ResNet series (Wrn-28 to Wrn-70, width 10–20), and the final combined model is Wrn-70-16; the paper does not conduct controlled experiments on architectures other than WRN.
- The datasets are Cifar-10, Cifar-100, Mnist, Svhn; the extra unlabeled data come only from 80M-Ti.
- The threat models are ℓ∞ (8/255, 0.3) and ℓ2 (128/255) norm-bounded perturbations; the evaluation attacks are the AutoAttack and MultiTargeted combination.
- 2 models are trained per hyperparameter set; only the baseline Wrn-28-10 is trained 10 times and reports standard deviation, while the remaining results are single values, and the paper does not report statistical significance tests.
- The paper does not report the total training time of each ablated model (it gives only individual figures such as about 1.5 hours for Wrn-28-10 and about 4 hours for Wrn-70-16 to reach peak).
Summarize the main content of the paper
The system ablates each factor of adversarial training and combines the effective items; the authors claim a record robust accuracy on multiple benchmarks.
DeepMind conducted a systematic study of adversarial training, with the goal of finding the upper limit of robustness achievable by current methods.
- Problem: adversarial training is the mainstream robust training method, but the authors say progress from 2018 to 2020 was slow and there had been no systematic study of its components.
- Method: trained more than 150 models, with controlled ablations of the external loss (AT/TRADES/MART), the internal attack loss and radius, unlabeled data quality and ratio, model scale, weight averaging (WA) and activation functions, then combined the effective factors into Wrn-70-16.
- Key findings: TRADES with early stopping outperforms classic AT (contrary to what Rice et al. 2020 state); MART and margin internal losses produce gradient masking; WA gives gains comparable to TRADES; Swish/SiLU is best; unlabeled data has a quality-quantity trade-off (1M is instead worse).
- Main results (Table 5, AA evaluation): on CIFAR-10 ℓ∞ 8/255, 65.88% with extra data (+6.35%) and 57.20% without extra data (+3.46%); transferred with the same hyperparameters unmodified, it reaches 80.53% on CIFAR-10 ℓ2 128/255 and 36.88% on CIFAR-100 ℓ∞ 8/255, which the authors say both surpass the previous best.
- Authors' conclusion: the cumulative combination of small factors can surpass state-of-the-art, but fundamentally new techniques may still be necessary; the authors hope this set of models becomes a reference baseline for adversarial robustness research.
Related papers
- Stratified Adversarial Robustness with RejectionDefensesarXiv
- Training verified learners with learned verifiersDefensesarXiv