Manuscript Offprint

arXiv:2609.31098

The Residual Stream's Effective Depth

Barak Gahtan, Ido Galil, Alex M. Bronstein

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We introduce effective depth ( DeffD_{eff}), a scalar diagnostic that treats the layer-wise residual stream of a transformer as a discrete-time process, measures how representation similarity decays with layer distance, and aggregates that profile into one number. Across sixteen decoder-only language models, DeffD_{eff} separates a structural consequence of residual accumulation from an empirical one: even maximally diverse orthogonal updates have the closed-form reference FL=2L/(L+1)<2F_L = 2L/(L+1) < 2, yet fifteen of sixteen default measurements lie below FLF_L (Qwen3.5: 32–44%, OLMo-2: 40–41%, Pythia: 23–28%). Matched references show that the gap is not caused by the persistent initial state or update-size imbalance, but is largely a calibrated signature of correlated residual updates rather than evidence that depth is unused. Symmetric position-0, token-normalisation, and top-PC controls show the regime is not reducible to BOS or top-PC artefacts: the lone above-reference default outlier joins the same regime, and all sixteen models are sub-reference after token-normalisation or top-1-PC removal. Intermediate checkpoints show that the regime is established early in OLMo-2 and stable through 5T tokens, while Pythia-1.4B follows a distinct decreasing trajectory. A controlled residual-carry intervention supports the mechanism, and DeffD_{eff} is best read as a global accumulated-state diagnostic, not as a capability score or pruning method.

Keywords: effective depth; residual stream; transformer interpretability; layer redundancy; centered kernel alignment; large language models

1. Introduction

The depth of a neural network is its most celebrated architectural parameter. Theoretical analyses of deep learning routinely invoke depth as a proxy for expressive power (Telgarsky, 2016; Raghu et al., 2017), and practitioners add layers as a first resort when models underfit. Yet in the transformer era, a growing body of evidence suggests that nominal depth L is a poor surrogate for the number of statistically distinguishable residual states a model actually traverses. Studies of layer pruning (Men et al., 2024; Gromov et al., 2024), representation similarity (Kornblith et al., 2019; Raghu et al., 2021), and skip-layer routing (Elhoushi et al., 2024) collectively demonstrate that large portions of a trained stack can be removed with

© 2026 B. Gahtan, I. Galil & A.M. Bronstein.

negligible performance degradation, while Veit et al. (2016) showed that residual networks behave as ensembles of shallow networks whose effective gradient paths are far shorter than the nominal depth. Recent work confirms this pattern in modern LLMs: Sun et al. (2025) show that Pre-LayerNorm causes deeper layers to converge toward identity transformations, and Razzhigaev et al. (2024) find near-perfect linear relationships (Procrustes similarity > 0.99) between adjacent layer representations. This raises a fundamental question:

Given a transformer with L layers, how many statistically distinguishable residual states does it traverse, and why?

Answering this question requires a definition that (i) is grounded in a well-motivated diagnostic framework rather than ad hoc heuristics, (ii) applies uniformly across decoder-only language models, and (iii) connects to interpretable quantities such as layer redundancy. Our approach. We recast the residual stream (h1,…,hL)∈RL×d(h_1, \ldots, h_L) \in \mathbb{R}^{L \times d} as a discrete-time process indexed by layer, measure its similarity autocorrelation ϱ^(k)\hat{\varrho}(k), and aggregate the full layer-distance profile into a scalar. We measure DeffD_{\text{eff}} on the accumulated hidden states hℓh_\ell rather than the per-layer updates fℓ=hℓ−hℓ−1f_\ell = h_\ell - h_{\ell-1}, because the question we address concerns the distinct information states that downstream computation receives (Section 4):

Deff=L1+2∑k=1L−1(1−kL)ϱ^(k).(1)D_{\mathrm{e f f}}=\frac{L}{1+2\sum_{k=1}^{L-1}\left(1-\frac{k}{L}\right)\hat{\varrho}(k)}. \tag{1}

