On Adversarial Robustness: A Neural Architecture Search perspective

Chaitanya Devaguptapu, Devansh Agarwal, Gaurav Mittal, Pulkit Gopalani, Vineeth N. Balasubramanian

TL;DR

This paper investigates whether neural network architecture alone, without adversarial training, can provide robustness against adversarial attacks. They find that while NAS-based architectures excel on simpler tasks, hand-crafted architectures become more robust on complex tasks and larger datasets. Interestingly, ensembling randomly sampled NAS architectures shows promise for achieving robustness as a free add-on.

What Problem Does This Paper Address?

Deep learning models are increasingly vulnerable to adversarial attacks – subtle perturbations to input data that cause misclassifications. While adversarial training is a common defense, it often degrades performance on clean data. This paper explores a less-trodden path: can the inherent topology of a neural network architecture itself confer adversarial robustness, bypassing the need for adversarial training? The authors aim to understand how different architectural choices, particularly those discovered by Neural Architecture Search (NAS), impact robustness and whether NAS can offer robustness as a byproduct of its search for high accuracy.

Methods

The core of this work is an empirical study comparing the adversarial robustness of various hand-crafted architectures (like ResNets and DenseNets) against NAS-discovered architectures. They evaluate these models under standard white-box attacks (FGSM, PGD, AutoPGD) without employing any adversarial training.

Key methodological contributions include:

  • Harmonic Robustness Score (HRS): A novel metric to quantify the trade-off between clean accuracy and adversarial accuracy, defined as the harmonic mean of the two. This helps in a more balanced evaluation than simply looking at each metric in isolation.
  • Per-parameter HRS (PP-HRS): An extension of HRS to compare models within the same architectural family, normalizing for parameter count.
  • Ensembling Randomly Sampled Architectures: A crucial experiment where they explore the impact of ensembling multiple randomly chosen architectures from a NAS search space (specifically DARTS). This is done to understand if the search space itself or the search process is the bottleneck for robustness.

Datasets

The study utilizes a range of image classification datasets to assess robustness across different scales and complexities:

  • CIFAR-10: A standard benchmark for image classification.
  • CIFAR-100: A more challenging version of CIFAR-10 with finer-grained classes.
  • ImageNet: A large-scale dataset for evaluating performance on real-world scenarios.
  • Flowers-102: Used for fine-grained image classification, posing a more perceptually similar challenge.

Key Insights and Ideas

  • Architecture Matters, But Context is Key: The paper strongly suggests that architectural topology is a significant factor in adversarial robustness. However, the "best" architecture depends heavily on the task's complexity and dataset size.
  • Hand-crafted vs. NAS: A Trade-off: For simpler tasks and smaller datasets, NAS architectures can offer comparable or slightly better robustness. However, as tasks become more complex (e.g., fine-grained classification) or datasets grow (e.g., ImageNet), traditional hand-crafted architectures like DenseNets and ResNets demonstrate superior robustness.
  • The Power of Ensembling Randomness: Surprisingly, ensembling randomly sampled architectures from a NAS search space (like DARTS) can significantly improve adversarial robustness (nearly 12% increase in PGD accuracy) without any explicit adversarial training. This suggests that diversity and redundancy, even if not "optimally" searched, can be beneficial.
  • NAS for Robustness as a "Free Add-on": The findings indicate that NAS, primarily known for achieving state-of-the-art clean accuracy, can also provide a degree of adversarial robustness as an inherent benefit, especially when combined with ensembling techniques.

Key Results

  • On CIFAR-10/100, NAS architectures showed better robustness against weaker attacks (FGSM, F-FGSM) but lagged significantly behind hand-crafted models for stronger attacks (PGD, AutoPGD).
  • For ImageNet and Flowers-102, hand-crafted architectures consistently outperformed NAS-based models across all tested attacks.
  • Ensembling randomly sampled DARTS architectures improved PGD accuracy by nearly 12% compared to a single searched DARTS architecture, while also reducing variance.
  • The study found that increasing parameters within a family of architectures generally improves robustness up to a certain point (around 20-25 million parameters for ImageNet), after which further increases can be detrimental (as seen in EfficientNet).

Limitations and Future Work

  • Dataset and Attack Specificity: The findings are based on specific datasets and a set of common white-box attacks. The generalizability to other datasets or more sophisticated attack types is not fully explored.
  • NAS Search Space vs. Algorithm: While the paper suggests the search space itself might not be the sole source of vulnerability, further work is needed to pinpoint the exact architectural features that contribute to robustness.
  • Ensembling Complexity: The ensembling approach, while effective, can increase computational overhead. Future work could focus on developing more efficient NAS algorithms that inherently discover robust ensemble-like structures or architectures with built-in redundancy.
  • Beyond Accuracy: The paper introduces metrics like HRS and PP-HRS to balance accuracy and robustness. Further research could explore how these metrics can be directly incorporated into NAS objectives to guide the search for robust architectures.

Summary updated

BibTeX
@inproceedings{devaguptapu2021adversarial,
  author = {Chaitanya Devaguptapu and Devansh Agarwal and Gaurav Mittal and Pulkit Gopalani and Vineeth N. Balasubramanian},
  title = {{On Adversarial Robustness: A Neural Architecture Search perspective}},
  booktitle = {ICCVW},
  year = {2021},
  url = {https://openreview.net/forum?id=c6BUSa4cRrFs},
}
Figure