Skip to content

Overfitting in adversarially robust deep learningOverfitting in adversarially robust deep learning

arXiv· arXiv:2002.11569· Leslie Rice, Eric Wong, J. Zico KolterComputer Science Department, Carnegie Mellon University; Machine Learning Department, Carnegie Mellon UniversityIndexed by this site · 25 days ago· Originally publishedSelected DefensesSelectedAttention39

Quick read

Analysis and theory

Based on the paper PDF (AI-generated); refer to the original

The authors state that adversarial training exhibits "robust overfitting": on CIFAR-10, early-stopped PGD adversarial training can reach 43.2% robust test error, comparable to the 43.4% reported by TRADES.

Questions
In standard deep training, overfitting usually does not harm generalization; the authors investigate whether the same holds for adversarial training, and how overfitting affects robust test performance.
Methods
On SVHN, CIFAR-10, CIFAR-100, ImageNet, perform l∞ and l2 adversarial training with PGD/FGSM/TRADES, analyze learning curves, learning rate schedules, model width, and compare early stopping with l1/l2 regularization, cutout, mixup, semi-supervised augmentation.
Experiments and results
The authors report that robust overfitting occurs on all datasets and threat models; early-stopped PGD training reaches 43.2% robust error on CIFAR-10, comparable to the 43.4% reported by TRADES; regularization or augmentation methods alone do not exceed early stopping, and semi-supervised augmentation combined with early stopping reaches 40.2%.
Limitations and future work
The authors point out that robust overfitting has not yet been explained by classical statistics or modern deep learning theory; the test error of semi-supervised augmentation still fluctuates by close to 10% after convergence; the experiments are limited to four image datasets, l∞/l2 threat models and ResNet-family architectures.
Experimental setuppre-activation ResNet18、Wide ResNet et al. · SVHN、CIFAR-10 et al. · robust test error、standard test error
Evaluated models
pre-activation ResNet18Wide ResNetResNet50
Benchmarks
SVHNCIFAR-10CIFAR-100ImageNet
Metrics
robust test errorstandard test error
AI summaryand selection rationaleThe paper systematically measures robust overfitting in adversarial training and finds that the longer the training, the higher the robust test error becomes instead. When performing adversarial training on CIFAR-10 with 10-step PGD (ℓ∞, radius 8/255), the model at one point reached 43.2% robust test error after the first learning rate decay, and rose to 51.4% at the end of training; the same phenomenon also appeared on SVHN, CIFAR-100, ImageNet, and under ℓ2 perturbations, with ℓ∞ robust error on ImageNet rising by 22.8% on average. Based on this, the authors point out that early stopping alone can enable original PGD adversarial training to match the robust performance of new algorithms such as TRADES. ℓ1/ℓ2 regularization, cutout, and mixup used individually are all inferior to early stopping, and semi-supervised data augmentation combined with early stopping is the only combination that reduces the error to 40.2%. The code and pretrained weights have been open-sourced on GitHub.

The paper systematically measures robust overfitting in adversarial training and finds that the longer the training, the higher the robust test error becomes instead. When performing adversarial training on CIFAR-10 with 10-step PGD (ℓ∞, radius 8/255), the model at one point reached 43.2% robust test error after the first learning rate decay, and rose to 51.4% at the end of training; the same phenomenon also appeared on SVHN, CIFAR-100, ImageNet, and under ℓ2 perturbations, with ℓ∞ robust error on ImageNet rising by 22.8% on average. Based on this, the authors point out that early stopping alone can enable original PGD adversarial training to match the robust performance of new algorithms such as TRADES. ℓ1/ℓ2 regularization, cutout, and mixup used individually are all inferior to early stopping, and semi-supervised data augmentation combined with early stopping is the only combination that reduces the error to 40.2%. The code and pretrained weights have been open-sourced on GitHub.