When layers are independent ( ϱ^(k)=0\hat{\varrho}(k) = 0), Deff=LD_{\text{eff}} = L; when perfectly correlated ( ϱ^(k)=1\hat{\varrho}(k) = 1), Deff=1D_{\text{eff}} = 1. This formulation directly connects the degree of inter-layer redundancy to a single interpretable scalar. The diagnostic has four concrete uses: it prevents the mistaken reading that low normalized depth means a model uses only a few layers; gives a global geometry summary for comparing families, checkpoints, and architectural variants; surfaces position-0, norm-spike, and top-PC anomalies when paired with controls; and separates model-level residual-stream behaviour from local layer decisions such as pruning. In this sense, DeffD_{\text{eff}} is best read as a calibrated diagnostic for residual-stream geometry: it tells us when a stack follows the familiar residual-accumulation regime and when a new architecture or checkpoint moves off that map.

What this paper does and does not claim. A reader who sees a normalized ratio of Deff/L<0.05D_{\text{eff}}/L < 0.05 across 7B+7B+ models might infer that trained transformers “waste” most of their depth. That inference is not what we report. In an idealized residual-accumulation regime with mutually orthogonal per-layer updates, the closed-form value is Deff=2L/(L+1)<2D_{\text{eff}} = 2L/(L+1) < 2 at every LL (Section 5, Appendix S2), so any model whose accumulated states approximate this regime will have Deff/L=O(1/L)D_{\text{eff}}/L = O(1/L) by construction. We use this value as an idealized maximally-diverse-update reference, not as a null distribution or a target.

The empirical content is the additional gap below this reference, but this gap should be decomposed rather than overread. We therefore add matched references that retain measured update-size profiles, the persistent initial state, and the measured update similarity profile. These controls show that the sub- FLF_{L} gap is not caused by h0h_{0} carry or update-size imbalance; once measured update similarities are retained, the scalar reference is more redundant than the observed accumulated stream. We therefore lead with absolute DeffD_{eff} and gap-to- FLF_{L}, but interpret the small ratio as a calibrated signature of correlated residual updates rather than as evidence of learned underuse of layers. CKA also makes DeffD_{eff} insensitive to pure orthogonal rotations of the residual basis, so the diagnostic measures accumulated-state similarity, not every possible form of computation. We restrict empirical claims to decoder-only autoregressive language models throughout; encoder-only, vision, and multimodal transformers are left to future work.

Contributions.

  1. Effective depth ( DeffD_{eff}): a scalar, architecture-agnostic diagnostic of redundancy in the accumulated residual stream, built from a CKA-based similarity autocorrelation and a weighted full-lag aggregation, both validated independently (Section 4, Appendix S13, Appendix S7).

  2. A calibrated sub-reference operating regime. Across sixteen decoder-only language models spanning four families, nearly every default measurement shows additional redundancy below the orthogonal-update reference FL=2L/(L+1)F_L = 2L/(L + 1). Matched references show that this gap is not explained by the persistent initial state or measured update-size profile, but is largely accounted for by measured update correlations. The same regime survives position-0, token-normalisation, and top-PC controls applied symmetrically to both outliers and non-outliers; the lone above-reference default outlier joins the regime under every control (Section 5, Figure 1, Figure 2; Appendices S3 and S4).

  3. Training-dynamics arc. Three OLMo-2 sizes (1B, 7B, 13B) establish a 40–41% gap to FLF_L by their first landed post-initialisation checkpoints and remain near it through 5T tokens, while Pythia-1.4B follows a distinct monotonically-decreasing trajectory (44% at 2B tokens to 26% at 300B tokens). The sub-reference regime is therefore family-conditioned and early-established rather than solely a function of training progress (Section 5, Figure 3).

  4. Mechanism and global-vs-local distinction. A controlled residual-carry intervention on a 12-layer nanoGPT shows that mild reductions in residual carry leave Deff(h)/LD_{\mathrm{eff}}(h)/L unchanged, while the only reductions large enough to raise it substantially also break optimisation (Appendix S17). DeffD_{\mathrm{eff}} is a global accumulated-state diagnostic, not a capability score or pruning method; Appendix S19 reports pruning boundary checks that keep this scope explicit.

References (36)