Delayed robustness is not grokkingDelayed Robustness Is Not Grokking
The authors reproduce and re-examine delayed robustness, arguing that it stems from weak attacks and side effects of overtraining rather than grokking.
- Humayun et al. interpret the PGD robustness that appears after overtraining as grokking. The authors aim to test whether this is genuine adversarial robustness and whether it can be explained by numerical problems in the attack and in training.
- The authors reproduce experiments on an MNIST MLP and a CIFAR10 ResNet18, strengthen attacks with AA+ and ScaledPGD, and separately intervene on Adam gradient scaling and softmax collapse, while tracking local complexity and dead neurons.
- The authors report that under default Adam, the MSE MLP exhibits PGD delayed robustness, whereas it does not appear after increasing δ or switching to AMSGrad; it also did not appear in the 64-bit MNIST CE experiment. Delayed robustness to PGD still exists for CIFAR10 ResNet18, but under AA+ or ScaledPGD almost no adversarial accuracy remains.
- The authors propose that the residual robustness in MNIST after stronger attacks may still be overestimated, and that formal network verification could be considered in the future; the relationship between slingshot and dead neurons also remains to be tested. The experiments use MNIST, CIFAR10, and MLP and ResNet18; the paper does not report statistical significance tests.
The authors reproduce and analyze the delayed robustness phenomenon first observed by Humayun et al. (2024), in which neural networks become robust to adversarial attacks when training continues after overfitting; this phenomenon was previously attributed to grokking, and this paper concludes that it is not grokking but a product of weak attacks and side effects of overtraining. The authors reproduce delayed robustness to PGD attacks under multiple settings and identify two side effects of overtraining: softmax collapse in the cross-entropy loss, and an excessively large effective learning rate caused by gradient scaling in the Adam optimizer. These issues let the network resist PGD attacks while remaining vulnerable to stronger attacks. The authors also point out associations between delayed robustness and the slingshot effect and dead neurons. After interventions eliminate softmax collapse and gradient scaling, delayed robustness no longer appears.
Related events and news
1 events · 0 news mentions
- This event's paper
研究:延迟鲁棒性源于弱攻击与训练副作用
Paper analysis
What problem does this paper attempt to solve?
Test whether PGD robustness after overtraining is really grokking, or weak attacks and training side effects.
The core question is: is the PGD adversarial robustness that suddenly appears after overtraining grokking, or an appearance caused by attack evaluation and numerical training problems?
- Phenomenon and importance: Humayun et al. (2024) report that ReLU networks gradually acquire adversarial robustness after overfitting, and call this grokking of adversarial examples. The authors aim to further test this hypothesis, because it bears on how overtraining is understood and how robustness is evaluated.
- Doubts about the existing explanation: Humayun et al. attribute the phenomenon to the formation of more robust partitions in input space, and support this explanation with decreasing local complexity near training points and region migration. After attacking with AutoAttack+ (AA+), which is stronger than PGD, the authors report much lower adversarial accuracy of the networks (Figure 1).
- Core alternative hypothesis: The authors believe that PGD relies on the gradient of the loss with respect to the input, and that overtraining may make this gradient uninformative for the attack; specifically, this involves Adam gradient scaling causing an excessively large effective learning rate, and numerical precision errors in softmax cross-entropy.
- Proposed tests and tools: The authors intervene on the two problems using a larger δ, AMSGrad, and 64-bit precision respectively, and propose ScaledSCE and the corresponding ScaledPGD, which rescales logits before attacking when softmax collapse makes ordinary PGD ineffective.
- Analysis targets: The experiments track training and test accuracy, training loss, adversarial accuracy, local complexity, dead neurons, and softmax collapse, and discuss the relationship of these phenomena to the slingshot effect.
What related research exists?
Related work falls into four groups: grokking, adversarial robustness evaluation, optimization and numerical stability, and slingshot.
Grokking and overtraining
- Power et al. (2022): describes grokking, i.e., overparameterized networks only begin to generalize well after overfitting; Liu et al. (2022) study the importance of weight decay, and Lee et al. (2024) propose an optimization method that accelerates grokking.
- Humayun et al. (2024): report delayed robustness after overtraining in ReLU networks, and explain the formation of robust input partitions using local complexity and region migration. This paper directly reproduces and reinterprets their MNIST and ResNet experiments.
- Nanda et al. (2023): study progress measures for grokking; the paper cites their appendix view that the slingshot may act as an implicit regularization mechanism favoring simpler generalizing solutions.
Adversarial attacks and robustness metrics
- Madry et al. (2018): propose the PGD attack framework used in this paper; the authors follow Humayun et al.'s PGD code to reproduce delayed robustness.
- Croce & Hein (2020): AA+ is the parameter-free stronger attack adopted in this paper; the authors use it to check whether PGD overestimates robustness, rather than proposing a new general attack benchmark.
- Carlini & Wagner (2017): describe the vanishing gradient phenomenon related to underflow softmax collapse; Dalvi et al. (2004) is used as an early example of adversarial classification research.
Optimizers and numerical stability
- Kingma (2014) and Reddi et al. (2018): the former proposes Adam, the latter discusses its non-convergence problem and proposes AMSGrad. This paper limits excessive amplification of small gradients by increasing δ or using AMSGrad.
- Prieto et al. (2025): propose the term softmax collapse, discuss naive loss minimization, absorption collapse, and grokking at the edge of numerical stability; this paper builds on this to distinguish the two kinds of collapse and design ScaledSCE.
- Zhang et al. (2019): the paper cites their conclusion that skip connections make ResNet output variance grow exponentially with depth, used to explain why increasing precision only delays rather than eliminates collapse in ResNet.
Slingshot and network structure
- Thilak et al. (2022): describe the slingshot mechanism as non-monotonic behavior and sudden spikes in training loss in adaptive optimizers; the authors use this to discuss loss instability, dead neurons, and possible regularization.
- He et al. (2016): ResNet18 is the CIFAR10 validation architecture; the experiments do not use batch normalization, and the width-parameter is 16 (Appendix A.1).
Experimental comparisons: attack comparisons are PGD, AA+, and this paper's ScaledPGD; training intervention comparisons are Adam, AMSGrad, SGD, 32/64-bit precision, and ScaledSCE, on MNIST and CIFAR10. The authors position this paper as a re-examination of Humayun et al.'s explanation: under stronger attacks and stabilizing training interventions, delayed robustness disappears or is delayed.
How does the paper address this problem?
Re-check robustness with stronger attacks, then separately intervene on Adam scaling and softmax numerical collapse.
The overall approach is to first reproduce delayed robustness, then use AA+ and ScaledPGD to check whether it withstands stronger attacks, and use optimizer, precision, and loss-scaling interventions to locate the cause.
Robustness definition and reproduction framework
- For a sample x, true label y, and perturbation radius ϵ, robustness is defined as all x' satisfying a distance no greater than ϵ being correctly classified; the evaluation metric is the proportion of samples still correctly classified after attack, i.e., adversarial accuracy.
- The reproduction in Figure 1 uses 1000 random MNIST samples to train an MLP, with MSE and softmax CE respectively, attacking the full test set; ϵ is 0.06 for both l∞-PGD and AA+.
- In the paper, training always refers to standard training, not adversarial training; the main analysis examines accuracy, loss, and attack performance in late training.
Adam gradient scaling intervention
- Adam scales updates by the second-moment running average of gradients vt; when gradients remain very small for a long time, the authors argue that a smaller vt amplifies the effective learning rate, which may cause non-convergence.
- The default δ = 10^-8 only provides an upper bound for the scaling factor; one intervention is to increase δ to 10^-4, and another is to use AMSGrad, replacing the current vt with the historical maximum in computing updates.
- The main MSE experiment uses a four-layer MLP with identical initialization, trained on the same MNIST subset for 10^7 optimizer iterations, comparing default Adam, Adam with larger δ, and AMSGrad with default δ.
Softmax collapse and ScaledPGD
- The authors distinguish two kinds of collapse: underflow and absorption; the former is when exponential terms exceed the floating-point representation range and become 0, the latter is when a small floating-point number is absorbed after being added to a large one; both involve the logsumexp term.
- Increasing computational precision is a temporary treatment for both cases; underflow also requires increasing backpropagation precision. The authors note that finite precision cannot permanently eliminate the problem, because under CE the logits keep growing through naive loss minimization.
- Another approach is ScaledSCE: ℓScaledSCE(z)=ℓSCE(s(z)z), where the scaling factor limits the maximum logit difference to smax = 20; it serves as a drop-in replacement for CE when attacking.
- ScaledPGD is running PGD with this loss, used for samples that ordinary PGD cannot effectively attack due to softmax collapse; the authors use it only for attacking, not for training in the main experiments.
Training configuration and mechanism observations
- The MNIST MLP is four-layer ReLU with width 200 and batch size 200; the CE experiment trains for 1 000 000 iterations, compares 32-bit and 64-bit, and records ScaledPGD adversarial accuracy.
- CIFAR10 ResNet18 is trained on the full 50 000 samples for 1 000 000 iterations, without batch normalization; MSE compares Adam/AMSGrad with PGD/AA+, CE compares 32/64-bit with PGD/ScaledPGD, and the attack ϵ = 0.06.
- The default learning rate is 0.001; PGD step size is 0.0156 with 10 steps, constrained to the [0, 1] input domain. AA+ is set with norm='Linf' and version='plus' (Appendix A.1).
- local complexity follows the code of Humayun et al.; a ReLU neuron is recorded as dead if its post-activation is 0 over the entire training set. Models are saved for analysis at base-10 logarithmic intervals, and routine experiments use torch seed 42 where possible.
What experiments did the paper conduct?
The experiments cover MLP and ResNet18; stronger attacks and stabilizing training interventions changed the delayed robustness under PGD.
Experimental setup
- Models and data: On MNIST, a four-layer ReLU MLP with width 200; the main experiments use a fixed subset of 1000 samples. On CIFAR10, a ResNet18 without batch normalization, using the full 50 000 samples.
- Training conditions: The loss is MSE or softmax CE; optimizers include Adam and AMSGrad, with SGD additionally tested in the appendix. The MSE MLP is trained for 10^7 iterations, and the CE MLP and ResNet18 for 1 000 000 iterations.
- Attacks and metrics: The main l∞ perturbation setting for PGD, AA+, and ScaledPGD is ϵ = 0.06; the metric is adversarial accuracy, and train/test accuracy, train loss, local complexity, dead neurons, and collapse proportion are also tracked.
- Attack parameters: PGD uses 10 steps with step size 0.0156; the original Humayun et al. setting was 100 steps, and the authors state that this difference has little effect on delayed robustness (Appendix A.1).
- Repeated experiments: The CE MLP is repeated 10 times with different sampling and model seeds (Figures 16–17); MSE is repeated with 5 model seeds and 5 data-subsample seeds respectively (Figures 18–19).
- Evaluation method: Attacks compute adversarial accuracy on the test set; the paper does not use LLM review or human judgment, nor does it report statistical significance tests.
Main results
The paper reports results mainly through training curves; the text conversion does not provide reliably readable curve endpoints, so the table below lists only the conditions directly verifiable in the figures and the authors' textual conclusions, without supplying numerical values.
Swipe horizontally to read the table
Network and data Training/intervention Attack and conditions Results reported by the authors Source MLP, MNIST, MSE Adam, δ = 10^-8 PGD, ϵ = 0.06 Delayed robustness appears, accompanied by accuracy degradation and loss instability Figure 2 MLP, MNIST, MSE Adam, δ = 10^-4 PGD, ϵ = 0.06 Loss is more stable; delayed robustness does not appear Figure 2 MLP, MNIST, MSE AMSGrad, δ = 10^-8 PGD, ϵ = 0.06 Loss is stable; delayed robustness does not appear Figure 2 MLP, MNIST, CE 32-bit PGD and ScaledPGD, ϵ = 0.06 Delayed robustness appears under PGD; ScaledPGD yields much lower adversarial accuracy Figure 5 MLP, MNIST, CE 64-bit PGD and ScaledPGD, ϵ = 0.06 Delayed robustness is entirely absent; all metrics are stable Figure 5 ResNet18, CIFAR10, CE 32-bit and 64-bit PGD and ScaledPGD, ϵ = 0.06 PGD delayed robustness occurs at both precisions; 64-bit only postpones it; ScaledPGD leaves almost no adversarial accuracy Figure 7 - MSE interpretation: The authors believe that default Adam's gradient scaling makes the effective learning rate too large, causing loss instability, dead neurons, and degraded performance; AMSGrad simultaneously stabilizes the loss, local complexity, and the number of dead neurons.
- CE interpretation: In the 32-bit MLP, loss instability co-occurs with more softmax collapse; in the 64-bit network only continually increasing absorption collapse remains, and the authors accordingly consider numerical errors to be the cause of the subsequent effects.
- ResNet exception: Increasing precision did not eliminate PGD delayed robustness as it did in the MNIST CE MLP, but only postponed it; the authors explain this as skip connections causing output variance to grow exponentially with depth, so that logits still reach the limits of both precisions within a million updates.
Stronger attacks and perturbation strength
- Figure 1 re-check: The two MNIST MLPs exhibit delayed robustness under PGD, but the authors report much lower adversarial accuracy under AA+; Figure 9 compares iterations 10^3, 10^5, and 5·10^5, and the main text states that remaining adversarial accuracy decreases as ϵ increases.
- ScaledPGD check: Figure 10 compares PGD and ScaledPGD on the CE MLP at ϵ = 0.03, 0.06, 0.1, 0.13, 0.16, 0.2; the converted text does not contain the values of the individual bars, so endpoints are not listed.
- ResNet results: For the MSE ResNet18, PGD adversarial accuracy shows only a small and noisy gain, and AMSGrad reduces it further and stabilizes it; the authors report that AA+ remains fully effective. The CE ResNet18 remains fully vulnerable to ScaledPGD (Section 4.3, Figure 7).
Local complexity, dead neurons, and slingshot
- Figure 3: In the default-Adam MSE network, dead neurons begin to accumulate near loss instability; in the AMSGrad network their number remains stable. In the 32-bit CE network, dead neurons suddenly increase when the loss becomes unstable, while the 64-bit network is stable.
- Figure 4: Under default Adam, local complexity at training points first decreases; under AMSGrad, local complexity at training points rises smoothly and then levels off. In the 32-bit CE network, local complexity near training points decreases before dead neurons increase, while it is stable at 64-bit.
- LeakyReLU exception: In Figures 13–15, the authors state that LeakyReLU did not alleviate neuron death, because neurons can still enter a permanent negative-output state.
- Slingshot connection: Figures 20–21 show loss spikes over the first 100k iterations on a linear iteration axis. The authors hypothesize that slingshot causes dead neurons and turns parameters toward local optima with fewer effective parameters; they explicitly state that this relationship remains to be studied.
Other ablations and analyses
- Learning rate, MSE: Higher learning rates increase Adam training loss instability; at the lowest learning rate, PGD robustness instead decreases, and AMSGrad stabilizes the loss in all settings (Appendix A.2, Figure 22).
- Learning rate, CE: Higher learning rates amplify naive loss minimization, and loss instability occurs earlier and more extreme (Figure 23).
- SGD, MSE: With learning rate 0.05 and 20 million training iterations, the loss reaches a very low value without instability or an increase in PGD adversarial accuracy (Appendix A.3, Figure 24).
- SGD, CE: With learning rate 0.01 and 20 million training iterations, PGD adversarial accuracy shows an upward trend and co-occurs with softmax collapse (Figures 25–26).
- ScaledSCE for training: With smax = 20, naive loss minimization was not suppressed; the loss computed by ordinary SCE underflows to 0, and default PGD adversarial accuracy eventually approaches test accuracy (Appendix A.4, Figures 27–28).
- Residual robustness: The authors note that in MNIST, even with AA+ or ScaledPGD, networks that underwent loss instability still retain some residual robustness; it may still be overestimated by attacks, or it may have a small regularization effect, and both explanations may coexist.
What are some points that can be further explored?
The authors leave three directions for future work: formal verification, the slingshot mechanism, and stable optimization algorithms.
Limitations and future directions noted by the authors
- Stronger verification methods: residual robustness remains in MNIST after stronger attacks; the authors argue that AA+, though strong, is not perfect, and stronger attacks may still break samples currently judged robust; future work could consider formal network verification such as α,β-CROWN (Discussion).
- Another explanation for residual robustness: loss instability may have a small regularization effect; the authors suggest that after the slingshot the network may move to a local optimum with fewer effective parameters and thus be more robust, but this is a hypothesis rather than a tested conclusion (Discussion).
- Slingshot and dead neurons: the authors state that to their knowledge this relationship has not been studied before; future work could determine whether the relationship truly exists and whether it can be controllably exploited to improve training, generalization, or grokking (Discussion).
- Design and adoption of stable algorithms: the authors argue that commonly used methods for overtraining carry instability risk, and that effort can go into designing, evaluating, and adopting stable versions of algorithms, especially when overtraining becomes the norm (Discussion).
Scope of experiments
- Architectures and data: the main experiments are a four-layer ReLU MLP on 1000-sample MNIST and ResNet18 on the full 50 000-sample CIFAR10; the appendix additionally has a LeakyReLU MLP.
- Attack coverage: includes l∞-PGD, AA+, and ScaledPGD, with the main setting ϵ = 0.06; Figure 10 additionally covers six perturbation levels, with PGD using 10 steps.
- Training interventions: cover Adam's δ, AMSGrad, 32/64-bit precision, SGD, learning rate, and ScaledSCE training; the main experiments do not use batch normalization.
- Repeats and seeds: the CE MLP has 10 repeats with different seeds, and MSE has two groups of 5 repeats each; routine experiments use torch seed 42 where possible.
- Form of evidence: results are mainly training curves and concurrently occurring mechanism metrics; the paper reports no statistical significance tests and gives no numerical table for key endpoints of the main curves.
Summarize the main content of the paper
The authors reinterpret delayed robustness as weak attacks and side effects of overtraining, and provide intervention evidence.
This is an analysis paper that re-examines the adversarial robustness phenomenon, and its core conclusion is: the authors believe that delayed robustness is not grokking.
- Problem: Humayun et al. (2024) attributed PGD robustness after overtraining to more robust input-space partitioning. The authors found that with AA+, the adversarial accuracy of the MNIST MLP in Figure 1 is much lower, and therefore test whether PGD gradients are distorted by training problems.
- Method: The authors propose two mechanisms: Adam's scaling of small gradients making the effective learning rate too large, and underflow/absorption collapse of softmax CE. Interventions include increasing δ from 10^-8 to 10^-4, AMSGrad, 64-bit precision, and constructing ScaledPGD using ScaledSCE with smax = 20.
- MNIST MSE: Under default Adam, PGD delayed robustness co-occurs with loss instability, decreasing local complexity, and accumulation of dead neurons; a larger δ or AMSGrad stabilizes the loss, and delayed robustness does not appear (Figures 2–4).
- MNIST CE: In 32-bit training, ScaledPGD yields much lower adversarial accuracy than ordinary PGD; 64-bit training shows no delayed robustness at all, and all metrics are stable (Figure 5).
- CIFAR10 ResNet18: PGD delayed robustness appears in all experiments, and 64-bit only postpones rather than eliminates it; the authors report that AA+ remains fully effective against the MSE network, and ScaledPGD leaves almost no adversarial accuracy against the CE network (Figure 7).
- Conclusion and implications: The authors believe the phenomenon mainly arises from weak attacks and loss instability during overtraining, and that stable training and stronger attacks usually make it disappear; the residual robustness in MNIST may still come from attack overestimation or from a small regularization effect of instability. The authors leave the connection among slingshot, dead neurons, and reduction of effective parameters for future testing.