Not All Images are Worth 16x16 Words: Dynamic Transformers for Efficient Image Recognition
Not on the map. Why?
Abstract (arXiv)
Vision Transformers (ViT) have achieved remarkable success in large-scale image recognition. They split every 2D image into a fixed number of patches, each of which is treated as a token. Generally, representing an image with more tokens would lead to higher prediction accuracy, while it also results in drastically increased computational cost. To achieve a decent trade-off between accuracy and speed, the number of tokens is empirically set to 16x16 or 14x14. In this paper, we argue that every image has its own characteristics, and ideally the token number should be conditioned on each individual input. In fact, we have observed that there exist a considerable number of "easy" images which can be accurately predicted with a mere number of 4x4 tokens, while only a small fraction of "hard" ones need a finer representation. Inspired by this phenomenon, we propose a Dynamic Transformer to automatically configure a proper number of tokens for each input image. This is achieved by cascading multiple Transformers with increasing numbers of tokens, which are sequentially activated in an adaptive fashion at test time, i.e., the inference is terminated once a sufficiently confident prediction is produced. We further design efficient feature reuse and relationship reuse mechanisms across different components of the Dynamic Transformer to reduce redundant computations. Extensive empirical results on ImageNet, CIFAR-10, and CIFAR-100 demonstrate that our method significantly outperforms the competitive baselines in terms of both theoretical computational efficiency and practical inference speed. Code and pre-trained models (based on PyTorch and MindSpore) are available at https://github.com/blackfeather-wang/Dynamic-Vision-Transformer and https://github.com/blackfeather-wang/Dynamic-Vision-Transformer-MindSpore.
Key facts. Cited by 143 papers in the map (data through 13 Oct 2026). Builds on 51 of its 62 references that are in the map. First posted on arXiv 31 May 2021.
Builds on
51 of 62 references.
References · 51
- 2017Attention Is All You Needcited by 60,106
- 2015Deep Residual Learning for Image Recognitioncited by 51,950
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,043
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,111
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,426
- 2016Layer Normalizationcited by 5,624
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,457
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,170
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,880
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,786
38 more
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,574
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,836
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,882
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,266
- 2019Searching for MobileNetV3cited by 1,990
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,961
- 2017Random Erasing Data Augmentationcited by 1,238
- 2017ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devicescited by 1,199
- 2018ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Designcited by 1,134
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
- 2016Deep Networks with Stochastic Depthcited by 977
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2021Multiscale Vision Transformerscited by 896
- 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
- 2021Going deeper with Image Transformerscited by 762
- 2021Transformer in Transformercited by 633
- 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 592
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2021TransReID: Transformer-based Object Re-Identificationcited by 432
- 2021Dynamic Neural Networks: A Surveycited by 406
- 2021Conditional Positional Encodings for Vision Transformerscited by 406
- 2021MOTR: End-to-End Multiple-Object Tracking with Transformercited by 380
- 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 330
- 2021DeepViT: Towards Deeper Vision Transformercited by 288
- 2021Incorporating Convolution Designs into Visual Transformerscited by 248
- 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
- 2017BlockDrop: Dynamic Inference Paths in Residual Networkscited by 187
- 2017Convolutional Networks with Adaptive Inference Graphscited by 147
- 2020Resolution Adaptive Networks for Efficient Inferencecited by 146
- 2016Spatially Adaptive Computation Time for Residual Networkscited by 118
- 2020Glance and Focus: a Dynamic Approach to Reducing Spatial Redundancy in Image Classificationcited by 99
- 2020Convolutional Networks with Dense Connectivitycited by 98
- 2019Dynamic Convolutions: Exploiting Spatial Sparsity for Faster Inferencecited by 91
- 2021Training Vision Transformers for Image Retrievalcited by 90
- 2021Adaptive Focus for Efficient Video Recognitioncited by 77
- 2019Improved Techniques for Training Adaptive Deep Networkscited by 66
- 2021CondenseNet V2: Sparse Feature Reactivation for Deep Networkscited by 34
50 most cited of 51 All 51 (JSON)
Built on by
Citing papers per year: 2021: 5; 2022: 25; 2023: 37; 2024: 37; 2025: 25; 2026: 14.
143 papers.
Sort:
By area:
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,404
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,063
- 2022Vision Transformer with Deformable Attentioncited by 294
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
- 2023GSVA: Generalized Segmentation via Multimodal Large Language Modelscited by 153
- 2022FlexiViT: One Model for All Patch Sizescited by 152
- 2021A Survey of Visual Transformerscited by 117
- 2024DeeR-VLA: Dynamic Inference of Multimodal Large Language Models for Efficient Robot Executioncited by 116
- 2022CF-ViT: A General Coarse-to-Fine Method for Vision Transformercited by 63
- 2024Dynamic Diffusion Transformercited by 62
- 2023Dynamic Token Pruning in Plain Vision Transformers for Semantic Segmentationcited by 61
- 2023Which Tokens to Use? Investigating Token Reduction in Vision Transformerscited by 59
38 more
- 2023Adaptive Rotated Convolution for Rotated Object Detectioncited by 51
- 2023Rank-DETR for High Quality Object Detectioncited by 50
- 2024A Survey on Transformer Compressioncited by 46
- 2022EfficientTrain: Exploring Generalized Curriculum Learning for Training Visual Backbonescited by 43
- 2024AIM: Adaptive Inference of Multi-Modal LLMs via Token Merging and Pruningcited by 43
- 2022Glance and Focus Networks for Dynamic Visual Recognitioncited by 41
- 2021AdaFocus V2: End-to-End Training of Spatial Dynamic Networks for Video Recognitioncited by 37
- 2022ResFormer: Scaling ViTs with Multi-Resolution Trainingcited by 34
- 2022Expediting Large-Scale Vision Transformer for Dense Prediction without Fine-tuningcited by 33
- 2023FGAHOI: Fine-Grained Anchors for Human-Object Interaction Detectioncited by 30
- 2021Improving Transformers with Probabilistic Attention Keyscited by 28
- 2022PatchDropout: Economizing Vision Transformers Using Patch Dropoutcited by 28
- 2023Making Vision Transformers Efficient from A Token Sparsification Viewcited by 28
- 2024Fast yet Safe: Early-Exiting with Risk Controlcited by 28
- 2024ALGM: Adaptive Local-then-Global Token Merging for Efficient Semantic Segmentation with Plain Vision Transformerscited by 28
- 2025Scaling Vision Pre-Training to 4K Resolutioncited by 27
- 2023Stitchable Neural Networkscited by 26
- 2023SGAT4PASS: Spherical Geometry-Aware Transformer for PAnoramic Semantic Segmentationcited by 26
- 2024Dynamic Tuning Towards Parameter and Inference Efficiency for ViT Adaptationcited by 25
- 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediatorscited by 24
- 2022Attentive Mask CLIPcited by 23
- 2023Prune Spatio-temporal Tokens by Semantic-aware Temporal Accumulationcited by 23
- 2023Adaptive Computation with Elastic Input Sequencecited by 22
- 2023Content-aware Token Sharing for Efficient Semantic Segmentation with Vision Transformerscited by 22
- 2023DAT++: Spatially Dynamic Vision Transformer with Deformable Attentioncited by 21
- 2023MSViT: Dynamic Mixed-Scale Tokenization for Vision Transformerscited by 19
- 2022AdaFocusV3: On Unified Spatial-temporal Dynamic Video Recognitioncited by 18
- 2023MonoATT: Online Monocular 3D Object Detection with Adaptive Token Transformercited by 18
- 2024ScanFormer: Referring Expression Comprehension by Iteratively Scanningcited by 18
- 2022Transformer Scale Gate for Semantic Segmentationcited by 17
- 2023Fine-grained Recognition with Learnable Semantic Data Augmentationcited by 17
- 2024EfficientTrain++: Generalized Curriculum Learning for Efficient Visual Backbone Trainingcited by 17
- 2023Towards Anytime Classification in Early-Exit Architectures by Enforcing Conditional Monotonicitycited by 16
- 2023DynamicDet: A Unified Dynamic Architecture for Object Detectioncited by 15
- 2023Jointly-Learned Exit and Inference for a Dynamic Neural Network : JEI-DNNcited by 15
- 2025Keeping Yourself is Important in Downstream Tuning Multimodal Large Language Modelcited by 15
- 2023Computation-efficient Deep Learning for Computer Vision: A Surveycited by 14
- 2025SapiensID: Foundation for Human Recognitioncited by 14
50 most cited of 143 All 143 (JSON)
- 2026Elastoformer: Enabling Dynamic Adaptivity via Elastic Model Transformation9 Sep 2026
- 2026"World Knowledge" in the Weights: Reading Concept Circuits of Vision Transformers8 Sep 2026
- 2026ProgResViT: Progressive Resolution and Width for Adaptive Vision Transformers2 Sep 2026
- 2026Tracing sources of epistemic uncertainty in deep learning predictions: homo- and hetero-scedastic linearized estimators7 Aug 2026
- 2026Dynamic Parameterization Is Not Dynamic Inference28 Jul 2026
- 2026ERank in Latent Space as an Image-Complexity and Richness Measure21 Jul 2026
- 2026Adaptive Volumetric Mechanical Property Fields Invariant to Resolution16 Jun 2026
- 2026ViCrop-Det: Spatial Attention Entropy Guided Cropping for Training-Free Small-Object Detection29 Apr 2026
- 2026AdaDINO: Context-Adaptive DINO-Distilled Vision Foundation Models for Efficient Open-Vocabulary Edge Inference17 Apr 2026
- 2026ExFusion: Efficient Transformer Training via Multi-Experts Fusion30 Mar 2026
- 2026ATD: Improved Transformer with Adaptive Token Dictionary for Image Restoration3 Mar 2026
- 2026DDiT: Dynamic Patch Scheduling for Efficient Diffusion Transformers19 Feb 2026
38 more
- 2026ANCRe: Adaptive Neural Connection Reassignment for Efficient Depth Scaling9 Feb 2026
- 2026ScDiVa: Masked Discrete Diffusion for Joint Modeling of Single-Cell Identity and Expression3 Feb 2026
- 2025MambaScope: Coarse-to-Fine Scoping for Efficient Vision Mamba29 Nov 2025
- 2025Granular Computing-driven SAM: From Coarse-to-Fine Guidance for Prompt-Free Segmentation24 Nov 2025
- 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentials2 Nov 2025
- 2025Accelerating Vision Transformers with Adaptive Patch Sizes20 Oct 2025
- 2025DynaNav: Dynamic Feature and Layer Selection for Efficient Visual Navigation26 Sep 2025
- 2025Emulating Human-like Adaptive Vision for Efficient and Flexible Machine Visual Perception18 Sep 2025
- 2025BATR-FST: Bi-Level Adaptive Token Refinement for Few-Shot Transformers16 Sep 2025
- 2025TinyDrop: Tiny Model Guided Token Dropping for Vision Transformers3 Sep 2025
- 2025ThinkingViT: Matryoshka Thinking Vision Transformer for Elastic Inference14 Jul 2025
- 2025Generative Audio Language Modeling with Continuous-valued Tokens and Masked Next-Token Prediction14 Jul 2025
- 2025Exploiting Lightweight Hierarchical ViT and Dynamic Framework for Efficient Visual Tracking25 Jun 2025
- 2025Accessible Gesture-Driven Augmented Reality Interaction System18 Jun 2025
- 2025Token Transforming: A Unified and Training-Free Token Compression Framework for Vision Transformer Acceleration6 Jun 2025
- 2025S2AFormer: Strip Self-Attention for Efficient Vision Transformer28 May 2025
- 2025Componential Prompt-Knowledge Alignment for Domain Incremental Learning7 May 2025
- 2025Crafting Query-Aware Selective Attention for Single Image Super-Resolution9 Apr 2025
- 2025Dynamic Vision Mamba7 Apr 2025
- 2025SapiensID: Foundation for Human Recognition7 Apr 2025
- 2025SCHNet: SAM Marries CLIP for Human Parsing28 Mar 2025
- 2025Scaling Vision Pre-Training to 4K Resolution25 Mar 2025
- 2025Learning to Inference Adaptively for Multimodal Large Language Models13 Mar 2025
- 2025Keeping Yourself is Important in Downstream Tuning Multimodal Large Language Model6 Mar 2025
- 2025Fast and Accurate Gigapixel Pathological Image Classification with Hierarchical Distillation Multi-Instance Learning28 Feb 2025
- 2025A Transformer-in-Transformer Network Utilizing Knowledge Distillation for Image Recognition24 Feb 2025
- 2025A Survey on Dynamic Neural Networks: from Computer Vision to Multi-modal Sensor Fusion13 Jan 2025
- 2024Uni-AdaFocus: Spatial-temporal Dynamic Computation for Video Recognition15 Dec 2024
- 2024Advances in Transformers for Robotic Applications: A Review13 Dec 2024
- 2024SparseDiT: Token Sparsification for Efficient Diffusion Transformer8 Dec 2024
- 2024AIM: Adaptive Inference of Multi-Modal LLMs via Token Merging and Pruning4 Dec 2024
- 2024ENAT: Rethinking Spatial-temporal Interactions in Token-based Image Synthesis11 Nov 2024
- 2024DeeR-VLA: Dynamic Inference of Multimodal Large Language Models for Efficient Robot Execution4 Nov 2024
- 2024Robust training of implicit generative models for multivariate and heavy-tailed distributions with an invariant statistical loss29 Oct 2024
- 2024Dynamic Diffusion Transformer4 Oct 2024
- 2024HydraViT: Stacking Heads for a Scalable ViT26 Sep 2024
- 2024Agglomerative Token Clustering18 Sep 2024
- 2024SimMAT: Exploring Transferability from Vision Foundation Models to Any Image Modality12 Sep 2024
50 newest of 143 All 143 (JSON)
- 2023Dynamic Token Pruning in Plain Vision Transformers for Semantic Segmentationcited by 61
- 2023Which Tokens to Use? Investigating Token Reduction in Vision Transformerscited by 59
- 2024Fast yet Safe: Early-Exiting with Risk Controlcited by 28
- 2024ALGM: Adaptive Local-then-Global Token Merging for Efficient Semantic Segmentation with Plain Vision Transformerscited by 28
- 2023Towards Anytime Classification in Early-Exit Architectures by Enforcing Conditional Monotonicitycited by 16
- 2025Token Transforming: A Unified and Training-Free Token Compression Framework for Vision Transformer Accelerationcited by 9
- 2024Tiny Models are the Computational Saver for Large Modelscited by 4
- 2024Multimodal Adaptive Inference for Document Image Classification with Anytime Early Exitingcited by 2
- 2023Bridging The Gaps Between Token Pruning and Full Pre-training via Masked Fine-tuningcited by 0
- 2025TinyDrop: Tiny Model Guided Token Dropping for Vision Transformerscited by 0
- 2025TinyDrop: Tiny Model Guided Token Dropping for Vision Transformers3 Sep 2025
- 2025Token Transforming: A Unified and Training-Free Token Compression Framework for Vision Transformer Acceleration6 Jun 2025
- 2024ALGM: Adaptive Local-then-Global Token Merging for Efficient Semantic Segmentation with Plain Vision Transformers14 Jun 2024
- 2024Fast yet Safe: Early-Exiting with Risk Control31 May 2024
- 2024Multimodal Adaptive Inference for Document Image Classification with Anytime Early Exiting21 May 2024
- 2024Tiny Models are the Computational Saver for Large Models26 Mar 2024
- 2023Bridging The Gaps Between Token Pruning and Full Pre-training via Masked Fine-tuning26 Oct 2023
- 2023Which Tokens to Use? Investigating Token Reduction in Vision Transformers9 Aug 2023
- 2023Dynamic Token Pruning in Plain Vision Transformers for Semantic Segmentation2 Aug 2023
- 2023Towards Anytime Classification in Early-Exit Architectures by Enforcing Conditional Monotonicity5 Jun 2023
- 2024Dynamic Diffusion Transformercited by 62
- 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediatorscited by 24
- 2024SparseDiT: Token Sparsification for Efficient Diffusion Transformercited by 9
- 2026DDiT: Dynamic Patch Scheduling for Efficient Diffusion Transformerscited by 4
- 2026ScDiVa: Masked Discrete Diffusion for Joint Modeling of Single-Cell Identity and Expressioncited by 1
- 2026DDiT: Dynamic Patch Scheduling for Efficient Diffusion Transformers19 Feb 2026
- 2026ScDiVa: Masked Discrete Diffusion for Joint Modeling of Single-Cell Identity and Expression3 Feb 2026
- 2024SparseDiT: Token Sparsification for Efficient Diffusion Transformer8 Dec 2024
- 2024Dynamic Diffusion Transformer4 Oct 2024
- 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediators11 Aug 2024
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,404
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,063
- 2024DeeR-VLA: Dynamic Inference of Multimodal Large Language Models for Efficient Robot Executioncited by 116
- 2025Keeping Yourself is Important in Downstream Tuning Multimodal Large Language Modelcited by 15
- 2025Learning to Inference Adaptively for Multimodal Large Language Modelscited by 12
- 2025Learning to Inference Adaptively for Multimodal Large Language Models13 Mar 2025
- 2025Keeping Yourself is Important in Downstream Tuning Multimodal Large Language Model6 Mar 2025
- 2024DeeR-VLA: Dynamic Inference of Multimodal Large Language Models for Efficient Robot Execution4 Nov 2024
- 2022Measuring and Narrowing the Compositionality Gap in Language Models7 Oct 2022
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Models21 May 2022
- 2025Dynamic Vision Mambacited by 6
- 2025MambaScope: Coarse-to-Fine Scoping for Efficient Vision Mambacited by 0
- 2025MambaScope: Coarse-to-Fine Scoping for Efficient Vision Mamba29 Nov 2025
- 2025Dynamic Vision Mamba7 Apr 2025
- 2022Vision Transformer with Deformable Attentioncited by 294
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
- 2022FlexiViT: One Model for All Patch Sizescited by 152
- 2021A Survey of Visual Transformerscited by 117
- 2022CF-ViT: A General Coarse-to-Fine Method for Vision Transformercited by 63
- 2023Adaptive Rotated Convolution for Rotated Object Detectioncited by 51
- 2023Rank-DETR for High Quality Object Detectioncited by 50
- 2024A Survey on Transformer Compressioncited by 46
- 2022EfficientTrain: Exploring Generalized Curriculum Learning for Training Visual Backbonescited by 43
- 2022Glance and Focus Networks for Dynamic Visual Recognitioncited by 41
- 2021AdaFocus V2: End-to-End Training of Spatial Dynamic Networks for Video Recognitioncited by 37
- 2022ResFormer: Scaling ViTs with Multi-Resolution Trainingcited by 34
12 most cited of 113 All 113 (JSON)
- 2026Elastoformer: Enabling Dynamic Adaptivity via Elastic Model Transformation9 Sep 2026
- 2026ProgResViT: Progressive Resolution and Width for Adaptive Vision Transformers2 Sep 2026
- 2026Tracing sources of epistemic uncertainty in deep learning predictions: homo- and hetero-scedastic linearized estimators7 Aug 2026
- 2026Dynamic Parameterization Is Not Dynamic Inference28 Jul 2026
- 2026ERank in Latent Space as an Image-Complexity and Richness Measure21 Jul 2026
- 2026Adaptive Volumetric Mechanical Property Fields Invariant to Resolution16 Jun 2026
- 2026ViCrop-Det: Spatial Attention Entropy Guided Cropping for Training-Free Small-Object Detection29 Apr 2026
- 2026AdaDINO: Context-Adaptive DINO-Distilled Vision Foundation Models for Efficient Open-Vocabulary Edge Inference17 Apr 2026
- 2026ATD: Improved Transformer with Adaptive Token Dictionary for Image Restoration3 Mar 2026
- 2026ANCRe: Adaptive Neural Connection Reassignment for Efficient Depth Scaling9 Feb 2026
- 2025Granular Computing-driven SAM: From Coarse-to-Fine Guidance for Prompt-Free Segmentation24 Nov 2025
- 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentials2 Nov 2025
12 newest of 113 All 113 (JSON)