mlsanityData to 14 Oct 2026

HydraViT: Stacking Heads for a Scalable ViT

arXiv 2409.17978 ↗First posted 26 Sep 2024cs.CV cs.AI cs.LGcited by 11

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  4. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
  5. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  6. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
  7. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
  8. 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,515
  9. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,446
  10. 2019Natural Adversarial Examplescited by 1,408
  11. 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
  12. 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,013
21 more
  1. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
  2. 2020Transformer Interpretability Beyond Attention Visualizationcited by 627
  3. 2021MetaFormer Is Actually What You Need for Visioncited by 524
  4. 2022DeiT III: Revenge of the ViTcited by 419
  5. 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 362
  6. 2020Are we done with ImageNet?cited by 333
  7. 2018Slimmable Neural Networkscited by 305
  8. 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 251
  9. 2021SPViT: Enabling Faster Vision Transformers via Soft Token Pruningcited by 167
  10. 2022Separable Self-attention for Mobile Vision Transformerscited by 163
  11. 2023FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterizationcited by 162
  12. 2022FlexiViT: One Model for All Patch Sizescited by 152
  13. 2021Not All Images are Worth 16x16 Words: Dynamic Transformers for Efficient Image Recognitioncited by 144
  14. 2021Patch Slimming for Efficient Vision Transformerscited by 133
  15. 2023MatFormer: Nested Transformer for Elastic Inferencecited by 85
  16. 2014Learning Ordered Representations with Nested Dropoutcited by 84
  17. 2018NestDNN: Resource-Aware Multi-Tenant On-Device Deep Learning for Continuous Mobile Visioncited by 68
  18. 2022Vision Transformer Slimming: Multi-Dimension Searching in Continuous Optimization Spacecited by 66
  19. 2024GhostNetV3: Exploring the Training Strategies for Compact Modelscited by 14
  20. 2023ProgDTD: Progressive Learned Image Compression with Double-Tail-Drop Trainingcited by 13
  21. 2023SHARCS: Efficient Transformers through Routing with Dynamic Width Sub-networkscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 4; 2026: 6.

11 papers.