Manuscript Offprint

arXiv:2609.37921

Pattern Formation in Transformers

Erkan Turan, Gaspard Abel, Maks Ovsjanikov

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.

1 INTRODUCTION

Transformers are universal approximators (Yun et al., 2020; Dehghani et al., 2019) and Turing complete (Pérez et al., 2019). These general results establish that Transformers can represent virtually any function in principle, but they say very little about the structural biases of the architecture itself. Specifically, what representations does a forward pass through a Transformer architecture naturally promote before learning takes place?

Existing theory that studies this question typically falls into one of two lines of work. The first focuses on rank collapse (or oversmoothing), which analyzes how repeated self-attention drives all token representations toward a common vector (Dong et al., 2021; Noci et al., 2022). The second, based on dynamical systems, characterizes the geometry of representations and shows that self-attention drives tokens into discrete clusters (Geshkovski et al., 2023; Bruno et al., 2026). Yet, these elegant global results are derived under strong simplifications, omitting Positional Encoding (PE), Multi-Head Attention (MHA), and feed-forward nonlinearities (FFN), and do not account for the complex spatial and sequential patterns that Transformers capture in practice. This gap raises a fundamental question: when a full Transformer escapes collapse, what structural priors can the architecture impose on its representations? More practically, how do these patterns affect learning, and can they be controlled at initialization?

In this paper, we show that signals that survive rank collapse in Transformers are neither arbitrary noise, nor clusters alone. Using pattern-formation theory (Cross & Hohenberg, 1993), we demonstrate that around the collapsed state, a randomly initialized Transformer can exhibit complex emerging modes. These joint token–feature modes are characterized by the Transformer's architectural components and are preferentially selected and amplified with depth, revealing a set

∗^{*}Equal contribution.

†^{\dagger}Correspondence to: Erkan Turan turan@lix.polytechnique.fr of spontaneously emerging structures: clusters, standing or traveling waves, and feature rotations. We call the propensity toward these representations a dynamical prior: a soft inductive bias present before learning and dictated by the architecture rather than by data. Recent evidence on the role of architectural biases in Transformers at initialization (Zheng et al., 2025; Li et al., 2026) motivates the application of our approach to guide the training of these models.

Our contributions are threefold: (1) We derive a matrix-valued dispersion relation (a frequency-resolved gain matrix) for a Transformer block to determine the structure of emerging modes and show how each architectural component contributes to it. We catalog the representations it can amplify, including the known clustered states and previously unreported standing, traveling, feature-rotating and mixed ones (Sec. 4). (2) We derive amplitude equations that characterize how FFN and content-attention nonlinearities control saturation, phase drift and competition (Sec. 5). (3) We validate our theory, show how initializations that amplify task-relevant structure learn faster and are more data-efficient than gain-matched controls on controlled tasks and on CIFAR-10 with ConViT (Sec. 6) 1^{1}.

References (38)