mlsanityData to 7 Oct 2026

MIA-Former: Efficient and Robust Vision Transformers via Multi-grained Input-Adaptation

arXiv 2112.11542 ↗First posted 21 Dec 2021cs.CV cs.LGcited by 12

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  7. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  8. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  9. 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
  10. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
  11. 2016Asynchronous Methods for Deep Reinforcement Learningcited by 2,218
  12. 2016Adversarial examples in the physical worldcited by 1,762
27 more
  1. 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,259
  2. 2020Pre-Trained Image Processing Transformercited by 891
  3. 2021Segmenter: Transformer for Semantic Segmentationcited by 855
  4. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
  5. 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
  6. 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
  7. 2021ImageNet-21K Pretraining for the Massescited by 607
  8. 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 591
  9. 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
  10. 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
  11. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  12. 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
  13. 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 328
  14. 2021DeepViT: Towards Deeper Vision Transformercited by 288
  15. 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
  16. 2021Co-Scale Conv-Attentional Image Transformerscited by 224
  17. 2017BlockDrop: Dynamic Inference Paths in Residual Networkscited by 185
  18. 2019Adversarial Robustness vs Model Compression, or Both?cited by 98
  19. 2020Triple Wins: Boosting Accuracy, Robustness and Efficiency Together by Enabling Input-Adaptive Inferencecited by 45
  20. 2019Dual Dynamic Inference: Enabling More Efficient, Adaptive and Controllable Deep Inferencecited by 31
  21. 2021Drawing Robust Scratch Tickets: Subnetworks with Inborn Robustness Are Found within Randomly Initialized Networkscited by 29
  22. 2020Fractional Skipping: Towards Finer-Grained Dynamic CNN Inferencecited by 23
  23. 2020FracTrain: Fractionally Squeezing Bit Savings Both Temporally and Spatially for Efficient DNN Trainingcited by 23
  24. 2018Defend Deep Neural Networks Against Adversarial Examples via Fixed and Dynamic Quantized Activation Functionscited by 17
  25. 2019Robust Sparse Regularization: Simultaneously Optimizing Neural Network Robustness and Compactnesscited by 7
  26. 20212-in-1 Accelerator: Enabling Random Precision Switch for Winning Both Adversarial Robustness and Efficiencycited by 4
  27. 2021Exploring and Improving Mobile Level Vision Transformerscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 3; 2023: 8; 2024: 0; 2025: 0; 2026: 1.

12 papers.