Anisotropic Representation Dynamics in Transformers
Nguyen Do, My T. Thai
Key points
From the paper's conclusion- We develop a \textbf{Mixture-Gated Theory of Anisotropic Representation Dynamics} that separates self-attention into value transport, query gating, and key gating.
Abstract
Small differences between internal representations can shrink or grow as they pass through a Transformer layer, affecting how information is preserved and how sensitive the model is to perturbations. Yet it remains unclear when changes in attention weights can turn a representation difference that would otherwise shrink into one that grows. We develop a \textbf{Mixture-Gated Theory of Anisotropic Representation Dynamics} that separates self-attention into value transport, query gating, and key gating. Our analysis reveals how the geometry of attended representations constrains gating and how interactions between these mechanisms can reverse contraction induced by value transport. We formalize this phenomenon as gating-induced regime switching, where a representation difference contracts under fixed attention routing but expands under full attention. We derive a necessary and sufficient spectral criterion that certifies the existence or absence of switching and identifies switching directions without exhaustive search. Beyond existence, our theory characterizes maximum relative switching strength, certifies the severity of contraction that gating can overcome, and determines the largest dimension of a subspace in which every nonzero direction switches. Experiments across four Transformer architectures validate these predictions through analytical and finite-forward comparisons, revealing distinct and joint query--key gating mechanisms and nontrivial switching subspaces. Our results provide a mechanistic and spectral understanding of how attention routing can alter local representation dynamics.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Two-Clustering Regime of Token Dynamics in Causal AttentionarXiv · 2026
- Asymptotic Analysis of Discrete-Time Self-Attention Dynamics in TransformersarXiv · 2026
- Query Expansion and Key Specialization in Transformer Attention GeometryarXiv · 2026
- Spectral Degeneration of Self-Attention under Isotropic Score GeometryarXiv · 2026
- Dynamic Model of Attention in TransformersDigital Solutions and Artificial Intelligence Technologies · 2026
- Attention Function as an Intrinsic Inductive Bias: How Models' Behavior Diverges in Novel ContextsarXiv · 2026