DSRNA: Differentiable Search of Robust Neural Architectures

Ramtin Hosseini, Xingyi Yang, Pengtao Xie

TL;DR

DSRNA (Differentiable Search of Robust Neural Architectures) introduces a way to bake adversarial robustness directly into the Neural Architecture Search (NAS) process. By explicitly maximizing differentiable robustness metrics—specifically certified lower bounds and Jacobian norm bounds—during the search, the authors discover architectures that are inherently more resistant to attacks while maintaining state-of-the-art accuracy on clean data.

What Problem Does This Paper Address?

Neural Architecture Search (NAS) has revolutionized deep learning by automating the design of high-performance models. However, models found through standard NAS are often "brittle"—highly accurate on standard datasets but easily fooled by adversarial attacks (tiny, human-imperceptible perturbations to input data).

Existing attempts to find robust architectures usually rely on implicit methods, such as performing adversarial training during the search phase. This is computationally expensive and doesn't provide formal guarantees. The authors of DSRNA argue that robustness shouldn't be an afterthought or a side effect of training; it should be a primary objective of the architecture search itself.

Methods

The core innovation of DSRNA is the definition of two differentiable metrics that quantify an architecture's robustness. Because these metrics are differentiable, they can be integrated into gradient-based NAS frameworks like DARTS.

  1. Certified Lower Bound (CB): This metric uses interval bound propagation techniques (specifically building on CNN-Cert). The authors derive linear upper and lower bounds for common NAS building blocks (like ReLU-Conv-BN and Separable Convolutions). By composing these, they calculate a global "certified" bound—a mathematical guarantee that the model's prediction won't change if the input perturbation is within a certain limit.
  2. Jacobian Norm Bound: As a more computationally efficient alternative, the authors use the norm of the Jacobian matrix (the matrix of all first-order partial derivatives of the network's output with respect to its input). Intuitively, a smaller Jacobian norm means the network's output is less sensitive to small changes in the input, leading to greater stability.

The search is formulated as a bi-level optimization problem: the "inner" loop trains the network weights, while the "outer" loop updates the architecture parameters to simultaneously minimize validation loss and maximize one of these robustness metrics.

Datasets

The authors evaluated DSRNA on three standard benchmarks:

  • CIFAR-10: Used for the primary architecture search and evaluation.
  • ImageNet: Used to test the "transferability" of the searched cells to larger, more complex tasks.
  • MNIST: Used for additional verification-based evaluation.

Key Insights and Ideas

  • Explicit is Better than Implicit: Directly optimizing for a robustness metric is more effective than hoping adversarial training during search will produce a robust structure. The results show that DSRNA architectures are consistently more robust across different types of attacks (FGSM, PGD, and C&W).
  • The Robustness-Accuracy Trade-off is Negotiable: A common belief in deep learning is that increasing robustness inevitably hurts standard accuracy. DSRNA challenges this by finding architectures that match the clean accuracy of state-of-the-art NAS models while being significantly more robust.
  • Efficiency vs. Rigor: The Jacobian norm metric is an order of magnitude faster to compute than the Certified Bound (0.4 vs 4.0 GPU days on CIFAR-10). While the Certified Bound provides slightly better robustness, the Jacobian metric offers a highly practical "middle ground" for researchers with limited compute.

Key Results

DSRNA significantly outperformed existing robust NAS baselines like RobNet and SDARTS-ADV.

  • Adversarial Robustness: On CIFAR-10, DSRNA-CB achieved 60.31% accuracy under PGD-10 attacks, compared to ~57% for SDARTS-ADV and ~49% for RobNet-large.
  • Resistance to C&W Attacks: The improvement was even more dramatic against the $l_2$-norm C&W attack, where DSRNA achieved 63.01% accuracy, while previous differentiable NAS methods plummeted to ~42%.
Table 1. Accuracy (%) (standard deviation) of different methods under various norm-bound attacks on CIFAR-10. ∗Average of five runs.
  • Clean Accuracy: Despite the focus on robustness, DSRNA maintained a test accuracy of 97.42% on CIFAR-10, which is on par with standard high-performance NAS methods.
  • Transferability: Architectures searched on CIFAR-10 transferred well to ImageNet, maintaining a significant robustness lead over baselines.
Table 3. Accuracy (%) (mean and standard deviation) of different methods on ImageNet under various attacks and without attack. ∗Average of five runs.

Limitations and Future Work

  • Approximation Errors: The Jacobian norm bound relies on a first-order Taylor expansion, which is only an approximation of the network's behavior.
  • Search Space Constraints: The method is currently demonstrated within the DARTS search space. Extending this to more diverse or hardware-aware search spaces remains an open area.
  • Computational Overhead: While the Jacobian version is efficient, the Certified Bound version is still relatively slow, taking 4 GPU days for the search phase. Future work could focus on even tighter and faster-to-compute differentiable bounds.

Summary updated

BibTeX
@inproceedings{hosseini2021dsrna,
  author = {Ramtin Hosseini and Xingyi Yang and Pengtao Xie},
  title = {{DSRNA: Differentiable Search of Robust Neural Architectures}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=XVjxg63jajS},
}
Figure