Mix-LN: Unleashing the Power of Deeper Layers by Combining Pre-LN and Post-LN
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
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2016Layer Normalizationcited by 5,579
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2022A ConvNet for the 2020scited by 3,545
32 more
- 2023Mistral 7Bcited by 3,065
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2020GLU Variants Improve Transformercited by 1,724
- 2018Group Normalizationcited by 1,514
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2021CogView: Mastering Text-to-Image Generation via Transformerscited by 691
- 2024GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projectioncited by 447
- 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 369
- 2023LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Modelscited by 317
- 2019Learning Deep Transformer Models for Machine Translationcited by 309
- 2018Adaptive Input Representations for Neural Language Modelingcited by 226
- 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 219
- 2020Understanding the Difficulty of Training Transformerscited by 210
- 2023ReLoRA: High-Rank Training Through Low-Rank Updatescited by 200
- 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 176
- 2023Outlier Weighed Layerwise Sparsity (OWL): A Missing Secret Sauce for Pruning LLMs to High Sparsitycited by 163
- 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
- 2022More ConvNets in the 2020s: Scaling up Kernels Beyond 51x51 using Sparsitycited by 142
- 2024The Remarkable Robustness of LLMs: Stages of Inference?cited by 138
- 2024Adam-mini: Use Fewer Learning Rates To Gain Morecited by 134
- 2023Tensor Programs VI: Feature Learning in Infinite-Depth Neural Networkscited by 94
- 2022What Language Model to Train if You Have One Million GPU Hours?cited by 92
- 2022The Unreasonable Effectiveness of Random Pruning: Return of the Most Naive Baseline for Sparse Trainingcited by 85
- 2024LLM Pruning and Distillation in Practice: The Minitron Approachcited by 82
- 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 51
- 2024Megalodon: Efficient LLM Pretraining and Inference with Unlimited Context Lengthcited by 46
- 2018Training Deeper Neural Machine Translation Models with Transparent Attentioncited by 37
- 2024BlockPruner: Fine-grained Pruning for Large Language Modelscited by 35
- 2018Exploiting Deep Representations for Neural Machine Translationcited by 23
- 2024A deeper look at depth pruning of LLMscited by 23
- 2022B2T Connection: Serving Stability and Performance in Deep Transformerscited by 16
Built on by
Citing papers per year: 2025: 19; 2026: 18.
37 papers.
Sort:
By area:
- 2025Transformers without Normalizationcited by 69
- 2025The Curse of Depth in Large Language Modelscited by 58
- 2025Do Language Models Use Their Depth Efficiently?cited by 48
- 2025Peri-LN: Revisiting Normalization Layer in the Transformer Architecturecited by 32
- 2025SPAM: Spike-Aware Adam with Momentum Reset for Stable LLM Trainingcited by 27
- 2025The Mean-Field Dynamics of Transformerscited by 24
- 2025HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalizationcited by 15
- 2025Demystifying the Roles of LLM Layers in Retrieval, Knowledge, and Reasoningcited by 15
- 2025Normalization in Attention Dynamicscited by 9
- 2025Spectral Scaling Laws in Language Models: How Effectively Do Feed-Forward Networks Use Their Latent Space?cited by 8
- 2026SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Normcited by 8
- 2025DLP: Dynamic Layerwise Pruning in Large Language Modelscited by 6
25 more
- 2025Pool Me Wisely: On the Effect of Pooling in Transformer-Based Modelscited by 6
- 2026Post-LayerNorm Is Back: Stable, ExpressivE, and Deepcited by 6
- 2025Adapt-Pruner: Adaptive Structural Pruning for Efficient Small Language Model Trainingcited by 5
- 2025When Fewer Layers Break More Chains: Layer Pruning Harms Test-Time Scaling in LLMscited by 5
- 2025Do Depth-Grown Models Overcome the Curse of Depth? An In-Depth Analysiscited by 5
- 2025On Surjectivity of Neural Networks: Can you elicit any behavior from your model?cited by 4
- 2026When Does Sparsity Mitigate the Curse of Depth in LLMscited by 4
- 2026Suppressing Final Layer Hidden State Jumps in Transformer Pretrainingcited by 3
- 2026NerVE: Nonlinear Eigenspectrum Dynamics in LLM Feed-Forward Networkscited by 3
- 2025GPAS: Accelerating Convergence of LLM Pretraining via Gradient-Preserving Activation Scalingcited by 2
- 2026SpanNorm: Reconciling Training Stability and Performance in Deep Transformerscited by 2
- 2026Transforming Rank: How Architecture Navigates the Spectral Pathologies of Depthcited by 2
- 2025A Random Matrix Theory Perspective on the Learning Dynamics of Multi-head Latent Attentioncited by 1
- 2026GeoNorm: Unify Pre-Norm and Post-Norm with Geodesic Optimizationcited by 1
- 2026Progressive Residual Warmup for Language Model Pretrainingcited by 1
- 2026Layer Collapse in Diffusion Language Modelscited by 1
- 2025NeuroTrails: Training with Dynamic Sparse Heads as the Key to Effective Ensemblingcited by 0
- 2026Rethinking Adapter Placement: A Dominant Adaptation Module Perspectivecited by 0
- 2026CascadeFormer: Depth-Tapered Transformers Motivated by Gradient Fan-in Asymmetrycited by 0
- 2026Sphere Retraction Normalizationscited by 0
- 2026Adaptive Forgetting for Nonstationary Optimization: Towards Robust EEG Decodingcited by 0
- 2026Write Back the Delta: Revisiting the Same Tokens with Fresh Representationscited by 0
- 2026DepthBench: Measuring How Residual Connections Enable More Computational Depthcited by 0
- 2026Looping Beyond Twice: A Scalable Recipe for Looped Mixture-of-Expertscited by 0
- 2026Cross-Lingual Alignment for Decoder-Only Models using MoE Routerscited by 0
- 2026Cross-Lingual Alignment for Decoder-Only Models using MoE Routers1 Oct 2026
- 2026Looping Beyond Twice: A Scalable Recipe for Looped Mixture-of-Experts1 Oct 2026
- 2026DepthBench: Measuring How Residual Connections Enable More Computational Depth26 Sep 2026
- 2026Write Back the Delta: Revisiting the Same Tokens with Fresh Representations26 Sep 2026
- 2026Adaptive Forgetting for Nonstationary Optimization: Towards Robust EEG Decoding21 Sep 2026
- 2026Sphere Retraction Normalizations2 Aug 2026
- 2026Transforming Rank: How Architecture Navigates the Spectral Pathologies of Depth15 Jul 2026
- 2026CascadeFormer: Depth-Tapered Transformers Motivated by Gradient Fan-in Asymmetry25 Jun 2026
- 2026Layer Collapse in Diffusion Language Models7 May 2026
- 2026Rethinking Adapter Placement: A Dominant Adaptation Module Perspective7 May 2026
- 2026When Does Sparsity Mitigate the Curse of Depth in LLMs16 Mar 2026
- 2026NerVE: Nonlinear Eigenspectrum Dynamics in LLM Feed-Forward Networks6 Mar 2026
25 more
- 2026Progressive Residual Warmup for Language Model Pretraining5 Mar 2026
- 2026SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Norm8 Feb 2026
- 2026SpanNorm: Reconciling Training Stability and Performance in Deep Transformers30 Jan 2026
- 2026GeoNorm: Unify Pre-Norm and Post-Norm with Geodesic Optimization29 Jan 2026
- 2026Post-LayerNorm Is Back: Stable, ExpressivE, and Deep27 Jan 2026
- 2026Suppressing Final Layer Hidden State Jumps in Transformer Pretraining26 Jan 2026
- 2025Do Depth-Grown Models Overcome the Curse of Depth? An In-Depth Analysis9 Dec 2025
- 2025The Mean-Field Dynamics of Transformers1 Dec 2025
- 2025When Fewer Layers Break More Chains: Layer Pruning Harms Test-Time Scaling in LLMs25 Oct 2025
- 2025Normalization in Attention Dynamics24 Oct 2025
- 2025Pool Me Wisely: On the Effect of Pooling in Transformer-Based Models2 Oct 2025
- 2025Demystifying the Roles of LLM Layers in Retrieval, Knowledge, and Reasoning2 Oct 2025
- 2025Spectral Scaling Laws in Language Models: How Effectively Do Feed-Forward Networks Use Their Latent Space?1 Oct 2025
- 2025On Surjectivity of Neural Networks: Can you elicit any behavior from your model?26 Aug 2025
- 2025A Random Matrix Theory Perspective on the Learning Dynamics of Multi-head Latent Attention12 Jul 2025
- 2025GPAS: Accelerating Convergence of LLM Pretraining via Gradient-Preserving Activation Scaling27 Jun 2025
- 2025DLP: Dynamic Layerwise Pruning in Large Language Models27 May 2025
- 2025NeuroTrails: Training with Dynamic Sparse Heads as the Key to Effective Ensembling23 May 2025
- 2025Do Language Models Use Their Depth Efficiently?20 May 2025
- 2025Transformers without Normalization13 Mar 2025
- 2025HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization6 Mar 2025
- 2025The Curse of Depth in Large Language Models9 Feb 2025
- 2025Adapt-Pruner: Adaptive Structural Pruning for Efficient Small Language Model Training5 Feb 2025
- 2025Peri-LN: Revisiting Normalization Layer in the Transformer Architecture4 Feb 2025
- 2025SPAM: Spike-Aware Adam with Momentum Reset for Stable LLM Training12 Jan 2025
- 2026Layer Collapse in Diffusion Language Modelscited by 1
- 2026Layer Collapse in Diffusion Language Models7 May 2026
- 2025Transformers without Normalizationcited by 69
- 2025The Curse of Depth in Large Language Modelscited by 58
- 2025Do Language Models Use Their Depth Efficiently?cited by 48
- 2025Peri-LN: Revisiting Normalization Layer in the Transformer Architecturecited by 32
- 2025SPAM: Spike-Aware Adam with Momentum Reset for Stable LLM Trainingcited by 27
- 2025The Mean-Field Dynamics of Transformerscited by 24
- 2025HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalizationcited by 15
- 2025Normalization in Attention Dynamicscited by 9
- 2025Spectral Scaling Laws in Language Models: How Effectively Do Feed-Forward Networks Use Their Latent Space?cited by 8
- 2026SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Normcited by 8
- 2025DLP: Dynamic Layerwise Pruning in Large Language Modelscited by 6
- 2025Pool Me Wisely: On the Effect of Pooling in Transformer-Based Modelscited by 6
12 most cited of 31 All 31 (JSON)
- 2026DepthBench: Measuring How Residual Connections Enable More Computational Depth26 Sep 2026
- 2026Write Back the Delta: Revisiting the Same Tokens with Fresh Representations26 Sep 2026
- 2026Adaptive Forgetting for Nonstationary Optimization: Towards Robust EEG Decoding21 Sep 2026
- 2026Sphere Retraction Normalizations2 Aug 2026
- 2026Transforming Rank: How Architecture Navigates the Spectral Pathologies of Depth15 Jul 2026
- 2026CascadeFormer: Depth-Tapered Transformers Motivated by Gradient Fan-in Asymmetry25 Jun 2026
- 2026Rethinking Adapter Placement: A Dominant Adaptation Module Perspective7 May 2026
- 2026When Does Sparsity Mitigate the Curse of Depth in LLMs16 Mar 2026
- 2026NerVE: Nonlinear Eigenspectrum Dynamics in LLM Feed-Forward Networks6 Mar 2026
- 2026Progressive Residual Warmup for Language Model Pretraining5 Mar 2026
- 2026SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Norm8 Feb 2026
- 2026GeoNorm: Unify Pre-Norm and Post-Norm with Geodesic Optimization29 Jan 2026
12 newest of 31 All 31 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024Streamlining Redundant Layers to Compress Large Language Models
- 2026Negligible in Size, Significant in Effect: On Scale Vectors in Large Language Models
- 2023A Survey on Deep Neural Network Pruning-Taxonomy, Comparison, Analysis, and Recommendations
- 2023Just CHOP: Embarrassingly Simple LLM Compression
- 2024Outlier-weighed Layerwise Sampling for LLM Fine-tuning
- 2024Cross-layer Attention Sharing for Pre-trained Large Language Models
- 2025Mixed-Precision Quantization for Language Models: Techniques and Prospects
- 2025Skip a Layer or Loop it? Test-Time Depth Adaptation of Pretrained LLMs