Robust Principles: Architectural Design Principles for Adversarially Robust CNNs

Shengyun Peng, Weilin Xu, Cory Cornelius, Matthew Hull, Kevin Li, Rahul Duggal, Mansi Phute, Jason Martin, Duen Horng Chau · DOI

Abstract

Despite the widespread adoption of Convolutional Neural Networks (CNNs) in computer vision, their inherent vulnerability to adversarial attacks remains a significant challenge. While adversarial training (AT) has emerged as a primary defense, the impact of architectural design on robustness has been poorly understood, often yielding conflicting results across different datasets. This paper establishes a systematic framework for building robust CNNs by identifying three core design principles: optimizing the Width-Depth (WD) ratio, utilizing overlapping convolutional stems, and refining residual blocks with specific Squeeze-and-Excitation (SE) configurations and smooth activations. These principles, synthesized into "Robust architecture" (Ra) models, yield substantial improvements in adversarial accuracy, boosting AutoAttack performance on ImageNet by up to 9 percentage points.

Introduction: The Fragility of Vision

Convolutional Neural Networks (CNNs) are the backbone of modern computer vision. However, they are notoriously susceptible to adversarial perturbations—carefully crafted, often imperceptible changes to input images that lead to incorrect classifications. While the research community has developed various adversarial training "recipes," the role of the model architecture itself has remained a point of contention.

Previous studies often provided contradictory advice, largely because findings from small-scale datasets like CIFAR-10 failed to generalize to large-scale benchmarks like ImageNet. This research addresses this gap by conducting a rigorous, large-scale exploration of the CNN design space to establish a "unified field theory" for architectural robustness.

The Three Pillars of Robust Design

The authors identify three critical levels of architectural design that influence a model's ability to withstand attacks: Macro-Design, Stem-Design, and Micro-Design.

1. Macro-Design: The Width-Depth (WD) Ratio

A central finding of this research is the importance of the Width-Depth (WD) ratio, defined as the average ratio of channels to blocks across the network's stages. The study reveals that for a fixed parameter budget, "deep and narrow" networks are consistently more robust than "shallow and wide" ones. The researchers identified an optimal WD ratio range between 7.5 and 13.5. While wider networks may be easier to train, they are significantly easier to fool, suggesting that depth is a critical component of adversarial stability.

2. Stem-Design: Overlapping Kernels vs. Patchify

Modern Vision Transformers (ViTs) often utilize a "patchify" stem, which processes images into non-overlapping patches. However, this study finds that for CNNs, a convolutional stem with overlapping kernels and "postponed downsampling" is superior for robustness. By avoiding aggressive initial downsampling and allowing for overlapping receptive fields in the early layers, the network creates a more stable foundation that is less sensitive to pixel-level perturbations.

3. Micro-Design: The Robust Residual Block

At the block level, the researchers refined the internal structure of the residual unit through two key modifications:

  • Squeeze-and-Excitation (SE) Blocks: While previous literature suggested SE blocks might harm robustness, this paper identifies the reduction ratio ($r$) as the deciding factor. By using a low reduction ratio ($r=4$) instead of the standard $r=16$, SE blocks become a powerful defensive tool.
  • Smooth Activations: The authors found that replacing standard ReLU activations with non-parametric smooth functions, such as SiLU (Sigmoid Linear Unit) or GELU, significantly improves generalization on large-scale datasets like ImageNet compared to more complex parametric alternatives.

Experimental Setup and Scaling

To ensure the principles are truly generalizable, the study evaluated these designs across a spectrum of scales:

  • Standard Benchmarks: CIFAR-10, CIFAR-100, and ImageNet.
  • Data Augmentation: The researchers utilized state-of-the-art synthetic datasets, including "Diff. 1M" and "Diff. 50M" (generated via diffusion models), to push the boundaries of what robust architectures can achieve when paired with massive amounts of data.

Key Results and Comparative Performance

The resulting "Ra" (Robustified) models, such as Ra ResNet and Ra WRN, demonstrated consistent gains across all benchmarks:

  • ImageNet Gains: Robustified models improved AutoAttack (AA) accuracy by 4–9 percentage points (pp). Notably, Ra ResNet-101 achieved 46.26% AA accuracy, a significant jump from the baseline 39.78%.
  • CIFAR-10 Excellence: Even when using the strongest existing training methods, the principles provided a boost of 1–3 pp, with Ra WRN-70-16 reaching a top-tier 66.33% AA accuracy.
  • CNNs vs. Transformers: One of the most striking findings is that robustified CNNs often outperform modern Transformers (such as Swin-B or XCiT) of similar parameter counts. This suggests that CNNs, when designed with robustness in mind, remain highly competitive against newer architectures in adversarial contexts.

Discussion and Limitations

While these principles provide a clear roadmap for building more resilient models, challenges remain. Adversarial training is computationally expensive, and training large-scale models on ImageNet requires significant resources. Furthermore, while the empirical evidence for these principles is strong, the underlying theoretical relationship between the WD ratio and the model's loss landscape warrants further mathematical exploration. Future work should also investigate whether these design choices translate effectively to other vision tasks, such as object detection and semantic segmentation.

Conclusion

By systematizing the design of CNNs through the lens of robustness, this research moves beyond trial-and-error architecture search. The identified principles—prioritizing depth, maintaining overlapping stems, and fine-tuning micro-structures—provide a robust foundation for the next generation of computer vision models, proving that with the right design, CNNs can be made significantly more resilient to adversarial threats.

Summary updated

BibTeX
@inproceedings{peng2023robust,
  author = {Shengyun Peng and Weilin Xu and Cory Cornelius and Matthew Hull and Kevin Li and Rahul Duggal and Mansi Phute and Jason Martin and Duen Horng Chau},
  title = {{Robust Principles: Architectural Design Principles for Adversarially Robust CNNs}},
  booktitle = {BMVC},
  year = {2023},
  url = {https://openreview.net/forum?id=v4OuWSfhvW},
}
Figure