Introduction
Adversarial training (AT) is the primary defense against malicious inputs designed to fool neural networks. However, standard AT is computationally intensive, often requiring multi-step optimization for every training sample. "Fast" AT methods attempt to reduce this cost by using simple 1-step attacks during training. While efficient, these methods frequently suffer from Catastrophic Overfitting (CO): a phenomenon where the model appears robust against the weak 1-step attack used in training but remains completely vulnerable to standard, multi-step attacks.
While CO is well-studied for $l_\infty$ and $l_2$ perturbations, this paper investigates the $l_0$ norm, which represents sparse attacks (changing only a few pixels). The $l_0$ case is uniquely challenging because the $l_0$ "norm" is non-convex and non-smooth, rendering existing defense strategies for other norms ineffective.
The Challenge of Sparse Attacks
The authors identify that the $l_0$ loss landscape is significantly more "craggy" and jagged than its $l_\infty$ or $l_2$ counterparts. Through Hessian analysis, they demonstrate that the second-order derivatives of the loss function exhibit wild fluctuations, making training inherently unstable.
A key insight of this work is that CO in $l_0$ training is primarily driven by location selection. Unlike $l_\infty$ attacks where magnitude is the primary variable, $l_0$ attacks must choose which specific pixels to perturb. In 1-step training, the model often overfits to the specific (and often sub-optimal) pixels chosen by the weak attack, failing to generalize to the pixels a stronger attack would target.
Methodology: Fast-LS-$l_0$
To address these instabilities, the authors propose Fast-LS-$l_0$ (Fast Loss Smoothing for $l_0$), which stabilizes 1-step training by smoothing the adversarial loss landscape using three components:
- Soft Labels (Self-Adaptive Training): Instead of hard one-hot labels, the model uses a moving average of its own predictions. This reduces the first-order Lipschitz constant, making the loss less sensitive to parameter changes.
- Trade-off Loss: Adopting a TRADES-style loss function that interpolates between clean and adversarial loss improves the "second-order smoothness" of the landscape.
- N-FGSM Data Augmentation: Adding random noise to the input helps the 1-step attack find more effective perturbation locations, mitigating the sub-optimality of simple 1-step $l_0$ attacks.
Key Results and Efficiency
The proposed method achieves state-of-the-art results while maintaining the speed of 1-step methods:
- Robustness: On CIFAR-10, Fast-LS-$l_0$ achieved 63.0% robust accuracy against the powerful Sparse-AutoAttack (sAA), surpassing the previous 20-step multi-step state-of-the-art (61.7%).
- Speedup: Training took only 0.8 hours on a single GPU, compared to 5.5 hours for the 20-step baseline—a 7x speedup.
- Scalability: The method successfully scaled to ImageNet-100, achieving 72.4% robust accuracy, a regime where previous fast methods typically failed due to CO.
Conclusion
Fast-LS-$l_0$ demonstrates that the instabilities of sparse adversarial training can be overcome by mathematically smoothing the "craggy" loss landscape. By focusing on perturbation locations and landscape smoothness, the method provides a path toward efficient and scalable defense against sparse attacks in real-world applications, such as protecting traffic sign recognition systems from physical-world stickers.
Summary updated