DSRNA: Differentiable Search of Robust Neural Architectures

Ramtin Hosseini, Xingyi Yang, Pengtao Xie

Abstract

In deep learning applications, the architectures of deep neural networks are crucial in achieving high accuracy. Many methods have been proposed to search for high-performance neural architectures automatically. However, these searched architectures are prone to adversarial attacks. A small perturbation of the input data can render the architecture to change prediction outcomes significantly. To address this problem, we propose methods to perform differentiable searches of robust neural architectures. In our methods, two differentiable metrics are defined to measure architectures' robustness, based on certified lower bound and Jacobian norm bound. Then we search for robust architectures by maximizing the robustness metrics. Different from previous approaches which aim to improve architectures' robustness in an implicit way: performing adversarial training and injecting random noise, our methods explicitly and directly maximize robustness metrics to harvest robust architectures. On CIFAR-10, ImageNet, and MNIST, we perform game-based evaluation and verification-based evaluation on the robustness of our methods. The experimental results show that our methods 1) are more robust to various norm-bound attacks than several robust NAS baselines; 2) are more accurate than baselines when there are no attacks; 3) have significantly higher certified lower bounds than baselines.

Introduction

Neural Architecture Search (NAS) has revolutionized the design of high-accuracy models, often outperforming human-engineered structures. However, these automatically discovered models frequently exhibit a "glass jaw," demonstrating extreme fragility when subjected to adversarial attacks—small, human-imperceptible perturbations that can drastically alter a model's predictions.

Existing strategies to mitigate this vulnerability typically rely on adversarial training during the search phase. This approach is fundamentally implicit and often inefficient, failing to provide robustness guarantees and frequently leading to "catastrophic forgetting" of performance on clean data. DSRNA addresses this gap by introducing a principled, explicit, and differentiable framework to measure and maximize robustness directly within the architecture search process.

Methodology: Explicit Robustness Optimization

DSRNA formulates robust NAS as a bi-level optimization problem. While the inner loop optimizes network weights, the outer loop optimizes architecture variables ($\alpha$) to simultaneously minimize validation loss and maximize an explicit robustness metric ($R$).

The framework introduces two primary differentiable metrics for $R$:

  1. Certified Lower Bound (CB): Utilizing interval bound propagation techniques, this metric calculates a mathematically guaranteed "safety zone" around an input. If an attack's magnitude remains within this bound, the prediction is guaranteed to remain unchanged.
  2. Jacobian Norm Bound: This serves as a measure of the model's sensitivity to input changes. By minimizing the norm of the Jacobian matrix, the search process encourages the discovery of "smoother" architectures that are less reactive to small input noise.

The search space is based on DARTS, utilizing a directed acyclic graph (DAG) of operations. A key innovation is the "Jacobian shortcut"; while calculating certified bounds is rigorous, it is computationally intensive. As shown in Table 1, the Jacobian norm serves as a highly effective and significantly faster proxy, reducing search costs from 4.0 GPU days to just 0.4 GPU days while maintaining high clean accuracy.

Table 1: Comparison of test accuracy, parameters, and search cost on CIFAR-10.

Experimental Results

The researchers evaluated DSRNA on MNIST, CIFAR-10, and ImageNet. The results consistently demonstrate that DSRNA outperforms state-of-the-art robust NAS baselines such as RobNet and SDARTS-ADV.

Adversarial and Clean Performance

On the CIFAR-10 dataset, DSRNA-Combined achieved a PGD-100 adversarial accuracy of 60.71%, significantly higher than the ~56.8% achieved by previous leading methods. Crucially, this gain in robustness does not come at the expense of standard performance; DSRNA maintained a clean accuracy of 97.51%, nearly identical to standard DARTS.

Table 2: Robustness evaluation under various adversarial attacks on CIFAR-10.

Transferability and Certified Robustness

Architectures discovered on CIFAR-10 proved highly transferable. When scaled and trained on ImageNet, DSRNA-CB outperformed RobNet-large by nearly 15% in clean accuracy and showed superior performance across all attack types (PGD, FGSM, C&W). Furthermore, verification-based evaluations revealed that DSRNA models possess significantly higher certified lower bounds, indicating they are provably safer against a broader range of perturbations than baseline architectures.

Discussion and Conclusion

The success of DSRNA highlights that robustness is not merely a function of training weights, but is deeply tied to the physical "wiring" of the network. By explicitly maximizing robustness metrics, DSRNA finds structures where perturbations are less likely to propagate and amplify. While the Jacobian method offers a fast and effective search, the more rigorous Certified Bound (CB) method remains computationally demanding. Future work may explore these robustness metrics in more diverse search spaces and investigate automated methods for tuning the tradeoff between accuracy and robustness.

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