Functional Depth Is Learned: How Transformer Layers Coordinate During Pretraining

Cross-layer coordination in Transformers strengthens during pretraining, so functional depth is learned rather than produced by stacking layers.
This study investigates how pretrained Transformers develop "functional depth," i.e., computations produced jointly across layers. Using inclusion-exclusion decomposition and identity ablation, researchers isolate "connected components" that appear only when a group of layers act together. Experiments on Pythia, OLMo, and Amber show cross-layer coordination strengthens during pretraining; removing connected components harms perplexity more than removing norm-matched random directions; and representational similarity is negatively correlated with coordination but not equivalent. These findings inform model compression and architecture design, suggesting pruning should account for inter-layer coordination.

Transformer performance improves with depth, but the number of layers merely provides opportunities for sequential computation—layers may simply be performing near-independent fine-tuning with little dependence on one another. A study titled Functional Depth Is Learned: Isolating the Computation That Layers Produce Only Together takes a deep look at how Transformers develop "functional depth" during pretraining, and proposes a precise inclusion-exclusion decomposition method to isolate "connected components"—computations that only emerge when a specified set of layers act together under identity ablation.
Core Finding: From Counting to Coordination
The researchers tracked this metric on public checkpoints of Pythia, OLMo, and Amber, yielding three key findings.
Finding 1: Cross-layer coordination strengthens continuously during pretraining
Write-relative connected coordination starts from a baseline at initialization or the earliest checkpoint and strengthens as pretraining progresses, holding across all measured interaction orders. This means pretraining does not merely tune single-layer functions—it progressively organizes dependencies between layers. Depth provides the stage, but "functional depth" is learned.
Finding 2: Connected components have behavioral consequences
Through direct intervention experiments, the researchers found that removing these connected components harms perplexity more than removing norm-matched random directions at the same location, across all 35 measured model-order cells. This proves that connected components are not statistical artifacts but computational structures carrying real function.
Perplexity is a common evaluation metric for language models, defined as the exponentiated average negative log-likelihood of the model on test text. Lower perplexity means the model predicts text more accurately. In this study, the increase in perplexity after removing connected components directly reflects how important these components are to the model's predictive ability. The researchers further used norm-matched random directions as a control: applying random perturbations at the same location with the same norm as the connected components. If removing connected components causes significantly greater harm than random perturbation, it indicates they carry specific function rather than merely being large perturbations. This control design effectively rules out the alternative explanation that "any perturbation would harm performance."
Finding 3: Representational similarity and coordination are correlated but not equivalent
Across seven models, pairwise representational similarity and pairwise connected coordination consistently showed negative correlation, but the two signals are not interchangeable: block-removal criteria based on similarity and on coordination often agreed on Pythia but diverged on Amber. This suggests that representational similarity captures static similarity of representational geometry, while connected coordination reflects dynamic computational dependencies—two different facets of inter-layer relationships.
Methodological Insight: Inclusion-Exclusion Decomposition and Identity Ablation
The core methodology of this study is the introduction of an exact inclusion-exclusion decomposition to isolate connected components under identity ablation. Simply put, the researchers systematically "switch off" certain layers (making their outputs identity mappings) and observe which computations only emerge when specific layer combinations act together. This method can quantify the strength of inter-layer collaboration, rather than merely measuring single-layer importance.
For understanding Transformer interpretability, this framework offers a new perspective: we should focus not only on the contributions of individual attention heads or neurons, but also on how layers collaborate to produce function.
Inclusion-exclusion decomposition originates from combinatorics and is used to compute the size of the union of multiple sets. In neural network analysis, it is borrowed to quantify the computation jointly produced by a set of layers: by separately measuring the contributions of individual layers, pairwise combinations, triple combinations, etc., and adding/subtracting according to the inclusion-exclusion principle, one can precisely isolate interaction terms that "only appear when all specified layers are present simultaneously." This method avoids double-counting from simply summing single-layer contributions, thereby revealing non-additive collaborative effects between layers.
Identity ablation is an intervention: replacing a layer's output with its input (i.e., an identity mapping), thereby "switching off" that layer's computation without changing the network's data-flow shape. Unlike directly deleting a layer or zeroing it out, identity ablation preserves the integrity of residual connections and avoids introducing out-of-distribution perturbations, making it better suited for evaluating a layer's functional role in the computational graph. Combined with inclusion-exclusion decomposition, researchers can systematically switch off different layer combinations, observe changes in model behavior, and thereby localize connected components.
Potential Implications for Model Design and Compression
These findings have potential implications for model compression and architecture design. If functional depth is gradually learned during pretraining, then pruning or layer-removal strategies may need to consider inter-layer coordination, not just parameter importance or representational similarity. For example, the divergence between similarity-based and coordination-based criteria on Amber suggests that relying solely on representational similarity may misjudge which layers can be safely removed.
Furthermore, the results imply that increasing depth alone does not automatically yield stronger sequential computation; how pretraining organizes cross-layer dependencies is what matters. This may inspire new pretraining objectives or regularization methods to promote more effective formation of functional depth.
Conclusion
Through fine-grained intervention experiments and multi-model validation, this study reveals that Transformer functional depth is gradually acquired during pretraining. The number of layers provides opportunities for sequential computation, but the organization of cross-layer dependencies is the core of how depth delivers its benefits. For AI researchers and engineers, understanding this helps design model architectures more rationally, evaluate pruning strategies, and gain deeper insight into how deep neural networks operate.
One-line Summary
Cross-layer coordination in Transformers strengthens during pretraining; functional depth is learned rather than stacked via layer count.
Paragraph Summary
This study explores how pretrained Transformers develop "functional depth"—computations produced jointly across layers. Using inclusion-exclusion decomposition and identity ablation, the researchers isolate "connected components"—computations that appear only when a group of layers act together. Experiments on Pythia, OLMo, and Amber show: cross-layer coordination strengthens continuously during pretraining; removing connected components harms perplexity more than removing norm-matched random directions; representational similarity and coordination are negatively correlated but not equivalent. These findings have implications for model compression and architecture design—pruning strategies need to consider inter-layer coordination.
Related articles

GPT-6 Designs Proteins, Claude Creations Become Apps with One Click, DeepMind Releases New Benchmark
OpenAI says GPT-6 can design protein 3D structures, Anthropic lets Claude creations install as desktop apps, DeepMind's HIP benchmark tests stability on simple questions, Google Workspace opens agent MCP interfaces.

OpenAI Weekly Roundup: GPT-6.2 Rolls Out to ChatGPT, GPT-6 Designs Proteins
OpenAI's week: GPT-6.2 rolls out to ChatGPT, GPT-6 claims independent protein design, agent research share surges, perplexity proposed as a shared metric, and internal safety concerns surface.

Is the Crypto Industry About to "Turn Blue"? The Truth Behind Tech and Politics' Shifting Allegiances
Vergecast discusses whether the crypto industry will shift from the right to the Democrats, revealing the pragmatic nature of tech's politics and the costs of a crypto pivot.