Transformers Don't Need LayerNorm at Inference Time: Scaling LayerNorm Removal to GPT-2 XL and the Implications for Mechanistic Interpretability
On the map: Mechanistic interpretability → Knowledge and representations inside LLMs
Abstract (arXiv)
Layer-wise normalization (LN) is an essential component of virtually all transformer-based large language models. While its effects on training stability are well documented, its role at inference time is poorly understood. Additionally, LN layers hinder mechanistic interpretability by introducing additional nonlinearities and increasing the interconnectedness of individual model components. Here, we show that all LN layers can be removed from every GPT-2 model with only a small increase in validation loss (e.g. +0.03 cross-entropy loss for GPT-2 XL). Thus, LN cannot play a substantial role in language modeling. We find that the amount of fine-tuning data needed for LN removal grows sublinearly with model parameters, suggesting scaling to larger models is feasible. We release a suite of LN-free GPT-2 models on Hugging Face. Furthermore, we test interpretability techniques on LN-free models. Direct logit attribution now gives the exact direct effect of individual components, while the accuracy of attribution patching does not significantly improve. We also confirm that GPT-2's "confidence neurons" are inactive in the LN-free models. Our work clarifies the role of LN layers in language modeling, showing that GPT-2-class models can function without LN layers. We hope that our LN-free analogs of the GPT-2 family of models will enable more precise interpretability research and improve our understanding of language models.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Placed in Knowledge and representations inside LLMs, one of 13 directions in Mechanistic interpretability. Builds on 22 of its 34 references that are in the map. First posted on arXiv 3 Jul 2025.
Builds on
22 of 34 references.
Closest ancestors · 2
Same direction, newest first
- 2024You can remove GPT2's LayerNorm by fine-tuning6 Sep
- 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methods27 Sep
Other references · 20
- 2017Attention Is All You Needcited by 60,361
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
- 2024Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Modelscited by 435
- 2013Direct and Indirect Effectscited by 280
- 2024How to use and interpret activation patchingcited by 214
- 2023Finding Alignments Between Interpretable Causal Variables and Distributed Neural Representationscited by 209
- 2025Why do LLMs attend to the first token?cited by 127
8 more
- 2024Universal Neurons in GPT2 Language Modelscited by 102
- 2023Copy Suppression: Comprehensively Understanding an Attention Headcited by 76
- 2024Confidence Regulation Neurons in Language Modelscited by 57
- 2023VISIT: Visualizing and Interpreting the Semantic Information Flow of Transformerscited by 32
- 2025Interpreting the Repeated Token Phenomenon in Large Language Modelscited by 16
- 2022Understanding the Failure of Batch Normalization for Transformers in NLPcited by 12
- 2025Jacobian Sparse Autoencoders: Sparsify Computations, Not Just Activationscited by 10
- 2024The Local Interaction Basis: Identifying Computationally-Relevant and Sparsely Interacting Features in Neural Networkscited by 8
Built on by
Citing papers per year: 2025: 1; 2026: 6.
7 papers.
- 2026Gated Normalization Removal and Scale Anchoring in Pre-Norm Transformerscited by 4
- 2025Key and Value Weights Are Probably All You Need: On the Necessity of the Query, Key, Value weight Triplet in Self-Attention Transformerscited by 2
- 2026Towards Verifiable Transformers: Solver-Checkable Circuit Explanationscited by 1
- 2026Robust Harmful Features Under Jailbreak Attacks: Mechanistic Evidence from Attention Head Specialization in Large Language Modelscited by 1
- 2026Selective Neuron Amplification in Transformer Language Modelscited by 0
- 2026Can an MLP Absorb Its Own Skip Connection Exactly?cited by 0
- 2026Deep Noir: Autonomous Steering Discovery via Architectural Chronometry in Transformer Modelscited by 0
- 2026Deep Noir: Autonomous Steering Discovery via Architectural Chronometry in Transformer Models17 Sep 2026
- 2026Robust Harmful Features Under Jailbreak Attacks: Mechanistic Evidence from Attention Head Specialization in Large Language Models26 Jun 2026
- 2026Towards Verifiable Transformers: Solver-Checkable Circuit Explanations21 May 2026
- 2026Can an MLP Absorb Its Own Skip Connection Exactly?26 Apr 2026
- 2026Selective Neuron Amplification in Transformer Language Models8 Apr 2026
- 2026Gated Normalization Removal and Scale Anchoring in Pre-Norm Transformers11 Feb 2026
- 2025Key and Value Weights Are Probably All You Need: On the Necessity of the Query, Key, Value weight Triplet in Self-Attention Transformers27 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2024Mix-LN: Unleashing the Power of Deeper Layers by Combining Pre-LN and Post-LN
- 2024FinerCut: Finer-grained Interpretable Layer Pruning for Large Language Models
- 2024ReLU's Revival: On the Entropic Overload in Normalization-Free Large Language Models
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Space
- 2023Jump to Conclusions: Short-Cutting Transformers With Linear Transformations
- 2026Trust, but Verify: Peeling Low-Bit Transformer Networks for Training Monitoring
- 2026Rethinking Layer Relevance in Large Language Models Beyond Cosine Similarity
- 2026LLM Layers Immediately Correct Each Other