MIA-Former: Efficient and Robust Vision Transformers via Multi-grained Input-Adaptation
Not on the map. Why?
Abstract (arXiv)
ViTs are often too computationally expensive to be fitted onto real-world resource-constrained devices, due to (1) their quadratically increased complexity with the number of input tokens and (2) their overparameterized self-attention heads and model depth. In parallel, different images are of varied complexity and their different regions can contain various levels of visual information, indicating that treating all regions/tokens equally in terms of model complexity is unnecessary while such opportunities for trimming down ViTs' complexity have not been fully explored. To this end, we propose a Multi-grained Input-adaptive Vision Transformer framework dubbed MIA-Former that can input-adaptively adjust the structure of ViTs at three coarse-to-fine-grained granularities (i.e., model depth and the number of model heads/tokens). In particular, our MIA-Former adopts a low-cost network trained with a hybrid supervised and reinforcement training method to skip unnecessary layers, heads, and tokens in an input adaptive manner, reducing the overall computational cost. Furthermore, an interesting side effect of our MIA-Former is that its resulting ViTs are naturally equipped with improved robustness against adversarial attacks over their static counterparts, because MIA-Former's multi-grained dynamic control improves the model diversity similar to the effect of ensemble and thus increases the difficulty of adversarial attacks against all its sub-models. Extensive experiments and ablation studies validate that the proposed MIA-Former framework can effectively allocate computation budgets adaptive to the difficulty of input images meanwhile increase robustness, achieving state-of-the-art (SOTA) accuracy-efficiency trade-offs, e.g., 20% computation savings with the same or even a higher accuracy compared with SOTA dynamic transformer models.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 39 of its 49 references that are in the map. First posted on arXiv 21 Dec 2021.
Builds on
39 of 49 references.
References · 39
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
- 2016Asynchronous Methods for Deep Reinforcement Learningcited by 2,218
- 2016Adversarial examples in the physical worldcited by 1,762
27 more
- 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,259
- 2020Pre-Trained Image Processing Transformercited by 891
- 2021Segmenter: Transformer for Semantic Segmentationcited by 855
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
- 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
- 2021ImageNet-21K Pretraining for the Massescited by 607
- 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 591
- 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
- 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 328
- 2021DeepViT: Towards Deeper Vision Transformercited by 288
- 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
- 2021Co-Scale Conv-Attentional Image Transformerscited by 224
- 2017BlockDrop: Dynamic Inference Paths in Residual Networkscited by 185
- 2019Adversarial Robustness vs Model Compression, or Both?cited by 98
- 2020Triple Wins: Boosting Accuracy, Robustness and Efficiency Together by Enabling Input-Adaptive Inferencecited by 45
- 2019Dual Dynamic Inference: Enabling More Efficient, Adaptive and Controllable Deep Inferencecited by 31
- 2021Drawing Robust Scratch Tickets: Subnetworks with Inborn Robustness Are Found within Randomly Initialized Networkscited by 29
- 2020Fractional Skipping: Towards Finer-Grained Dynamic CNN Inferencecited by 23
- 2020FracTrain: Fractionally Squeezing Bit Savings Both Temporally and Spatially for Efficient DNN Trainingcited by 23
- 2018Defend Deep Neural Networks Against Adversarial Examples via Fixed and Dynamic Quantized Activation Functionscited by 17
- 2019Robust Sparse Regularization: Simultaneously Optimizing Neural Network Robustness and Compactnesscited by 7
- 20212-in-1 Accelerator: Enabling Random Precision Switch for Winning Both Adversarial Robustness and Efficiencycited by 4
- 2021Exploring and Improving Mobile Level Vision Transformerscited by 2
Built on by
Citing papers per year: 2022: 3; 2023: 8; 2024: 0; 2025: 0; 2026: 1.
12 papers.
- 2022Towards Efficient Adversarial Training on Vision Transformerscited by 29
- 2022Castling-ViT: Compressing Self-Attention via Switching Towards Linear-Angular Attention at Vision Transformer Inferencecited by 28
- 2023ShiftAddViT: Mixture of Multiplication Primitives Towards Efficient Vision Transformercited by 15
- 2023Map-and-Conquer: Energy-Efficient Mapping of Dynamic Neural Nets onto Heterogeneous MPSoCscited by 9
- 2022Data Level Lottery Ticket Hypothesis for Vision Transformerscited by 7
- 2023AdaMTL: Adaptive Input-dependent Inference for Efficient Multi-Task Learningcited by 5
- 2023Multi-Scale And Token Mergence: Make Your ViT More Efficientcited by 5
- 2023Hint-Aug: Drawing Hints from Foundation Vision Transformers Towards Boosted Few-Shot Parameter-Efficient Tuningcited by 2
- 2023NetBooster: Empowering Tiny Deep Learning By Standing on the Shoulders of Deep Giantscited by 1
- 2023USDC: Unified Static and Dynamic Compression for Visual Transformercited by 1
- 2023Bridging The Gaps Between Token Pruning and Full Pre-training via Masked Fine-tuningcited by 0
- 2026ProgResViT: Progressive Resolution and Width for Adaptive Vision Transformerscited by 0
- 2026ProgResViT: Progressive Resolution and Width for Adaptive Vision Transformers2 Sep 2026
- 2023Bridging The Gaps Between Token Pruning and Full Pre-training via Masked Fine-tuning26 Oct 2023
- 2023USDC: Unified Static and Dynamic Compression for Visual Transformer17 Oct 2023
- 2023NetBooster: Empowering Tiny Deep Learning By Standing on the Shoulders of Deep Giants23 Jun 2023
- 2023ShiftAddViT: Mixture of Multiplication Primitives Towards Efficient Vision Transformer10 Jun 2023
- 2023Multi-Scale And Token Mergence: Make Your ViT More Efficient8 Jun 2023
- 2023Hint-Aug: Drawing Hints from Foundation Vision Transformers Towards Boosted Few-Shot Parameter-Efficient Tuning25 Apr 2023
- 2023AdaMTL: Adaptive Input-dependent Inference for Efficient Multi-Task Learning17 Apr 2023
- 2023Map-and-Conquer: Energy-Efficient Mapping of Dynamic Neural Nets onto Heterogeneous MPSoCs24 Feb 2023
- 2022Castling-ViT: Compressing Self-Attention via Switching Towards Linear-Angular Attention at Vision Transformer Inference18 Nov 2022
- 2022Data Level Lottery Ticket Hypothesis for Vision Transformers2 Nov 2022
- 2022Towards Efficient Adversarial Training on Vision Transformers21 Jul 2022