Rethinking Vision Transformer Depth via Structural Reparameterization

Chengwei Zhou, Vipin Chaudhary, Gourav DattaarXiv 2025 · DOI

Abstract

Vision Transformers (ViTs) have become a cornerstone of computer vision, yet their reliance on significant depth to achieve high accuracy creates a "depth tax" that hinders real-time deployment on edge devices. This paper introduces a progressive structural reparameterization technique that allows for the training of wide, multi-branch models which are mathematically collapsed into ultra-shallow, single-path architectures for inference. Our results demonstrate that a 6-layer reparameterized model can match or exceed the performance of a standard 12-layer DeiT-Tiny, achieving a 37% inference speedup on mobile CPUs without sacrificing accuracy.

Introduction

Standard Vision Transformers, such as DeiT-Tiny, typically require 12 or more sequential layers to maintain competitive results. This depth is a major bottleneck for deployment on hardware with strict latency and power constraints, such as smartphones or emerging photonic computing systems. While existing methods focus on token pruning or attention optimization, they rarely challenge the necessity of depth itself. This research asks: can we reduce the number of stacked transformer layers while maintaining representational capacity? By utilizing structural reparameterization, we show that width can effectively compensate for depth during training, leading to faster, shallower models at inference.

Methodology: Progressive Structural Reparameterization

The core of our approach is to use parallel branches during the training phase to capture complex features, which are then collapsed into a streamlined, single-path model for deployment. This process involves several key innovations:

  1. Layer Normalization Factorization: To allow mathematical merging, LayerNorm (LN) parameters are "absorbed" into adjacent linear layers, ensuring all branches receive identical normalized inputs.
  2. MHSA Reformulation: Multi-Head Self-Attention (MHSA) is reformulated from a concatenation of heads into a blockwise summation, enabling parallel branches to be merged via simple matrix addition.
  3. Progressive Joining: A scheduling parameter, $\lambda(t)$, is used to gradually align the computations of independent branches. By the end of training, branches become mathematically equivalent and can be summed into one.
The training architecture utilizes multiple parallel branches and a progressive joining mechanism to learn diverse features before collapsing into a single path.

Experimental Results

We evaluated our framework on ImageNet-1K and various transfer learning tasks. The reparameterized models, denoted with an "-R" suffix, were compared against standard depth-scaled baselines like DeiT and MAE-Tiny.

Our 6-layer model (D-MAE-6-R) achieved 72.4% Top-1 accuracy on ImageNet-1K, slightly outperforming the original 12-layer DeiT-Tiny (72.2%). More importantly, the reduction in depth translated directly into hardware efficiency. On ARM processors, the 6-layer model showed a 39% latency reduction and a 64% increase in throughput compared to the 12-layer baseline.

Comparison of throughput, latency, and accuracy across different model depths and architectures. The reparameterized models (bottom rows) show superior accuracy-to-latency trade-offs.

Discussion and Limitations

This work suggests a "training wheels" philosophy: parallel branches allow the model to explore a higher-dimensional representational space during optimization, which is then distilled into a lean inference model. This reparameterization is mathematically exact, meaning the inference model performs the precise computation learned during the multi-branch training phase.

However, there are trade-offs. The training phase requires approximately 10% more peak GPU memory to manage the parallel branches. Additionally, while 6-layer models perform excellently, 3-layer models still experience a noticeable drop in accuracy (60.5%), indicating a lower bound on how shallow a transformer can go while maintaining global modeling capabilities. Future work will explore extending these techniques to multimodal and video transformers.

Summary updated

BibTeX
@misc{zhou2025rethinking,
  author = {Chengwei Zhou and Vipin Chaudhary and Gourav Datta},
  title = {{Rethinking Vision Transformer Depth via Structural Reparameterization}},
  year = {2025},
  eprint = {2511.19718},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.19718},
}
Figure