mlsanityData to 14 Oct 2026

Vision Transformer Neural Architecture Search for Out-of-Distribution Generalization: Benchmark and Insights

arXiv 2501.03782 ↗First posted 7 Jan 2025cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

While ViTs have achieved across machine learning tasks, deploying them in real-world scenarios faces a critical challenge: generalizing under OoD shifts. A crucial research gap exists in understanding how to design ViT architectures, both manually and automatically, for better OoD generalization. To this end, we introduce OoD-ViT-NAS, the first systematic benchmark for ViTs NAS focused on OoD generalization. This benchmark includes 3000 ViT architectures of varying computational budgets evaluated on 8 common OoD datasets. Using this benchmark, we analyze factors contributing to OoD generalization. Our findings reveal key insights. First, ViT architecture designs significantly affect OoD generalization. Second, ID accuracy is often a poor indicator of OoD accuracy, highlighting the risk of optimizing ViT architectures solely for ID performance. Third, we perform the first study of NAS for ViTs OoD robustness, analyzing 9 Training-free NAS methods. We find that existing Training-free NAS methods are largely ineffective in predicting OoD accuracy despite excelling at ID accuracy. Simple proxies like Param or Flop surprisingly outperform complex Training-free NAS methods in predicting OoD accuracy. Finally, we study how ViT architectural attributes impact OoD generalization and discover that increasing embedding dimensions generally enhances performance. Our benchmark shows that ViT architectures exhibit a wide range of OoD accuracy, with up to 11.85% improvement for some OoD shifts. This underscores the importance of studying ViT architecture design for OoD. We believe OoD-ViT-NAS can catalyze further research into how ViT designs influence OoD generalization.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 71 of its 82 references that are in the map. First posted on arXiv 7 Jan 2025.

Builds on

71 of 82 references.

References · 71

  1. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  2. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  4. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
  5. 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,262
  6. 2017Arbitrary Style Transfer in Real-time with Adaptive Instance Normalizationcited by 2,010
  7. 2019Invariant Risk Minimizationcited by 1,854
  8. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
  9. 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,515
  10. 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,432
  11. 2019Natural Adversarial Examplescited by 1,408
  12. 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,247
38 more
  1. 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,013
  2. 2020Pre-Trained Image Processing Transformercited by 893
  3. 2018SNIP: Single-shot Network Pruning based on Connection Sensitivitycited by 812
  4. 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
  5. 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 724
  6. 2013Domain Generalization via Invariant Feature Representationcited by 623
  7. 2021Domain Generalization with MixStylecited by 566
  8. 2022MaxViT: Multi-Axis Vision Transformercited by 476
  9. 2020Picking Winning Tickets Before Training by Preserving Gradient Flowcited by 471
  10. 2019High Frequency Component Helps Explain the Generalization of Convolutional Neural Networkscited by 310
  11. 2020An Investigation of Why Overparameterization Exacerbates Spurious Correlationscited by 310
  12. 2020Learning to Generate Novel Domains for Domain Generalizationcited by 296
  13. 2021A Fourier-based Framework for Domain Generalizationcited by 290
  14. 2021Gradient Matching for Domain Generalizationcited by 258
  15. 2015Domain Generalization for Object Recognition with Multi-task Autoencoderscited by 253
  16. 2021Understanding Robustness of Transformers for Image Classificationcited by 249
  17. 2021Accuracy on the Line: On the Strong Correlation Between Out-of-Distribution and In-Distribution Generalizationcited by 249
  18. 2020Domain Generalization using Causal Matchingcited by 225
  19. 2021SelfReg: Self-supervised Contrastive Regularization for Domain Generalizationcited by 189
  20. 2020BigNAS: Scaling Up Neural Architecture Search with Big Single-Stage Modelscited by 188
  21. 2021AutoFormer: Searching Transformers for Visual Recognitioncited by 188
  22. 2021Fishr: Invariant Gradient Variances for Out-of-Distribution Generalizationcited by 186
  23. 2020Improve Unsupervised Domain Adaptation with Mixup Trainingcited by 185
  24. 2022Self-supervised Learning of Adversarial Example: Towards Good Generalizations for Deepfake Detectioncited by 173
  25. 2021All Tokens Matter: Token Labeling for Training Better Vision Transformerscited by 144
  26. 2021Open Domain Generalization with Domain-Augmented Meta-Learningcited by 115
  27. 2021On the Adversarial Robustness of Vision Transformerscited by 106
  28. 2022SegViT: Semantic Segmentation with Plain Vision Transformerscited by 106
  29. 2022Model Ratatouille: Recycling Diverse Models for Out-of-Distribution Generalizationcited by 97
  30. 2021RobustART: Benchmarking Robustness on Architecture Design and Training Techniquescited by 79
  31. 2022Improving Vision Transformers by Revisiting High-frequency Componentscited by 76
  32. 2021Can Subnetwork Structure be the Key to Out-of-Distribution Generalization?cited by 75
  33. 2020AttentiveNAS: Improving Neural Architecture Search via Attentive Samplingcited by 66
  34. 2021GLiT: Neural Architecture Search for Global and Local Image Transformercited by 53
  35. 2022Assaying Out-Of-Distribution Generalization in Transfer Learningcited by 53
  36. 2023Improved Test-Time Adaptation for Domain Generalizationcited by 47
  37. 2022ID and OOD Performance Are Sometimes Inversely Correlated on Real-world Datasetscited by 44
  38. 2021Searching the Search Space of Vision Transformercited by 41

50 most cited of 71 All 71 (JSON)

Built on by

Not cited yet.