On the Expressivity Role of LayerNorm in Transformers' Attention
Not on the map. Why?
Abstract (arXiv)
Layer Normalization (LayerNorm) is an inherent component in all Transformer-based models. In this paper, we show that LayerNorm is crucial to the expressivity of the multi-head attention layer that follows it. This is in contrast to the common belief that LayerNorm's only role is to normalize the activations during the forward pass, and their gradients during the backward pass. We consider a geometric interpretation of LayerNorm and show that it consists of two components: (a) projection of the input vectors to a d-1 space that is orthogonal to the left[1,1,...,1right] vector, and (b) scaling of all vectors to the same norm of √d. We show that each of these components is important for the attention layer that follows it in Transformers: (a) projection allows the attention mechanism to create an attention query that attends to all keys equally, offloading the need to learn this operation by the attention; and (b) scaling allows each key to potentially receive the highest attention, and prevents keys from being "un-select-able". We show empirically that Transformers do indeed benefit from these properties of LayeNorm in general language modeling and even in computing simple functions such as "majority". Our code is available at https://github.com/tech-srl/layernormexpressivityrole .
Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 10 of its 18 references that are in the map. First posted on arXiv 4 May 2023.
Builds on
10 of 18 references.
References · 10
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2016Layer Normalizationcited by 5,579
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2019Understanding and Improving Layer Normalizationcited by 213
- 2020Stolen Probability: A Structural Weakness of Neural Language Modelscited by 21
- 2022Low-Rank Softmax Can Have Unargmaxable Classes in Theory but Rarely in Practicecited by 14
Built on by
Citing papers per year: 2023: 4; 2024: 17; 2025: 3; 2026: 8.
32 papers.
Sort:
By area:
- 2024Universal Neurons in GPT2 Language Modelscited by 100
- 2024On the Role of Attention Masks and LayerNorm in Transformerscited by 45
- 2024Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformerscited by 39
- 2024Prompting a Pretrained Transformer Can Be a Universal Approximatorcited by 25
- 2025Lifelong Knowledge Editing requires Better Regularizationcited by 9
- 2023A Generalizable Deep Learning System for Cardiac MRIcited by 8
- 2023Traveling Words: A Geometric Interpretation of Transformerscited by 7
- 2024Transformer Normalisation Layers and the Independence of Semantic Subspacescited by 6
- 2024Embedding Geometries of Contrastive Language-Image Pre-Trainingcited by 6
- 2025The Transformer Cookbookcited by 5
- 2024Lambda-Skip Connections: the architectural component that prevents Rank Collapsecited by 4
- 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformerscited by 4
20 more
- 2024Grappa -- A Machine Learned Molecular Mechanics Force Fieldcited by 3
- 2024Stealth edits to large language modelscited by 3
- 2024Logicbreaks: A Framework for Understanding Subversion of Rule-based Inferencecited by 3
- 2024stEnTrans: Transformer-based deep learning for spatial transcriptomics enhancementcited by 3
- 2024AERO: Entropy-Guided Framework for Private LLM Inferencecited by 3
- 2024Rethinking Decoders for Transformer-based Semantic Segmentation: A Compression Perspectivecited by 3
- 2023Understanding the Role of Layer Normalization in Label-Skewed Federated Learningcited by 2
- 2024Geometry and Dynamics of LayerNormcited by 2
- 2024UnitNorm: Rethinking Normalization for Transformers in Time Seriescited by 2
- 2023Observable Propagation: Uncovering Feature Vectors in Transformerscited by 1
- 2024Self-consistent context aware conformer transducer for speech recognitioncited by 1
- 2026Adaptive Engram Memory System for Indonesian Language Model: Generative AI Based on TOBA LM for Batak and Minang Languagecited by 1
- 2026The Scaling Properties of Implicit Deductive Reasoning in Transformerscited by 1
- 2024SLaNC: Static LayerNorm Calibrationcited by 0
- 2025Leveraging Teleconnections with Physics-Informed Graph Attention Networks for Long-Range Extreme Rainfall Forecasting in Thailandcited by 0
- 2026Stop Jostling: Adaptive Negative Sampling Reduces the Marginalization of Low-Resource Language Tokens by Cross-Entropy Losscited by 0
- 2026Enhanced QKNorm normalization for neural transformers with the Lp normcited by 0
- 2026Nexusformer: Nonlinear Attention Expansion for Stable and Inheritable Transformer Scalingcited by 0
- 2026How Many Different Outputs Can a Transformer Generate?cited by 0
- 2026Scaling Adaptive Depth with Norm-Agnostic Residual Networkscited by 0
- 2026Scaling Adaptive Depth with Norm-Agnostic Residual Networks15 Jun 2026
- 2026How Many Different Outputs Can a Transformer Generate?21 May 2026
- 2026The Scaling Properties of Implicit Deductive Reasoning in Transformers5 May 2026
- 2026Nexusformer: Nonlinear Attention Expansion for Stable and Inheritable Transformer Scaling21 Apr 2026
- 2026Adaptive Engram Memory System for Indonesian Language Model: Generative AI Based on TOBA LM for Batak and Minang Language17 Feb 2026
- 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformers5 Feb 2026
- 2026Enhanced QKNorm normalization for neural transformers with the Lp norm4 Feb 2026
- 2026Stop Jostling: Adaptive Negative Sampling Reduces the Marginalization of Low-Resource Language Tokens by Cross-Entropy Loss30 Jan 2026
- 2025Leveraging Teleconnections with Physics-Informed Graph Attention Networks for Long-Range Extreme Rainfall Forecasting in Thailand14 Oct 2025
- 2025The Transformer Cookbook1 Oct 2025
- 2025Lifelong Knowledge Editing requires Better Regularization3 Feb 2025
- 2024Rethinking Decoders for Transformer-based Semantic Segmentation: A Compression Perspective5 Nov 2024
20 more
- 2024AERO: Entropy-Guided Framework for Private LLM Inference16 Oct 2024
- 2024Lambda-Skip Connections: the architectural component that prevents Rank Collapse14 Oct 2024
- 2024SLaNC: Static LayerNorm Calibration14 Oct 2024
- 2024Embedding Geometries of Contrastive Language-Image Pre-Training19 Sep 2024
- 2024stEnTrans: Transformer-based deep learning for spatial transcriptomics enhancement11 Jul 2024
- 2024Transformer Normalisation Layers and the Independence of Semantic Subspaces25 Jun 2024
- 2024Logicbreaks: A Framework for Understanding Subversion of Rule-based Inference21 Jun 2024
- 2024Stealth edits to large language models18 Jun 2024
- 2024On the Role of Attention Masks and LayerNorm in Transformers29 May 2024
- 2024UnitNorm: Rethinking Normalization for Transformers in Time Series24 May 2024
- 2024Geometry and Dynamics of LayerNorm7 May 2024
- 2024Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformers5 Apr 2024
- 2024Grappa -- A Machine Learned Molecular Mechanics Force Field25 Mar 2024
- 2024Prompting a Pretrained Transformer Can Be a Universal Approximator22 Feb 2024
- 2024Self-consistent context aware conformer transducer for speech recognition9 Feb 2024
- 2024Universal Neurons in GPT2 Language Models22 Jan 2024
- 2023Observable Propagation: Uncovering Feature Vectors in Transformers26 Dec 2023
- 2023A Generalizable Deep Learning System for Cardiac MRI1 Dec 2023
- 2023Traveling Words: A Geometric Interpretation of Transformers13 Sep 2023
- 2023Understanding the Role of Layer Normalization in Label-Skewed Federated Learning18 Aug 2023
- 2024Universal Neurons in GPT2 Language Modelscited by 100
- 2024On the Role of Attention Masks and LayerNorm in Transformerscited by 45
- 2024Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformerscited by 39
- 2024Prompting a Pretrained Transformer Can Be a Universal Approximatorcited by 25
- 2025Lifelong Knowledge Editing requires Better Regularizationcited by 9
- 2023A Generalizable Deep Learning System for Cardiac MRIcited by 8
- 2023Traveling Words: A Geometric Interpretation of Transformerscited by 7
- 2024Transformer Normalisation Layers and the Independence of Semantic Subspacescited by 6
- 2024Embedding Geometries of Contrastive Language-Image Pre-Trainingcited by 6
- 2025The Transformer Cookbookcited by 5
- 2024Lambda-Skip Connections: the architectural component that prevents Rank Collapsecited by 4
- 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformerscited by 4
12 most cited of 30 All 30 (JSON)
- 2026Scaling Adaptive Depth with Norm-Agnostic Residual Networks15 Jun 2026
- 2026How Many Different Outputs Can a Transformer Generate?21 May 2026
- 2026Nexusformer: Nonlinear Attention Expansion for Stable and Inheritable Transformer Scaling21 Apr 2026
- 2026Adaptive Engram Memory System for Indonesian Language Model: Generative AI Based on TOBA LM for Batak and Minang Language17 Feb 2026
- 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformers5 Feb 2026
- 2026Enhanced QKNorm normalization for neural transformers with the Lp norm4 Feb 2026
- 2026Stop Jostling: Adaptive Negative Sampling Reduces the Marginalization of Low-Resource Language Tokens by Cross-Entropy Loss30 Jan 2026
- 2025Leveraging Teleconnections with Physics-Informed Graph Attention Networks for Long-Range Extreme Rainfall Forecasting in Thailand14 Oct 2025
- 2025The Transformer Cookbook1 Oct 2025
- 2025Lifelong Knowledge Editing requires Better Regularization3 Feb 2025
- 2024Rethinking Decoders for Transformer-based Semantic Segmentation: A Compression Perspective5 Nov 2024
- 2024AERO: Entropy-Guided Framework for Private LLM Inference16 Oct 2024
12 newest of 30 All 30 (JSON)