Abstract
Transferability is the property of adversarial examples to be misclassified by other models than the surrogate model for which they were crafted. Previous research has shown that transferability is substantially increased when the training of the surrogate model has been early stopped. A common hypothesis to explain this is that the later training epochs are when models learn the non-robust features that adversarial attacks exploit. Hence, an early stopped model is more robust (hence, a better surrogate) than fully trained models. We demonstrate that the reasons why early stopping improves transferability lie in the side effects it has on the learning dynamics of the model. We first show that early stopping benefits transferability even on models learning from data with non-robust features. We then establish links between transferability and the exploration of the loss landscape in the parameter space, on which early stopping has an inherent effect. More precisely, we observe that transferability peaks when the learning rate decays, which is also the time at which the sharpness of the loss significantly drops. This leads us to propose RFN, a new approach for transferability that minimizes loss sharpness during training in order to maximize transferability. We show that by searching for large flat neighborhoods, RFN always improves over early stopping (by up to 47 points of transferability rate) and is competitive to (if not better than) strong state-of-the-art baselines.
Challenging the "Robust Features First" Hypothesis
In AI security, "transferability" allows for black-box attacks where an attacker fools a victim's model without having direct access to it. The prevailing theory for why early stopping improves transferability was that models learn generic "robust" features early in training and brittle "non-robust" features later.
However, this research challenges that conventional wisdom. By training models on datasets engineered to contain only non-robust features, the authors found that early stopping still improved transferability. This suggests that the benefit of early stopping isn't about what features are learned, but rather how the model represents them within the loss landscape.
The Role of Loss Landscape Flatness
The core of the paper's argument lies in the geometry of the loss landscape—the mathematical "terrain" the model navigates during training. The authors investigate sharpness, which measures how quickly the loss changes when moving slightly in the parameter space.
During training, a model undergoes two phases: "crossing" and "crawling." Before learning rate (LR) decay, the model "crosses the valley," bouncing around the landscape. After decay, it "crawls down" into the valley. If training continues too long, the model falls into "deep, sharp holes"—minima that are highly specific to the training data and do not generalize or transfer well. Early stopping works because it prevents the model from falling into these sharp traps.
Empirical Evidence: Sharpness and LR Decay
The researchers discovered a critical "Aha!" moment: transferability peaks almost immediately after the learning rate decays. As shown in the data, this peak perfectly coincides with a massive drop in the sharpness of the loss landscape, as measured by the Hessian trace and top eigenvalue.
This correlation suggests that flatness is the secret sauce for transferability. Flat regions represent more generic features that are shared across different model architectures, making adversarial examples crafted in these regions more effective against unknown targets.
Proposed Method: l-SAM
Based on these insights, the authors propose RFN, an approach that explicitly seeks out flat minima. This is implemented using Sharpness-Aware Minimization (SAM) with an unusually large neighborhood ($\rho$), a variant they call l-SAM (large-neighborhood SAM).
By using l-SAM to avoid sharp holes, the model remains in broad, flat regions of the landscape throughout training. This method consistently outperforms early stopping, sometimes by as much as 28.8 percentage points in attack success rate. Furthermore, an adaptive variant (l-AGSAM) proved to be a superior surrogate training method compared to state-of-the-art techniques like SAT (Slight Adversarial Training), while maintaining higher efficiency on large datasets like ImageNet.
Conclusion
This work shifts the focus of adversarial transferability from feature types to landscape geometry. By demonstrating that flatness is the primary driver of transferability, the authors provide a more robust theoretical foundation and a practical training methodology (l-SAM) that significantly enhances the effectiveness of black-box adversarial attacks.
Summary updated