How Do Vision Transformers Work?
Not on the map. Why?
Abstract (arXiv)
The success of multi-head self-attentions (MSAs) for computer vision is now indisputable. However, little is known about how MSAs work. We present fundamental explanations to help better understand the nature of MSAs. In particular, we demonstrate the following properties of MSAs and Vision Transformers (ViTs): (1) MSAs improve not only accuracy but also generalization by flattening the loss landscapes. Such improvement is primarily attributable to their data specificity, not long-range dependency. On the other hand, ViTs suffer from non-convex losses. Large datasets and loss landscape smoothing methods alleviate this problem; (2) MSAs and Convs exhibit opposite behaviors. For example, MSAs are low-pass filters, but Convs are high-pass filters. Therefore, MSAs and Convs are complementary; (3) Multi-stage neural networks behave like a series connection of small individual models. In addition, MSAs at the end of a stage play a key role in prediction. Based on these insights, we propose AlterNet, a model in which Conv blocks at the end of a stage are replaced with MSA blocks. AlterNet outperforms CNNs not only in large data regimes but also in small data regimes. The code is available at https://github.com/xxxnell/how-do-vits-work.
Key facts. Cited by 305 papers in the map (data through 7 Oct 2026). Builds on 68 of its 77 references that are in the map. First posted on arXiv 14 Feb 2022.
Builds on
68 of 77 references.
References · 68
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
38 more
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,540
- 2017Non-local Neural Networkscited by 2,290
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2016Identity Mappings in Deep Residual Networkscited by 1,960
- 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,479
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,430
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,337
- 2017Random Erasing Data Augmentationcited by 1,235
- 2017Visualizing the Loss Landscape of Neural Netscited by 1,126
- 2016Deep Networks with Stochastic Depthcited by 973
- 2017Revisiting Unreasonable Effectiveness of Data in Deep Learning Eracited by 916
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
- 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 566
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
- 2021MetaFormer Is Actually What You Need for Visioncited by 523
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2021Early Convolutions Help Transformers See Bettercited by 395
- 2019Making Convolutional Networks Shift-Invariant Againcited by 390
- 2021Revisiting the Calibration of Modern Neural Networkscited by 387
- 2021Bottleneck Transformers for Visual Recognitioncited by 364
- 2019Attention Augmented Convolutional Networkscited by 363
- 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
- 2018How Does Batch Normalization Help Optimization?cited by 355
- 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
- 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
- 2019PyHessian: Neural Networks Through the Lens of the Hessiancited by 291
- 2019An Investigation into Neural Net Optimization via Hessian Eigenvalue Densitycited by 289
- 2019A Fourier Perspective on Model Robustness in Computer Visioncited by 288
- 2014Identifying and attacking the saddle point problem in high-dimensional non-convex optimizationcited by 286
- 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 259
- 2021Understanding Robustness of Transformers for Image Classificationcited by 250
50 most cited of 68 All 68 (JSON)
Built on by
Citing papers per year: 2022: 68; 2023: 83; 2024: 72; 2025: 45; 2026: 37.
305 papers.
Sort:
By area:
- 2022Vision Transformer Adapter for Dense Predictionscited by 564
- 2022Vision Transformers for Single Image Dehazingcited by 255
- 2023Learning to Exploit Temporal Structure for Biomedical Vision-Language Processingcited by 210
- 2023FreeU: Free Lunch in Diffusion U-Netcited by 195
- 2023Understanding plasticity in neural networkscited by 170
- 2023Graph Inductive Biases in Transformers without Message Passingcited by 150
- 2022Revealing the Dark Secrets of Masked Image Modelingcited by 117
- 2022Inception Transformercited by 99
- 2024CATCH: Channel-Aware multivariate Time Series Anomaly Detection via Frequency Patchingcited by 91
- 2023What Do Self-Supervised Vision Transformers Learn?cited by 90
- 2023MedViT: A Robust Vision Transformer for Generalized Medical Image Classificationcited by 89
- 2022Sparse Mixture-of-Experts are Domain Generalizable Learnerscited by 85
38 more
- 2022CRAFT: Cross-Attentional Flow Transformer for Robust Optical Flowcited by 82
- 2023MB-TaylorFormer: Multi-branch Efficient Transformer Expanded by Taylor Formula for Image Dehazingcited by 81
- 2022Fast Vision Transformers with HiLo Attentioncited by 78
- 2022Improving Vision Transformers by Revisiting High-frequency Componentscited by 75
- 2022What do Vision Transformers Learn? A Visual Explorationcited by 75
- 2024Wavelet Convolutions for Large Receptive Fieldscited by 74
- 2023Semantic Segmentation using Vision Transformers: A surveycited by 73
- 2024Convolution Meets LoRA: Parameter Efficient Finetuning for Segment Anything Modelcited by 67
- 2022Next-ViT: Next Generation Vision Transformer for Efficient Deployment in Realistic Industrial Scenarioscited by 65
- 2023Token Contrast for Weakly-Supervised Semantic Segmentationcited by 64
- 2023PINNsFormer: A Transformer-Based Framework For Physics-Informed Neural Networkscited by 62
- 2022Transformers in Remote Sensing: A Surveycited by 61
- 2022MogaNet: Multi-order Gated Aggregation Networkcited by 59
- 2023Frequency-Aware Transformer for Learned Image Compressioncited by 56
- 2024SHViT: Single-Head Vision Transformer with Memory Efficient Macro Designcited by 55
- 2025DeCo: Frequency-Decoupled Pixel Diffusion for End-to-End Image Generationcited by 55
- 2025Frequency-Aligned Knowledge Distillation for Lightweight Spatiotemporal Forecastingcited by 53
- 2023AttentionViz: A Global View of Transformer Attentioncited by 50
- 2022Teaching Matters: Investigating the Role of Supervision in Vision Transformerscited by 45
- 2023Masked Image Modeling with Local Multi-Scale Reconstructioncited by 43
- 2024EndoDAC: Efficient Adapting Foundation Model for Self-Supervised Depth Estimation from Any Endoscopic Cameracited by 42
- 2022The 8-Point Algorithm as an Inductive Bias for Relative Pose Prediction by ViTscited by 38
- 2022Natural Color Fool: Towards Boosting Black-box Unrestricted Attackscited by 38
- 2022Are Vision Transformers Robust to Spurious Correlations?cited by 36
- 2022Rarity Score : A New Metric to Evaluate the Uncommonness of Synthesized Imagescited by 35
- 2022How to Train Vision Transformer on Small-scale Datasets?cited by 34
- 2023Multi-Architecture Multi-Expert Diffusion Modelscited by 34
- 2024Frequency-Adaptive Dilated Convolution for Semantic Segmentationcited by 34
- 2024SegPoint: Segment Any Point Cloud via Large Language Modelcited by 34
- 2023Rethinking Optical Flow from Geometric Matching Consistent Perspectivecited by 33
- 2022Transforming medical imaging with Transformers? A comparative review of key properties, current progresses, and future perspectivescited by 32
- 2022Architecture-Agnostic Masked Image Modeling -- From ViT back to CNNcited by 31
- 2022A Closer Look at Self-Supervised Lightweight Vision Transformerscited by 31
- 2023LGViT: Dynamic Early Exiting for Accelerating Vision Transformercited by 30
- 2023Koopman neural operator as a mesh-free solver of non-linear partial differential equationscited by 29
- 2022Bridging the Gap Between Vision Transformers and Convolutional Neural Networks on Small Datasetscited by 28
- 2023ALOFT: A Lightweight MLP-like Architecture with Dynamic Low-frequency Transform for Domain Generalizationcited by 28
- 2023Diverse Cotraining Makes Strong Semi-Supervised Segmentorcited by 26
50 most cited of 305 All 305 (JSON)
- 2026On the Necessity of Attention-FFN Split in Vision Transformers7 Oct 2026
- 2026Contrastive Attention Mitigates Spectral Bias in Spiking Transformers1 Oct 2026
- 2026Pattern Formation in Transformers29 Sep 2026
- 2026Does the VGGT Family Need All Its Layers?29 Sep 2026
- 2026The Shape of Events: Edge-Based Inductive Biases via Cross-Domain Distillation24 Sep 2026
- 2026ASAP: Visual Analytics for Identifying and Analyzing Image Patterns in AI-generated Images23 Sep 2026
- 2026CF-YOLO: Context-Aware Feature Refinement for Camouflaged Industrial Micro-Defect Detection28 Aug 2026
- 2026Bridging Adversarial and Collaborative Learning for AI-Generated Image Quality Assessment25 Aug 2026
- 2026Read, Write, Relax: Why Neural PDE Surrogates Need Both Global and Local Processing21 Aug 2026
- 2026ReFP-AD: Rectified Flow Preconditioning for Energy-Based Anomaly Detection3 Aug 2026
- 2026BLUE: Semantics-Preserving Video Compression for Efficient Vision-Language Surveillance Analytics21 Jul 2026
- 2026CP-WSP: A Declarative CP-SAT Framework for Configurable Multi-Constraint Workforce Scheduling6 Jul 2026
38 more
- 2026GeoSAM-Lite: A Lightweight Foundation Model for Onboard Remote Sensing Segmentation4 Jul 2026
- 2026OmniDS: Dual-Stream Context Fusion for Omnidirectional Depth from Fisheye Cameras3 Jul 2026
- 2026SFKD: Spatial--Frequency Joint-Aware Heterogeneous Knowledge Distillation via Multi-Level Wavelet Spectral Interaction2 Jul 2026
- 2026Identifying Latent Concepts and Structures for Generalized Category Discovery1 Jul 2026
- 2026Does Your ViT Still Need U-Net for Segmentation?30 Jun 2026
- 2026PixelU: A U-Shaped Transformer for Efficient End-to-End Pixel Diffusion26 Jun 2026
- 2026The Hidden Evolution of Disguised Visual Context inside the VLM18 Jun 2026
- 2026FUSE: Frequency-domain Unification and Spectral Energy Alignment for Multi-modal Object Re-Identification18 Jun 2026
- 2026FreqKD: Frequency-Decoupled Cross-Modal Knowledge Distillation for Infrared Object Detection10 Jun 2026
- 2026Fisher-Guided Progressive Parameter Selection for Adaptive Fine-Tuning8 Jun 2026
- 2026Low-Frequency Shortcuts in Texture-Driven Visual Learning2 Jun 2026
- 2026SRENet: Spectral Re-Entry Network for Point Cloud Action Recognition2 Jun 2026
- 2026Not All NVFP4 QAT Recipes Are Equal: How Architecture and Scale Shape Model Quality for Anomaly Segmentation26 May 2026
- 2026AdaMerge: Salience-Aware Adaptive Token Merging for Training-Free Acceleration of Vision Transformers26 May 2026
- 2026CineMatte: Background Matting for Virtual Production and Beyond18 May 2026
- 2026Do Vision Transformers Need All-to-All Attention? Global Communication Through Elastic Learned Cores12 May 2026
- 2026Leveraging Multimodal Large Language Models for All-in-One Image Restoration via a Mixture of Frequency Experts12 May 2026
- 2026Rethinking Random Transformers as Adaptive Sequence Smoothers for Sleep Staging11 May 2026
- 2026Last-Layer-Centric Feature Recombination: Unleashing 3D Geometric Knowledge in DINOv3 for Monocular Depth Estimation29 Apr 2026
- 2026FreqTrack: Frequency Learning based Vision Transformer for RGB-Event Object Tracking16 Apr 2026
- 2026Harnessing Lightweight Transformer with Contextual Synergic Enhancement for Efficient 3D Medical Image Segmentation24 Mar 2026
- 2026It Takes Two: A Duet of Periodicity and Directionality for Burst Flicker Removal24 Mar 2026
- 2026SpectralMamba-UNet: Frequency-Disentangled State Space Modeling for Texture-Structure Consistent Medical Image Segmentation26 Feb 2026
- 2026FourierSampler: Unlocking Non-Autoregressive Potential in Diffusion Language Models via Frequency-Guided Generation30 Jan 2026
- 2026SPACE-CLIP: Spatial Perception via Adaptive CLIP Embeddings for Monocular Depth Estimation25 Jan 2026
- 2025Exploring Compositionality in Vision Transformers using Wavelet Representations30 Dec 2025
- 2025Debate-Enhanced Pseudo Labeling and Frequency-Aware Progressive Debiasing for Weakly-Supervised Camouflaged Object Detection with Scribble Annotations23 Dec 2025
- 2025Item Region-based Style Classification Network (IRSN): A Fashion Style Classifier Based on Domain Knowledge of Fashion Experts23 Dec 2025
- 2025Rethinking the Use of Vision Transformers for AI-Generated Image Detection4 Dec 2025
- 2025LAHNet: Local Attentive Hashing Network for Point Cloud Registration30 Nov 2025
- 2025Frequency-Aware Token Reduction for Efficient Vision Transformer26 Nov 2025
- 2025On the Role of Hidden States of Modern Hopfield Network in Transformer24 Nov 2025
- 2025CountXplain: Interpretable Cell Counting with Prototype-Based Density Map Estimation24 Nov 2025
- 2025DeCo: Frequency-Decoupled Pixel Diffusion for End-to-End Image Generation24 Nov 2025
- 2025DetailSemNet: Elevating Signature Verification through Detail-Semantic Integration20 Nov 2025
- 2025Application of Graph Based Vision Transformers Architectures for Accurate Temperature Prediction in Fiber Specklegram Sensors15 Nov 2025
- 2025SYNAPSE: Synergizing an Adapter and Finetuning for High-Fidelity EEG Synthesis from a CLIP-Aligned Encoder11 Nov 2025
- 2025Modality Alignment across Trees on Heterogeneous Hyperbolic Manifolds31 Oct 2025
50 newest of 305 All 305 (JSON)
- 2023FreeU: Free Lunch in Diffusion U-Netcited by 195
- 2025DeCo: Frequency-Decoupled Pixel Diffusion for End-to-End Image Generationcited by 55
- 2023Multi-Architecture Multi-Expert Diffusion Modelscited by 34
- 2025BlockDance: Reuse Structurally Similar Spatio-Temporal Features to Accelerate Diffusion Transformerscited by 24
- 2022Towards Practical Plug-and-Play Diffusion Modelscited by 20
- 2026PixelU: A U-Shaped Transformer for Efficient End-to-End Pixel Diffusioncited by 6
- 2024ASAP: Interpretable Analysis and Summarization of AI-generated Image Patterns at Scalecited by 5
- 2023DiffuseGAE: Controllable and High-fidelity Image Manipulation from Disentangled Representationcited by 4
- 2024Efficient generative adversarial networks using linear additive-attention Transformerscited by 2
- 2024Adaptive Semantic-Enhanced Denoising Diffusion Probabilistic Model for Remote Sensing Image Super-Resolutioncited by 2
- 2024Precise Knowledge Transfer via Flow Matchingcited by 1
- 2025Spatial-Spectral Diffusion Contrastive Representation Network for Hyperspectral Image Classificationcited by 1
12 most cited of 16 All 16 (JSON)
- 2026ReFP-AD: Rectified Flow Preconditioning for Energy-Based Anomaly Detection3 Aug 2026
- 2026PixelU: A U-Shaped Transformer for Efficient End-to-End Pixel Diffusion26 Jun 2026
- 2026FourierSampler: Unlocking Non-Autoregressive Potential in Diffusion Language Models via Frequency-Guided Generation30 Jan 2026
- 2025DeCo: Frequency-Decoupled Pixel Diffusion for End-to-End Image Generation24 Nov 2025
- 2025SYNAPSE: Synergizing an Adapter and Finetuning for High-Fidelity EEG Synthesis from a CLIP-Aligned Encoder11 Nov 2025
- 2025BlockDance: Reuse Structurally Similar Spatio-Temporal Features to Accelerate Diffusion Transformers20 Mar 2025
- 2025Spatial-Spectral Diffusion Contrastive Representation Network for Hyperspectral Image Classification27 Feb 2025
- 2024D-Cube: Exploiting Hyper-Features of Diffusion Model for Robust Medical Classification17 Nov 2024
- 2024ASAP: Interpretable Analysis and Summarization of AI-generated Image Patterns at Scale3 Apr 2024
- 2024Adaptive Semantic-Enhanced Denoising Diffusion Probabilistic Model for Remote Sensing Image Super-Resolution17 Mar 2024
- 2024Precise Knowledge Transfer via Flow Matching3 Feb 2024
- 2024Efficient generative adversarial networks using linear additive-attention Transformers17 Jan 2024
12 newest of 16 All 16 (JSON)
- 2023LGViT: Dynamic Early Exiting for Accelerating Vision Transformercited by 30
- 2024Accelerating ViT Inference on FPGA through Static and Dynamic Pruningcited by 5
- 2025Frequency-Aware Token Reduction for Efficient Vision Transformercited by 2
- 2026AdaMerge: Salience-Aware Adaptive Token Merging for Training-Free Acceleration of Vision Transformerscited by 1
- 2026AdaMerge: Salience-Aware Adaptive Token Merging for Training-Free Acceleration of Vision Transformers26 May 2026
- 2025Frequency-Aware Token Reduction for Efficient Vision Transformer26 Nov 2025
- 2024Accelerating ViT Inference on FPGA through Static and Dynamic Pruning21 Mar 2024
- 2023LGViT: Dynamic Early Exiting for Accelerating Vision Transformer1 Aug 2023
- 2024DGMamba: Domain Generalization via Generalized State Space Modelcited by 21
- 2024CLIP-Mamba: CLIP Pretrained Mamba Models with OOD and Hessian Evaluationcited by 3
- 2025DH-Mamba: Exploring Dual-domain Hierarchical State Space Models for MRI Reconstructioncited by 3
- 2026SpectralMamba-UNet: Frequency-Disentangled State Space Modeling for Texture-Structure Consistent Medical Image Segmentationcited by 0
- 2026SpectralMamba-UNet: Frequency-Disentangled State Space Modeling for Texture-Structure Consistent Medical Image Segmentation26 Feb 2026
- 2025DH-Mamba: Exploring Dual-domain Hierarchical State Space Models for MRI Reconstruction14 Jan 2025
- 2024CLIP-Mamba: CLIP Pretrained Mamba Models with OOD and Hessian Evaluation30 Apr 2024
- 2024DGMamba: Domain Generalization via Generalized State Space Model11 Apr 2024
- 2022Vision Transformer Adapter for Dense Predictionscited by 564
- 2022Vision Transformers for Single Image Dehazingcited by 255
- 2023Learning to Exploit Temporal Structure for Biomedical Vision-Language Processingcited by 210
- 2023Understanding plasticity in neural networkscited by 170
- 2023Graph Inductive Biases in Transformers without Message Passingcited by 150
- 2022Revealing the Dark Secrets of Masked Image Modelingcited by 117
- 2022Inception Transformercited by 99
- 2024CATCH: Channel-Aware multivariate Time Series Anomaly Detection via Frequency Patchingcited by 91
- 2023What Do Self-Supervised Vision Transformers Learn?cited by 90
- 2023MedViT: A Robust Vision Transformer for Generalized Medical Image Classificationcited by 89
- 2022CRAFT: Cross-Attentional Flow Transformer for Robust Optical Flowcited by 82
- 2023MB-TaylorFormer: Multi-branch Efficient Transformer Expanded by Taylor Formula for Image Dehazingcited by 81
12 most cited of 275 All 275 (JSON)
- 2026On the Necessity of Attention-FFN Split in Vision Transformers7 Oct 2026
- 2026Contrastive Attention Mitigates Spectral Bias in Spiking Transformers1 Oct 2026
- 2026Pattern Formation in Transformers29 Sep 2026
- 2026Does the VGGT Family Need All Its Layers?29 Sep 2026
- 2026The Shape of Events: Edge-Based Inductive Biases via Cross-Domain Distillation24 Sep 2026
- 2026ASAP: Visual Analytics for Identifying and Analyzing Image Patterns in AI-generated Images23 Sep 2026
- 2026CF-YOLO: Context-Aware Feature Refinement for Camouflaged Industrial Micro-Defect Detection28 Aug 2026
- 2026Bridging Adversarial and Collaborative Learning for AI-Generated Image Quality Assessment25 Aug 2026
- 2026Read, Write, Relax: Why Neural PDE Surrogates Need Both Global and Local Processing21 Aug 2026
- 2026BLUE: Semantics-Preserving Video Compression for Efficient Vision-Language Surveillance Analytics21 Jul 2026
- 2026CP-WSP: A Declarative CP-SAT Framework for Configurable Multi-Constraint Workforce Scheduling6 Jul 2026
- 2026GeoSAM-Lite: A Lightweight Foundation Model for Onboard Remote Sensing Segmentation4 Jul 2026
12 newest of 275 All 275 (JSON)