You can remove GPT2's LayerNorm by fine-tuning
On the map: Mechanistic interpretability → Knowledge and representations inside LLMs
Abstract (arXiv)
The LayerNorm (LN) layer in GPT-style transformer models has long been a hindrance to mechanistic interpretability. LN is a crucial component required to stabilize the training of large language models, and LN or the similar RMSNorm have been used in practically all large language models based on the transformer architecture. The non-linear nature of the LN layers is a hindrance for mechanistic interpretability as it hinders interpretation of the residual stream, and makes it difficult to decompose the model into circuits. Some researchers have gone so far as to name "reasons interpretability researchers hate layer norm." In this paper we show that it is possible to remove the LN layers from a pre-trained GPT2-small model by fine-tuning on a fraction (500M tokens) of the training data. We demonstrate that this LN-free model achieves similar performance to the original model on the OpenWebText and ThePile datasets (-0.05 cross-entropy loss), and the Hellaswag benchmark (-0.5% accuracy). We provide our implementation at https://github.com/ApolloResearch/gpt2_noLN, and fine-tuned GPT2-small models at https://huggingface.co/apollo-research/gpt2_noLN. Our work not only provides a simplified model for mechanistic interpretability research, but also provides evidence that the LN layers, at inference time, do not play a crucial role in transformer models.
Key facts. Cited by 11 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 15 of its 33 references that are in the map. First posted on arXiv 6 Sep 2024.
Builds on
15 of 33 references.
References · 15
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
- 2016Layer Normalizationcited by 5,669
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
- 2021Causal Abstractions of Neural Networkscited by 422
- 2020Causal Mediation Analysis for Interpreting Neural NLP: The Case of Gender Biascited by 191
3 more
- 2023Copy Suppression: Comprehensively Understanding an Attention Headcited by 76
- 2024Confidence Regulation Neurons in Language Modelscited by 57
- 2023A technical note on bilinear layers for interpretabilitycited by 12
Built on by
Citing papers per year: 2025: 8; 2026: 3.
11 papers.
- 2025Transformers without Normalizationcited by 70
- 2025Stronger Normalization-Free Transformerscited by 13
- 2025Low-Rank Adapting Models for Sparse Autoencoderscited by 7
- 2025Transformers Don't Need LayerNorm at Inference Time: Scaling LayerNorm Removal to GPT-2 XL and the Implications for Mechanistic Interpretabilitycited by 7
- 2025Learning in Compact Spaces with Approximately Normalized Transformercited by 6
- 2025Weight-based Analysis of Detokenization in Language Models: Understanding the First Stage of Inference Without Inferencecited by 5
- 2026Measuring Affinity between Attention-Head Weight Subspaces via the Projection Kernelcited by 5
- 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
- 2025SCALAR: Benchmarking SAE Interaction Sparsity in Toy LLMscited by 0
- 2026Interactions Between Crosscoder Features: A Compact Proofs Perspectivecited by 0
- 2026Induction in Both Directions: A Mechanistic Analysis of In-Context Learning in Masked Diffusion Language Modelscited by 0
- 2026Induction in Both Directions: A Mechanistic Analysis of In-Context Learning in Masked Diffusion Language Models17 Jul 2026
- 2026Interactions Between Crosscoder Features: A Compact Proofs Perspective8 Jun 2026
- 2026Measuring Affinity between Attention-Head Weight Subspaces via the Projection Kernel15 Jan 2026
- 2025Stronger Normalization-Free Transformers11 Dec 2025
- 2025SCALAR: Benchmarking SAE Interaction Sparsity in Toy LLMs10 Nov 2025
- 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
- 2025Transformers Don't Need LayerNorm at Inference Time: Scaling LayerNorm Removal to GPT-2 XL and the Implications for Mechanistic Interpretability3 Jul 2025
- 2025Learning in Compact Spaces with Approximately Normalized Transformer28 May 2025
- 2025Transformers without Normalization13 Mar 2025
- 2025Low-Rank Adapting Models for Sparse Autoencoders31 Jan 2025
- 2025Weight-based Analysis of Detokenization in Language Models: Understanding the First Stage of Inference Without Inference27 Jan 2025
Similar, not cited
Close in wording, no citation either way
- 2023Jump to Conclusions: Short-Cutting Transformers With Linear Transformations
- 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expect
- 2023The Truth is in There: Improving Reasoning in Language Models with Layer-Selective Rank Reduction
- 2026Ghosted Layers: Unconstrained Activation Alignment for Recovering Layer-Pruned LLMs
- 2024FinerCut: Finer-grained Interpretable Layer Pruning for Large Language Models
- 2022Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Models
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Models
- 2026Trust, but Verify: Peeling Low-Bit Transformer Networks for Training Monitoring