[Paper Review] Sharpness-Aware Minimization Alone can Improve Adversarial Robustness
This paper demonstrates that Sharpness-Aware Minimization (SAM) alone significantly improves adversarial robustness without sacrificing clean accuracy, outperforming standard training and serving as a lightweight alternative to adversarial training (AT). SAM implicitly regularizes the loss landscape by minimizing sharpness, leading to models that generalize robustly to adversarial perturbations.
Sharpness-Aware Minimization (SAM) is an effective method for improving generalization ability by regularizing loss sharpness. In this paper, we explore SAM in the context of adversarial robustness. We find that using only SAM can achieve superior adversarial robustness without sacrificing clean accuracy compared to standard training, which is an unexpected benefit. We also discuss the relation between SAM and adversarial training (AT), a popular method for improving the adversarial robustness of DNNs. In particular, we show that SAM and AT differ in terms of perturbation strength, leading to different accuracy and robustness trade-offs. We provide theoretical evidence for these claims in a simplified model. Finally, while AT suffers from decreased clean accuracy and computational overhead, we suggest that SAM can be regarded as a lightweight substitute for AT under certain requirements. Code is available at https://github.com/weizeming/SAM_AT.
Motivation & Objective
- To investigate whether SAM alone can enhance adversarial robustness without relying on adversarial training (AT).
- To understand the mechanism by which SAM improves robustness compared to standard training.
- To compare SAM and AT in terms of perturbation strength, accuracy-robustness trade-offs, and computational cost.
- To evaluate whether SAM can serve as a lightweight substitute for AT under constraints of no clean accuracy drop and low computational overhead.
Proposed method
- SAM minimizes the maximum loss within a radius ρ around model weights, effectively regularizing loss sharpness: min_w max_||ε||≤ρ L(w+ε) + λ||w||².
- The method implicitly applies adversarial perturbations during training by optimizing over perturbed weights, promoting flatter minima.
- The perturbation radius ρ controls the strength of implicit adversarial augmentation, with larger ρ leading to stronger robustness.
- Theoretical analysis is conducted using a simplified data model decomposed into robust and non-robust features, showing both SAM and AT suppress non-robust features.
- Empirical evaluation is performed on CIFAR-10 and CIFAR-100 using PreActResNet-18 with 10-step PGD attacks for robustness evaluation.
- Comparisons are made between standard training, SAM, and AT under ℓ∞ and ℓ2 perturbation bounds, measuring clean and robust accuracy.
Experimental results
Research questions
- RQ1Why does SAM improve adversarial robustness compared to standard training?
Key findings
- Models trained with SAM achieve significantly higher robust accuracy than standard training, with a 10% average robustness gain on CIFAR-100 and a 2% improvement in clean accuracy.
- SAM with ρ=0.4 achieves higher robust accuracy than standard training on CIFAR-100, while maintaining higher clean accuracy.
- Adversarial training (AT) consistently reduces clean accuracy—by 3.8% on CIFAR-100 and 0.9% on CIFAR-10—even with small perturbation bounds (ε=1/255).
- SAM outperforms standard training in both clean and robust accuracy, while AT models suffer from a trade-off between robustness and natural accuracy.
- SAM requires only 1× computational cost, while AT with 10-step PGD requires 10× the computation of standard training, making SAM significantly more efficient.
- Theoretical analysis confirms that both SAM and AT improve robustness by suppressing non-robust features, but SAM uses weaker perturbations than AT, explaining its lower robustness ceiling.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.