Pith.

Machine Learning · arXiv:2502.05795 v6 · submitted 9 Feb 2025

The Curse of Depth in Large Language Models

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

The paper says

“All these gains can be attributed to the fact that LayerNorm Scaling enables deeper layers to contribute more effectively during training.”

from the abstract · picked out as the main claim by a classifier

Pith says

Pith has not reviewed this paper.

Get a Pith Review, $5

Reviews

Reviews by people

No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and their review is published here whatever it concludes.

Request a human review

How Pith checks papers · The full audit of this paper

The paper

Abstract

In this paper, we introduce the Curse of Depth, a concept that highlights, explains, and addresses the recent observation in modern Large Language Models (LLMs) where nearly half of the layers are less effective than expected. We first confirm the wide existence of this phenomenon across the most popular families of LLMs such as Llama, Mistral, DeepSeek, and Qwen. Our analysis, theoretically and empirically, identifies that the underlying reason for the ineffectiveness of deep layers in LLMs is the widespread usage of Pre-Layer Normalization (Pre-LN). While Pre-LN stabilizes the training of Transformer LLMs, its output variance exponentially grows with the model depth, which undesirably causes the derivative of the deep Transformer blocks to be an identity matrix, and therefore barely contributes to the training. To resolve this training pitfall, we propose LayerNorm Scaling (LNS), which scales the variance of output of the layer normalization inversely by the square root of its depth. This simple modification mitigates the output variance explosion of deeper Transformer layers, improving their contribution. Across a wide range of model sizes (130M to 7B), our experiments show that LNS consistently outperforms previous normalization and scaling techniques in enhancing LLM pre-training performance. Moreover, this improvement seamlessly carries over to supervised fine-tuning. All these gains can be attributed to the fact that LayerNorm Scaling enables deeper layers to contribute more effectively during training. Our code is available at \hrefhttps://github.com/lmsdss/LayerNorm-ScalingLayerNorm-Scaling.

The paper's own sentences, arranged. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. No sentence in this record was written by a model.

abstract compiled · 2026-09-23 · no language-model review

How the main claim is stated: asserted 1.00

What the abstract itself states, as probabilities: claims first 0.09 · states limitation 0.07 · human participants 0.02 · controlled comparison 0.67 · randomized assignment 0.01 · states quantitative result 0.81 · compares with prior results 0.94 · mentions code or data availability 0.99

The abstract, sentence by sentence

This table labels the abstract only (arXiv listing abstract v6). The number is the probability the classifier gave the label.

SentenceRoleThe authors' own workStates the main conclusionStrength
In this paper, we introduce the Curse of Depth, a concept that highlights, explains, and addresses the recent observation in modern Large Language Models (LLMs) where nearly half of the layers are less effective than expected. contribution 0.99 0.69 0.29 asserted 0.99
We first confirm the wide existence of this phenomenon across the most popular families of LLMs such as Llama, Mistral, DeepSeek, and Qwen. result 0.78 0.90 0.04 asserted 1.00
Our analysis, theoretically and empirically, identifies that the underlying reason for the ineffectiveness of deep layers in LLMs is the widespread usage of Pre-Layer Normalization (Pre-LN). result 0.73 0.95 0.34 asserted 1.00
While Pre-LN stabilizes the training of Transformer LLMs, its output variance exponentially grows with the model depth, which undesirably causes the derivative of the deep Transformer blocks to be an identity matrix, and therefore barely contributes to the training. interpretation 0.69 0.76 0.17 asserted 1.00
To resolve this training pitfall, we propose LayerNorm Scaling (LNS), which scales the variance of output of the layer normalization inversely by the square root of its depth. method 0.73 0.84 0.20 asserted 0.99
This simple modification mitigates the output variance explosion of deeper Transformer layers, improving their contribution. result 0.84 0.82 0.22 asserted 1.00
Across a wide range of model sizes (130M to 7B), our experiments show that LNS consistently outperforms previous normalization and scaling techniques in enhancing LLM pre-training performance. result 1.00 0.96 0.27 asserted 1.00
Moreover, this improvement seamlessly carries over to supervised fine-tuning. result 1.00 0.86 0.08 asserted 1.00
All these gains can be attributed to the fact that LayerNorm Scaling enables deeper layers to contribute more effectively during training. interpretation 1.00 0.82 0.47 asserted 1.00
Our code is available at \href{https://github.com/lmsdss/LayerNorm-Scaling}{LayerNorm-Scaling}. contribution 0.73 0.40 0.02 asserted 0.74

What kind of paper the classifier reports this is: method or tool 1.00 · evidence from observation or experiment 0.99

What was examined, and what was not

Sources read

  • arXiv listing abstract v6

Not examined

  • full text
  • figures and tables
  • references and citing sentences
  • relations to other papers

Levels run

  • P abstract

Not run

  • S sections
  • T body sentences
  • C citations
  • R cross-paper relations

How the labels were made

Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-09-23: 1 request, 7,685 input tokens.

Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. This record as JSON

Cited by 7 Pith papers
How the literature uses it

22 arXiv papers cite this in 60 sentences

Each citing sentence is taken from the citing paper's LaTeX source and typed by Pith's classifier. A label appears at probability 0.8 or more (0.95 for support), a contest at 0.7 or more; the quoted words are the citing authors'. How each label was checked · JSON

Papers citing it · 37 sentences without a confident label

Contests it 1 paper
Uses its method or tool 3 papers
Compares with it 2 papers
Cites it as support 8 papers
Cites it as background 5 papers

What it cites · 21 sentences without a confident label

Uses the method or tool of 6 papers
Compares with 3 papers
  • We first compare LNS with previous scaling approaches, including (1) Scaled Initialization [ref] , which scales the initialization of $W_0$ and $W_2$ by the overall depth $1/√(2L)$; (2) Depth-Scaled Initialization [ref] scales the initialization of weight matrices by the current depth $1/√(2l)$; (3) SkipInit [ref] introduces a learnable parameter after FFN/Att layers, initialized as $1/√(L)$; (4) LayerScale [ref] applies per-channel weighting using a diagonal matrix, diag$(λ_1, …, λ_d)$, where each weight $λ_i$ is initialized to a small value (e.g., $λ_i = ϵ$).

    Batch Normalization Biases Residual Blocks Towards the Identity Function in Deep Networks · Ablation Study · 0.94

  • We first compare LNS with previous scaling approaches, including (1) Scaled Initialization [ref] , which scales the initialization of $W_0$ and $W_2$ by the overall depth $1/√(2L)$; (2) Depth-Scaled Initialization [ref] scales the initialization of weight matrices by the current depth $1/√(2l)$; (3) SkipInit [ref] introduces a learnable parameter after FFN/Att layers, initialized as $1/√(L)$; (4) LayerScale [ref] applies per-channel weighting using a diagonal matrix, diag$(λ_1, …, λ_d)$, where each weight $λ_i$ is initialized to a small value (e.g., $λ_i = ϵ$).

    Improving Deep Transformer with Depth-Scaled Initialization and Merged Attention · Ablation Study · 0.94

  • Moreover, compared with previous LayerNorm variants [ref] , is hyperparameter-free, easy to implement, and does not introduce additional learnable parameters, making it computationally efficient and readily applicable to existing Transformer architectures.

    Mix-LN: Unleashing the Power of Deeper Layers by Combining Pre-LN and Post-LN · LayerNorm Scaling (LNS) · 0.84

Cites as support 1 paper
Cites as background 7 papers

Challenges and discussion

Know something about this paper? Leave a comment.

No comments yet.

Sign in to comment