mlsanityData to 7 Oct 2026

On the Expressivity Role of LayerNorm in Transformers' Attention

arXiv 2305.02582 ↗First posted 4 May 2023cs.LGcited by 32

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  4. 2016Layer Normalizationcited by 5,579
  5. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  6. 2019Root Mean Square Layer Normalizationcited by 1,425
  7. 2020On Layer Normalization in the Transformer Architecturecited by 906
  8. 2019Understanding and Improving Layer Normalizationcited by 213
  9. 2020Stolen Probability: A Structural Weakness of Neural Language Modelscited by 21
  10. 2022Low-Rank Softmax Can Have Unargmaxable Classes in Theory but Rarely in Practicecited by 14

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 4; 2024: 17; 2025: 3; 2026: 8.

32 papers.

Sort:

By area:

  1. 2024Universal Neurons in GPT2 Language Modelscited by 100
  2. 2024On the Role of Attention Masks and LayerNorm in Transformerscited by 45
  3. 2024Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformerscited by 39
  4. 2024Prompting a Pretrained Transformer Can Be a Universal Approximatorcited by 25
  5. 2025Lifelong Knowledge Editing requires Better Regularizationcited by 9
  6. 2023A Generalizable Deep Learning System for Cardiac MRIcited by 8
  7. 2023Traveling Words: A Geometric Interpretation of Transformerscited by 7
  8. 2024Transformer Normalisation Layers and the Independence of Semantic Subspacescited by 6
  9. 2024Embedding Geometries of Contrastive Language-Image Pre-Trainingcited by 6
  10. 2025The Transformer Cookbookcited by 5
  11. 2024Lambda-Skip Connections: the architectural component that prevents Rank Collapsecited by 4
  12. 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformerscited by 4
20 more
  1. 2024Grappa -- A Machine Learned Molecular Mechanics Force Fieldcited by 3
  2. 2024Stealth edits to large language modelscited by 3
  3. 2024Logicbreaks: A Framework for Understanding Subversion of Rule-based Inferencecited by 3
  4. 2024stEnTrans: Transformer-based deep learning for spatial transcriptomics enhancementcited by 3
  5. 2024AERO: Entropy-Guided Framework for Private LLM Inferencecited by 3
  6. 2024Rethinking Decoders for Transformer-based Semantic Segmentation: A Compression Perspectivecited by 3
  7. 2023Understanding the Role of Layer Normalization in Label-Skewed Federated Learningcited by 2
  8. 2024Geometry and Dynamics of LayerNormcited by 2
  9. 2024UnitNorm: Rethinking Normalization for Transformers in Time Seriescited by 2
  10. 2023Observable Propagation: Uncovering Feature Vectors in Transformerscited by 1
  11. 2024Self-consistent context aware conformer transducer for speech recognitioncited by 1
  12. 2026Adaptive Engram Memory System for Indonesian Language Model: Generative AI Based on TOBA LM for Batak and Minang Languagecited by 1
  13. 2026The Scaling Properties of Implicit Deductive Reasoning in Transformerscited by 1
  14. 2024SLaNC: Static LayerNorm Calibrationcited by 0
  15. 2025Leveraging Teleconnections with Physics-Informed Graph Attention Networks for Long-Range Extreme Rainfall Forecasting in Thailandcited by 0
  16. 2026Stop Jostling: Adaptive Negative Sampling Reduces the Marginalization of Low-Resource Language Tokens by Cross-Entropy Losscited by 0
  17. 2026Enhanced QKNorm normalization for neural transformers with the Lp normcited by 0
  18. 2026Nexusformer: Nonlinear Attention Expansion for Stable and Inheritable Transformer Scalingcited by 0
  19. 2026How Many Different Outputs Can a Transformer Generate?cited by 0
  20. 2026Scaling Adaptive Depth with Norm-Agnostic Residual Networkscited by 0