mlsanityData to 7 Oct 2026

Transformer Normalisation Layers and the Independence of Semantic Subspaces

arXiv 2406.17837 ↗First posted 25 Jun 2024cs.LG cs.AIcited by 6

Not on the map. Why?

Abstract (arXiv)

Recent works have shown that transformers can solve contextual reasoning tasks by internally executing computational graphs called circuits. Circuits often use attention to logically match information from subspaces of the representation, e.g. using position-in-sequence to identify the previous token. In this work, we consider a semantic subspace to be any independent subspace of the latent representation that can fully determine an attention distribution. We show that Pre-Norm, the placement of normalisation layer used by state-of-the-art transformers, violates this ability unless the model learns a strict representation structure of orthogonal spheres. This is because it causes linear subspaces to interfere through their common normalisation factor. Theoretically, we analyse circuit stability by modelling this interference as random noise on the L2-norms of the query/key/value vectors, predicting a phenomenon of circuit collapse when sparse-attention shifts to a different token. Empirically, we investigate the sensitivity of real-world models trained for mathematical addition, observing a 1% rate of circuit collapse when the norms are artificially perturbed by lesssim10%. We contrast Pre-Norm with QKV-Norm, which places normalisation after the attention head's linear operators. Theoretically this relaxes the representational constraints. Empirically we observe comparable in-distribution but worse out-of-distribution performance.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 47 of its 68 references that are in the map. First posted on arXiv 25 Jun 2024.

Builds on

47 of 68 references.

References · 47

  1. 2017Attention Is All You Needcited by 59,932
  2. 2016Layer Normalizationcited by 5,579
  3. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  4. 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
  5. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  6. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  7. 2019Root Mean Square Layer Normalizationcited by 1,425
  8. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  9. 2022Toy Models of Superpositioncited by 928
  10. 2020On Layer Normalization in the Transformer Architecturecited by 906
  11. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
  12. 2020A Primer in BERTology: What we know about how BERT workscited by 807
35 more
  1. 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
  2. 2023Scaling Vision Transformers to 22 Billion Parameterscited by 690
  3. 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 679
  4. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
  5. 2020Query-Key Normalization for Transformerscited by 266
  6. 2022Transformers Learn Shortcuts to Automatacited by 260
  7. 2019Visualizing and Measuring the Geometry of BERTcited by 215
  8. 2019Understanding and Improving Layer Normalizationcited by 213
  9. 2023Finding Alignments Between Interpretable Causal Variables and Distributed Neural Representationscited by 197
  10. 2023Linearity of Relation Decoding in Transformer Language Modelscited by 190
  11. 2023Localizing Model Behavior with Path Patchingcited by 182
  12. 2023Small-scale proxies for large-scale Transformer training instabilitiescited by 182
  13. 2016Linear Algebraic Structure of Word Senses, with Applications to Polysemycited by 165
  14. 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
  15. 2020Finding Universal Grammatical Relations in Multilingual BERTcited by 108
  16. 2024Information Flow Routes: Automatically Interpreting Language Models at Scalecited by 92
  17. 2023A Mechanistic Interpretation of Arithmetic Reasoning in Language Models using Causal Mediation Analysiscited by 88
  18. 2024What needs to go right for an induction head? A mechanistic study of in-context learning circuits and their formationcited by 86
  19. 2021NormFormer: Improved Transformer Pretraining with Extra Normalizationcited by 83
  20. 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
  21. 2024On the Origins of Linear Representations in Large Language Modelscited by 76
  22. 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 72
  23. 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
  24. 2021Incorporating Residual and Normalization Layers into Analysis of Masked Language Modelscited by 50
  25. 2024On the Role of Attention Masks and LayerNorm in Transformerscited by 45
  26. 2021The Low-Dimensional Linear Geometry of Contextualized Word Representationscited by 39
  27. 2023On the Expressivity Role of LayerNorm in Transformers' Attentioncited by 32
  28. 2023When can transformers reason with abstract symbols?cited by 23
  29. 2021Transformers with Competitive Ensembles of Independent Mechanismscited by 19
  30. 2022How to Dissect a Muppet: The Structure of Transformer Embedding Spacescited by 19
  31. 2017Improving Lexical Choice in Neural Machine Translationcited by 17
  32. 2024Transforming the Bootstrap: Using Transformers to Compute Scattering Amplitudes in Planar N = 4 Super Yang-Mills Theorycited by 17
  33. 2023Uncovering hidden geometry in Transformers via disentangling position and contextcited by 15
  34. 2023Investigating semantic subspaces of Transformer sentence embeddings through linear structural probingcited by 12
  35. 2023Traveling Words: A Geometric Interpretation of Transformerscited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 2; 2026: 2.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks
  2. 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer
  3. 2026All Routes Lead to Collapse
  4. 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization
  5. 2026On the Intrinsic Limits of Transformer Image Embeddings in Non-Solvable Spatial Reasoning
  6. 2024The Asymptotic Behavior of Attention in Transformers
  7. 2022Achieving and Understanding Out-of-Distribution Generalization in Systematic Reasoning in Small-Scale Transformers
  8. 2025From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training Dynamics