Robust Neural Architecture Search

Xunyu Zhu, Jian Li, Yong Liu, Weiping WangarXiv 2023 · DOI

Abstract

Neural Architecture Search (NAS) has significantly advanced automated network design but often produces "brittle" models vulnerable to adversarial attacks. This paper introduces Robust Neural Architecture Search (RNAS), a framework that balances high natural accuracy with adversarial resilience. By incorporating a similarity-based regularization term, RNAS identifies architectures that maintain consistent outputs under perturbations. We propose two variants: RNAS-max, which utilizes adversarial examples, and RNAS-uniform, a highly efficient alternative using random noise. Experimental results on CIFAR-10 demonstrate that RNAS-uniform achieves a competitive 2.60% test error with significantly improved robustness, requiring only 0.5 GPU days for search.

Introduction

The automation of neural network design through Neural Architecture Search (NAS) has led to state-of-the-art performance across various tasks. However, architectures discovered by popular gradient-based methods like DARTS are frequently susceptible to adversarial attacks—small, intentional input perturbations that cause catastrophic failure. While adversarial training can mitigate this, it often introduces a "robustness-accuracy tradeoff," where gains in resilience come at the cost of natural performance. Furthermore, existing robust NAS approaches are often computationally prohibitive. This work addresses the need for a search method that inherently prioritizes both performance and stability without excessive overhead.

Methodology

The core of RNAS is the addition of a regularization term to the standard NAS optimization objective. This term is designed to maximize the similarity between a model's output for a clean image $x$ and its output for a perturbed version $x'$.

The authors propose two implementation strategies:

  1. RNAS-max: This approach employs Projected Gradient Descent (PGD) to generate "worst-case" adversarial examples during the search process. While effective at forcing the search toward robust structures, it results in a computationally intensive three-level optimization problem.
  2. RNAS-uniform: To enhance efficiency, this variant replaces calculated adversarial examples with random noise sampled uniformly from a perturbation set. This maintains a bi-level optimization structure similar to standard DARTS, drastically reducing search time while still promoting architectural insensitivity to input variations.
Main framework of RNAS-max (left) and RNAS-uniform (right).

Experimental Setup

The proposed methods were evaluated on the CIFAR-10 dataset. The search space and training protocols follow standard NAS benchmarks. A portion of the training data was used to optimize network weights, while the validation set guided the optimization of architecture parameters. The resulting architectures were then evaluated for both natural accuracy and robustness against FGSM and PGD attacks.

Results and Discussion

The experimental results highlight the effectiveness of RNAS in balancing accuracy, robustness, and efficiency.

Natural Accuracy and Efficiency

RNAS-uniform achieved a test error of 2.60% on CIFAR-10, outperforming the baseline DARTS (3.00%) and matching top-tier NAS methods. Crucially, RNAS-uniform is highly efficient, requiring only 0.5 GPU days, which is comparable to the 0.4 days required by standard DARTS and nearly ten times faster than RNAS-max.

Comparison of RNAS with state-of-the-art NAS methods on CIFAR-10, showing test error and search cost.

Adversarial Robustness

Both RNAS variants showed significant improvements in robustness. Under FGSM attacks, RNAS-max and RNAS-uniform achieved robust accuracies of 53.67% and 53.74%, respectively, surpassing standard DARTS (50.56%) and other robust NAS variants like RACL.

Key Insights

  • Structural Robustness: The underlying network structure is a critical factor in adversarial resilience, independent of the training regime.
  • Consistency as Regularization: Forcing similar internal representations for clean and noisy data encourages the search to converge on "smooth" and stable architectures.
  • Efficiency of Random Noise: The strong performance of RNAS-uniform suggests that simple noise tolerance during the search phase serves as an effective and low-cost proxy for full adversarial robustness.

Conclusion

RNAS provides a practical framework for designing robust neural architectures. By leveraging similarity-based regularization, particularly through the efficient RNAS-uniform variant, researchers can obtain models that are both high-performing and resilient to perturbations. Future work will explore extending these methods to broader threat models, such as model poisoning, and further optimizing the search process to minimize the computational cost of robustness.

Summary updated

BibTeX
@misc{zhu2023robust,
  author = {Xunyu Zhu and Jian Li and Yong Liu and Weiping Wang},
  title = {{Robust Neural Architecture Search}},
  year = {2023},
  eprint = {2304.02845},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.02845},
}
Figure