When NAS Meets Robustness: In Search of Robust Architectures Against Adversarial Attacks

Minghao Guo, Yuzhe Yang, Rui Xu, Ziwei Liu, Dahua Lin

Introduction

Deep neural networks are notoriously fragile; small, human-imperceptible perturbations known as adversarial attacks can cause them to fail spectacularly. Traditionally, the "arms race" between attackers and defenders has focused on training techniques, such as Adversarial Training (AT), or specialized loss functions. However, this research identifies a critical missing dimension: the network architecture itself. By investigating how structural patterns influence resistance to adversarial examples, the authors demonstrate that architecture is a fundamental pillar of robustness.

To systematically explore the relationship between structure and robustness without the prohibitive cost of training thousands of networks from scratch, the researchers employ a One-Shot Neural Architecture Search (NAS) framework.

The search space of RobNet (a) allows for denser connection patterns compared to standard architectures like ResNet (b) and DenseNet (c).

The process involves defining a "supernet" that encompasses all possible architectures within a specific search space. This supernet is trained once using adversarial training (specifically, the PGD attack). From this trained supernet, 1,000 sub-networks are sampled. These candidates inherit weights from the supernet and undergo brief fine-tuning to evaluate their "robust accuracy." Unlike standard NAS, which often restricts connectivity, this search space encourages the discovery of much denser connection patterns, as illustrated in the comparison with ResNet and DenseNet.

Key Insights: The Anatomy of Robustness

The authors’ exploration yielded three major structural principles that contribute to adversarial resilience:

  • Density as a Shield: There is a strong positive correlation between architecture density—the number of connections—and adversarial robustness. Densely connected patterns help the network maintain stable feature representations even when inputs are perturbed.
  • Prioritizing Direct Edges: Under a fixed parameter budget, adding convolution operations to direct edges (connections between adjacent layers) is more effective than adding them to skip connections. This suggests that local complexity is a vital ingredient for resilience.
  • Feature Flow Stability: Robust networks exhibit a smaller "gap" in their internal feature flow (measured via the Flow of Solution Procedure matrix) when comparing clean and adversarial images. This provides a statistical metric to rank architectures without requiring full training.

Experimental Results

The resulting "RobNet" family sets a new benchmark for architecturally-driven defense. Benchmarking on CIFAR-10, SVHN, and ImageNet shows that these discovered architectures consistently outperform standard models.

Adversarial accuracy vs. number of parameters for the RobNet family compared to standard architectures.

As shown in the figure above, RobNet-free achieved a white-box PGD-100 accuracy of 52.57%, significantly higher than WideResNet-28-10 (46.90%) and ResNet-50 (45.35%). Remarkably, RobNets achieve these gains with high efficiency; for instance, a RobNet with only 5.49M parameters outperformed a ResNet-50 that has 23.52M parameters. Furthermore, RobNets demonstrated high resistance to black-box (transfer-based) attacks and proved to be complementary to other defense methods like feature denoising.

Conclusion and Future Directions

This research proves that the network architecture is a critical factor in adversarial robustness. While RobNets offer superior protection, a slight trade-off remains regarding natural (clean) accuracy. Future work includes exploring completely unconstrained global architectures and developing a more rigorous theoretical understanding of why specific graph topologies dampen adversarial noise more effectively than others.

Summary updated

BibTeX
@inproceedings{guo2020when,
  author = {Minghao Guo and Yuzhe Yang and Rui Xu and Ziwei Liu and Dahua Lin},
  title = {{When NAS Meets Robustness: In Search of Robust Architectures Against Adversarial Attacks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00071},
}
Figure