Functional Depth Is Learned: Isolating the Computation That Layers Produce Only Together

JaeSeong Kim, KyungTae LimarXiv 2026 · arXiv

TL;DR

Just because a Transformer has 32 layers doesn't mean it's actually performing 32 steps of deep, sequential logic. This paper introduces a way to measure "functional depth"—the specific computation that only happens when a group of layers works together—and finds that this coordination isn't an inherent property of the architecture; it's a skill the model learns during pretraining.

What Problem Does This Paper Address?

We know that deeper models generally perform better, but we don't fully understand why. In theory, a 24-layer Transformer could be doing 24 sequential steps of reasoning. In practice, it might just be acting like a "bag of layers," where each layer adds a tiny, independent refinement to the data without really caring what the previous layers did.

Think of it like a kitchen: are the chefs working in an assembly line where the sauce depends on the stock (sequential), or is everyone just throwing their own favorite spice into the same pot at the same time (independent refinements)?

Existing tools like "representation similarity" can tell us if two layers look alike, but they can't tell us if those layers are actually collaborating to produce something unique. This paper aims to isolate the "connected" part of the computation—the part that vanishes if you remove even one layer from a specific group.

Methods

The authors use a clever mathematical trick called Inclusion-Exclusion Decomposition.

To find the "connected component" of a set of layers (say, layers 1, 2, and 3), they:

  1. Run the full forward pass with all three layers.
  2. Subtract the results of all possible pairs (1&2, 1&3, 2&3).
  3. Add back the results of individual layers (to correct for over-subtraction).
  4. Subtract the original input.

What’s left is the computation that only exists when all three layers act together. If the layers were perfectly independent, this value would be zero.

They then normalize this value against the actual "write" magnitude of the final layer in the set to create a Coordination Ratio ($R_k$). This tells us how much stronger the joint coordination is in a trained model compared to its random initialization.

Datasets

The study doesn't introduce new datasets but rather performs a "developmental analysis" on existing open-source model families that released intermediate training checkpoints:

  • Pythia (ranging from 410M to 6.9B parameters)
  • OLMo (1B parameters)
  • Amber (7B parameters)

Evaluations and interventions were performed using the WikiText-103 corpus.

Key Insights and Ideas

  • Functional Depth is Learned: At the start of training, layers are mostly independent. As pretraining progresses, the "connected components" grow significantly. The model literally learns how to use its depth.
  • The "Early-Interior" Band: Coordination doesn't happen uniformly. As seen in Figure 1, coordination tends to concentrate in the early-to-middle layers of the model as training proceeds.
Figure 1: Development of connected cross-layer coordination during pretraining (pythia-410m). Each panel visualizes one checkpoint (columns, init–64k steps) at one interaction order k (rows, k = 3–6): nodes are layers ordered by depth, and each arc spans an adjacent window T of k layers, with intensity proportional to its normalized connected component bUT , scaled by the order-level ratio Rk. Coordination is weak relative to later checkpoints at initialization and progressively concentrates into an early-interior band as training proceeds, across every measured order.
  • Causal Importance: These joint computations aren't just mathematical noise. If you delete the "connected component," the model's performance (perplexity) tanks far more than if you delete a random direction of the same size.
  • Similarity $\neq$ Coordination: Interestingly, layers that have very similar representations often show weaker coordination. This suggests that "redundant" layers (those that look alike) might actually be doing less joint work than layers that look different but are functionally "hooked" together.

Key Results

  • Strengthening Coordination: Across all 35 model configurations tested, the coordination ratio $R_k$ was greater than 1, meaning training always increases joint computation. For larger models like Pythia-6.9B, the coordination at order $k=6$ was over 64 times stronger than at initialization.
  • The Takeoff Point: Coordination doesn't grow linearly. In Pythia-1.4B, the layers start "finding each other" and separating from the baseline after about 2.1 billion tokens of training (see Figure 2).
Figure 2: Coordination ratio Rk over pretraining (Pythia- 1.4B), averaged over all adjacent windows of order k. All orders start near Rk = 1 and separate upward as training proceeds. Bands are 95% bootstrap confidence intervals over adjacent windows.
  • Deletion Damage: Deleting a $k=3$ connected component in Pythia-6.9B increased perplexity by a factor of 809x, while deleting a norm-matched random direction only increased it by 2.0x. This proves these components are "load-bearing" structures in the model's logic.

Limitations and Future Work

  • Adjacent Windows: The study primarily looks at layers that are next to each other (e.g., layers 4, 5, and 6). It doesn't yet account for "long-distance" coordination (e.g., layer 2 and layer 20 working together while skipping the middle).
  • Computational Cost: The inclusion-exclusion method requires $2^k$ forward passes for a set of $k$ layers. This makes it very expensive to test interactions between more than 6 layers at a time ($2^6 = 64$ passes).
  • Identity Ablation: The method relies on replacing layers with an "identity map" (doing nothing). This can sometimes put the model into a "weird" state it never saw during training, which might slightly skew the results.

In short: Architectural depth is just the potential for complexity; functional depth is the realization of that potential through the hard work of pretraining.

Summary updated

Abstract

Transformer performance scales with depth, but layer count merely counts the opportunities for sequential computation: layers could still behave as nearly independent refinements that barely depend on one another. We study how transformers develop functional depth during pretraining, introducing an exact inclusion-exclusion decomposition that isolates the connected component, i.e., the computation that appears only when a specified set of layers acts together under identity ablation. Tracking this quantity across public checkpoints of Pythia, OLMo, and Amber yields three findings. First, write-relative connected coordination strengthens from its initialization or earliest-checkpoint baseline as pretraining proceeds, across all measured interaction orders. Second, these connected components are behaviorally consequential under direct intervention: deleting them damages perplexity more than deleting a norm-matched random direction at the same site in all 35 measured model-order cells. Third, pairwise representation similarity is consistently negatively correlated with pairwise connected coordination across seven models, yet the two signals are not interchangeable: similarity- and coordination-based block-removal criteria often agree in Pythia but diverge on Amber. Together, these results suggest that architectural depth provides the opportunity for sequential computation, while pretraining progressively organizes cross-layer dependencies within that depth.
BibTeX
@misc{kim2026functional,
  author = {JaeSeong Kim and KyungTae Lim},
  title = {{Functional Depth Is Learned: Isolating the Computation That Layers Produce Only Together}},
  year = {2026},
  eprint = {2611.27911},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.27911},
}
Figure