Delving Deep into the Generalization of Vision Transformers under Distribution Shifts
Not on the map. Why?
Abstract (arXiv)
Vision Transformers (ViTs) have achieved impressive performance on various vision tasks, yet their generalization under distribution shifts (DS) is rarely understood. In this work, we comprehensively study the out-of-distribution (OOD) generalization of ViTs. For systematic investigation, we first present a taxonomy of DS. We then perform extensive evaluations of ViT variants under different DS and compare their generalization with Convolutional Neural Network (CNN) models. Important observations are obtained: 1) ViTs learn weaker biases on backgrounds and textures, while they are equipped with stronger inductive biases towards shapes and structures, which is more consistent with human cognitive traits. Therefore, ViTs generalize better than CNNs under DS. With the same or less amount of parameters, ViTs are ahead of corresponding CNNs by more than 5% in top-1 accuracy under most types of DS. 2) As the model scale increases, ViTs strengthen these biases and thus gradually narrow the in-distribution and OOD performance gap. To further improve the generalization of ViTs, we design the Generalization-Enhanced ViTs (GE-ViTs) from the perspectives of adversarial learning, information theory, and self-supervised learning. By comprehensively investigating these GE-ViTs and comparing with their corresponding CNN models, we observe: 1) For the enhanced model, larger ViTs still benefit more for the OOD generalization. 2) GE-ViTs are more sensitive to the hyper-parameters than their corresponding CNN models. We design a smoother learning strategy to achieve a stable training process and obtain performance improvements on OOD data by 4% from vanilla ViTs. We hope our comprehensive study could shed light on the design of more generalizable learning architectures.
Key facts. Cited by 85 papers in the map (data through 7 Oct 2026). Builds on 33 of its 44 references that are in the map. First posted on arXiv 14 Jun 2021.
Builds on
33 of 44 references.
References · 33
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
- 2015Domain-Adversarial Training of Neural Networkscited by 3,023
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
21 more
- 2013Visualizing and Understanding Convolutional Networkscited by 2,278
- 2017Arbitrary Style Transfer in Real-time with Adaptive Instance Normalizationcited by 1,998
- 2014Unsupervised Domain Adaptation by Backpropagationcited by 1,906
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,430
- 2018Moment Matching for Multi-Source Domain Adaptationcited by 1,327
- 2015Learning Transferable Features with Deep Adaptation Networkscited by 1,323
- 2020Pre-Trained Image Processing Transformercited by 891
- 2019Big Transfer (BiT): General Visual Representation Learningcited by 766
- 2020Prototypical Contrastive Learning of Unsupervised Representationscited by 636
- 2018Generalizing to Unseen Domains via Adversarial Data Augmentationcited by 451
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2020End-to-End Video Instance Segmentation with Transformerscited by 443
- 2019Domain Generalization via Model-Agnostic Learning of Semantic Featurescited by 405
- 2020Noise or Signal: The Role of Image Backgrounds in Object Recognitioncited by 342
- 2019Semi-supervised Domain Adaptation via Minimax Entropycited by 333
- 2020Inductive Biases for Deep Learning of Higher-Level Cognitioncited by 273
- 2021Vision Transformers are Robust Learnerscited by 208
- 2019Unsupervised Domain Adaptation through Self-Supervisioncited by 116
- 2021Prototypical Cross-domain Self-supervised Learning for Few-shot Unsupervised Domain Adaptationcited by 83
Built on by
Citing papers per year: 2021: 2; 2022: 23; 2023: 17; 2024: 25; 2025: 10; 2026: 8.
85 papers.
Sort:
By area:
- 2023ClimaX: A foundation model for weather and climatecited by 325
- 2022Transformers in Medical Imaging: A Surveycited by 245
- 2021Are Transformers More Robust Than CNNs?cited by 187
- 2022Sparse Mixture-of-Experts are Domain Generalizable Learnerscited by 85
- 2022Delving into Masked Autoencoders for Multi-Label Thorax Disease Classificationcited by 65
- 2022Video Transformers: A Surveycited by 63
- 2022Prompt Vision Transformer for Domain Generalizationcited by 52
- 2024A Closer Look at the Robustness of Contrastive Language-Image Pre-Training (CLIP)cited by 44
- 2022Toward Real-world Single Image Deraining: A New Benchmark and Beyondcited by 40
- 2022Can CNNs Be More Robust Than Transformers?cited by 38
- 2022Are Vision Transformers Robust to Spurious Correlations?cited by 36
- 2022MTTrans: Cross-Domain Object Detection with Mean-Teacher Transformercited by 35
38 more
- 2022Self-Distilled Vision Transformer for Domain Generalizationcited by 35
- 2023Part-Aware Transformer for Generalizable Person Re-identificationcited by 35
- 2022An Impartial Take to the CNN vs Transformer Robustness Contestcited by 34
- 2022Out-of-Distribution Representation Learning for Time Series Classificationcited by 30
- 2022Deep Digging into the Generalization of Self-Supervised Monocular Depth Estimationcited by 24
- 2023DIVERSIFY: A General Framework for Time Series Out-of-distribution Detection and Generalizationcited by 24
- 2023BiBench: Benchmarking and Analyzing Network Binarizationcited by 22
- 2024DGMamba: Domain Generalization via Generalized State Space Modelcited by 21
- 2023AI Foundation Models for Weather and Climate: Applications, Design, and Implementationcited by 19
- 2022Cloud-Device Collaborative Adaptation to Continual Changing Environments in the Real-worldcited by 16
- 2024Learn to Preserve and Diversify: Parameter-Efficient Group with Orthogonal Regularization for Domain Generalizationcited by 14
- 2022Anti-Retroactive Interference for Lifelong Learningcited by 13
- 2023Knowledge Distillation in Vision Transformers: A Critical Reviewcited by 13
- 2024Investigating Out-of-Distribution Generalization of GNNs: An Architecture Perspectivecited by 13
- 2024What Variables Affect Out-of-Distribution Generalization in Pretrained Models?cited by 13
- 2024Toward a Holistic Evaluation of Robustness in CLIP Modelscited by 13
- 2022Greybox XAI: a Neural-Symbolic learning framework to produce interpretable predictions for image classificationcited by 11
- 2024Reducing Texture Bias of Deep Neural Networks via Edge Enhancing Diffusioncited by 11
- 2024Vision transformers in domain adaptation and domain generalization: a study of robustnesscited by 11
- 2022Domain generalization in deep learning-based mass detection in mammography: A large-scale multi-center studycited by 10
- 2022D3Former: Debiased Dual Distilled Transformer for Incremental Learningcited by 10
- 2023TFS-ViT: Token-Level Feature Stylization for Domain Generalizationcited by 10
- 2024An Empirical Study of the Generalization Ability of Lidar 3D Object Detectors to Unseen Domainscited by 10
- 2024Seeking Consistent Flat Minima for Better Domain Generalization via Refining Loss Landscapescited by 10
- 2024Rethinking model prototyping through the MedMNIST+ dataset collectioncited by 9
- 2022Hierarchical Transformer for Survival Prediction Using Multimodality Whole Slide Images and Genomicscited by 8
- 2024HCVP: Leveraging Hierarchical Contrastive Visual Prompt for Domain Generalizationcited by 8
- 2023Intra- & Extra-Source Exemplar-Based Style Synthesis for Improved Domain Generalizationcited by 7
- 2024From CNNs to Transformers in Multimodal Human Action Recognition: A Surveycited by 7
- 2023SUG: Single-dataset Unified Generalization for 3D Point Cloud Classificationcited by 6
- 2024GenFormer -- Generated Images are All You Need to Improve Robustness of Transformers on Small Datasetscited by 6
- 2023An Empirical Study of Pre-trained Model Selection for Out-of-Distribution Generalization and Calibrationcited by 5
- 2025Beyond In-Distribution Success: Scaling Curves of CoT Granularity for Language Model Generalizationcited by 5
- 2023A Study on the Generality of Neural Network Structures for Monocular Depth Estimationcited by 4
- 2024Improving Pseudo-labelling and Enhancing Robustness for Semi-Supervised Domain Generalizationcited by 4
- 2024T-TAME: Trainable Attention Mechanism for Explaining Convolutional Networks and Vision Transformerscited by 4
- 2024Learning Low-Rank Feature for Thorax Disease Classificationcited by 4
- 2024OpenAnimalTracks: A Dataset for Animal Track Recognitioncited by 4
50 most cited of 85 All 85 (JSON)
- 2026Theory on Attention Dynamics for Out-of-Distribution In-Context Learning29 Sep 2026
- 2026Domain generalization and synthetic data in object detection: the enabler, the probe, and the gap2 Sep 2026
- 2026Grad-CAM for Vision Transformers: A Systematic Taxonomy and Audit of Methodological Ambiguity in Explainable AI5 Aug 2026
- 2026Device Invariance using Domain Adaptation on Acoustic Scene Classification28 Jul 2026
- 2026Revisiting Shape and Texture Reliance with Category-Separability-Calibrated Suppression13 Jul 2026
- 2026Understanding Generalization through Decision Pattern Shift13 May 2026
- 2026Stress Classification from ECG Signals Using Vision Transformer19 Mar 2026
- 2026Vision-Language Model for Accurate Crater Detection12 Jan 2026
- 2025Optimizer Sensitivity In Vision Transformerbased Iris Recognition: Adamw Vs Sgd Vs Rmsprop28 Nov 2025
- 2025Causally Guided Gaussian Perturbations for Out-Of-Distribution Generalization in Medical Imaging30 Sep 2025
- 2025Transferring Styles for Reduced Texture Bias and Improved Robustness in Semantic Segmentation Networks14 Jul 2025
- 2025Exploring Graph-Transformer Out-of-Distribution Generalization Abilities25 Jun 2025
38 more
- 2025Random Registers for Cross-Domain Few-Shot Learning3 Jun 2025
- 2025DG-DETR: Toward Domain Generalized Detection Transformer28 Apr 2025
- 2025DGFamba: Learning Flow Factorized State Space for Visual Domain Generalization10 Apr 2025
- 2025Shape Bias and Robustness Evaluation via Cue Decomposition for Image Classification and Segmentation16 Mar 2025
- 2025Beyond In-Distribution Success: Scaling Curves of CoT Granularity for Language Model Generalization25 Feb 2025
- 2025CSHNet: A Novel Information Asymmetric Image Translation Method17 Jan 2025
- 2024Evaluating Self-Supervised Learning in Medical Imaging: A Benchmark for Robustness, Generalizability, and Multi-Domain Impact26 Dec 2024
- 2024Seeking Consistent Flat Minima for Better Domain Generalization via Refining Loss Landscapes18 Dec 2024
- 2024Toward a Holistic Evaluation of Robustness in CLIP Models2 Oct 2024
- 2024Discerning the Chaos: Detecting Adversarial Perturbations while Disentangling Intentional from Unintentional Noises29 Sep 2024
- 2024GenFormer -- Generated Images are All You Need to Improve Robustness of Transformers on Small Datasets26 Aug 2024
- 2024Do Vision-Language Foundational models show Robust Visual Perception?13 Aug 2024
- 2024M2EF-NNs: Multimodal Multi-instance Evidence Fusion Neural Networks for Cancer Survival Prediction8 Aug 2024
- 2024A Survey on Cell Nuclei Instance Segmentation and Classification: Leveraging Context and Attention26 Jul 2024
- 2024Learn to Preserve and Diversify: Parameter-Efficient Group with Orthogonal Regularization for Domain Generalization21 Jul 2024
- 2024S&D Messenger: Exchanging Semantic and Domain Knowledge for Generic Semi-Supervised Medical Image Segmentation10 Jul 2024
- 2024OpenAnimalTracks: A Dataset for Animal Track Recognition14 Jun 2024
- 2024What Variables Affect Out-of-Distribution Generalization in Pretrained Models?23 May 2024
- 2024From CNNs to Transformers in Multimodal Human Action Recognition: A Survey22 May 2024
- 2024Rethinking model prototyping through the MedMNIST+ dataset collection24 Apr 2024
- 2024DGMamba: Domain Generalization via Generalized State Space Model11 Apr 2024
- 2024Vision transformers in domain adaptation and domain generalization: a study of robustness5 Apr 2024
- 2024T-TAME: Trainable Attention Mechanism for Explaining Convolutional Networks and Vision Transformers7 Mar 2024
- 2024An Empirical Study of the Generalization Ability of Lidar 3D Object Detectors to Unseen Domains27 Feb 2024
- 2024Unsupervised Domain Adaptation within Deep Foundation Latent Spaces22 Feb 2024
- 2024Learning Low-Rank Feature for Thorax Disease Classification14 Feb 2024
- 2024Reducing Texture Bias of Deep Neural Networks via Edge Enhancing Diffusion14 Feb 2024
- 2024Investigating Out-of-Distribution Generalization of GNNs: An Architecture Perspective13 Feb 2024
- 2024A Closer Look at the Robustness of Contrastive Language-Image Pre-Training (CLIP)12 Feb 2024
- 2024Improving Pseudo-labelling and Enhancing Robustness for Semi-Supervised Domain Generalization25 Jan 2024
- 2024HCVP: Leveraging Hierarchical Contrastive Visual Prompt for Domain Generalization18 Jan 2024
- 2023The Counterattack of CNNs in Self-Supervised Learning: Larger Kernel Size might be All You Need9 Dec 2023
- 2023Density Distribution-based Learning Framework for Addressing Online Continual Learning Challenges22 Nov 2023
- 2023Density of States Prediction of Crystalline Materials via Prompt-guided Multi-Modal Transformer24 Oct 2023
- 2023FedConv: Enhancing Convolutional Neural Networks for Handling Data Heterogeneity in Federated Learning6 Oct 2023
- 2023AI Foundation Models for Weather and Climate: Applications, Design, and Implementation19 Sep 2023
- 2023Part-Aware Transformer for Generalizable Person Re-identification7 Aug 2023
- 2023DIVERSIFY: A General Framework for Time Series Out-of-distribution Detection and Generalization4 Aug 2023
50 newest of 85 All 85 (JSON)
- 2022Sparse Mixture-of-Experts are Domain Generalizable Learnerscited by 85
- 2023ClimaX: A foundation model for weather and climatecited by 325
- 2022Transformers in Medical Imaging: A Surveycited by 245
- 2021Are Transformers More Robust Than CNNs?cited by 187
- 2022Delving into Masked Autoencoders for Multi-Label Thorax Disease Classificationcited by 65
- 2022Video Transformers: A Surveycited by 63
- 2022Prompt Vision Transformer for Domain Generalizationcited by 52
- 2024A Closer Look at the Robustness of Contrastive Language-Image Pre-Training (CLIP)cited by 44
- 2022Toward Real-world Single Image Deraining: A New Benchmark and Beyondcited by 40
- 2022Can CNNs Be More Robust Than Transformers?cited by 38
- 2022Are Vision Transformers Robust to Spurious Correlations?cited by 36
- 2022MTTrans: Cross-Domain Object Detection with Mean-Teacher Transformercited by 35
- 2022Self-Distilled Vision Transformer for Domain Generalizationcited by 35
12 most cited of 80 All 80 (JSON)
- 2026Theory on Attention Dynamics for Out-of-Distribution In-Context Learning29 Sep 2026
- 2026Domain generalization and synthetic data in object detection: the enabler, the probe, and the gap2 Sep 2026
- 2026Grad-CAM for Vision Transformers: A Systematic Taxonomy and Audit of Methodological Ambiguity in Explainable AI5 Aug 2026
- 2026Device Invariance using Domain Adaptation on Acoustic Scene Classification28 Jul 2026
- 2026Revisiting Shape and Texture Reliance with Category-Separability-Calibrated Suppression13 Jul 2026
- 2026Understanding Generalization through Decision Pattern Shift13 May 2026
- 2026Stress Classification from ECG Signals Using Vision Transformer19 Mar 2026
- 2026Vision-Language Model for Accurate Crater Detection12 Jan 2026
- 2025Optimizer Sensitivity In Vision Transformerbased Iris Recognition: Adamw Vs Sgd Vs Rmsprop28 Nov 2025
- 2025Causally Guided Gaussian Perturbations for Out-Of-Distribution Generalization in Medical Imaging30 Sep 2025
- 2025Transferring Styles for Reduced Texture Bias and Improved Robustness in Semantic Segmentation Networks14 Jul 2025
- 2025Exploring Graph-Transformer Out-of-Distribution Generalization Abilities25 Jun 2025
12 newest of 80 All 80 (JSON)