mlsanityData to 7 Oct 2026

Vision Transformer Computation and Resilience for Dynamic Inference

arXiv 2212.02687 ↗First posted 6 Dec 2022cs.CV cs.ARcited by 1

Not on the map. Why?

Abstract (arXiv)

State-of-the-art deep learning models for computer vision tasks are based on the transformer architecture and often deployed in real-time applications. In this scenario, the resources available for every inference can vary, so it is useful to be able to dynamically adapt execution to trade accuracy for efficiency. To create dynamic models, we leverage the resilience of vision transformers to pruning and switch between different scaled versions of a model. Surprisingly, we find that most FLOPs are generated by convolutions, not attention. These relative FLOP counts are not a good predictor of GPU performance since GPUs have special optimizations for convolutions. Some models are fairly resilient and their model execution can be adapted without retraining, while all models achieve better accuracy with retraining alternative execution paths. These insights mean that we can leverage CNN accelerators and these alternative execution paths to enable efficient and dynamic vision transformer inference. Our analysis shows that leveraging this type of dynamic execution can lead to saving 28% of energy with a 1.4% accuracy drop for SegFormer (63 GFLOPs), with no additional training, and 53% of energy for ResNet-50 (4 GFLOPs) with a 3.3% accuracy drop by switching between pretrained Once-For-All models.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 67 of its 89 references that are in the map. First posted on arXiv 6 Dec 2022.

Builds on

67 of 89 references.

References · 67

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  7. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  8. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  9. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  10. 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,617
  11. 2020End-to-End Object Detection with Transformerscited by 7,384
  12. 2017Mask R-CNNcited by 7,259
38 more
  1. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  2. 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
  3. 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,845
  4. 2015You Only Look Once: Unified, Real-Time Object Detectioncited by 4,829
  5. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  6. 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,427
  7. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  8. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
  9. 2015SSD: Single Shot MultiBox Detectorcited by 3,125
  10. 2015Fast R-CNNcited by 2,930
  11. 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
  12. 2013Rich feature hierarchies for accurate object detection and semantic segmentationcited by 2,160
  13. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  14. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
  15. 2022DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detectioncited by 1,306
  16. 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
  17. 2021Transformers in Vision: A Surveycited by 1,009
  18. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
  19. 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
  20. 2019Are Sixteen Heads Really Better than One?cited by 803
  21. 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 778
  22. 2018Universal Transformerscited by 613
  23. 2022Detecting Twenty-thousand Classes using Image-level Supervisioncited by 613
  24. 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 591
  25. 2022DAB-DETR: Dynamic Anchor Boxes are Better Queries for DETRcited by 569
  26. 2019Object Detection in 20 Years: A Surveycited by 528
  27. 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
  28. 2016Adaptive Computation Time for Recurrent Neural Networkscited by 479
  29. 2021Conditional DETR for Fast Training Convergencecited by 422
  30. 2021Dynamic Neural Networks: A Surveycited by 405
  31. 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 328
  32. 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 322
  33. 2019Deep Multi-modal Object Detection and Semantic Segmentation for Autonomous Driving: Datasets, Methods, and Challengescited by 313
  34. 2019Q8BERT: Quantized 8Bit BERTcited by 296
  35. 2021Post-Training Quantization for Vision Transformercited by 274
  36. 2022DETRs with Collaborative Hybrid Assignments Trainingcited by 273
  37. 2020BERT Loses Patience: Fast and Robust Inference with Early Exitcited by 267
  38. 2014cuDNN: Efficient Primitives for Deep Learningcited by 240

50 most cited of 67 All 67 (JSON)

Built on by

Cited by year

Citing papers per year: 2023: 1.

1 paper.