Why it was selectedThe paper quantified robust overfitting in adversarial training on multiple datasets and pointed out that early stopping alone can match the robust performance gains brought by most new algorithms.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors study overfitting in adversarial training: whether it harms robust generalization, and whether existing improvements can be reproduced by early stopping.

    Core question: whether overfitting exists in adversarial training, how it affects robust test performance, and how to address it.

    • Problem setting: in standard deep learning, training to zero training error usually does not harm generalization, so the convention is to train overparameterized networks for as long as possible; the authors examine whether this convention holds in the robust optimization setting.
    • Core observation: the authors report that adversarial training exhibits "robust overfitting"—in late training the robust training loss continues to decrease while the robust test loss increases; Figure 1 shows that on CIFAR-10 the model reaches 43.2% robust error shortly after the first learning rate decay, and rises to 51.4% at the end of training (10-step PGD attack, l∞ radius 8/255).
    • Implications for existing work: the authors state that the robust performance achieved by recent algorithmic improvements to PGD-based adversarial training (such as TRADES) can be matched by vanilla PGD adversarial training with simple early stopping.
    • Paper content: the phenomenon is verified on SVHN, CIFAR-10, CIFAR-100, ImageNet and the l∞ and l2 threat models; the relationship between learning rate schedules and double descent is analyzed; anti-overfitting methods such as l1/l2 regularization, cutout, mixup, and semi-supervised learning are compared with early stopping.
  2. What related research exists?

    Related work covers adversarial training and its improvements, broken defenses, certified robustness, and studies on overfitting and regularization.

    Adversarial training and its algorithmic improvements

    • Goodfellow et al. (2014) proposed FGSM single-step adversarial training; Kurakin et al. (2016) extended it to the multi-step basic iterative method; Madry et al. (2017) proposed PGD adversarial training with random restarts, which the authors call one of the strongest empirical defenses.
    • Subsequent improvements include momentum attacks (Dong et al., 2018), matrix estimation (Yang et al., 2019), logit pairing (Mosbach et al., 2018), and feature denoising (Xie et al., 2019); Zhang et al. (2019c)'s TRADES balances standard error and robust error, and the paper states that it achieves state-of-the-art.
    • Efficiency direction: Shafahi et al. (2019), Zhang et al. (2019a), and Wong et al. (2020) reduce the computational cost of adversarial training; other work extends to image transformations, other distance metrics, and multiple threat models.

    Other adversarial defenses and certified robustness

    • Distillation (Papernot et al., 2016) and adversarial example detection (Metzen et al., 2017, etc.) were broken by stronger attacks; Athalye et al. (2018) state that multiple defenses rely on obfuscated gradients, including thermometer encoding and preprocessing methods.
    • Certification directions include SMT solvers, mixed-integer programming, SDP relaxations, duality and linear programming, randomized smoothing, abstract interpretation, interval bound propagation, etc.

    Research on overfitting, regularization, and generalization

    • Regularization and early stopping have been studied in classical statistics (Friedman et al., 2001; Strand, 1974), and the connection between the two in settings such as kernel boosting and least-squares regression has been established; Morgan & Bourlard (1990) early on studied early stopping as implicit regularization.
    • Zhang et al. (2016) pointed out that the classical bias-variance tradeoff cannot explain deep network generalization; Belkin et al. (2019) and Nakkiran et al. (2019) proposed double descent; Schmidt et al. (2018) and Yin et al. (2018) study robust generalization from the perspective of data complexity and Rademacher complexity.
    • Empirical overfitting prevention methods in deep learning: Dropout (Srivastava et al., 2014), cutout (DeVries & Taylor, 2017), mixup (Zhang et al., 2017), semi-supervised learning (Carmon et al., 2019; Zhai et al., 2019; Alayrac et al., 2019).

    Comparison baselines and benchmarks: The authors reproduce and compare TRADES (Zhang et al., 2019c, reporting 43.4% robust error) and FGSM adversarial training (Wong et al., 2020), with benchmarks on CIFAR-10, SVHN, CIFAR-100, and ImageNet.

    Authors' positioning: This paper does not propose a new defense algorithm, but rather points out the overlooked phenomenon of robust overfitting, and states that simple early stopping can restore original PGD adversarial training to a level comparable to the latest methods.

  3. How does the paper address this problem?

    By systematically measuring learning curves on multiple datasets and multiple threat models, diagnose robust overfitting and compare early stopping with various regularization methods.

    Overall approach: formalize adversarial training as a robust optimization problem, record the robust/standard error curves over the entire training process on multiple datasets and threat models, identify "robust overfitting", then examine the effects of early stopping, learning rate schedules, architecture size and various regularization methods on it.

    Problem setting and formalization

    • Adversarial training solves the robust optimization problem minθ ∑i maxδ ∈ Δ ℓ(fθ(xi+δ), yi), where the perturbation set is taken as an lp norm ball (this paper uses l∞ and l2).
    • The inner maximization is approximated with PGD: starting from a random initial perturbation, take projected gradient steps; the update for the l∞ attack is a sign gradient step followed by clipping to within radius ε.
    • Metric definitions: the error rate under PGD attack is called "robust error", and the error rate on clean data is called "standard error"; "best" is the lowest test error over the entire training process, and "final" is the average over the last 5 epochs.

    Phenomenon diagnosis: learning rate schedules and early stopping

    • Learning rate schedule comparison: piecewise decay (starting at 0.1, divided by 10 at epochs 100 and 150, 200 epochs total), multiple decay, linear decay, cyclic (peak 0.2), cosine; full definitions in Appendix B.1.
    • Early stopping experiments: use the best checkpoint on the test set to measure the upper bound; additionally use 1,000 samples held out from the CIFAR-10 training set as a validation set to test early stopping without touching the test set (pre-activation ResNet18).
    • Check on TRADES: train its public implementation to convergence following the schedule of Madry et al. (2017), and compare the best checkpoint with the final model.

    Architecture size and double descent

    • Train Wide ResNets with depth 28 and different width factors (width factors 1–20), using width to control model complexity, to test whether increasing architecture size alleviates robust overfitting, and whether double descent still occurs in the robust setting.

    Comparison of anti-overfitting methods

    • Explicit regularization: l1 and l2 regularization (weight decay), applied only to the weights of the affine transformations of each layer; l1 sweeps λ ∈ {5·10⁻⁶,…,5·10⁻³}, l2 sweeps λ ∈ {5·10⁻⁴,…,5} and 0.01.
    • Data augmentation: cutout (patch length 2–20), mixup (α 0.2–2.0), semi-supervised learning (the approach of Carmon et al., 2019, using a standard classifier to assign pseudo-labels to unlabeled data, with each batch half CIFAR-10 and half pseudo-labeled TinyImages, 500K pseudo-labeled samples in total).
    • Default setting: CIFAR-10, l∞ radius 8/255, 10-step PGD (step size 2/255), pre-activation ResNet18; training details in Appendix D.1.
  4. What experiments did the paper conduct?

    Robust overfitting occurs on all four datasets; early stopping makes PGD training catch up with TRADES, and none of the other regularization methods used alone surpasses early stopping.

    Experimental Setup

    • Architectures tested: pre-activation ResNet18 (default), Wide ResNet depth 28 width factor 10 (CIFAR-10 l∞, aligned with TRADES), ResNet50 (ImageNet); Wide ResNets with width factors 1–20 are also used for architecture experiments.
    • Datasets: SVHN, CIFAR-10, CIFAR-100, ImageNet; the paper does not give the sample size of each dataset in the main text.
    • Threat models: l∞ radius 8/255 (4/255 for ImageNet), l2 radius 128/255 (76/255 for ImageNet); PGD attack 10 steps, step size 2/255 (15/255 for l2; ImageNet l∞ is 5 steps, step size 0.9/255).
    • Training algorithms: PGD adversarial training (Madry et al., 2017), FGSM adversarial training (Wong et al., 2020), TRADES (Zhang et al., 2019c, public implementation).
    • Metrics: robust test error and standard test error; final is the mean over the last 5 epochs (with standard deviation), best is the lowest value over the whole training run.
    • Training configuration: CIFAR-10/100 use SGD, batch 128, initial learning rate 0.1, decay at epoch 100/150, weight decay 5·10⁻⁴; SVHN initial learning rate 0.01; ImageNet continues training from a pretrained checkpoint with learning rate 0.001.

    Main Results

    Magnitude of robust overfitting across datasets and threat models (from Table 1 and Appendix Table 3, PGD adversarial training):

    Swipe horizontally to read the table

    DatasetNorm/radiusfinal (%)best (%)Difference
    SVHNl∞ 8/25545.6 ± 0.4039.06.6
    SVHNl2 128/25526.4 ± 0.2725.21.2
    CIFAR-10l∞ 8/25551.4 ± 0.4143.28.2
    CIFAR-10l2 128/25531.1 ± 0.4628.42.7
    CIFAR-100l∞ 8/25578.6 ± 0.3971.96.7
    CIFAR-100l2 128/25562.5 ± 0.0956.85.7
    ImageNetl∞ 4/25585.5 ± 8.8762.722.8
    ImageNetl2 76/25594.8 ± 1.1663.031.8
    • The authors state that robust overfitting is a general property of the adversarial training formulation, not limited to a particular dataset or threat model; on SVHN it appears even before the first learning rate decay (Figure 9, 10).
    • The phenomenon also appears in FGSM adversarial training and TRADES (Table 3: FGSM l∞ final 59.8% vs best 53.7%; TRADES l∞ final 50.6% vs best 45.0%).

    Early Stopping and SOTA Comparison

    • TRADES reproduction: the authors train TRADES to convergence with the public implementation, and robust test error rises from 44.1% at the best checkpoint to 50.6% (Figure 3); the best result reported by Zhang et al. (2019c) is 43.4%.
    • Early-stopped PGD matches TRADES: under the same Wide ResNet architecture and 20-step PGD evaluation, early-stopped vanilla PGD adversarial training reaches 42.3% robust test error, which the authors state is slightly better than the reported TRADES value; footnote 5 notes that the authors' PGD implementation is stronger, giving errors of 45.0% and 43.2% for the TRADES model and the PGD model respectively.
    • ImageNet pretrained model: continuing to train the model released by Engstrom et al. (2019), l∞ robust error rises from 62.7% to 85.5%, and l2 from 63.0% to 94.8%.

    Validation-Set Early Stopping and Learning Rate Schedules

    • Validation-set early stopping: holding out 1,000 CIFAR-10 training samples for validation, early stopping reaches 46.9% robust test error, with the best checkpoint at 46.7% (Figure 4, pre-activation ResNet18); the authors state that the validation curve closely tracks the test curve.
    • Learning rate schedules: Figure 2 shows that several smoother schedules still exhibit robust overfitting, and their best checkpoints are all worse than the discrete piecewise decay; the authors state that peak performance comes from a single discrete jump. In the tuning experiment (Table 4), with a post-decay learning rate of 0.006 the best is 46.0%, which the authors state is only a 0.5% improvement over the default.

    Double Descent and Architecture Size

    • Coexistence of phenomena: Figure 5 shows that robust test error first rises and then falls with width factor (double descent), but at any width there is still a clear gap between best and final; the authors therefore conclude that double descent and robust overfitting are two independent phenomena.
    • Larger models still benefit: a Wide ResNet with width factor 20 has final 48.8% and best 41.8%, better than the 51.4%/43.2% of width factor 10 (Appendix C); the authors state that increasing architecture size is still beneficial for robust training.

    Comparison of Anti-Overfitting Methods

    From Table 2 (CIFAR-10, l∞ 8/255, pre-activation ResNet18, best hyperparameters for each method):

    Methodfinal (%)best (%)
    Validation-set early stopping46.946.7
    l1 regularization53.0 ± 0.3948.6
    l2 regularization55.2 ± 0.446.4
    cutout48.8 ± 0.7946.7
    mixup49.1 ± 1.3246.3
    Semi-supervised47.1 ± 4.3240.2
    • None exceeds early stopping when used alone: l2 regularization at the optimal λ gives final 55.2% (the main text writes λ = 5·10⁻³, the figure caption writes 5·10⁻², the two are inconsistent); cutout at the optimal patch length 14 gives final 48.8%; mixup at the optimal α = 1.4 gives final 49.1%.
    • Semi-supervised is the exception: its final mean of 47.1% is comparable to early stopping, but after training converges the robust test error fluctuates over a range of nearly 10% (Figure 8); the authors state that semi-supervised combined with early stopping is the only method that exceeds pure early stopping, reaching best 40.2%.

    Other Ablations and Analyses

    • FGSM adversarial training with a cyclic learning rate for 50 epochs avoids robust overfitting, reaching final 53.22%, close to the best 53.7% of piecewise decay for 200 epochs (Appendix A.4).
    • The authors distinguish robust overfitting from the "catastrophic overfitting" of Wong et al. (2020): the latter is overfitting to a weak attack and can be detected by a strong attack on the training set, whereas the former degrades test performance under the same attack and is not visible on the training set.
    • Among the four learning rate × architecture combinations for TRADES, only the default short schedule + ResNet18 shows no obvious degradation, which the authors attribute to the implicit early stopping of the short schedule and the smaller architecture (Appendix A.4).
    • When l1/l2 regularization is increased enough that overfitting does not occur, the model is over-regularized; the training and test curves are close but converge to worse robust error (Appendix D.3).
  5. What are some points that can be further explored?

    The authors state that robust overfitting has no theoretical explanation yet and call for the use of validation sets; the experiments are limited to four image datasets and ResNet architectures.

    Limitations and future directions noted by the authors

    • The phenomenon lacks a theoretical explanation (Conclusion): The authors state that robust overfitting reveals a key difference in generalization properties between standard training and robust training, a difference that can be fully explained by neither classical statistics nor modern deep learning theory.
    • Recommendations for the community (Conclusion): Given that robust overfitting is widespread, the authors call for using a validation set for model selection in adversarial training and for analyzing learning curves.
    • Instability of semi-supervised methods (Section 4.2 and Appendix E): After the training error of semi-supervised data augmentation converges, the robust test error still fluctuates by nearly 10%, and early stopping must be used to avoid this; the authors do not provide an explanation for the fluctuation.
    • Missing ImageNet training logs (Appendix A.3): The training duration and schedule of the pretrained l∞ ImageNet model are unclear (logs cannot be found), and the authors can only infer the starting point for continued training from the checkpoint.

    Scope of experiments

    • The architectures tested are pre-activation ResNet18, Wide ResNet (depth 28, width factor 1–20), and ResNet50, all in the ResNet family (Section 3, Appendices A, C).
    • The datasets are SVHN, CIFAR-10, CIFAR-100, and ImageNet; the threat models are l∞ and l2 norm balls (Table 1).
    • The training algorithms cover three adversarial training methods: PGD, FGSM, and TRADES (Table 3).
    • The overfitting prevention methods cover l1/l2 regularization, cutout, mixup, and semi-supervised learning, all compared on CIFAR-10, l∞ 8/255, pre-activation ResNet18 (Table 2).
    • The paper does not report the number of repetitions for each experiment (the standard deviation of the final error comes from the last 5 epochs rather than multiple independent training runs), nor does it report the variance of validation-set early-stopping selection.
  6. Summarize the main content of the paper

    The authors state that robust overfitting is prevalent in adversarial training, and that early stopping alone can make original PGD training catch up with improved methods such as TRADES.

    An empirical study of the generalization properties of adversarial training, whose core finding is "robust overfitting": unlike standard training, in later stages of adversarial training the robust training error continues to decrease while the robust test error rises.

    • The phenomenon is widespread: it appears on SVHN, CIFAR-10, CIFAR-100, ImageNet and under l∞ and l2 threat models; on CIFAR-10 l∞ the final and best differ by 8.2 percentage points, and on ImageNet l2 by 31.8 percentage points (Table 1, 3).
    • Early stopping matches algorithmic improvements: early-stopped original PGD adversarial training reaches 43.2% robust error on CIFAR-10 (42.3% under 20-step PGD evaluation), comparable to the 43.4% reported by TRADES; the authors' reproduction shows that training TRADES to convergence degrades from 44.1% to 50.6%.
    • Independent of double descent: increasing Wide ResNet width still exhibits double descent, and larger models are better in both best and final, but robust overfitting does not disappear at any width (Figure 5).
    • Comparison of regularization methods: l1/l2 regularization, cutout and mixup used alone all fail to exceed early stopping; semi-supervised augmentation combined with early stopping reaches 40.2%, the only combination in the authors' report that exceeds pure early stopping (Table 2).
    • Practical conclusion: early stopping with a held-out validation set of 1,000 samples reaches 46.9% (best 46.7%), and the authors call on the community to use a validation set for model selection in adversarial training.
    • The authors' view: robust overfitting is a key difference between standard training and robust training that existing theory does not explain, and it makes the simplest adversarial training baseline competitive again.
Read originalarxiv.org