Lune

ICLR2025Top-tier venue

Mix-LN: Unleashing the Power of Deeper Layers by Combining Pre-LN and Post-LN

Pengxiang Li, Lu Yin, Shiwei Liu

Abstract

Large Language Models (LLMs) have achieved remarkable success, yet recent findings reveal that their deeper layers often contribute minimally and can be pruned without affecting overall performance. While some view this as an opportunity for model compression, we identify it as a training shortfall rooted in the widespread use of Pre-Layer Normalization (Pre-LN). We demonstrate that Pre-LN, commonly employed in models like GPT and LLaMA, leads to diminished gradient norms in its deeper layers, reducing their effectiveness. In contrast, Post-Layer Normalization (Post-LN) preserves larger gradient norms in deeper layers but suffers from vanishing gradients in earlier layers. To address this, we introduce Mix-LN, a novel normalization technique that combines the strengths of Pre-LN and Post-LN within the same model. Mix-LN applies Post-LN to the earlier layers and Pre-LN to the deeper layers, ensuring more uniform gradients across layers. This allows all parts of the network-both shallow and deep layers-to contribute effectively to training. Extensive experiments with various model sizes from 70M to 7B demonstrate that Mix-LN consistently outperforms both Pre-LN and Post-LN, promoting more balanced, healthier gradient norms throughout the network, and enhancing the overall quality of LLM pre-training. Furthermore, we demonstrate that models pre-trained with Mix-LN learn better compared to those using Pre-LN or Post-LN during supervised fine-tuning (SFT) and reinforcement learning from human feedback (RLHF), highlighting the critical importance of high-quality deep layers. By effectively addressing the inefficiencies of deep layers in current LLMs, Mix-LN unlocks their potential, enhancing model capacity without increasing model size. Our code is available at https://github.com/pixeli99/MixLN.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

20 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • The Curse of Depth in Large Language Models cites HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization
  • The Curse of Depth in Large Language Models cites Measuring Massive Multitask Language Understanding
  • The Curse of Depth in Large Language Models cites Language Models are Few-Shot Learners
  • The Curse of Depth in Large Language Models cites On Layer Normalization in the Transformer Architecture
  • HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization cites Measuring Massive Multitask Language Understanding
  • HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization cites Language Models are Few-Shot Learners
  • HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization cites On Layer Normalization in the Transformer Architecture
  • Measuring Massive Multitask Language Understanding cites Language Models are Few-Shot Learners
  • Do Language Models Use Their Depth Efficiently? cites Language Models are Few-Shot Learners
  • Do Language Models Use Their Depth Efficiently? cites On Layer Normalization in the Transformer Architecture
  • SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Norm cites The Curse of Depth in Large Language Models
  • SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Norm cites HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization
  • SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Norm cites Language Models are Few-Shot Learners
  • SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Norm cites On Layer Normalization in the Transformer Architecture
  • Training language models to follow instructions with human feedback cites Language Models are Few-Shot Learners
  • Normalization in Attention Dynamics cites The Curse of Depth in Large Language Models
  • Normalization in Attention Dynamics cites On Layer Normalization in the Transformer Architecture
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. The Curse of Depth in Large Language ModelsWenfang Sun, Xinyuan Song, Pengxiang Li, Lu Yin et al.NeurIPS 2025 · 62 citations
  2. Do Language Models Use Their Depth Efficiently?Róbert Csordás, Christopher D. Manning, Christopher PottsNeurIPS 2025 · 61 citations
  3. HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid NormalizationZhijian Zhuo, Yutao Zeng, Ya Wang, Sijun Zhang et al.NeurIPS 2025 · 23 citations
  4. Normalization in Attention DynamicsNikita Karagodin, Shu Ge, Yury Polyanskiy, Philippe RigolletNeurIPS 2025 · 10 citations
  5. SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-NormTianyu Li, Dongchen Han, Zixuan Cao, Haofeng Huang et al.ICML 2026 · 7 citations

Builds on23

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  3. Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou et al.ICLR 2021 · 7,905 citations
  4. A ConvNet for the 2020sZhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer et al.CVPR 2022 · 6,782 citations
  5. On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng et al.ICML 2020 · 1,388 citations

Related papers

  1. GPAS: Accelerating Convergence of LLM Pretraining via Gradient-Preserving Activation ScalingTianhao Chen, Xin Xu, Zijing Liu, Pengxiang Li et al.NeurIPS 2025 · 2 citations
  2. B2T Connection: Serving Stability and Performance in Deep TransformersSho Takase, Shun Kiyono, Sosuke Kobayashi, Jun SuzukiACL Findings 2023 · 7 citations
  3. SpanNorm: Reconciling Training Stability and Performance in Deep TransformersChao Wang, Bei Li, Jiaqi Zhang, Xinyu Liu et al.ICML 2026
  4. Pre-RMSNorm and Pre-CRMSNorm Transformers: Equivalent and Efficient Pre-LN TransformersZixuan Jiang, Jiaqi Gu, Hanqing Zhu, David Z. PanNeurIPS 2023 · 44 citations
  5. Peri-LN: Revisiting Normalization Layer in the Transformer ArchitectureJeonghoon Kim, Byeongchan Lee, Cheonbok Park, Yeontaek Oh et al.ICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines