The Depth Delusion: Why Transformers Should Be Wider, Not Deeper
Md Muhtasim Munif Fahim, Md Rezaul Karim
TL;DR
This work challenges the conventional wisdom that deeper transformers are inherently superior by introducing architecture-conditioned scaling laws. It demonstrates a critical depth threshold where additional layers harm performance, deriving a sublinear D_crit(W)≈W^{0.44} and showing optimal scaling exponents D^*∝C^{0.12}, W^*∝C^{0.34}; wider models accumulate learning signals more persistently (τ(W)∝W^{0.44}). Across 30 architectures from 17M to 7B parameters, the framework achieves strong fit (R^2=0.922) and, at 7B, a 32-layer model outperforms a 64-layer counterpart with similar compute, evidencing the Depth Delusion. These results imply practical guidance to favor width over depth in LLM design and raise considerations for scaling flagship models. The findings have hardware and efficiency implications, suggesting reoriented compute strategies and stabilization techniques to push toward wider, shallower architectures. $D_{ ext{crit}}(W)$, $W^*$, and $D^*$ are the central quantitative insights guiding future model design under compute constraints.
Abstract
Neural scaling laws describe how language model loss decreases with parameters and data, but treat architecture as interchangeable--a billion parameters could arise from a shallow-wide model (10 layers & 8,192 hidden dimension) or a deep-narrow one (80 layers & 2,048 hidden dimension). We propose architecture-conditioned scaling laws decomposing this dependence, finding that optimal depth scales as D* ~ C^0.12 while optimal width scales as W* ~ C^0.34, meaning width should grow 2.8x faster than depth. We discover a critical depth phenomenon: beyond D_crit ~ W^0.44 (sublinear in W), adding layers increases loss despite adding parameters--the Depth Delusion. Empirically, we validate these findings across 30 transformer architectures spanning 17M to 7B parameters, each trained on representative high-compute samples, achieving R^2 = 0.922. Our central finding: at 7B scale, a 64-layer model (6.38B params) underperforms a 32-layer model (6.86B params) by 0.12 nats, despite being significantly deeper. This demonstrates that optimal depth-width tradeoffs persist at the production scale.
