Differentiable Search of Accurate and Robust Architectures

Yuwei Ou, Xiangning Xie, Shangce Gao, Yanan Sun, Kay Chen Tan, Jiancheng LvarXiv 2022 · DOI

TL;DR

This paper introduces DSARA, a novel method for automatically designing neural network architectures that are both accurate on clean data and robust against adversarial attacks. DSARA employs a specialized search space and a two-stage training strategy to find architectures that excel in both performance metrics, addressing a key limitation in current defense mechanisms.

What Problem Does This Paper Address?

Deep neural networks (DNNs), despite their impressive performance, are notoriously vulnerable to adversarial attacks. These attacks involve making subtle, imperceptible changes to input data that can cause DNNs to misclassify them with high confidence. While adversarial training is a popular defense strategy, its effectiveness is heavily dependent on the underlying neural network architecture. Poorly designed architectures, even when subjected to adversarial training, often result in a trade-off between accuracy on clean data and robustness against attacks. This paper aims to bridge this gap by developing a method to automatically discover neural architectures that are inherently more capable of achieving both high accuracy and strong robustness after adversarial training.

Methods

DSARA introduces several key innovations:

  • Specialized Search Space: Instead of using standard neural architecture search (NAS) spaces designed for general accuracy, DSARA proposes a cell-based search space specifically tailored for adversarial training. This space includes "Accurate Cells," "Robust Cells," and "Reduction Cells," with a novel design that allows for different cell types and filter configurations to be placed strategically throughout the network. The authors hypothesize and later demonstrate that different parts of a network might benefit from different architectural designs for robustness and accuracy.
  • Two-Stage Search Strategy: DSARA employs a two-stage optimization process:
  • Stage 1 (Robustness Focus): The architecture parameters are primarily optimized to minimize adversarial loss using standard adversarial training. This stage prioritizes enhancing the network's resilience to attacks.
  • Stage 2 (Accuracy & Robustness Balance): In the second stage, a multi-objective adversarial training method is used to optimize both natural loss (for accuracy) and adversarial loss (for robustness) simultaneously. This fine-tunes the architecture to achieve a better balance between the two critical metrics.
  • Differentiable Architecture Search: The core search mechanism is based on differentiable NAS, allowing for efficient gradient-based optimization of architecture parameters, significantly reducing the computational cost compared to evolutionary or reinforcement learning-based NAS methods.

Datasets

The experiments were conducted on the following standard image classification datasets:

  • CIFAR-10: A widely used dataset with 10 classes.
  • CIFAR-100: A more challenging version of CIFAR with 100 classes.
  • SVHN (Street View House Numbers): A dataset of house numbers for digit recognition.
  • Tiny-ImageNet-200: A larger-scale dataset with 200 classes.

Key Insights and Ideas

  • Architectural Diversity is Key: The most significant insight is that robust and accurate neural networks often require different architectural structures in different parts of the network (e.g., near the input vs. near the output). This challenges the common practice of using repetitive, uniform cell structures throughout a network and suggests that specialized cell placement is crucial for achieving both accuracy and robustness.
  • Adversarial Training as a Search Objective: The paper demonstrates that adversarial training can be directly used as an objective within the differentiable NAS framework to search for robust architectures, rather than relying solely on indirect robustness metrics.
  • Two-Stage Optimization Yields Better Trade-offs: The proposed two-stage search strategy, starting with a focus on robustness and then balancing accuracy and robustness, proves more effective than single-stage optimization or optimizing for both objectives from the start.
  • FLOPs Matter for Robustness: The study suggests that not only the number of parameters but also the computational cost (FLOPs) plays a significant role in adversarial robustness, offering a more nuanced understanding than previous studies.

Key Results

  • State-of-the-Art Robustness: The DSARA architecture achieved the highest adversarial accuracy across various white-box attacks (PGD20, PGD100, AutoAttack) on CIFAR-10 compared to hand-crafted, standard NAS, and robust NAS methods. For instance, it achieved 55.87% adversarial accuracy under PGD20, significantly outperforming competitors.
  • Competitive Natural Accuracy: While prioritizing robustness, DSARA still achieved competitive natural accuracy, often only slightly lower than the best models but with substantially improved robustness. For example, on CIFAR-10, its natural accuracy was 85.92%, comparable to top performers.
  • Transferability: Architectures found by DSARA showed good transferability to other datasets like CIFAR-100 and SVHN, maintaining strong adversarial robustness.
  • Ablation Studies: Experiments confirmed the effectiveness of each component: the specialized search space, the two-stage search strategy, and the multi-objective adversarial training method all contributed to the superior performance.

Limitations and Future Work

  • Computational Cost: While DSARA is more efficient than many NAS methods, the search process still requires significant computational resources.
  • Transferability to Large-Scale Datasets: The paper notes that NAS-based architectures searched on smaller datasets like CIFAR-10 may not transfer as well to very large-scale datasets like ImageNet (or Tiny-ImageNet-200 in their experiments) for adversarial training, performing worse than specialized hand-crafted architectures.
  • Future Work: The authors suggest further research into understanding why different architectural structures in different positions impact accuracy and robustness, aiming to provide theoretical guidance for future architecture design. They also propose exploring the multi-objective optimization idea for training network weights directly.

Summary updated

BibTeX
@misc{ou2022differentiable,
  author = {Yuwei Ou and Xiangning Xie and Shangce Gao and Yanan Sun and Kay Chen Tan and Jiancheng Lv},
  title = {{Differentiable Search of Accurate and Robust Architectures}},
  year = {2022},
  eprint = {2212.14049},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.14049},
}
Figure