Home Knowledge Base Layer Normalization Pre-LN vs Post-LN Architecture

Layer Normalization Pre-LN vs Post-LN Architecture determines where normalization occurs relative to residual connections in transformer blocks — Pre-LN (normalizing before sublayers) enabling training stability and better gradient flow for deep models while Post-LN (normalizing after additions) theoretically preserving more representational capacity.

Post-LN (Original Transformer) Architecture:

Pre-LN (Modern Architecture) Architecture:

Technical Comparison:

Empirical Performance Data:

Practical Implications:

Recent Architecture Trends:

Layer Normalization Pre-LN vs Post-LN Architecture is fundamental to transformer design — Pre-LN enabling stable training of deep models and becoming standard in modern architectures like Llama, PaLM, and recent foundation models.

layer normalizationpre-LN post-LN architectureresidual connectiontraining stabilitygradient flow

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.