We analyze the phenomenon of delayed robustness, where a neural network trained beyond overfitting becomes robust to adversarial attacks. This phenomenon was first observed by Humayun et al. (2024), and characterized as grokking. We reproduce delayed robustness to PGD attacks in multiple set-ups and show that delayed robustness is the result of weak attacks and two unintended side effects when overtraining: 1) softmax collapse in the cross-entropy loss function, and 2) a too large effective learning rate caused by gradient scaling in the Adam optimizer. We demonstrate that these issues create networks resistant to PGD attacks but still vulnerable to stronger attacks. We also point out an interesting relation between delayed robustness, the slingshot effect, and dead neurons. Using interventions to solve the softmax collapse and gradient scaling issues, we show that no delayed robustness emerges. We must therefore conclude that delayed robustness is not grokking.
翻译:暂无翻译