Pattern Formation in Transformers
Erkan Turan, Gaspard Abel, Maks Ovsjanikov
Key points
From the paper's conclusion- Using pattern-formation theory, we show that the dynamical view of Transformers can account for Positional Encoding, Multi-Head Attention, and Output-Value geometry.
Abstract
What are the inductive biases of a Transformer architecture? Existing theory on how the forward pass shapes representations either considers whether Transformers escape from rank collapse or demonstrates that self-attention drives tokens toward cluster patterns. The latter view arises from an elegant dynamical systems perspective, but relies on simplified architectural assumptions, and does not explain the rich structures observed in practice. This leaves a major open question: when a full Transformer escapes rank collapse, how does it structure token representations? Using pattern-formation theory, we show that the dynamical view of Transformers can account for Positional Encoding, Multi-Head Attention, and Output-Value geometry. We demonstrate that a full Transformer architecture imposes an inductive prior by selectively amplifying a rich set of previously unreported patterns, including traveling or rotating waves among others. We characterize the role of each architectural component in controlling which pattern is amplified, which ones stabilize, compete, or coexist. Finally, we show that these structures can act as a controllable dynamical prior that facilitates learning. By choosing both task-aligned positional encoding and weight initialization, we demonstrate improved data efficiency and accelerated optimization on controlled sequence tasks and with ConViT on CIFAR-10.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Off-Axis, On Purpose: Where a Transformer Computes Concepts and Why it Does SoarXiv · 2026
- Anisotropic Representation Dynamics in TransformersarXiv · 2026
- Toward a Theoretical Understanding of Transformer Attention: Bayesian Estimation and Predictive SufficiencyarXiv · 2026
- Attention Function as an Intrinsic Inductive Bias: How Models' Behavior Diverges in Novel ContextsarXiv · 2026
- Information-Theoretic Analysis of Positional Encoding Strategies in Vision Transformers: A Comparative Study of Four Approaches.IEEE transactions on pattern analysis and machine intelligence · 2026
- Geometric and Behavioral Stratification in Transformer Residual StreamsarXiv · 2026