mlsanityData to 7 Oct 2026

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

arXiv 2412.13795 ↗First posted 18 Dec 2024cs.LG cs.AIcited by 37

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 37 papers in the map (data through 7 Oct 2026). Builds on 44 of its 50 references that are in the map. First posted on arXiv 18 Dec 2024.

Builds on

44 of 50 references.

References · 44

  1. 2017Attention Is All You Needcited by 59,932
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2022Training language models to follow instructions with human feedbackcited by 15,712
  6. 2024The Llama 3 Herd of Modelscited by 14,192
  7. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  8. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  9. 2016Layer Normalizationcited by 5,579
  10. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  11. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  12. 2022A ConvNet for the 2020scited by 3,545
32 more
  1. 2023Mistral 7Bcited by 3,065
  2. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  3. 2020GLU Variants Improve Transformercited by 1,724
  4. 2018Group Normalizationcited by 1,514
  5. 2019Root Mean Square Layer Normalizationcited by 1,425
  6. 2020On Layer Normalization in the Transformer Architecturecited by 906
  7. 2021CogView: Mastering Text-to-Image Generation via Transformerscited by 691
  8. 2024GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projectioncited by 447
  9. 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 369
  10. 2023LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Modelscited by 317
  11. 2019Learning Deep Transformer Models for Machine Translationcited by 309
  12. 2018Adaptive Input Representations for Neural Language Modelingcited by 226
  13. 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 219
  14. 2020Understanding the Difficulty of Training Transformerscited by 210
  15. 2023ReLoRA: High-Rank Training Through Low-Rank Updatescited by 200
  16. 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 176
  17. 2023Outlier Weighed Layerwise Sparsity (OWL): A Missing Secret Sauce for Pruning LLMs to High Sparsitycited by 163
  18. 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
  19. 2022More ConvNets in the 2020s: Scaling up Kernels Beyond 51x51 using Sparsitycited by 142
  20. 2024The Remarkable Robustness of LLMs: Stages of Inference?cited by 138
  21. 2024Adam-mini: Use Fewer Learning Rates To Gain Morecited by 134
  22. 2023Tensor Programs VI: Feature Learning in Infinite-Depth Neural Networkscited by 94
  23. 2022What Language Model to Train if You Have One Million GPU Hours?cited by 92
  24. 2022The Unreasonable Effectiveness of Random Pruning: Return of the Most Naive Baseline for Sparse Trainingcited by 85
  25. 2024LLM Pruning and Distillation in Practice: The Minitron Approachcited by 82
  26. 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 51
  27. 2024Megalodon: Efficient LLM Pretraining and Inference with Unlimited Context Lengthcited by 46
  28. 2018Training Deeper Neural Machine Translation Models with Transparent Attentioncited by 37
  29. 2024BlockPruner: Fine-grained Pruning for Large Language Modelscited by 35
  30. 2018Exploiting Deep Representations for Neural Machine Translationcited by 23
  31. 2024A deeper look at depth pruning of LLMscited by 23
  32. 2022B2T Connection: Serving Stability and Performance in Deep Transformerscited by 16

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 19; 2026: 18.

37 papers.

Sort:

By area:

  1. 2025Transformers without Normalizationcited by 69
  2. 2025The Curse of Depth in Large Language Modelscited by 58
  3. 2025Do Language Models Use Their Depth Efficiently?cited by 48
  4. 2025Peri-LN: Revisiting Normalization Layer in the Transformer Architecturecited by 32
  5. 2025SPAM: Spike-Aware Adam with Momentum Reset for Stable LLM Trainingcited by 27
  6. 2025The Mean-Field Dynamics of Transformerscited by 24
  7. 2025HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalizationcited by 15
  8. 2025Demystifying the Roles of LLM Layers in Retrieval, Knowledge, and Reasoningcited by 15
  9. 2025Normalization in Attention Dynamicscited by 9
  10. 2025Spectral Scaling Laws in Language Models: How Effectively Do Feed-Forward Networks Use Their Latent Space?cited by 8
  11. 2026SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Normcited by 8
  12. 2025DLP: Dynamic Layerwise Pruning in Large Language Modelscited by 6
25 more
  1. 2025Pool Me Wisely: On the Effect of Pooling in Transformer-Based Modelscited by 6
  2. 2026Post-LayerNorm Is Back: Stable, ExpressivE, and Deepcited by 6
  3. 2025Adapt-Pruner: Adaptive Structural Pruning for Efficient Small Language Model Trainingcited by 5
  4. 2025When Fewer Layers Break More Chains: Layer Pruning Harms Test-Time Scaling in LLMscited by 5
  5. 2025Do Depth-Grown Models Overcome the Curse of Depth? An In-Depth Analysiscited by 5
  6. 2025On Surjectivity of Neural Networks: Can you elicit any behavior from your model?cited by 4
  7. 2026When Does Sparsity Mitigate the Curse of Depth in LLMscited by 4
  8. 2026Suppressing Final Layer Hidden State Jumps in Transformer Pretrainingcited by 3
  9. 2026NerVE: Nonlinear Eigenspectrum Dynamics in LLM Feed-Forward Networkscited by 3
  10. 2025GPAS: Accelerating Convergence of LLM Pretraining via Gradient-Preserving Activation Scalingcited by 2
  11. 2026SpanNorm: Reconciling Training Stability and Performance in Deep Transformerscited by 2
  12. 2026Transforming Rank: How Architecture Navigates the Spectral Pathologies of Depthcited by 2
  13. 2025A Random Matrix Theory Perspective on the Learning Dynamics of Multi-head Latent Attentioncited by 1
  14. 2026GeoNorm: Unify Pre-Norm and Post-Norm with Geodesic Optimizationcited by 1
  15. 2026Progressive Residual Warmup for Language Model Pretrainingcited by 1
  16. 2026Layer Collapse in Diffusion Language Modelscited by 1
  17. 2025NeuroTrails: Training with Dynamic Sparse Heads as the Key to Effective Ensemblingcited by 0
  18. 2026Rethinking Adapter Placement: A Dominant Adaptation Module Perspectivecited by 0
  19. 2026CascadeFormer: Depth-Tapered Transformers Motivated by Gradient Fan-in Asymmetrycited by 0
  20. 2026Sphere Retraction Normalizationscited by 0
  21. 2026Adaptive Forgetting for Nonstationary Optimization: Towards Robust EEG Decodingcited by 0
  22. 2026Write Back the Delta: Revisiting the Same Tokens with Fresh Representationscited by 0
  23. 2026DepthBench: Measuring How Residual Connections Enable More Computational Depthcited by 0
  24. 2026Looping Beyond Twice: A Scalable Recipe for Looped Mixture-of-Expertscited by 0
  25. 2026Cross-Lingual Alignment for Decoder-Only Models using MoE Routerscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Streamlining Redundant Layers to Compress Large Language Models
  2. 2026Negligible in Size, Significant in Effect: On Scale Vectors in Large Language Models
  3. 2023A Survey on Deep Neural Network Pruning-Taxonomy, Comparison, Analysis, and Recommendations
  4. 2023Just CHOP: Embarrassingly Simple LLM Compression
  5. 2024Outlier-weighed Layerwise Sampling for LLM Fine-tuning
  6. 2024Cross-layer Attention Sharing for Pre-trained Large Language Models
  7. 2025Mixed-Precision Quantization for Language Models: Techniques and Prospects
  8. 2025Skip a Layer or Loop it? Test-Time Depth Adaptation of Pretrained LLMs