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:
- Run the full forward pass with all three layers.
- Subtract the results of all possible pairs (1&2, 1&3, 2&3).
- Add back the results of individual layers (to correct for over-subtraction).
- 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.
- 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).
- 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