Abstract
Adversarial training (AT) is a powerful defense against adversarial attacks, but its high computational cost—driven by multi-step gradient calculations—limits its scalability. Fast AT methods using the Fast Gradient Sign Method (FGSM) offer a more efficient alternative but often suffer from "catastrophic overfitting," where robustness against multi-step attacks collapses during training. This paper identifies the standard random, sample-agnostic initialization as a primary cause of this instability. We propose FGSM-SDI, a method that utilizes a sample-dependent adversarial initialization generated by a lightweight network conditioned on the benign image and its gradient. Our approach adaptively generates effective initializations, leading to significantly improved robustness and stability. Evaluations across multiple benchmarks, including ImageNet, demonstrate that FGSM-SDI achieves robustness comparable to expensive multi-step AT methods while remaining up to three times faster.
Introduction: The Challenge of Fast Adversarial Training
Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial examples—inputs modified by imperceptible perturbations designed to trigger misclassification. Adversarial Training (AT), where a model is trained on these malicious examples, is the most effective defense. However, AT faces a "speed vs. robustness" dilemma. Multi-step methods like PGD-AT are robust but computationally expensive. Conversely, fast methods like FGSM-RS are efficient but often fail to learn strong defenses, leading to catastrophic overfitting.
The authors argue that the random noise initialization used in existing fast AT is too weak and uninformative. This prevents the model from encountering sufficiently challenging adversarial examples during the one-step training process.
Methodology: Sample-Dependent Initialization (SDI)
To address these limitations, we propose FGSM-SDI (Fast Gradient Sign Method with Sample-Dependent Initialization). The core innovation is a lightweight generative network that creates a custom starting point for the adversarial attack.
The SDI Framework
Unlike traditional methods that start from random noise, the FGSM-SDI generator takes two inputs: the benign image ($x$) and its signed gradient ($\text{sign}(\nabla_x)$) from the target model. The gradient provides a "rough map" of the local loss landscape, allowing the generator to find effective starting points much faster than random searching.
Joint Optimization and Efficiency
The generator (a tiny 3-layer CNN) and the target model are trained jointly in a minimax game. The generator learns to produce the most difficult initialization to challenge the model, while the model learns to resist the resulting adversarial examples. To maintain training speed, the generator is updated only every $k$ steps (a hyperparameter), ensuring the computational overhead remains low compared to multi-step PGD.
Key Results and Insights
FGSM-SDI was evaluated on CIFAR10, CIFAR100, Tiny ImageNet, and ImageNet, consistently outperforming other state-of-the-art fast AT methods.
- Robustness: On CIFAR10, FGSM-SDI achieved 53.73% robustness against PGD-10 attacks, significantly higher than the 42.31% achieved by FGSM-RS and nearly matching the expensive PGD-AT.
- Speed: On the large-scale ImageNet dataset, FGSM-SDI achieved comparable robustness to PGD-AT but was 3x faster (66.8 hours vs. 211.2 hours).
- Stability: By making the one-step attack more sophisticated and dynamic, the method prevents the model from finding "shortcuts" to minimize loss, thereby stabilizing the training process and defeating catastrophic overfitting.
- Gradient Importance: Ablation studies show that providing the gradient to the generator is more critical than providing the image itself, as it acts as a compass for finding effective perturbations.
Conclusion
FGSM-SDI bridges the gap between fast and multi-step adversarial training. By replacing random noise with a learnable, sample-dependent initialization, it provides a more effective training signal, leading to state-of-the-art robustness with minimal computational overhead. This approach offers a practical path toward robust and efficient deep learning at scale.
The code is released at https://github.com/jiaxiaojunQAQ/FGSM-SDI.
Summary updated