mlsanityData to 7 Oct 2026

Delving Deep into the Generalization of Vision Transformers under Distribution Shifts

arXiv 2106.07617 ↗First posted 14 Jun 2021cs.CVcited by 85

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2020End-to-End Object Detection with Transformerscited by 7,384
  5. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  6. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
  7. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  8. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  9. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
  10. 2015Domain-Adversarial Training of Neural Networkscited by 3,023
  11. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
  12. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
21 more
  1. 2013Visualizing and Understanding Convolutional Networkscited by 2,278
  2. 2017Arbitrary Style Transfer in Real-time with Adaptive Instance Normalizationcited by 1,998
  3. 2014Unsupervised Domain Adaptation by Backpropagationcited by 1,906
  4. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
  5. 2017Decoupled Weight Decay Regularizationcited by 1,722
  6. 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,430
  7. 2018Moment Matching for Multi-Source Domain Adaptationcited by 1,327
  8. 2015Learning Transferable Features with Deep Adaptation Networkscited by 1,323
  9. 2020Pre-Trained Image Processing Transformercited by 891
  10. 2019Big Transfer (BiT): General Visual Representation Learningcited by 766
  11. 2020Prototypical Contrastive Learning of Unsupervised Representationscited by 636
  12. 2018Generalizing to Unseen Domains via Adversarial Data Augmentationcited by 451
  13. 2021Intriguing Properties of Vision Transformerscited by 446
  14. 2020End-to-End Video Instance Segmentation with Transformerscited by 443
  15. 2019Domain Generalization via Model-Agnostic Learning of Semantic Featurescited by 405
  16. 2020Noise or Signal: The Role of Image Backgrounds in Object Recognitioncited by 342
  17. 2019Semi-supervised Domain Adaptation via Minimax Entropycited by 333
  18. 2020Inductive Biases for Deep Learning of Higher-Level Cognitioncited by 273
  19. 2021Vision Transformers are Robust Learnerscited by 208
  20. 2019Unsupervised Domain Adaptation through Self-Supervisioncited by 116
  21. 2021Prototypical Cross-domain Self-supervised Learning for Few-shot Unsupervised Domain Adaptationcited by 83

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 2; 2022: 23; 2023: 17; 2024: 25; 2025: 10; 2026: 8.

85 papers.

Sort:

By area:

  1. 2023ClimaX: A foundation model for weather and climatecited by 325
  2. 2022Transformers in Medical Imaging: A Surveycited by 245
  3. 2021Are Transformers More Robust Than CNNs?cited by 187
  4. 2022Sparse Mixture-of-Experts are Domain Generalizable Learnerscited by 85
  5. 2022Delving into Masked Autoencoders for Multi-Label Thorax Disease Classificationcited by 65
  6. 2022Video Transformers: A Surveycited by 63
  7. 2022Prompt Vision Transformer for Domain Generalizationcited by 52
  8. 2024A Closer Look at the Robustness of Contrastive Language-Image Pre-Training (CLIP)cited by 44
  9. 2022Toward Real-world Single Image Deraining: A New Benchmark and Beyondcited by 40
  10. 2022Can CNNs Be More Robust Than Transformers?cited by 38
  11. 2022Are Vision Transformers Robust to Spurious Correlations?cited by 36
  12. 2022MTTrans: Cross-Domain Object Detection with Mean-Teacher Transformercited by 35
38 more
  1. 2022Self-Distilled Vision Transformer for Domain Generalizationcited by 35
  2. 2023Part-Aware Transformer for Generalizable Person Re-identificationcited by 35
  3. 2022An Impartial Take to the CNN vs Transformer Robustness Contestcited by 34
  4. 2022Out-of-Distribution Representation Learning for Time Series Classificationcited by 30
  5. 2022Deep Digging into the Generalization of Self-Supervised Monocular Depth Estimationcited by 24
  6. 2023DIVERSIFY: A General Framework for Time Series Out-of-distribution Detection and Generalizationcited by 24
  7. 2023BiBench: Benchmarking and Analyzing Network Binarizationcited by 22
  8. 2024DGMamba: Domain Generalization via Generalized State Space Modelcited by 21
  9. 2023AI Foundation Models for Weather and Climate: Applications, Design, and Implementationcited by 19
  10. 2022Cloud-Device Collaborative Adaptation to Continual Changing Environments in the Real-worldcited by 16
  11. 2024Learn to Preserve and Diversify: Parameter-Efficient Group with Orthogonal Regularization for Domain Generalizationcited by 14
  12. 2022Anti-Retroactive Interference for Lifelong Learningcited by 13
  13. 2023Knowledge Distillation in Vision Transformers: A Critical Reviewcited by 13
  14. 2024Investigating Out-of-Distribution Generalization of GNNs: An Architecture Perspectivecited by 13
  15. 2024What Variables Affect Out-of-Distribution Generalization in Pretrained Models?cited by 13
  16. 2024Toward a Holistic Evaluation of Robustness in CLIP Modelscited by 13
  17. 2022Greybox XAI: a Neural-Symbolic learning framework to produce interpretable predictions for image classificationcited by 11
  18. 2024Reducing Texture Bias of Deep Neural Networks via Edge Enhancing Diffusioncited by 11
  19. 2024Vision transformers in domain adaptation and domain generalization: a study of robustnesscited by 11
  20. 2022Domain generalization in deep learning-based mass detection in mammography: A large-scale multi-center studycited by 10
  21. 2022D3Former: Debiased Dual Distilled Transformer for Incremental Learningcited by 10
  22. 2023TFS-ViT: Token-Level Feature Stylization for Domain Generalizationcited by 10
  23. 2024An Empirical Study of the Generalization Ability of Lidar 3D Object Detectors to Unseen Domainscited by 10
  24. 2024Seeking Consistent Flat Minima for Better Domain Generalization via Refining Loss Landscapescited by 10
  25. 2024Rethinking model prototyping through the MedMNIST+ dataset collectioncited by 9
  26. 2022Hierarchical Transformer for Survival Prediction Using Multimodality Whole Slide Images and Genomicscited by 8
  27. 2024HCVP: Leveraging Hierarchical Contrastive Visual Prompt for Domain Generalizationcited by 8
  28. 2023Intra- & Extra-Source Exemplar-Based Style Synthesis for Improved Domain Generalizationcited by 7
  29. 2024From CNNs to Transformers in Multimodal Human Action Recognition: A Surveycited by 7
  30. 2023SUG: Single-dataset Unified Generalization for 3D Point Cloud Classificationcited by 6
  31. 2024GenFormer -- Generated Images are All You Need to Improve Robustness of Transformers on Small Datasetscited by 6
  32. 2023An Empirical Study of Pre-trained Model Selection for Out-of-Distribution Generalization and Calibrationcited by 5
  33. 2025Beyond In-Distribution Success: Scaling Curves of CoT Granularity for Language Model Generalizationcited by 5
  34. 2023A Study on the Generality of Neural Network Structures for Monocular Depth Estimationcited by 4
  35. 2024Improving Pseudo-labelling and Enhancing Robustness for Semi-Supervised Domain Generalizationcited by 4
  36. 2024T-TAME: Trainable Attention Mechanism for Explaining Convolutional Networks and Vision Transformerscited by 4
  37. 2024Learning Low-Rank Feature for Thorax Disease Classificationcited by 4
  38. 2024OpenAnimalTracks: A Dataset for Animal Track Recognitioncited by 4

50 most cited of 85 All 85 (JSON)