Block-Multihead Recurrence in ViTs
- The paper demonstrates that pretrained ViTs exhibit a block-recurrent structure, where a few recurrent blocks approximate deep layers and maintain high accuracy.
- It formalizes the Block-Recurrent Hypothesis by tying parameters across contiguous phases, effectively reducing representational complexity.
- Empirical analysis reveals token-specific dynamics and low-rank convergence, highlighting benefits in model compression, interpretability, and inference speed.
Block-multihead recurrence refers to the phenomenon in Vision Transformers (ViTs) whereby the sequential stack of transformer layers in deep models can be well-approximated by a small number of “blocks” that are repeatedly applied in sequence, with each block structurally identical to a standard ViT layer but with parameter tying across multiple depth steps. This approach is formalized in the Block-Recurrent Hypothesis (BRH) and operationalized through models such as Recurrent Approximations to Phase-structured TransfORmers (Raptor), which demonstrate that pretrained ViTs exhibit strong block-recurrent structure, leading to compact, dynamically interpretable programs with low representational complexity (Jacobs et al., 23 Dec 2025).
1. Block-Recurrent Hypothesis: Formal Definition
The Block-Recurrent Hypothesis (BRH) posits that a pretrained Vision Transformer of depth with intermediate activations for layers can be accurately rewritten using only distinct blocks , each applied recurrently. In this formulation, depth is partitioned into contiguous “phases,” each implemented by one of the recurrent blocks:
Here, denotes block applied times in sequence, with . Each layer 0 thus shares parameters with layers in the same phase.
An equivalent recurrent description for layer indices 1 is:
2
The 3-BRH refinement demands that the tied-block program matches all intermediate activations of the original model within a Frobenius-norm tolerance 4.
2. Architecture of the Block-Multihead Recurrent Module
Each recurrent block 5 is architecturally identical to a standard ViT layer and contains independent parameters for each block, but those parameters are tied and reused across multiple depth steps within a phase. The canonical forward pass for 6, with 7, is:
- Layer Normalization: 8
- Multi-Head Self-Attention (MHSA) with Residual:
9
0
- Layer Normalization and MLP with Residual:
1
2
Here, 3 is the per-head dimensionality, 4 generates queries, keys, and values for all heads, and 5 are the MLP weights. The per-block computational cost is identical to an untied ViT layer.
3. Empirical Evidence and Phase Structure
Analysis of between-layer representational similarity matrices for standard ViTs reveals that activations are highly similar within contiguous regions, suggesting the presence of a few computational “phases.” Empirically, block-recurrent surrogates constructed via the Raptor formulation effectively leverage this phase structure. For instance, a Raptor model trained using only two blocks (6) can recover 96% of the linear probe accuracy of DINOv2-trained ImageNet-1k ViTs, at equivalent computational budget.
Additionally, the presence of stochastic depth during training increases both the expressivity and the emergence of block-recurrent structure, facilitating Raptor surrogates that reliably track the original ViT’s intermediate activations (Jacobs et al., 23 Dec 2025).
4. The Raptor Training Protocol
“Raptor” is the term assigned to the block-tied student approximations of pretrained ViTs. Raptor models are trained in two stages:
- Teacher-Forcing Stage: The Raptor student is driven to reproduce all intermediate layer activations of the teacher network, with block parameters updated via losses targeting individual layers’ outputs.
- Phase Discovery: The sequence of blocks and their repetition counts 7 are fitted to minimize the discrepancy between Raptor’s outputs and those of the untied teacher, subject to the 8-tolerance constraint.
This protocol yields block-recurrent surrogates whose stepwise activations closely shadow those of the teacher ViT, enabling direct correspondence between interpretive structure in the tied model and the underlying teacher.
5. Dynamical Interpretability and Trajectory Analysis
Block-multihead recurrence permits the application of dynamical systems analysis to ViTs, providing mechanistic insight into their operation. Observed dynamics include:
- Directional convergence: Model trajectories cluster into class-dependent angular basins, with robust self-correcting behavior under small perturbations.
- Token-specific dynamics: The [cls] token exhibits sharp, late-stage reorientations, while patch tokens display strong late coherence toward their mean direction.
- Rank collapse: Late in depth, model updates collapse to low-rank structure, consistent with convergence toward low-dimensional attractors.
These findings reveal that a compact, recurrent program underlies ViT computation, supporting a low-complexity, principled understanding of depth-wise information processing (Jacobs et al., 23 Dec 2025).
6. Broader Implications and Connections
Block-multihead recurrence offers a normative solution for depth utilization in transformer architectures and aligns with approaches in dynamical systems theory. The recurrent formulation arises naturally from architectural and training factors—such as stochastic depth—and provides a compact and interpretable model class that maintains original ViT accuracy. A plausible implication is that block-recurrent surrogates could facilitate inference speedups, model compression, and theoretical analysis of representation dynamics. Furthermore, this framework establishes a basis for further principled study of phase-wise computation in deep vision models.