Can CNNs Be More Robust Than Transformers?
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
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
38 more
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
- 2022A ConvNet for the 2020scited by 3,545
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,540
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,360
- 2017Non-local Neural Networkscited by 2,290
- 2019Searching for MobileNetV3cited by 1,984
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
- 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,430
- 2017Random Erasing Data Augmentationcited by 1,235
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
- 2021Scaling Vision Transformerscited by 993
- 2016Deep Networks with Stochastic Depthcited by 973
- 2021iBOT: Image BERT Pre-Training with Online Tokenizercited by 891
- 2021Going deeper with Image Transformerscited by 759
- 2021RepVGG: Making VGG-style ConvNets Great Againcited by 520
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2021Early Convolutions Help Transformers See Bettercited by 395
- 2021ResNet strikes back: An improved training procedure in timmcited by 365
- 2021High-Performance Large-Scale Image Recognition Without Normalizationcited by 359
- 2021Vision Transformers are Robust Learnerscited by 208
- 2022Patches Are All You Need?cited by 201
- 2021Are Transformers More Robust Than CNNs?cited by 187
- 2022Scaling Up Your Kernels to 31x31: Revisiting Large Kernel Design in CNNscited by 155
- 2021Self-Supervised Learning with Swin Transformerscited by 121
- 2018Benchmarking Neural Network Robustness to Common Corruptions and Surface Variationscited by 99
- 2021Delving Deep into the Generalization of Vision Transformers under Distribution Shiftscited by 85
- 2021Go Wider Instead of Deepercited by 56
- 2021RepMLPNet: Hierarchical Vision MLP with Re-parameterized Localitycited by 32
- 2017Comparison of Batch Normalization and Weight Normalization Algorithms for the Large-scale Image Classificationcited by 18
Built on by
Citing papers per year: 2022: 5; 2023: 20; 2024: 9; 2025: 1; 2026: 3.
38 papers.
Sort:
- 2023FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterizationcited by 161
- 2022MetaFormer Baselines for Visioncited by 131
- 2023A Comprehensive Study on Robustness of Image Classification Models: Benchmarking and Rethinkingcited by 85
- 2024Touchstone Benchmark: Are We on the Right Way for Evaluating AI Algorithms for Medical Segmentation?cited by 31
- 2023Survey on Unsupervised Domain Adaptation for Semantic Segmentation for Visual Perception in Automated Drivingcited by 29
- 2022Context-Aware Robust Fine-Tuningcited by 27
- 2023A Survey on the Robustness of Computer Vision Models against Common Corruptionscited by 20
- 2023Fantastic Gains and Where to Find Them: On the Existence and Prospect of General Knowledge Transfer between Any Pretrained Modelcited by 19
- 2023ConvNet vs Transformer, Supervised vs CLIP: Beyond ImageNet Accuracycited by 19
- 2022Understanding the Covariance Structure of Convolutional Filterscited by 16
- 2022Evaluating Out-of-Distribution Performance on Document Image Classifierscited by 16
- 2024Navigating the Maze of Explainable AI: A Systematic Approach to Evaluating Methods and Metricscited by 15
26 more
- 2023On the unreasonable vulnerability of transformers for image restoration -- and an easy fixcited by 11
- 2022How Does a Deep Learning Model Architecture Impact Its Privacy? A Comprehensive Study of Privacy Attacks on CNNs and Transformerscited by 8
- 2023Are Large Kernels Better Teachers than Transformers for ConvNets?cited by 8
- 2023An Analysis of Initial Training Strategies for Exemplar-Free Class-Incremental Learningcited by 7
- 2023Foundation Model-oriented Robustness: Robust Image Model Evaluation with Pretrained Modelscited by 6
- 2023SUNY: A Visual Interpretation Framework for Convolutional Neural Networks from a Necessary and Sufficient Perspectivecited by 5
- 2024SpecFormer: Guarding Vision Transformer Robustness via Maximum Singular Value Penalizationcited by 5
- 2023Effects of Architectures on Continual Semantic Segmentationcited by 3
- 2024RapidNet: Multi-Level Dilated Convolution Based Mobile Backbonecited by 3
- 2025HGFormer: Topology-Aware Vision Transformer with HyperGraph Learningcited by 3
- 2023FedConv: Enhancing Convolutional Neural Networks for Handling Data Heterogeneity in Federated Learningcited by 2
- 2024Towards Robust Semantic Segmentation against Patch-based Attack via Attention Refinementcited by 2
- 2024Synergy and Diversity in CLIP: Enhancing Performance Through Adaptive Backbone Ensemblingcited by 2
- 2023Benchmarking Low-Shot Robustness to Natural Distribution Shiftscited by 1
- 2023Hardwiring ViT Patch Selectivity into CNNs using Patch Mixingcited by 1
- 2023GeoViT: A Versatile Vision Transformer Architecture for Geospatial Image Analysiscited by 1
- 2024Artificial Human Intelligence: The role of Humans in the Development of Next Generation AIcited by 1
- 2023Inference Time Evidences of Adversarial Attacks for Forensic on Transformerscited by 0
- 2023Enhancing Classification with Hierarchical Scalable Query on Fusion Transformercited by 0
- 2023Fine-Grained ImageNet Classification in the Wildcited by 0
- 2023Radar-Lidar Fusion for Object Detection by Designing Effective Convolution Networkscited by 0
- 2024M&M: Multimodal-Multitask Model Integrating Audiovisual Cues in Cognitive Load Assessmentcited by 0
- 2024Is Smoothness the Key to Robustness? A Comparison of Attention and Convolution Models Using a Novel Metriccited by 0
- 2026Robustness of Vision Foundation Models to Common Perturbationscited by 0
- 2026Revisiting Shape and Texture Reliance with Category-Separability-Calibrated Suppressioncited by 0
- 2026VL-AcneSeg: A Vision-Language Framework for Region-Aware Acne Lesion Segmentationcited by 0
- 2026VL-AcneSeg: A Vision-Language Framework for Region-Aware Acne Lesion Segmentation28 Sep 2026
- 2026Revisiting Shape and Texture Reliance with Category-Separability-Calibrated Suppression13 Jul 2026
- 2026Robustness of Vision Foundation Models to Common Perturbations16 Apr 2026
- 2025HGFormer: Topology-Aware Vision Transformer with HyperGraph Learning3 Apr 2025
- 2024RapidNet: Multi-Level Dilated Convolution Based Mobile Backbone14 Dec 2024
- 2024Touchstone Benchmark: Are We on the Right Way for Evaluating AI Algorithms for Medical Segmentation?6 Nov 2024
- 2024Is Smoothness the Key to Robustness? A Comparison of Attention and Convolution Models Using a Novel Metric23 Oct 2024
- 2024Navigating the Maze of Explainable AI: A Systematic Approach to Evaluating Methods and Metrics25 Sep 2024
- 2024Artificial Human Intelligence: The role of Humans in the Development of Next Generation AI24 Sep 2024
- 2024Synergy and Diversity in CLIP: Enhancing Performance Through Adaptive Backbone Ensembling27 May 2024
- 2024M&M: Multimodal-Multitask Model Integrating Audiovisual Cues in Cognitive Load Assessment14 Mar 2024
- 2024Towards Robust Semantic Segmentation against Patch-based Attack via Attention Refinement3 Jan 2024
26 more
- 2024SpecFormer: Guarding Vision Transformer Robustness via Maximum Singular Value Penalization2 Jan 2024
- 2023GeoViT: A Versatile Vision Transformer Architecture for Geospatial Image Analysis24 Nov 2023
- 2023ConvNet vs Transformer, Supervised vs CLIP: Beyond ImageNet Accuracy15 Nov 2023
- 2023Radar-Lidar Fusion for Object Detection by Designing Effective Convolution Networks30 Oct 2023
- 2023Fantastic Gains and Where to Find Them: On the Existence and Prospect of General Knowledge Transfer between Any Pretrained Model26 Oct 2023
- 2023FedConv: Enhancing Convolutional Neural Networks for Handling Data Heterogeneity in Federated Learning6 Oct 2023
- 2023An Analysis of Initial Training Strategies for Exemplar-Free Class-Incremental Learning22 Aug 2023
- 2023Foundation Model-oriented Robustness: Robust Image Model Evaluation with Pretrained Models21 Aug 2023
- 2023On the unreasonable vulnerability of transformers for image restoration -- and an easy fix25 Jul 2023
- 2023Hardwiring ViT Patch Selectivity into CNNs using Patch Mixing30 Jun 2023
- 2023Are Large Kernels Better Teachers than Transformers for ConvNets?30 May 2023
- 2023A Survey on the Robustness of Computer Vision Models against Common Corruptions10 May 2023
- 2023Survey on Unsupervised Domain Adaptation for Semantic Segmentation for Visual Perception in Automated Driving24 Apr 2023
- 2023Benchmarking Low-Shot Robustness to Natural Distribution Shifts21 Apr 2023
- 2023FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterization24 Mar 2023
- 2023Fine-Grained ImageNet Classification in the Wild4 Mar 2023
- 2023SUNY: A Visual Interpretation Framework for Convolutional Neural Networks from a Necessary and Sufficient Perspective1 Mar 2023
- 2023Enhancing Classification with Hierarchical Scalable Query on Fusion Transformer28 Feb 2023
- 2023A Comprehensive Study on Robustness of Image Classification Models: Benchmarking and Rethinking28 Feb 2023
- 2023Effects of Architectures on Continual Semantic Segmentation21 Feb 2023
- 2023Inference Time Evidences of Adversarial Attacks for Forensic on Transformers31 Jan 2023
- 2022Context-Aware Robust Fine-Tuning29 Nov 2022
- 2022MetaFormer Baselines for Vision24 Oct 2022
- 2022How Does a Deep Learning Model Architecture Impact Its Privacy? A Comprehensive Study of Privacy Attacks on CNNs and Transformers20 Oct 2022
- 2022Evaluating Out-of-Distribution Performance on Document Image Classifiers14 Oct 2022
- 2022Understanding the Covariance Structure of Convolutional Filters7 Oct 2022
- 2023FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterizationcited by 161
- 2022MetaFormer Baselines for Visioncited by 131
- 2023A Comprehensive Study on Robustness of Image Classification Models: Benchmarking and Rethinkingcited by 85
- 2024Touchstone Benchmark: Are We on the Right Way for Evaluating AI Algorithms for Medical Segmentation?cited by 31
- 2023Survey on Unsupervised Domain Adaptation for Semantic Segmentation for Visual Perception in Automated Drivingcited by 29
- 2022Context-Aware Robust Fine-Tuningcited by 27
- 2023A Survey on the Robustness of Computer Vision Models against Common Corruptionscited by 20
- 2023Fantastic Gains and Where to Find Them: On the Existence and Prospect of General Knowledge Transfer between Any Pretrained Modelcited by 19
- 2023ConvNet vs Transformer, Supervised vs CLIP: Beyond ImageNet Accuracycited by 19
- 2022Understanding the Covariance Structure of Convolutional Filterscited by 16
- 2022Evaluating Out-of-Distribution Performance on Document Image Classifierscited by 16
- 2024Navigating the Maze of Explainable AI: A Systematic Approach to Evaluating Methods and Metricscited by 15
12 most cited of 38 All 38 (JSON)
- 2026VL-AcneSeg: A Vision-Language Framework for Region-Aware Acne Lesion Segmentation28 Sep 2026
- 2026Revisiting Shape and Texture Reliance with Category-Separability-Calibrated Suppression13 Jul 2026
- 2026Robustness of Vision Foundation Models to Common Perturbations16 Apr 2026
- 2025HGFormer: Topology-Aware Vision Transformer with HyperGraph Learning3 Apr 2025
- 2024RapidNet: Multi-Level Dilated Convolution Based Mobile Backbone14 Dec 2024
- 2024Touchstone Benchmark: Are We on the Right Way for Evaluating AI Algorithms for Medical Segmentation?6 Nov 2024
- 2024Is Smoothness the Key to Robustness? A Comparison of Attention and Convolution Models Using a Novel Metric23 Oct 2024
- 2024Navigating the Maze of Explainable AI: A Systematic Approach to Evaluating Methods and Metrics25 Sep 2024
- 2024Artificial Human Intelligence: The role of Humans in the Development of Next Generation AI24 Sep 2024
- 2024Synergy and Diversity in CLIP: Enhancing Performance Through Adaptive Backbone Ensembling27 May 2024
- 2024M&M: Multimodal-Multitask Model Integrating Audiovisual Cues in Cognitive Load Assessment14 Mar 2024
- 2024Towards Robust Semantic Segmentation against Patch-based Attack via Attention Refinement3 Jan 2024
12 newest of 38 All 38 (JSON)