Functional Depth Is Learned: Isolating the Computation That Layers Produce Only Together
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.
Create a lesson
Related papers
QuASAR: Toward an LLM-Assisted Framework for Screening, Prototyping, and Assessing Quantum-Advantage Opportunities in Scientific Computing
Shared title terminology · Mark L. Carroll, Jordan A. Caraballo-Vega, Brian P. Powell et al.
Average-Depth Variable Execution via Request-Local Token Routing
Shared title terminology · Pengjie Zheng, Mengwei Xie, Huan Yang et al.
Integral Multipliers and Arithmetic Obstructions for Two-Hidden-Layer ReLU Maxima
Shared title terminology · Pengcheng Cheng
ProtoDiffusion: Token-per-Layer Generative Modeling of Multi-Layer Images
Shared title terminology · Adrià Ciurana Lanau, Harleen Hanspal, Lusine Abrahamyan et al.
GaussTrans: A Gaussian Interface Framework for Multi-Layer Refractive Transport
Shared title terminology · Zixuan Zhao, Tao Wang