mlsanityData to 14 Oct 2026

RePaViT: Scalable Vision Transformer Acceleration via Structural Reparameterization on Feedforward Network Layers

arXiv 2505.21847 ↗First posted 28 May 2025cs.CV cs.AIcited by 5

Not on the map. Why?

Abstract (arXiv)

We reveal that feedforward network (FFN) layers, rather than attention layers, are the primary contributors to Vision Transformer (ViT) inference latency, with their impact signifying as model size increases. This finding highlights a critical opportunity for optimizing the efficiency of large-scale ViTs by focusing on FFN layers. In this work, we propose a novel channel idle mechanism that facilitates post-training structural reparameterization for efficient FFN layers during testing. Specifically, a set of feature channels remains idle and bypasses the nonlinear activation function in each FFN layer, thereby forming a linear pathway that enables structural reparameterization during inference. This mechanism results in a family of ReParameterizable Vision Transformers (RePaViTs), which achieve remarkable latency reductions with acceptable sacrifices (sometimes gains) in accuracy across various ViTs. The benefits of our method scale consistently with model sizes, demonstrating greater speed improvements and progressively narrowing accuracy gaps or even higher accuracies on larger models. In particular, RePa-ViT-Large and RePa-ViT-Huge enjoy 66.8% and 68.7% speed-ups with +1.7% and +1.1% higher top-1 accuracies under the same training strategy, respectively. RePaViT is the first to employ structural reparameterization on FFN layers to expedite ViTs to our best knowledge, and we believe that it represents an auspicious direction for efficient ViTs. Source code is available at https://github.com/Ackesnal/RePaViT.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 59 of its 72 references that are in the map. First posted on arXiv 28 May 2025.

Builds on

59 of 72 references.

References · 59

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  5. 2014Microsoft COCO: Common Objects in Contextcited by 17,608
  6. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  7. 2023Segment Anythingcited by 8,234
  8. 2017Mask R-CNNcited by 7,277
  9. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
  10. 2016Layer Normalizationcited by 5,669
  11. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
  12. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
38 more
  1. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  2. 2016Gaussian Error Linear Units (GELUs)cited by 3,502
  3. 2021LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairscited by 1,555
  4. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,446
  5. 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,385
  6. 2018Unified Perceptual Parsing for Scene Understandingcited by 1,271
  7. 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
  8. 2022Reproducible scaling laws for contrastive language-image learningcited by 1,173
  9. 2018ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Designcited by 1,136
  10. 2022Token Merging: Your ViT But Fastercited by 1,021
  11. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
  12. 2023Scaling Vision Transformers to 22 Billion Parameterscited by 694
  13. 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 674
  14. 2021MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformercited by 642
  15. 2021MetaFormer Is Actually What You Need for Visioncited by 524
  16. 2021RepVGG: Making VGG-style ConvNets Great Againcited by 522
  17. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  18. 2021Mobile-Former: Bridging MobileNet and Transformercited by 235
  19. 2022TinyViT: Fast Pretraining Distillation for Small Vision Transformerscited by 234
  20. 2021AdaViT: Adaptive Vision Transformers for Efficient Image Recognitioncited by 228
  21. 2019ACNet: Strengthening the Kernel Skeletons for Powerful CNN via Asymmetric Convolution Blockscited by 178
  22. 2021Evo-ViT: Slow-Fast Token Evolution for Dynamic Vision Transformercited by 177
  23. 2021SPViT: Enabling Faster Vision Transformers via Soft Token Pruningcited by 167
  24. 2022Separable Self-attention for Mobile Vision Transformerscited by 163
  25. 2023FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterizationcited by 162
  26. 2021All Tokens Matter: Token Labeling for Training Better Vision Transformerscited by 144
  27. 2021Patch Slimming for Efficient Vision Transformerscited by 133
  28. 2023Token Fusion: Bridging the Gap between Token Pruning and Token Mergingcited by 125
  29. 2023RepViT: Revisiting Mobile CNN From ViT Perspectivecited by 123
  30. 2022EdgeNeXt: Efficiently Amalgamated CNN-Transformer Architecture for Mobile Vision Applicationscited by 121
  31. 2022MobileOne: An Improved One millisecond Mobile Backbonecited by 109
  32. 2021Diverse Branch Block: Building a Convolution as an Inception-like Unitcited by 87
  33. 2022Unified Visual Transformer Compressioncited by 79
  34. 2023X-Pruner: eXplainable Pruning for Vision Transformerscited by 68
  35. 2023SwiftFormer: Efficient Additive Attention for Transformer-based Real-time Mobile Vision Applicationscited by 66
  36. 2021Learning Efficient Vision Transformers via Fine-Grained Manifold Distillationcited by 60
  37. 2018ExpandNets: Linear Over-parameterization to Train Compact Convolutional Networkscited by 53
  38. 2022EfficientViT: Multi-Scale Linear Attention for High-Resolution Dense Predictioncited by 42

50 most cited of 59 All 59 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 3.

5 papers.