A Guide to Robust Generalization: The Impact of Architecture, Pre-training, and Optimization Strategy

Maxime Heuillet, Rishika Bhagwatkar, Jonas Ngnawe, Yann Pequignot, Alexandre Larouche, Christian Gagné, Irina Rish, Ola Ahmad, Audrey Durand

TL;DR

Adapting pretrained vision models to withstand real-world attacks requires robust fine-tuning, but how do backbone choices and training strategies impact performance across unseen perturbations? Through a large-scale benchmark of 1,440 configurations across 6 datasets, this paper shows that convolutional models fine-tuned with TRADES consistently outperform attention-based architectures, hybrid architectures dominate lightweight regimes, and switching loss functions between pre-training and fine-tuning delivers surprising gains.

What Problem Does This Paper Address?

In real-world deployments, computer vision models encounter varied and unanticipated perturbations—ranging from sensor noise and blurs (common corruptions) to intentional adversarial attacks under different norms ($\ell_1, \ell_2, \ell_\infty$). Training models from scratch to resist these threats is notoriously data- and compute-intensive.

While robust fine-tuning of pretrained backbones has emerged as an efficient alternative for data-scarce settings, practitioners face an overwhelming combinatorics problem: Which architecture type and scale should one choose? Is self-supervised or supervised pre-training better? Should you fine-tune the entire network or just a linear probe? And which adversarial objective actually fosters robust generalization—the ability to remain resilient against unseen perturbations? Prior literature offered fragmented and contradictory answers by isolating single model families or relying on models trained from scratch.

Methods

The authors conduct an exhaustive empirical study examining how design components interact:

  • Pre-trained Backbones (40 models): 19 architectures spanning three structural types (Convolutional, Attention-based, and Hybrid) across three parameter scales: Small (5–10M), Medium (25–30M), and Large (80–90M). Pre-training paradigms include standard supervised, multistep supervised, adversarial robust supervised, unimodal self-supervised (MAE, DINO), multimodal self-supervised (CLIP), and hybrid fusion.
  • Fine-Tuning Protocols (3 types): Full fine-tuning for 50 epochs (FFT-50 with decoupled learning rates and weight decays for backbone vs. classification head), compute-efficient full fine-tuning (FFT-5), and parameter-efficient linear probing (LP-50).
  • Adversarial Loss Objectives (2 types): Classic Adversarial Training (Classic AT) vs. TRADES surrogate-loss minimization, both using adaptive projected gradient descent ($\text{APGD-10}, \epsilon = 4/255$).
  • Evaluation Framework: Evaluated across 5 test conditions: clean inputs, $\ell_1$, $\ell_2$, $\ell_\infty$ adversarial attacks, and common corruptions. Robustness is quantified via accuracy, relative Borda score (rank-based), Sum score (aggregate absolute performance), and Mean Absolute Correlation (MAC), which measures how uniformly a model generalizes across different perturbation threats.

Datasets

  • Downstream Target Benchmarks: 6 low-data classification datasets:
  • 5 natural image datasets: Caltech-101, FGVC-Aircraft, Flowers-102, Oxford-IIIT Pet, and Stanford Cars.
  • 1 satellite image dataset: UC Merced Land-Use.
  • Pre-training Datasets: Models analyzed were pretrained on standard large-scale corpora including ImageNet-1k, ImageNet-12k, ImageNet-22k, and LAION (LAION-2B / LAION-Aesthetics).

Key Insights and Ideas

  • ConvNets beat Vision Transformers: Despite widespread interest in the robustness of Vision Transformers, modernized convolutional architectures (particularly ConvNeXt) consistently demonstrated superior robust generalization across all datasets.
  • Hybrid models dominate small scales: When resource constraints limit model size to 5–10M parameters, hybrid architectures (combining convolutions and attention, such as CoAT and EdgeNeXt) dramatically outperform purely convolutional or attention-based models and achieve the most uniform generalization (highest global MAC of 0.871).
  • TRADES scales with architecture size and regularizes convolutions: TRADES significantly outperforms Classic AT as model scale increases. It provides disproportionate benefits to convolutional and hybrid architectures, likely by mitigating their tendency to overfit local texture patterns.
  • The "Loss Switch" boost: When fine-tuning an already robustly pretrained checkpoint with sufficient compute (FFT-50), switching the fine-tuning loss (e.g., fine-tuning with TRADES when pretrained with Classic AT) significantly outperformed keeping the same loss, accounting for 5 out of 6 top-performing configurations across datasets ($p = 0.041$).
  • Diminishing returns for robust pretraining: While robust pre-training is crucial under heavily constrained budgets (LP-50 and FFT-5), scaling robustly pretrained models from medium to large yields only a +12% relative gain (compared to +43% to +80% for supervised and self-supervised counterparts).
  • LP-50 is an effective cheap proxy: Linear probing for 50 epochs serves as a reliable, cost-effective predictor for full fine-tuning (FFT-50) performance, especially when using TRADES.

Key Results

  • Top Overall Configuration: A large convolutional backbone (ConvNeXt-Base, supervised pre-training on ImageNet-22k) fine-tuned with TRADES under FFT-50, achieving the #1 global rank with a Sum Score of 19.79 (outperforming the best FFT-5 configuration by 61% and LP-50 by 53%).
  • Strong Generalization Thresholds: On Caltech-101 and Land-Use, the top configurations surpassed 80% accuracy across all five perturbation types (clean, $\ell_1, \ell_2, \ell_\infty$, and corruptions).
  • Small Model Standouts: The small hybrid backbone coat_tiny (supervised on ImageNet-1k, TRADES) placed 18th overall among all 80 configurations—outperforming many medium and large architectures.

Limitations and Future Work

  • Domain and Scale Constraints: The study restricts downstream evaluation to low-data image classification and backbones under ~90M parameters; trends may differ for multi-billion-parameter foundation models or vision-language models (e.g., CLIP fine-tuning).
  • Availability of Small Robust Checkpoints: Open-source robustly pretrained checkpoints currently do not exist at the small scale (5–10M parameters), leaving their potential under constrained settings untested.
  • Compute-Budget Hyperparameter Optimization: Configuration searches were capped by a total compute budget rather than a fixed number of trials, meaning computationally heavier backbones underwent fewer hyperparameter iterations.

Summary updated

BibTeX
@inproceedings{heuillet2025guide,
  author = {Maxime Heuillet and Rishika Bhagwatkar and Jonas Ngnawe and Yann Pequignot and Alexandre Larouche and Christian Gagné and Irina Rish and Ola Ahmad and Audrey Durand},
  title = {{A Guide to Robust Generalization: The Impact of Architecture, Pre-training, and Optimization Strategy}},
  booktitle = {Reliable ML @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=eGloNCU2Ya},
}
Figure