Abstract
Evaluating the robustness of machine learning models against adversarial attacks is a critical yet challenging task. Standard gradient-based attacks are often sensitive to internal configurations, leading to inconsistent results and potential overestimation of security. This paper introduces HO-FMN, a framework that treats adversarial attack configuration as a hyperparameter optimization problem. By automatically tuning loss functions, optimizers, and learning rate schedulers, HO-FMN achieves performance competitive with the industry-standard AutoAttack (AA) while providing a more granular and efficient evaluation of model robustness across varying perturbation levels.
Introduction
Adversarial attacks—inputs specifically designed to deceive machine learning models—are the primary tool for measuring model robustness. However, the effectiveness of these attacks is highly dependent on their internal settings, such as the choice of optimizer or step-size scheduler. Currently, many practitioners rely on "default" settings, which may fail on specific model architectures, creating a false sense of security. While ensembles like AutoAttack (AA) mitigate this, they are computationally intensive and typically only evaluate robustness at fixed noise thresholds ($\epsilon$).
Methodology
The researchers propose HO-FMN, a re-engineered version of the Fast Minimum-Norm (FMN) attack. Instead of a static configuration, the attack components are exposed to a hyperparameter optimization (HPO) process using the Ray Tune framework.
Optimization Components
The framework explores a diverse search space, including:
- Loss Functions: Comparing Logit Loss (LL) and Cross-Entropy (CE).
- Optimizers: Selecting between SGD (with/without Nesterov momentum) and Adam (with/without AmsGrad).
- Step-size Schedulers: Testing strategies such as Cosine Annealing (CALR), MultiStep (MSLR), and "Reduce On Plateau" (RLROP).
To navigate this space efficiently, the authors employed the CFO search algorithm and the ASHA scheduler, allowing for rapid identification of the most effective attack configurations for a given model.
Experimental Setup
The study utilized the CIFAR10 dataset, a standard benchmark in computer vision. The optimization process was conducted on a subset of 100 samples to find the best hyperparameters, which were then validated on a separate set of 1,000 samples. The framework was tested against nine state-of-the-art robust models (M0-M8) from the RobustBench leaderboard, encompassing various architectures like WideResNet and ResNet.
Key Results and Discussion
The experiments revealed that the optimal attack configuration is highly model-dependent, debunking the idea of a "one size fits all" attack setting.
As shown in the table above, the optimized HO-FMN configuration (specifically Adam + RLROP + LL) reached a mean Robust Accuracy of 0.64 across the nine models, matching the performance of the gold-standard AutoAttack. A critical finding was the superiority of Logit Loss (LL) over Cross-Entropy (CE). When using CE, the attacks often failed to find small perturbations, resulting in reported robustness levels as high as 100%, whereas LL correctly identified the models' vulnerabilities.
Efficiency and Continuous Evaluation
A significant advantage of the FMN-based approach is its ability to find the minimum perturbation required to misclassify an input. This allows for the generation of a complete "robustness-perturbation curve" from a single optimization run.
Figure 2 illustrates these curves, showing that HO-FMN tracks closely with AutoAttack across the entire range of $\epsilon$ values. Unlike AA, which requires separate, expensive runs for every specific noise threshold, HO-FMN provides a continuous view of model behavior, making it a more versatile tool for researchers.
Conclusion and Future Work
HO-FMN demonstrates that hyperparameter optimization can significantly enhance the reliability of adversarial robustness evaluations. By matching the performance of ensemble methods with a single, tuned attack, it offers a more efficient path for model validation. Future work will focus on extending the framework to other norm constraints ($\ell_0, \ell_1, \ell_2$) and developing heuristics to further reduce the computational overhead of the hyperparameter search phase.
Summary updated