NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Curse of Depth in Large Language Models

Wenfang Sun, Xinyuan Song, Pengxiang Li, Lu Yin, Yefeng Zheng, Shiwei Liu

Introduction: Dormant Layers in Deep Networks

Modern Large Language Models (LLMs) are built by stacking Transformer layers to extreme depths. However, recent empirical evidence suggests that these models suffer from a "Curse of Depth" (CoD). In many state-of-the-art models, the deepest layers contribute negligibly to the final output. This phenomenon is particularly visible in pruning studies where removing the top half of a model like Llama-2 results in almost zero loss in accuracy.

Pruning analysis of LLaMA2-13B showing dormant deep layers.

The culprit is identified as the industry-standard Pre-Layer Normalization (Pre-LN) architecture. While Pre-LN ensures training stability, it causes the variance of hidden states to grow exponentially as signals pass through the network. By the time the signal reaches the deepest layers, the variance overwhelms the meaningful information, forcing these layers to act as identity maps that do not transform data. They are essentially "passing the buck" rather than learning features.

The Solution: LayerNorm Scaling (LNS)

To "wake up" these dormant layers, researchers propose LayerNorm Scaling (LNS). LNS is a simple, hyperparameter-free modification to the standard Transformer block. Instead of passing the normalized output directly to the sub-layer (Attention or FFN), it scales the output of the LayerNorm by a factor of $1/\sqrt{\ell}$, where $\ell$ is the layer index.

Architectural comparison and parameter scaling efficiency.

LNS works by controlling variance growth, shifting it from exponential to near-linear. This ensures that gradients remain healthy during backpropagation, allowing the deepest layers to receive enough information to update their weights. Crucially, LNS adds zero computational overhead and requires no manual hyperparameter tuning.

Key Results and Efficiency

The effectiveness of LNS was validated across various scales, from 130M to 7B parameters, and across modalities including text and vision.

  • Efficiency Gains: As shown in the scaling laws plot, LNS-optimized models can achieve performance parity with standard models while using significantly fewer parameters—up to a 66% reduction in some cases.
  • Pre-training Performance: On a 7B OLMo model, LNS reduced final training loss from 2.69 to 2.50, a substantial margin in LLM pre-training.
  • Downstream Accuracy: In fine-tuning tests across eight tasks (e.g., BoolQ, Hellaswag), LNS-trained models outperformed baselines by an average of 1.86%.
  • Stability: While alternative scaling methods like Mix-LN often fail to converge on larger models, LNS remained stable and effective throughout training.

Conclusion

LayerNorm Scaling addresses a fundamental inefficiency in deep Transformer architectures. By simply adjusting the scale of normalization based on layer depth, LNS ensures that every layer in a massive model contributes meaningfully to the final representation. This approach offers a "free lunch" for AI researchers: better models, faster convergence, and an end to wasted computational depth.

Summary updated

BibTeX
@inproceedings{sun2025curse,
  author = {Wenfang Sun and Xinyuan Song and Pengxiang Li and Lu Yin and Yefeng Zheng and Shiwei Liu},
  title = {{The Curse of Depth in Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Orpf8yDjdj},
}
Figure