HydraViT: Stacking Heads for a Scalable ViT
Not on the map. Why?
Abstract (arXiv)
The architecture of Vision Transformers (ViTs), particularly the Multi-head Attention (MHA) mechanism, imposes substantial hardware demands. Deploying ViTs on devices with varying constraints, such as mobile phones, requires multiple models of different sizes. However, this approach has limitations, such as training and storing each required model separately. This paper introduces HydraViT, a novel approach that addresses these limitations by stacking attention heads to achieve a scalable ViT. By repeatedly changing the size of the embedded dimensions throughout each layer and their corresponding number of attention heads in MHA during training, HydraViT induces multiple subnetworks. Thereby, HydraViT achieves adaptability across a wide spectrum of hardware environments while maintaining performance. Our experimental results demonstrate the efficacy of HydraViT in achieving a scalable ViT with up to 10 subnetworks, covering a wide range of resource constraints. HydraViT achieves up to 5 p.p. more accuracy with the same GMACs and up to 7 p.p. more accuracy with the same throughput on ImageNet-1K compared to the baselines, making it an effective solution for scenarios where hardware availability is diverse or varies over time. Source code available at https://github.com/ds-kiel/HydraViT.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 33 of its 40 references that are in the map. First posted on arXiv 26 Sep 2024.
Builds on
33 of 40 references.
References · 33
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,515
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,446
- 2019Natural Adversarial Examplescited by 1,408
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,013
21 more
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 627
- 2021MetaFormer Is Actually What You Need for Visioncited by 524
- 2022DeiT III: Revenge of the ViTcited by 419
- 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 362
- 2020Are we done with ImageNet?cited by 333
- 2018Slimmable Neural Networkscited by 305
- 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 251
- 2021SPViT: Enabling Faster Vision Transformers via Soft Token Pruningcited by 167
- 2022Separable Self-attention for Mobile Vision Transformerscited by 163
- 2023FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterizationcited by 162
- 2022FlexiViT: One Model for All Patch Sizescited by 152
- 2021Not All Images are Worth 16x16 Words: Dynamic Transformers for Efficient Image Recognitioncited by 144
- 2021Patch Slimming for Efficient Vision Transformerscited by 133
- 2023MatFormer: Nested Transformer for Elastic Inferencecited by 85
- 2014Learning Ordered Representations with Nested Dropoutcited by 84
- 2018NestDNN: Resource-Aware Multi-Tenant On-Device Deep Learning for Continuous Mobile Visioncited by 68
- 2022Vision Transformer Slimming: Multi-Dimension Searching in Continuous Optimization Spacecited by 66
- 2024GhostNetV3: Exploring the Training Strategies for Compact Modelscited by 14
- 2023ProgDTD: Progressive Learned Image Compression with Double-Tail-Drop Trainingcited by 13
- 2023SHARCS: Efficient Transformers through Routing with Dynamic Width Sub-networkscited by 6
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 6.
11 papers.
- 2025Elastic MoE: Unlocking the Inference-Time Scalability of Mixture-of-Expertscited by 11
- 2025ThinkingViT: Matryoshka Thinking Vision Transformer for Elastic Inferencecited by 7
- 2025EA-ViT: Efficient Adaptation for Elastic Vision Transformercited by 7
- 2024MCUCoder: Adaptive Bitrate Learned Video Compression for IoT Devicescited by 2
- 2025AdaPerceiver: Transformers with Adaptive Width, Depth, and Tokenscited by 1
- 2026Cut-ViT: Task-Specific Model Pruning via Gram Anchoring Subspace Consistencycited by 1
- 2026MrBERT: Modern Multilingual Encoders via Vocabulary, Domain, and Dimensional Adaptationcited by 0
- 2026Slimmable ConvNeXt: Width-Adaptive Inference for Efficient Multi-Device Deploymentcited by 0
- 2026ProgResViT: Progressive Resolution and Width for Adaptive Vision Transformerscited by 0
- 2026EV-JEPA: Elastic V-JEPA for Any Device and Cross-Device Inferencecited by 0
- 2026Your Transformer Is Secretly Elasticcited by 0
- 2026Your Transformer Is Secretly Elastic14 Oct 2026
- 2026EV-JEPA: Elastic V-JEPA for Any Device and Cross-Device Inference9 Oct 2026
- 2026ProgResViT: Progressive Resolution and Width for Adaptive Vision Transformers2 Sep 2026
- 2026Cut-ViT: Task-Specific Model Pruning via Gram Anchoring Subspace Consistency28 Aug 2026
- 2026Slimmable ConvNeXt: Width-Adaptive Inference for Efficient Multi-Device Deployment21 May 2026
- 2026MrBERT: Modern Multilingual Encoders via Vocabulary, Domain, and Dimensional Adaptation24 Feb 2026
- 2025AdaPerceiver: Transformers with Adaptive Width, Depth, and Tokens22 Nov 2025
- 2025Elastic MoE: Unlocking the Inference-Time Scalability of Mixture-of-Experts26 Sep 2025
- 2025EA-ViT: Efficient Adaptation for Elastic Vision Transformer25 Jul 2025
- 2025ThinkingViT: Matryoshka Thinking Vision Transformer for Elastic Inference14 Jul 2025
- 2024MCUCoder: Adaptive Bitrate Learned Video Compression for IoT Devices29 Nov 2024