TL;DR
Researchers have developed a "zero-cost" proxy that predicts a neural network's adversarial robustness using only its randomly initialized weights—no training required. By mathematically formulating an upper bound on adversarial loss, this method accelerates the search for robust architectures by over 20x while discovering models that outperform existing state-of-the-art designs.
Introduction: The Cost of Robustness
Deep Neural Networks (DNNs) are notoriously fragile; small, intentional perturbations to an input (adversarial attacks) can easily trick them into making incorrect predictions. To fix this, researchers use Robust Neural Architecture Search (NAS) to find network structures that are inherently more resistant to these attacks.
However, robust NAS is incredibly slow. Evaluating a single candidate architecture usually requires "adversarial training," which involves generating thousands of adversarial examples and training the model from scratch. Doing this for thousands of candidate architectures is computationally ruinous. While "zero-cost proxies" exist to estimate a model's accuracy at initialization, very few can reliably predict robustness without at least some adversarial example generation, which still carries a heavy computational tax.
Methodology: Predicting Robustness at Initialization
The authors propose a new proxy, $R$, which estimates the upper bound of adversarial loss. The core idea is that if you can predict the maximum possible loss a model will suffer under an attack, you can predict its robustness: a higher predicted loss indicates lower robustness.
The proxy combines two sophisticated mathematical frameworks:
- Neural Tangent Kernel (NTK): This describes how a network's outputs change as its weights are updated. The authors focus on the minimum eigenvalue of the NTK, which relates to how well a model generalizes.
- Input Loss Landscape: This measures how "smooth" or "jagged" the loss function is around an input. A jagged landscape (high curvature) usually means a model is easier to attack. The authors approximate the Hessian (the matrix of second-order derivatives) using a simple finite-difference method to keep the calculation "zero-cost."
By combining these metrics at initialization, the proxy provides a score that correlates with how robust the model will be after it is eventually trained.
Experimental Setup
The study evaluates the proxy across several standard benchmarks:
- Image Classification Datasets: CIFAR-10, CIFAR-100, SVHN, Tiny-ImageNet-200, and the large-scale ImageNet.
- Search Spaces: DARTS and WideResNet (WRN).
- Tiny-RobustBench (New): The authors introduced this dataset, which maps 223 adversarially trained architectures to their actual adversarial accuracy. This serves as a "ground truth" to evaluate how well different zero-cost proxies actually correlate with real-world robustness.
Key Insights
- Robustness is "Baked In": The most striking insight is that a network's potential for robustness is visible even when the weights are completely random. You don't need to see the model learn to know if its architecture is "defensible."
- The Accuracy-Robustness Trade-off: The authors found that the NTK properties that favor natural accuracy often conflict with those that favor robustness. Their proxy accounts for this "competing relationship" by adjusting the signs of the mathematical terms.
- Hessian Approximation is Enough: You don't need the exact Hessian, which is expensive to compute. A simple "lookahead" step—calculating the difference in loss between an image and a slightly perturbed version of it—provides a sufficient proxy for the local curvature of the loss landscape.
Key Results
The proposed method achieved a 20x to 500x speedup compared to traditional robust NAS methods. A search that previously took days can now be completed in minutes, dropping from roughly 1 GPU day to just 0.017 GPU days.
As shown in the table above, architectures found using this proxy outperformed those found by standard NAS methods like DARTS and PDARTS. Under the rigorous "AutoAttack" (AA) evaluation, the searched model achieved 49.97% accuracy on CIFAR-10, surpassing many models that required full training to find. Furthermore, on the new Tiny-RobustBench, the proxy showed the strongest correlation (Kendall’s Tau of 0.33) with actual adversarial robustness compared to other popular proxies like GradNorm, Snip, or SynFlow.
Transferability
Models found on CIFAR-10 transferred successfully to other datasets, maintaining their edge in both natural accuracy and robustness.
When evaluated on SVHN and Tiny-ImageNet-200, the architecture discovered by the proposed zero-cost proxy consistently outperformed baselines like ResNet-18 and PDARTS across Natural Accuracy, FGSM, and PGD attacks.
Limitations and Future Work
The primary limitation acknowledged is a "skip connection bias." The proxy tends to favor architectures with fewer skip connections because, at initialization, these architectures can appear more "complex." However, skip connections are vital for solving gradient vanishing problems that only appear during actual training of very deep networks.
Future work could involve refining the proxy to better account for the "trainability" of an architecture alongside its robustness. Additionally, while the proxy works well for standard convolutional structures, its performance on Vision Transformers (ViTs) or other emerging architectures remains an open question.
Summary updated