atlas

Research map / Large language models / Instruction and fine-tuning

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

ICLR 2025 · Large language models › Instruction and fine-tuning · approach: Efficient LLM fine-tuning systems · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Mix-LN, a hybrid normalization that applies Post-LN to early layers and Pre-LN to deeper layers, arguing this yields healthier gradients and better use of deep layers in LLM pre-training, SFT, and RLHF.

Problem

Deeper layers in Pre-LN LLMs contribute little (they can be pruned with little loss), which the authors attribute to Pre-LN's small gradients in deep layers, while Post-LN causes gradient vanishing in early layers and training instability at scale.

Approach

Mix-LN uses Post-LN for the first a*L layers and Pre-LN for the remaining layers within one model, combining Post-LN's large deep-layer gradients with Pre-LN's early-layer gradient flow; a=0.25 is chosen for most sizes and 6.25% for 7B.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace Pre-LN with Mix-LNLLaMA pre-training · LLaMA-71M, LLaMA-130M, LLaMA-250M, and LLaMA-1Bperplexity: 34.77 -> 33.12; 26.78 -> 26.07; 21.92 -> 21.39; 18.65 -> 18.18Helped
Replace Pre-LN with Mix-LNLLaMA-250M SFT · Commonsense170K downstream tasksAvg.: 36.93 -> 41.34Helped
Replace Pre-LN with Mix-LNLLaMA-1B SFT · Commonsense170K downstream tasksAvg.: 43.01 -> 44.66Helped
Replace Pre-LN with Mix-LNLLaMA-1B RLHF · ultrafeedbackfinal reward: 0.75 -> 1.32Helped
Replace Pre-LN with Mix-LNViT · ImageNet-1K, ViT-Tiny and ViT-Smallaccuracy: 67.30 -> 67.34; 75.99 -> 76.40Helped
Increase Post-LN ratio from 25.0% to 33.0% (ablation)Mix-LN on LLaMA-1B · C4 pre-trainingperplexity: 18.18 -> 18.41Hurt
Increase Post-LN ratio from 25.0% to 50.0% (ablation)Mix-LN on LLaMA-1B · C4 pre-trainingperplexity: 18.18 -> 18.86Hurt
Add Scaled Initialization (ablation)Mix-LN on LLaMA-130M · pre-trainingperplexity: 29.95 -> 29.77Helped
Add Scaled Embed to Scaled Initialization (ablation)Mix-LN on LLaMA-130M · pre-trainingperplexity: 29.77 -> 31.19Hurt
Use Post-LN alone instead of Mix-LNLLaMA pre-training · LLaMA-250M and LLaMA-1Bperplexity: 21.39 vs. 1409.09; 18.18 vs. 1411.54Hurt
Use Mix-LN instead of Pre-LNLLaMA-130M representations · layer representationsangular distanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: C4 Commonsense170K UltraFeedback ImageNet-1K SQuAD v1.1 MMLU ARC-e

Benchmarks: C4 perplexity MMLU BoolQ ARC-e PIQA Hellaswag OBQA Winogrande SQuAD v1.1 ImageNet-1K

Metrics: perplexity accuracy average accuracy reward angular distance performance drop gradient norm

Baselines: Post-LN Pre-LN DeepNorm Admin Sandwich-LN Group-LN

Builds on: Pre-LN Post-LN DeepNorm Admin Sandwich-LN

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy