mlsanityData to 7 Oct 2026

Can CNNs Be More Robust Than Transformers?

arXiv 2206.03452 ↗First posted 7 Jun 2022cs.CVcited by 38

Not on the map. Why?

Abstract (arXiv)

The recent success of Vision Transformers is shaking the long dominance of Convolutional Neural Networks (CNNs) in image recognition for a decade. Specifically, in terms of robustness on out-of-distribution samples, recent research finds that Transformers are inherently more robust than CNNs, regardless of different training setups. Moreover, it is believed that such superiority of Transformers should largely be credited to their self-attention-like architectures per se. In this paper, we question that belief by closely examining the design of Transformers. Our findings lead to three highly effective architecture designs for boosting robustness, yet simple enough to be implemented in several lines of code, namely a) patchifying input images, b) enlarging kernel size, and c) reducing activation layers and normalization layers. Bringing these components together, we are able to build pure CNN architectures without any attention-like operations that are as robust as, or even more robust than, Transformers. We hope this work can help the community better understand the design of robust neural architectures. The code is publicly available at https://github.com/UCSC-VLAA/RobustCNN.

Key facts. Cited by 38 papers in the map (data through 7 Oct 2026). Builds on 50 of its 60 references that are in the map. First posted on arXiv 7 Jun 2022.

Builds on

50 of 60 references.

References · 50

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  7. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  8. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  9. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
  10. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  11. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  12. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
38 more
  1. 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
  2. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  3. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  4. 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
  5. 2022A ConvNet for the 2020scited by 3,545
  6. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
  7. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  8. 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,540
  9. 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,360
  10. 2017Non-local Neural Networkscited by 2,290
  11. 2019Searching for MobileNetV3cited by 1,984
  12. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  13. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
  14. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  15. 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
  16. 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,430
  17. 2017Random Erasing Data Augmentationcited by 1,235
  18. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  19. 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
  20. 2021Scaling Vision Transformerscited by 993
  21. 2016Deep Networks with Stochastic Depthcited by 973
  22. 2021iBOT: Image BERT Pre-Training with Online Tokenizercited by 891
  23. 2021Going deeper with Image Transformerscited by 759
  24. 2021RepVGG: Making VGG-style ConvNets Great Againcited by 520
  25. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  26. 2021Early Convolutions Help Transformers See Bettercited by 395
  27. 2021ResNet strikes back: An improved training procedure in timmcited by 365
  28. 2021High-Performance Large-Scale Image Recognition Without Normalizationcited by 359
  29. 2021Vision Transformers are Robust Learnerscited by 208
  30. 2022Patches Are All You Need?cited by 201
  31. 2021Are Transformers More Robust Than CNNs?cited by 187
  32. 2022Scaling Up Your Kernels to 31x31: Revisiting Large Kernel Design in CNNscited by 155
  33. 2021Self-Supervised Learning with Swin Transformerscited by 121
  34. 2018Benchmarking Neural Network Robustness to Common Corruptions and Surface Variationscited by 99
  35. 2021Delving Deep into the Generalization of Vision Transformers under Distribution Shiftscited by 85
  36. 2021Go Wider Instead of Deepercited by 56
  37. 2021RepMLPNet: Hierarchical Vision MLP with Re-parameterized Localitycited by 32
  38. 2017Comparison of Batch Normalization and Weight Normalization Algorithms for the Large-scale Image Classificationcited by 18

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 5; 2023: 20; 2024: 9; 2025: 1; 2026: 3.

38 papers.

Sort:

  1. 2023FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterizationcited by 161
  2. 2022MetaFormer Baselines for Visioncited by 131
  3. 2023A Comprehensive Study on Robustness of Image Classification Models: Benchmarking and Rethinkingcited by 85
  4. 2024Touchstone Benchmark: Are We on the Right Way for Evaluating AI Algorithms for Medical Segmentation?cited by 31
  5. 2023Survey on Unsupervised Domain Adaptation for Semantic Segmentation for Visual Perception in Automated Drivingcited by 29
  6. 2022Context-Aware Robust Fine-Tuningcited by 27
  7. 2023A Survey on the Robustness of Computer Vision Models against Common Corruptionscited by 20
  8. 2023Fantastic Gains and Where to Find Them: On the Existence and Prospect of General Knowledge Transfer between Any Pretrained Modelcited by 19
  9. 2023ConvNet vs Transformer, Supervised vs CLIP: Beyond ImageNet Accuracycited by 19
  10. 2022Understanding the Covariance Structure of Convolutional Filterscited by 16
  11. 2022Evaluating Out-of-Distribution Performance on Document Image Classifierscited by 16
  12. 2024Navigating the Maze of Explainable AI: A Systematic Approach to Evaluating Methods and Metricscited by 15
26 more
  1. 2023On the unreasonable vulnerability of transformers for image restoration -- and an easy fixcited by 11
  2. 2022How Does a Deep Learning Model Architecture Impact Its Privacy? A Comprehensive Study of Privacy Attacks on CNNs and Transformerscited by 8
  3. 2023Are Large Kernels Better Teachers than Transformers for ConvNets?cited by 8
  4. 2023An Analysis of Initial Training Strategies for Exemplar-Free Class-Incremental Learningcited by 7
  5. 2023Foundation Model-oriented Robustness: Robust Image Model Evaluation with Pretrained Modelscited by 6
  6. 2023SUNY: A Visual Interpretation Framework for Convolutional Neural Networks from a Necessary and Sufficient Perspectivecited by 5
  7. 2024SpecFormer: Guarding Vision Transformer Robustness via Maximum Singular Value Penalizationcited by 5
  8. 2023Effects of Architectures on Continual Semantic Segmentationcited by 3
  9. 2024RapidNet: Multi-Level Dilated Convolution Based Mobile Backbonecited by 3
  10. 2025HGFormer: Topology-Aware Vision Transformer with HyperGraph Learningcited by 3
  11. 2023FedConv: Enhancing Convolutional Neural Networks for Handling Data Heterogeneity in Federated Learningcited by 2
  12. 2024Towards Robust Semantic Segmentation against Patch-based Attack via Attention Refinementcited by 2
  13. 2024Synergy and Diversity in CLIP: Enhancing Performance Through Adaptive Backbone Ensemblingcited by 2
  14. 2023Benchmarking Low-Shot Robustness to Natural Distribution Shiftscited by 1
  15. 2023Hardwiring ViT Patch Selectivity into CNNs using Patch Mixingcited by 1
  16. 2023GeoViT: A Versatile Vision Transformer Architecture for Geospatial Image Analysiscited by 1
  17. 2024Artificial Human Intelligence: The role of Humans in the Development of Next Generation AIcited by 1
  18. 2023Inference Time Evidences of Adversarial Attacks for Forensic on Transformerscited by 0
  19. 2023Enhancing Classification with Hierarchical Scalable Query on Fusion Transformercited by 0
  20. 2023Fine-Grained ImageNet Classification in the Wildcited by 0
  21. 2023Radar-Lidar Fusion for Object Detection by Designing Effective Convolution Networkscited by 0
  22. 2024M&M: Multimodal-Multitask Model Integrating Audiovisual Cues in Cognitive Load Assessmentcited by 0
  23. 2024Is Smoothness the Key to Robustness? A Comparison of Attention and Convolution Models Using a Novel Metriccited by 0
  24. 2026Robustness of Vision Foundation Models to Common Perturbationscited by 0
  25. 2026Revisiting Shape and Texture Reliance with Category-Separability-Calibrated Suppressioncited by 0
  26. 2026VL-AcneSeg: A Vision-Language Framework for Region-Aware Acne Lesion Segmentationcited by 0