Manuscript Offprint
arXiv:2609.37921Pattern Formation in Transformers
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.
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) .
Transformers as dynamical systems. Treating tokens as interacting particles (Lu et al., 2020) has enabled further characterization of how clusters (Geshkovski et al., 2023), multiscale dynamics (Bruno et al., 2026), and spectral selection (Tomihari & Karakida, 2026; Kuehn & Yoon, 2026) occur in Transformers. These works provide elegant global results, but typically have to consider simplified dynamics, such as single head, symmetric or identity values, no PE and no FFN. In contrast, our local analysis retains all key architectural components and determines their role in the emergence of structures in Transformers.
Initialization and inductive biases. On the design side, we rely on the observation that initialization-target alignment is necessary for efficient learning (Abbe et al., 2022), and that random networks and Transformers carry systematic architecture-dependent biases (Teney et al., 2024; Li et al., 2026; Subramaniam et al., 2026). We make one such bias explicit and controllable by showing theoretically how ConViT (d'Ascoli et al., 2021), mimetic (Trockman & Kolter, 2023) initializations and traveling waves (Keller & Welling, 2023; Keller et al., 2024) impose dynamical priors that facilitate the training of these architectures.
3 SETUP: INFORMATION FLOW THROUGH A TRANSFORMER AT INITIALIZATION
Transformer Architecture. Let denote token representations , with indexing attention heads. For head , let be the query, key and value matrices and let denote the positional encoding. The attention weights are
Writing the output projection as , define , with . The Multi-Head Attention is then expressed as: .
Code to reproduce all experiments is available at https://github.com/ehturan/pattern-formation-transformers.
Therefore, a Transformer block defines the mapping:
where is a Feed Forward Network (FFN). Repeated application of this block gives . We omit LayerNorm to streamline the analysis; it has been reported as not strictly necessary to prevent rank collapse (Noci et al., 2022) and can be replaced by point-wise nonlinearities (Zhu et al., 2025). Pre-LN preserves the block structure of the linear theory but changes the base state (Remark A.3, App. A.9).
A result motivating our analysis is that, with small residual scalings, this architecture can be viewed as a Lie–Trotter splitting (Lu et al., 2020) of the form:
Equation 3 mirrors the classic reaction–diffusion (or pattern-forming) systems studied in dynamical systems, mathematical biology (Turing, 1952; Cross & Hohenberg, 1993; Cross & Greenside, 2009) (see App. L for a brief primer). In such systems, nonlocal coupling across positions (P) competes with local pointwise nonlinearities (L). A key property of such systems is that when a spatially uniform state becomes unstable, perturbations do not grow arbitrarily; instead, the coupling selectively amplifies specific spatial frequencies, causing structured patterns.
The collapsed state. In a Transformer, the spatially uniform state corresponds to rank collapse (Dong et al., 2021; Noci et al., 2022; Shi et al., 2022): the set of homogeneous states in which all tokens share the exact same feature vector . With uniform attention, without the residual and FFN, acts as a pure averaging (diffusion) operator that contracts all tokens onto . While prior signal-propagation theory asks when is attractive or avoided, we use the pattern-formation view to study what structures emerge when becomes unstable.
4 THE TRANSFORMER MATRIX DISPERSION RELATION
Our goal in this section is to determine which structures a Transformer architecture preferentially amplifies at initialization. The starting point is to determine what can emerge from the homogeneous manifold . To do so, consider a small heterogeneous perturbation around collapsed state . The following simplified Theorem determines the dynamics of this perturbation when it passes a Transformer block.
Theorem 4.1 (Simplified Linear stability analysis). For a single-head Transformer and with the aforementioned notations, the homogeneous manifold is invariant under a Transformer block : , with .
Let with , and let be the attention matrix at . In first order in , token-level perturbations evolve through the Transformer map as:
where V is the value/output matrix and is the FFN Jacobian at .
Further, let be the eigenvalues of with corresponding eigenvectors (the index becomes a frequency in Sec. 4.1). Then, after a Transformer update, a perturbation along evolves as:
The full version of this Theorem is in App. A.1. It states that the eigenvectors (or modes) determine the available token-space structures, while the matrices determine whether each structure grows or decays with depth, and along which feature-space directions (the eigenvectors of ). A Transformer can therefore preferentially amplify particular joint token-feature structures even before learning: this is what we consider to be a dynamical prior. Note that a Jacobian analysis of weight-tied attention was conducted in Tomihari & Karakida (2026), but without PE and FFN, and in which the token-space structure of is left unresolved.
Inspired by pattern-formation theory, we call the matrix-valued map the Transformer Matrix Dispersion Relation. We build it progressively, to isolate the roles of PE, OV geometry, MHA, and the FFN, and finally use it to classify the structures promoted at linear order.
4.1 POSITIONAL ENCODING LIFTS HETEROGENEOUS SPACE DEGENERACY
We start with a single attention head without positional encoding and ask: do the linearized dynamics preferentially select a heterogeneous token-space structure?
Proposition 4.2 (No PE: frequency degeneracy). Without PE , any homogeneous state produces uniform attention, i.e. . The token-space then decomposes into the two invariant eigenspaces , corresponding respectively to the homogeneous mode and the -dimensional space of zero-mean heterogeneous modes. Their associated Jacobian matrices are
In linear order, all nonzero token frequencies have identical feature-space amplification.
This result demonstrates that, in linear order, the value matrix V controls the preference between homogeneous and heterogeneous perturbations, consistent with the empirical observation that negative-identity OV initialization provides improved performance in vision Transformers reported by Trockman & Kolter (2023). However, without positional information, the dispersion relation cannot favor one heterogeneous structure over another . We next show that PE provides precisely the missing mechanism.
Proposition 4.3 (PE lifts frequency degeneracy). Suppose we have a relative PE, i.e. , where , with periodic boundary conditions. At any homogeneous state , the attention matrix is circulant: . Therefore, , with , admits the N Fourier eigenpairs , and as in Eq. 5:
This result gives positional encoding a direct dynamical interpretation: since is the Fourier transform of the attention matrix, designing the positional encoding is designing a filter in token-space, while V and determine how each transmitted mode evolves in feature space. The Transformer can now preferentially amplify specific token-space structures. This completes, the picture exhibited by (Trockman & Kolter, 2023) where both negative OV initialization and positional encodings appear crucial for efficient learning and improved performance in ViTs. Through our framework, we understand that negative OV allows to favor heterogeneous features while positional encodings allows the architecture to discern these heterogeneities via the emergence of Fourier modes. An extension of this result without periodic boundary conditions is presented in App. A.7.
4.2 MULTI-HEAD ATTENTION ENGINEERS THE DISPERSION RELATION
Distinguishing modes is not the same as being able to preferentially amplify a specific one. We therefore ask which modes a single attention head can select as the dominant growing mode. For a broad class of PEs, the answer is surprisingly restrictive.
Proposition 4.4 (Single-head PE select spectral edges). Assume that , , , and let the positional encoding be reflection symmetric with real Fourier spectrum monotonically decreasing on . Then
Hence, a single head can select either a low-frequency mode or a high-frequency mode , but not an isolated intermediate wavelength. This extends to any V (App. A).
We will see in Th. 5.1 that degeneracy is lifted by the nonlinearities, forming clusters of token representations.
(a) standing wave symmetric PE,
(b) travelling wave directional PE,
(c) coexistence two PE heads,
(d) rotating polarization, rotational OV,

loop ; colour: feature angle
Figure 1: Taxonomy of patterns in Transformers: 2D visualization of the propagation of the accessible modes, with their corresponding dispersion relation.
This result refines the usual low-pass picture of self-attention (Wang et al., 2022; Park & Kim, 2022): the sign of the OV gain decides whether a single head is low-pass ( , ) or high-pass ( , ), but never band-pass. The result covers reflection-symmetric localized positional encodings such as bidirectional ALiBi (Press et al., 2022) and the centered Gaussian kernel of ConViT (d'Ascoli et al., 2021). Isolated intermediate wavelengths therefore require positional encodings outside this class, such as causal ALiBi and off-center ConViT, or with RoPE (Su et al., 2024) that induces a non-symmetric, non-monotone positional profile on (more details in App. A.8). We next show that multi-head attention provides another solution: different heads contribute distinct positional spectra and OV geometries, which combine into a matrix-valued filter capable of producing a richer dispersion relation.
Theorem 4.5 (Transformer Matrix Dispersion Relation). Suppose the PE is translation invariant, i.e. , let , and let for a concatenated MHA of H heads. For a perturbation along Fourier mode , token-wise perturbations evolve as
Thus, MHA constructs a matrix-valued spectral filter , rather than a simple token-feature coupling.
Eq. 9 is the central object of this work: at initialization, a Transformer block acts as a matrix-valued spectral filter on token-space modes. For each head, the positional encoding determines the scalar response , the OV matrices the feature directions through which that response acts, and the FFN Jacobian rescales the result.
Scope and weight tying. The results hold on all of M and along depth, also for layer-dependent blocks (App. A.10). Weight tying is thus not required for the linear theory; we introduce it only in Sec. 5, where depth as repeated iteration of the same map allows us to study the nonlinear stabilization of growing modes, as in Geshkovski et al. (2023); Bruno et al. (2026).
4.3 A CATALOGUE OF JOINT TOKEN-FEATURE PATTERNS
Now that the Transformer Matrix Dispersion Relation is laid out, we can turn its eigenpairs into concrete representations. The following proposition makes the growth of a joint token-feature mode explicit and shows how the phase of and the geometry of determine the resulting morphologies.
Proposition 4.6 (Shape of the emerging patterns). Let be a fixed point of and a simple eigenpair of with . The perturbation along mode grows exponentially with depth and is of the form
with , the initial perturbation amplitude. Writing , Eq. 10 gives
(a)
stable collapse
(b)
escape

R
(c)
coexistence
R
(d)
winner-takes-all


Figure 2: Depth evolution descends an effective potential. (a,b) One critical mode, Eq. 12 (blue: , orange: ; disks: stable states, circles: unstable): the dispersion relation sets , the nonlinearities set . (c,d) Two critical modes, Eq. 19, over the signed amplitudes ( , ): the ratio of cross-suppression to self-saturation decides where the wells are.
Eq. 11 gives a direct dictionary between the spectral data of and the resulting representation. The wavenumber sets the spatial scale across tokens, the growth rate controls amplification with depth, the phase determines whether the pattern drifts across layers, and the real and imaginary parts of describe its geometry in feature space. Different combinations therefore give rise to different morphologies, simulated in Fig. 1: standing waves ( , ), traveling waves ( , from a directional PE), feature rotations ( , from non-symmetric OV geometry), and their mixtures. Notably, traveling waves have been hard-designed into neural architectures (Keller & Welling, 2023; Keller et al., 2024) for sequence learning. We demonstrate here that they emerge spontaneously in Transformers whenever their PE is directional or their OV non-symmetric.
5 PAST LINEAR ORDER: AMPLITUDE EQUATIONS FOR TRANSFORMERS
The dispersion relation in Sec. 4 answers a first question: which joint token-feature structures does a Transformer initially amplify? Linear growth, however, cannot be the end of the story. Once the selected structure becomes appreciable, the approximation underlying breaks down. This leaves three questions that are invisible to the dispersion relation: does a linearly growing mode stabilize at a finite amplitude? When several structures have exactly the same linear gain, which one is eventually realized? When distinct modes grow simultaneously, do they coexist or suppress one another? The non-linear analysis below addresses these questions with the second tool of pattern-formation theory, the amplitude equation (Cross & Hohenberg, 1993).
5.1 FROM LINEAR GROWTH TO FINITE-AMPLITUDE PATTERNS
Consider first a single critical mode whose gain is close to the instability threshold, with . Near this threshold, the selected mode evolves slowly while modes whose gains remain strictly below one decay rapidly, so the token dynamics can be reduced to an analysis of amplitude of the critical modes. For a single stationary pattern with amplitude , the reduced dynamics has the generic form
The two coefficients have different meanings (Fig. 2). The linear coefficient is already determined by the dispersion relation of Sec. 4: it sets the curvature of the effective potential around the collapsed state, and therefore when that state loses stability. The nonlinear coefficient , by contrast, depends on terms discarded by the linearization and determines what replaces it. If and , nonlinear feedback counteracts linear instability and the pattern saturates at a finite amplitude . If instead , the cubic nonlinearity reinforces the instability.
5.2 AMPLITUDE EQUATIONS OF CLUSTERS AND TRAVELLING WAVES
We now study the effects of these higher-order terms on two representations: clusters and traveling waves. For clarity, we work with the scalar reduction of the full Transformer block in Eq. 2 (the general case reduce to the same form by projection onto the left eigenvector), around
(the extension to is sketched in App. F) with OV gain , content coupling , and translation-invariant PE :
Nonlinearity is smooth and , , and , where is the residual scale. and are the residual and Transformer mapping of Eq. 2, respectively. Expanding around (Lemma B.1, App. B) separates the dispersion relation from the higher-order terms:
where and is the dispersion relation of Theorem 4.1 with and the eigenvalues of . The FFN acts on the attention output , and content-dependent attention is ( : component-wise product).
We expose a division of labor between Transformer components. We have shown that PE, OV geometry, and the linearized FFN determine which mode is initially amplified through , i.e., . We demonstrate here how content-dependent attention and higher order properties of FFN determine, through , what happens to that mode once it has grown.
Theorem 5.1 (Clusters, simplified). Without PE and with a negative OV gain, , all heterogeneous modes share the amplification (Proposition 4.2). Near threshold, the separation u of two balanced clusters, up to a small common shift, obeys
If and , the clusters saturate at a finite separation , which is stable along the cluster direction. Against intra-cluster perturbations, it is stable only for an odd activation with . The full statement and proof are in App. C.
Non-linear effects on clustering. Here the instability is driven by the FFN ( ), with stabilizing the mean, whereas the clusters of Geshkovski et al. (2023) are driven by attention with . Which structure emerges from the degenerate sector is decided at cubic order, by ingredients absent from the dispersion relation. Negative-OV content attention, , is what holds a cluster: as it tightens, its members attend more to one another. Interestingly, an odd saturating activation ( ) adds damping, whereas any even part makes one cluster spread, so GELU-type FFNs tend to break balanced clusters that tanh-type FFNs keep. Consequently, activations also bias the emerging structure, which to our knowledge was not noted before. This activation function induced structural bias is also present in message-passing GNNs (Turan et al., 2026).
Theorem 5.2 (Traveling waves, simplified). With a directional PE, the critical mode has a complex gain : at linear order, the wave grows by and advances by a phase per layer. Near threshold, its amplitude , measured in the frame moving with the wave, obeys
with a complex coefficient . If and , the wave saturates at a stable amplitude and propagates at phase speed per layer:
Thus the real part of controls saturation, while its imaginary part gives the nonlinear correction to the propagation speed. The full statement and proof are in App. E.
As illustrated in Fig. 1(d), a complex eigenvector of adds a feature-plane rotation; the same reduction applies after projection onto that eigenmode.
Scaling laws and design levers. All cases (clusters, traveling waves, and standing waves in App. D) predict amplitude scaling laws invisible at linear order: past threshold, cluster separation and wave amplitude grow as , and the wave speed shifts linearly in (Fig. 3a,b). This section allowed us to refine the propagation–collapse dichotomy (Giorlandino & Goldt, 2026; Cowsik et al., 2025) into a refined family of stable structured representations as seen in Fig. 3c,d.

Figure 3: Prediction of the amplitudes of representations. Lines: theory, colors: simulation, gray: collapsed state, cyan line: threshold . (a): Amplitude scaling laws for multiple patterns versus . (b): Amplitude heatmap of the traveling wave, in the map; white dashed: predicted . (c) Critical mode in the map; black: theoretically predicted mode transitions ( : nonlinear selection differs); (d): Competition and coexistence of modes 4 (solid), 5 (dashed) in with winner-takes-all exchange lines of Thm. 5.3 (dotted).
5.3 COMPETITION: WINNER-TAKES-ALL VERSUS COEXISTENCE
What happens when two modes become critical at once? The linear theory allows both to grow indistinguishably; the non-linear analysis predicts a competition: stable coexistence or winner-takes-all.
Theorem 5.3 (Two-mode competition, simplified). Let two standing modes , cross threshold together with the same gain , . Their amplitudes obey
where measures how each mode saturates itself and how strongly it suppresses the other. Equivalently, the moduli descend the effective potential
If , the mixed state is the stable minimum and the two modes coexist; if , it becomes a saddle, the single-mode states are the stable minima, and the initial condition selects the winner (Fig. 2c,d). The full statement, for unequal gains, and the proof are in App. G.
Kernels and heads that transmit the mixed harmonics alter the cross-suppression through their stable-mode resolvents, and suppressing those harmonics weakens this route of competition.
6 EXPERIMENTS
We first validate the theoretical results of Secs. 4 and 5, and then provide practical evidence that accessible representations can induce dynamical priors at initialization on stylized experiments.
6.1 THE THEORY IS QUANTITATIVELY PREDICTIVE
First, we validate the theory of Sec. 5 by iterating the scalar map in Eq. 13 on a ring of tokens, with a Transformer using , gain and gaussian PE , where is the PE strength and the distance between two peaks (details in App. I.2). We measure the dominant Fourier modes, their amplitudes, and, for directional kernels, their phase advance.
The scaling laws of Fig. 3(a) validate our theoretical results on the amplitude growth of multiple representations close to criticality. Panel (b) confirms our predictions in Eq. 17 on how the wave amplitude increases with gain and PE strength . Panel (c) varies distance between peaks (lobes) of the PE and tests whether the selected wavelength follows the theory . Finally, (d) tests two-mode competition for modes and , when varying the preference for one mode or the other with mixing . Our theory clearly distinguishes coexistence from winner-takes-all selection. Together, these results show that the theory predicts not only when collapse is avoided, but also the structure and dynamics of the pattern that replaces it.

Figure 4: Task-initialization alignment. Left: the periodic (T1), transport (T2) and rotation (T3) tasks (perturbed, partially masked targets). Right: AUC for each (task, initialization) pair; the color corresponds to the z-score. Higher scores in the diagonal support the dynamical prior induced by mode criticality.

(a)
| Init. | Final Acc. | AUC ↑ | |
|---|---|---|---|
| default + pos | 89.6 ± 0.4 | 78.0 ± 0.3 | 92.0 (1/3) |
| +I + pos | 90.2 ± 0.2 | 79.3 ± 0.3 | 85.3 ± 3.2 |
| -I + pos | 91.1 ± 0.3 | 80.8 ± 0.4 | 74.3 ± 3.1 |
| -I + sharp pos | 91.5 ± 0.2 | 81.3 ± 0.3 | 69.0 ± 1.7 |
(b)
Figure 5: Dispersion-aware initialization of ConViT on CIFAR-10. (a) Heatmap of mode gains and radial profile of the dispersion relation for the initializations variants (colours: mode stability; : leading mode). (b) Final Accuracy, AUC and ; all variants use localized PE, “sharp”: sharpened kernel.
6.2 ENGINEERING THE PRIOR ON CONTROLLED TASKS
Next, we test whether the dynamical prior we claim to provide can be aligned with a task, and if such an alignment helps the learning process, as stated in (Abbe et al., 2022). Each of the three tasks (Fig. 4, left) targets one of the identified structures and probes its attribute: T1 reconstructs periodic sequences of mode , favoring . T2 translates a structured sequence by a prescribed shift, probing the phase of the mode. T3 reconstructs under a prescribed feature-space rotation , probing the eigenvector geometry of . More details are in App. J. For each task, using identical architectures, parameter counts and gains, we initialize 4 models that differ only in which token-feature mode they amplify. We then compute the AUC of their learning curves of each (task, init) tuple and report their -scores.
The heatmaps of Fig. 4 (right) clearly indicate that task-aligned initializations benefit from a strong dynamical prior. It originates from engineering the architecture so that the critical mode at initialization is aligned with the problem at hand. Supplementary experiments shown in Fig. 7 show that this practical gain occurs most markedly early in training.
6.3 DISPERSION-AWARE INITIALIZATION OF CONVIT ON CIFAR-10
Finally, we train a weight-tied ConViT on CIFAR-10 (more details in App. K) for classification and show that engineering mode amplification facilitates learning in practical architectures. On the left of Fig. 5(a), we plot the dispersion relation for various parameterizations: localized and sharpened PE (d'Ascoli et al., 2021) variants shift amplification toward heterogeneous spatial modes. Reporting classification results in Fig. 5(b) shows that combining with localized PE substantially accelerates optimization; sharpening the dispersion structure helps further (91.5% test accuracy). This explains why mimetic initialization's (Trockman & Kolter, 2023) and ConViT's localized kernels (d'Ascoli et al., 2021) help: together they move the leading multiplier of off . In further experiments we track the dispersion relation during training (Fig. 13) which shows that heterogeneous patterns are favored.
7 CONCLUSION
In this paper, we show that a randomly initialized Transformer is not structureless once it escapes rank collapse: its forward pass multiplies each token frequency by a matrix-valued gain , set by PE, OV geometry and the FFN, that amplifies specific joint token–feature structures such as traveling and rotative waves. This dynamical prior refines the binary propagate-or-collapse picture into a mode-resolved one. The nonlinear theory says which structures saturate, drift or coexist, and aligning the prior with the task accelerates optimization and improves data efficiency.
ACKNOWLEDGMENTS
We would like to thank Julien Gaubil and Antoine Guédon for valuable discussions. Parts of this work were supported by the ERC Consolidator Grant 101087347 (VEGA), as well as gifts from Ansys Inc. and Adobe Research.
AI USE STATEMENT
We used a large language model and coding assistant for two tasks: (i) editing the manuscript, i.e. tightening and restructuring prose and (ii) refining and formatting plots and figures. We have reviewed all AI-assisted work and take full responsibility for the content of this paper.
REFERENCES
Emmanuel Abbe, Elisabetta Cornacchia, Jan Hazla, and Christopher Marquis. An initial alignment between neural network and target is needed for gradient descent to learn. In International Conference on Machine Learning, pp. 33–52. PMLR, 2022.
Giuseppe Bruno, Federico Pasqualotto, and Andrea Agazzi. A multiscale analysis of mean-field transformers in the moderate interaction regime. Advances in Neural Information Processing Systems, 38:133305–133341, 2026.
Jean-Marc Chomaz. Global instabilities in spatially developing flows: non-normality and nonlinearity. Annu. Rev. Fluid Mech., 37(1):357–392, 2005.
Aditya Cowsik, Tamra Nebabu, Xiaoliang Qi, and Surya Ganguli. Geometric dynamics of signal propagation predict trainability of transformers. Physical Review E, 112(5):055301, 2025.
Mark C Cross and Pierre C Hohenberg. Pattern formation outside of equilibrium. Reviews of modern physics, 65(3):851, 1993.
Michael Cross and Henry Greenside. Pattern formation and dynamics in nonequilibrium systems, volume 1. Cambridge University Press Cambridge, 2009.
Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. Universal transformers. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=HyzdRiR9Y7.
Yihe Dong, Jean-Baptiste Cordonnier, and Andreas Loukas. Attention is not all you need: Pure attention loses rank doubly exponentially with depth. In International conference on machine learning, pp. 2793–2803. PMLR, 2021.
Gbetondji Jean-Sebastien Dovonon, Michael M. Bronstein, and Matt J. Kusner. Setting the record straight on transformer oversmoothing. Transactions on Machine Learning Research, 2025.
Stéphane d'Ascoli, Hugo Touvron, Matthew L Leavitt, Ari S Morcos, Giulio Biroli, and Levent Sagun. Convit: Improving vision transformers with soft convolutional inductive biases. In International conference on machine learning, pp. 2286–2296. PMLR, 2021.
Borjan Geshkovski, Cyril Letrouit, Yury Polyanskiy, and Philippe Rigollet. The emergence of clusters in self-attention dynamics. Advances in Neural Information Processing Systems, 36:57026–57037, 2023.
Alessio Giorlandino and Sebastian Goldt. Two failure modes of deep transformers and how to avoid them: A unified theory of signal propagation at initialisation. In International Conference on Learning Representations, 2026.
Hermann Haken. Slaving principle revisited. Physica D: Nonlinear Phenomena, 97(1-3):95–103, 10 1996. ISSN 0167-2789. doi: 10.1016/0167-2789(96)00080-2. URL http://dx.doi.org/10.1016/0167-2789(96)00080-2.
Akhil Kedia, Mohd Abbas Zaidi, Sushil Khyalia, JungHo Jung, Harshith Goka, and Haejun Lee. Transformers get stable: An end-to-end signal propagation theory for language models. In Forty-first International Conference on Machine Learning, 2024. URL https://openreview.net/forum?id=30waYPIZUA.
T. Anderson Keller and Max Welling. Neural wave machines: Learning spatiotemporally structured representations with locally coupled oscillatory recurrent neural networks. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 16168–16189, 2023.
T. Anderson Keller, Lyle Muller, Terrence Sejnowski, and Max Welling. Traveling waves encode the recent past and enhance sequence learning. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=p4S5Z6Sah4.
Christian Kuehn and Jaeyoung Yoon. Spectral selection in symmetric self-attention dynamics. arXiv preprint arXiv:2604.26085, 2026.
Siquan Li, Yao Tong, Haonan Wang, and Tianyang Hu. Transformers are born biased: Structural inductive biases at random initialization and their practical consequences. arXiv preprint arXiv:2602.05927, 2026.
Yiping Lu, Zhuohan Li, Di He, Zhiqing Sun, Bin Dong, Tao Qin, Liwei Wang, and Tie-Yan Liu. Understanding and improving transformer from a multi-particle dynamic system point of view. In ICLR 2020 Workshop on Deep Differential Equations, 2020.
Lorenzo Noci, Sotiris Anagnostidis, Luca Biggio, Antonio Orvieto, Sidak Pal Singh, and Aurelien Lucchi. Signal propagation in transformers: Theoretical perspectives and the role of rank collapse. Advances in Neural Information Processing Systems, 35:27198–27211, 2022.
Kenta Oono and Taiji Suzuki. Graph neural networks exponentially lose expressive power for node classification. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=S1ldO2EFPr.
Namuk Park and Songkuk Kim. How do vision transformers work? In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=D78Go4hVcxO.
Ofir Press, Noah Smith, and Mike Lewis. Train short, test long: Attention with linear biases enables input length extrapolation. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=R8sQPpGCv0.
Jorge Pérez, Javier Marinković, and Pablo Barceló. On the turing completeness of modern neural network architectures. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=HyGBdo0qFm.
Thiziri Nait Saada, Alireza Naderi, and Jared Tanner. Mind the gap: a spectral analysis of rank collapse and signal propagation in attention layers. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=sRKtbGsebH.
Han Shi, JIAHUI GAO, Hang Xu, Xiaodan Liang, Zhenguo Li, Lingpeng Kong, Stephen M. S. Lee, and James Kwok. Revisiting over-smoothing in BERT from the perspective of graph. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=dUV91uaXm3.
Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing, 568:127063, 2024.
Vighnesh Subramaniam, David Mayo, Colin Conwell, Tomaso Poggio, Boris Katz, Brian Cheung, and Andrei Barbu. Training the untrainable: Introducing inductive bias via representational alignment. Advances in Neural Information Processing Systems, 38:96753–96791, 2026.
Damien Teney, Armand Mihai Nicolicioiu, Valentin Hartmann, and Ehsan Abbasnejad. Neural redshift: Random networks are not random functions. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4786–4796. IEEE, 2024.
Akiyoshi Tomihari and Ryo Karakida. Recurrent self-attention dynamics: An energy-agnostic perspective from jacobians. Advances in Neural Information Processing Systems, 38:139928–139961, 2026.
Lloyd N Trefethen. Pseudospectra of linear operators. SIAM review, 39(3):383–406, 1997.
Asher Trockman and J Zico Kolter. Mimetic initialization of self-attention layers. In International Conference on Machine Learning, pp. 34456–34468. PMLR, 2023.
Erkan Turan, Gaspard Abel, Maysam Behmanesh, Emery Pierson, and Maks Ovsjanikov. Beyond reLU: Bifurcation, oversmoothing, and topological priors. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=AehiGqd7go.
Alan Turing. The chemical basis of morphogenesis. Philosophical Transactions of the Royal Society B, 237:37–72, 1952.
Peihao Wang, Wenqing Zheng, Tianlong Chen, and Zhangyang Wang. Anti-oversmoothing in deep vision transformers via the fourier domain analysis: From theory to practice. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=0476oWmiNNp.
Chulhee Yun, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank Reddi, and Sanjiv Kumar. Are transformers universal approximators of sequence-to-sequence functions? In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=ByxRM0Ntvr.
Jianqiao Zheng, Xueqian Li, Hemanth Saratchandran, and Simon Lucey. Structured initialization for vision transformers. In Advances in Neural Information Processing Systems 38, NeurIPS 2025, pp. 146840–146865. Neural Information Processing Systems Foundation, Inc. (NeurIPS), 2025. doi: 10.52202/085713-4413. URL http://dx.doi.org/10.52202/085713-4413.
Jiachen Zhu, Xinlei Chen, Kaiming He, Yann LeCun, and Zhuang Liu. Transformers without normalization. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 14901–14911. IEEE, June, 2025. doi: 10.1109/cvpr52734.2025.01388. URL http://dx.doi.org/10.1109/cvpr52734.2025.01388.
A PROOFS FOR THE MATRIX-VALUED LINEAR THEORY
This section proves the linear results of Sec. 4. Token states are columns , and a perturbation is denoted . For a token-space vector and a feature vector , we write for the perturbation whose ith token is .
A.1 FULL VERSION THEOREM 4.1 AND PROOF
Theorem A.1 (Linear stability and token-feature block decomposition). Let denote the homogeneous states. is invariant under any Transformer block: with for a single head for MHA). Let and the evolution of perturbation through a Transformer block. Then, to first order in , the token-wise perturbation evolves as:
(20) where and is the Jacobian of the residual FFN branch at (the block is ). Equivalently, the full linearized Jacobian is . If is diagonalizable, with , then
and holds even without diagonalizability (Schur form). Hence, the transverse dynamics decompose into independent token-space blocks indexed by the eigenmodes of . If is a fixed point of , then is a linearly stable fixed point of if and only if
Along an orbit on , the transverse dynamics is the cocycle , which splits into the products , , whenever the share an eigenbasis. (Secs. 4.1–4.2).
Its proof is below.
Proof. Write the effective one-head attention output as
where, in the one-head setting, any output projection can be absorbed into V. Let
Every row of sums to one for every :
Consequently, at a homogeneous state all value vectors coincide and for every , whatever the positional bias or mask; since is token-wise, with , which proves the invariance of . Now fix , not necessarily a fixed point. Differentiating the row-sum identity at in an arbitrary direction gives
We now differentiate the attention output. By the product rule,
where the first term vanishes by Eq. equation 26. Thus first-order changes in the attention weights do not act on the homogeneous value vector.
Let denote the common value of and set
Since H acts token-wise, the chain rule and Eq. equation 29 yield
(31) which is the first claim.
Viewing , this is equivalently
If with , then
Hence the token eigenmodes of define invariant d-dimensional feature blocks
If is not diagonalizable, take a Schur decomposition with upper triangular: is block upper triangular with diagonal blocks , so in all cases. Therefore
When is a fixed point of , is a fixed point of , and for a discrete-time map asymptotic linear stability is equivalent to all multipliers of the Jacobian lying strictly inside the unit circle; the stability criterion is precisely Eq. equation 22. Along an orbit the same computation at each gives with ; if the matrices share the eigenbasis , conjugating by block-diagonalizes every factor simultaneously and the -step propagator is , whose growth rate is the transverse Lyapunov exponent stated in the theorem.
A.2 PROOF OF PROPOSITION 4.2
Proof. With one head and , the content logit is identical for every pair at a homogeneous state, because all queries are equal and all keys are equal. Each row of the softmax is therefore uniform:
The vector 1 is an eigenvector with eigenvalue 1, whereas every satisfies . Thus
is the required invariant decomposition. Substituting the two token-space eigenvalues and into Theorem 4.1 gives
which is Eq. equation 6. Hence every nonzero token frequency has the same feature-space multipliers.
A.3 PROOF OF PROPOSITION 4.3
Proof. Assume periodic relative positional logits with . At a homogeneous state the content part of the one-head logit is independent of i, j, and therefore cancels between numerator and denominator of the row softmax. Consequently
so is circulant.
For the Fourier vector and the convention , we obtain
Thus
On the N-point periodic grid the distinct frequencies are , .
Applying Theorem 4.1 to the token eigenvalue gives, for ,
Since the discrete Fourier transform is invertible, the full Jacobian is similar over to and therefore
This gives the stability condition of Theorem A.1. If varies with , then different token frequencies see different feature-space blocks, so the heterogeneous frequency degeneracy is lifted.
A.4 PROOF OF PROPOSITION 4.4
Proof. Under the scalar specialization , ,
and hence
Because is real and monotone on , its image is the interval with endpoints and . Define
The function g is convex. Therefore its maximum over any compact interval is attained at an endpoint, which gives
Thus an isolated interior frequency cannot be a strict maximizer. If and is strictly monotone, no interior point can tie an endpoint maximum, and
as stated in the non-degenerate case. For a general with , the eigenvalues of are , so is a maximum of convex functions of , hence convex, and the same endpoint argument applies.
A.5 PROOF OF THEOREM 4.5
Proof. For head h, write the post-output-projection contribution as
The full pre-FFN residual state is
As in the proof of Theorem 4.1, row-stochasticity gives
Since the value vector is the same at every token, the derivative of the th head is therefore
With , the full linearization is
For translation-invariant relative positional logits, the content logit of each head is constant at and cancels from the row softmax. Therefore every is circulant. Write
For the separated perturbation , Eq. equation 55 becomes
Thus the feature-space block in Fourier sector q is
which is Eq. equation 9. Since the Fourier transform block-diagonalizes all circulant simultaneously, the full Jacobian is similar to and
Hence a homogeneous fixed point is linearly stable exactly when . Along an orbit on every is circulant, since translation invariance holds at each homogeneous state, so the Fourier basis diagonalizes all layers simultaneously and the -layer propagator of mode is with .
A.6 PROOF OF PROPOSITION 4.6
Proof. Let be an eigenvector of the critical block:
Then is an eigenvector of the full complexified Jacobian. Because the Transformer parameters are real,
so is the conjugate mode with multiplier .
A real perturbation in the corresponding two-dimensional real invariant subspace can be written
After applications of the linearized block,
which is Eq. equation 10.
Now write
Taking the real part explicitly gives
which is Eq. equation 11 with the amplitude written explicitly as . The standing, traveling, feature-rotating, and mixed cases are obtained by specializing , , and the real and imaginary parts of .
A.7 OPEN BOUNDARIES: BULK EQUIVALENCE
Propositions 4.3–4.6 use periodic boundary conditions. The following statement makes precise the sense in which they describe the bulk of a sequence with open boundaries.
Proposition A.2 (Bulk equivalence). Let the positional kernel have finite range , i.e. for , and let and denote the block with open and periodic boundary conditions on tokens. Then for every state and every with , . Consequently, for every and every ,
and the same holds for the linearizations , at any homogeneous state.
Proof. Row of the attention involves only the tokens with , i.e. . For these are the same tokens in both settings, with the same content and positional logits and hence the same softmax normalizer, and no wrap-around index occurs. Since the FFN is token-wise, for such . For , with depends only on the tokens with , all of which satisfy and therefore coincide with by induction. The statement for the linearizations follows by differentiating.
The dispersion relation is therefore a bulk property, exact on a core of tokens. For kernels with exponential tails (ALiBi, Gaussian), truncating at range changes each attention row by at most the tail mass in total variation, and the -step discrepancy is , negligible once is a few decay lengths. Two remarks. First, for reflection-symmetric kernels the open-boundary attention matrix is with symmetric Toeplitz and the diagonal of row normalizers; it is similar to the symmetric matrix , so its spectrum is real and close to the circulant symbol for localized kernels. For directional kernels is a non-normal Toeplitz matrix whose eigenvalues do not converge to the circulant symbol (Trefethen, 1997): the periodic dispersion relation governs finite-depth growth but not the spectrum, which is the distinction between convective and absolute instability in open flows (Chomaz, 2005). Second, the argument applies verbatim to causal attention with a local kernel: the rows are those of the circulant built from the one-sided kernel , whose symbol is complex, so causal masking enters the theory as an extreme directional kernel.
A.8 ROPE ON THE HOMOGENEOUS MANIFOLD
Remark A.3 (Homogeneous manifold, RoPE, LayerNorm and untied weights). (i) Theorems 4.1 and 4.5 hold at every point of : along an orbit only (and, for RoPE, the kernel) varies, and finite-depth growth is governed by , which is what Sec. K.3.1 measures. (ii) RoPE is not an additive bias, but at its logit is : a translation-invariant, generally non-symmetric kernel of size , so Theorem 4.5 applies with an -dependent symbol , invisible at . (iii) LayerNorm is pointwise: with pre-LN the block structure is preserved with DLN() and DLN(), which requires (App. A.9).
Rotary encoding replaces the additive bias by position-dependent rotations of queries and keys: the logit is , where is block-diagonal with rotations at frequencies and . At a homogeneous state the logit equals
where are the th 2-blocks of and and . Hence is translation invariant, the attention at is circulant (on the ring, for ; otherwise up to the boundary effects of App. A.7), and Theorem 4.5 applies with the -dependent symbol , the DFT of ; the proof is unchanged since the values are not rotated. Three properties follow. (i) : at RoPE yields uniform attention and no wavelength selection, which is why the base state must be taken on rather than at the origin. (ii) is reflection symmetric only if all vanish; generically it is directional, is complex, and RoPE supports traveling modes with a single head. (iii) is not monotone: if one block dominates, is a periodic (von Mises) kernel of period , whose DFT is supported on the multiples of with dominating the non-zero frequencies ( the modified Bessel functions); for instance, for and the leading mode of is the intermediate wavelength , set jointly by the rotary frequency and the content . Proposition 4.4 does not apply because its monotonicity hypothesis fails.
A.9 LAYERNORM
Consider the pre-LN block , , with , . Since is token-wise, is homogeneous, so at the values coincide across tokens and the content logits are constant: the two facts used in the proofs of Theorems 4.1 and 4.5. Repeating those proofs with the chain rule gives, for ,
with
where is the orthogonal projector onto . Thus LayerNorm preserves the Fourier block structure and only inserts the rank- factor : it removes the mean and scale directions from the feature dynamics and rescales the coupling by . Two consequences follow. First, LN is singular at , so the base state must be a point of . Second, with pre-LN the increment is bounded and, for large , depends on only through the direction of ; a fixed point of is therefore not guaranteed, the residual norm typically grows along depth, and the transverse coupling decays like , which flattens the dispersion relation with depth (consistent with the reduced effect of positional sharpening under pre-LN in Table 1). Post-LN and normalization-free pointwise substitutes such as DyT (Zhu et al., 2025) renormalize the state, so fixed points on exist and Sec. 5 applies, with the Taylor coefficients of the normalization contributing to .
A.10 LAYER-DEPENDENT WEIGHTS
Nothing in the proofs of Theorems 4.1 and 4.5 uses that the block is the same at every layer. With layer-dependent parameters and translation-invariant PE, each layer is circulant at any homogeneous state, the Fourier basis diagonalizes all layers simultaneously, and the L-layer transverse propagator of mode is with , exactly as along an orbit of the tied block. Weight tying is used only to speak of fixed points in Sec. 5.
B CUBIC EXPANSION AND MINIMAL NONLINEAR CLOSURE
All scalar nonlinear results in Sec. 5 start from the same local expansion of Eq. equation 13. We derive it once, then use the linear sectors of Sec. 4 to determine which additional modes must be retained in each case. This makes the reduced ansatz a consequence of nonlinear mode generation rather than an independent assumption.
For the remainder estimates below we assume is in a neighborhood of the origin; the displayed coefficients depend only on its first three derivatives. Let and
where the are the eigenvalues of . For vectors, denotes component-wise powers and the Hadamard product; denotes the Fourier coefficient of in sector .
Lemma B.1 (Third-order expansion of the scalar Transformer map). For the scalar map in Eq. 13 around x = 0,
where, writing , the first-order term is the linear map of Theorem 4.1, , with , and ; it acts on each Fourier mode through the scalar dispersion relation . The content-attention term is
In particular, the state dependence of attention first enters at cubic order at the zero state.
Proof. Row by row,
Since , expansion of the exponential and row normalizer gives
Multiplying by and summing,
Hence . Taylor expansion of gives Eq. 71. The content logit is quadratic at , so no attention-dependent quadratic term appears.
B.1 FROM LINEAR SECTORS TO THE MINIMAL NONLINEAR ANSATZ
At linear order the Fourier sectors are independent: mode is multiplied by . Nonlinear products couple them by wave-vector addition. For a simple critical pair , write only its linear contribution as
The quadratic term in Lemma B.1 generates only
whereas the direct cubic terms generate and . We call the pair non-resonant if (mod ), so that , and are distinct from (this excludes ), and if , . Under the non-resonance assumptions used below, the mean and second harmonic are linearly stable. To obtain the equation for through cubic order, it is therefore sufficient to retain their response:
where Z is the quadratic amplitude factor. The third harmonic is indeed generated at , but its feedback into the critical sector occurs only beyond cubic order, so it does not need to be included in the minimal closure.
C CLUSTERS: PROOF OF THEOREM 5.1
We first state the full version of Theorem 5.1.
Theorem C.1 (Clusters, full version of Theorem 5.1). Suppose there is no PE, N is even and , so that the homogeneous direction is stable, while the heterogeneous sector loses stability through . For a balanced two-cluster pattern , and , the only quadratic mode generated by us is the homogeneous one. It is bound to the cluster amplitude as
Haken (1996) refers to this phenomenon as “slaving”.
and
If and , then and the branch is stable along the cluster line. Intra-cluster perturbations have multipliers , so the balanced state is stable near threshold only if ; in that case it is stable if (and marginal at cubic order when ).
Without PE,
Thus on and with . The heterogeneous multiplier is , whereas the homogeneous multiplier remains strictly inside the unit circle. The critical sector is degenerate, so we reduce on the balanced two-cluster direction and then check perturbations transverse to it.
Proof. Generated sector and slaving. Let with . Since , the quadratic FFN term generated by the critical direction has no heterogeneous component: it drives only the homogeneous sector. The minimal closure is therefore
For , balanced clusters give the exact attention weights
so . Since , its effect on the attention weights enters only beyond cubic order.
Before separating the two sectors, write the whole cubic update on the minimal subspace. Because
we have, through cubic order,
Hence Lemma B.1 gives the unprojected expression
(88)
The two displayed directions are linearly distinct: the first is the stable homogeneous sector and the second lies in the critical heterogeneous sector. Reading the coefficient of 1 therefore gives
Because while changes only by , the mean follows the slowly varying cluster amplitude:
where the second equality evaluates the stable resolvent at onset.
Projection onto the cluster amplitude. We now read the coefficient of s in Eq. equation 88. The three cubic contributions are visible before the projection: content attention, the local cubic FFN, and the quadratic FFN evaluated on the slaved mean. Using and absorbing the correction gives
(91)
which is Eq. 80. For and , , and the multiplier along the cluster line is .
Transverse stability. Because the entire zero-mean space is critical without PE, retain all of . For a perturbation at , Eq. equation 72 gives , and . Hence
The involution has eigenvalues on this transverse space, so
If , one multiplier exceeds one because . If ,
which is below one for exactly when ; is marginal at cubic order. This proves the theorem.
D STANDING WAVES
The standing-wave case is the cleanest illustration of the general mechanism: one critical Fourier pair quadratically generates a mean and a second harmonic, both of which are linearly stable and therefore slaved.
Proposition D.1 (Standing waves). Assume a reflection-symmetric scalar positional kernel and a simple non-resonant critical pair with
near . Then the critical Fourier coefficient obeys
where, with and ,
(97)
all quantities on the right being evaluated at . If and , then ; the phase is stationary.
Proof. Reflection symmetry makes all and real. Let .
Generated sectors and slaving. The quadratic product of the critical pair generates only the mean and second harmonic. We therefore truncate the invariant graph at quadratic order,
The omitted cubic stable correction contains, in particular, the generated third harmonic, but it cannot feed back into at cubic order. Here all and are real. Substituting this truncation into
Lemma B.1 and collecting equal Fourier sectors gives the complete cubic update before any sector is discarded:
This makes the bookkeeping visible. The 0 and sectors are forced at quadratic order and are stable; receives the cubic feedback that controls saturation; and is generated at cubic order but cannot return to at the same order.
Reading the 0 and lines of Eq. equation 99,
At stationary onset , so
The two denominators are exactly the stable linear resolvents of the generated sectors.
Projection onto the critical mode. We now read the line of Eq. equation 99. In projection notation, its three nonlinear pieces are
Thus the projections are simply a compact way of reading terms that are already explicit in Eq. equation 99. Substituting Eq. equation 101 into the last line and weighting the three pieces by the coefficients in Lemma B.1 gives
which is Eq. equation 97. Hence Eq. equation 96 follows. All coefficients are real, so the phase is stationary. On the nonzero branch the radial multiplier is , while the slaved sectors retain multipliers and strictly inside the unit circle.
E TRAVELING WAVES: PROOF OF THEOREM 5.2
We first state the full version of Theorem 5.2.
Theorem E.1 (Traveling waves, full version of Theorem 5.2). Assume a simple non-resonant critical pair for a directional kernel. Write its scalar dispersion gain as
with at onset and , and no strong resonance: for . If is the critical Fourier coefficient and , then
where the explicit coefficient is derived below, with in Eq. 117. The second harmonic is bound in a frame rotating at . If and , the amplitude saturates at
Thus the real part of controls saturation, while its imaginary part gives the nonlinear correction to the propagation speed.
For a directional kernel, and . At onset let
The generated sectors are the same as for a standing wave, but the second harmonic now rotates twice as fast as the critical mode.
Proof. The reduction is identical to the standing-wave calculation except for the linear phase accumulated by the generated harmonics.
Generated sectors and slaving. Use the quadratic truncation
As above, the omitted cubic stable correction cannot feed back into at cubic order. Now and . The full cubic update of , before projecting onto any Fourier sector, is
(111)
The generated sectors are therefore exactly the same as in the standing case. What changes is their layer-to-layer phase: the mean is stationary, while the coefficient forced by rotates with .
Reading the first and third lines of Eq. equation 111 gives
Hence
Relative to Eq. equation 101, only the second-harmonic resolvent changes: it is evaluated in the frame rotating at twice the critical phase.
Projection onto the critical mode. We now read the line of Eq. equation 111. The same three mechanisms contribute, and in projection notation they are
The complex conjugate on in the second-harmonic feedback is essential: it is the interaction. Using Eq. equation 113 therefore gives, at onset,
slaved mean and second harmonic
Thus
Writing and removes the linear rotation:
Writing then gives
from which Eq. 108 follows. For a joint token–feature mode, projection onto the corresponding left eigenvector gives the same co-rotating normal form; a complex right eigenvector produces the feature-plane rotation described by Eq. equation 11.
F FIXED POINTS AWAY FROM THE ORIGIN
The previous analysis assumes . The same reduction applies around a nonzero homogeneous fixed point , as may arise with biases or LayerNorm. The only qualitative difference is that content attention then contributes already at quadratic order.
Write
with
For each attention row define
and
Proof sketch. For a fixed row i,
so the first term cancels from the row softmax. The perturbed attention row is therefore an exponential tilt of . Expanding its mean in cumulants gives
Expanding the FFN around then yields
with
and
Hence the center-manifold reduction is unchanged: the linear dispersion relation still determines the critical modes, while nonlinear interactions generate stable harmonics that slave to them. Compared with , the new term
adds an attention-mediated quadratic forcing of the slaved modes. For example, for a standing critical pair , the mean and second-harmonic drives become
The same slaving and projection steps therefore give
with modified coefficients. Setting recovers the previous analysis.
G PROOF OF THEOREM 5.3
We first state the full version of Theorem 5.3.
Theorem G.1 (Two-mode competition, full version of Theorem 5.3). In the reflection-symmetric scalar reduction, let two distinct standing modes be near critical, with all other sectors generated up to cubic order strictly stable and with no resonances for . Their amplitudes obey
(121)
where , and the self-coupling and cross-coupling , negative when saturating and suppressing respectively, are computed below. At simultaneous onset the cross-couplings are symmetric to cubic order, , so the moduli obey
In the symmetric case , and with : if , the mixed state is stable and the two modes coexist; if , the two single-mode states are stable and the initial condition selects the winner.
Assume a reflection-symmetric scalar kernel and two distinct standing modes simultaneously near onset, all other sectors being strictly stable. Write
The non-resonance condition of Theorem G.1 ensures that the quadratic products generate only stable sectors
and that no other cubic wave-vector identity folds into or .
Proof. Generated sectors and slaving. Define the critical part
Let and write the stable correction explicitly as
(126)
Before projecting anything, the quadratic product of the two critical pairs is
(127)
Thus the list of stable sectors in the theorem is read directly from the unprojected quadratic term. Through cubic order the full map is
(128)
The two direct cubic terms are supported on
The non-resonance assumption ensures that none of the noncritical entries in this list folds back onto or . Therefore the quadratically generated modes in Eq. equation 126 are the only stable modes that can feed back into a critical equation at cubic order.
At simultaneous standing onset . Reading the coefficients of the quadratically generated sectors in Eq. equation 128 gives
The self-interaction of mode is exactly the standing-wave calculation of Proposition D.1; its cubic coefficient is , so that .
Projection onto one critical mode. Fix . To make the projection transparent, first display the terms of each unprojected polynomial in Eq. equation 128 that lie in sector :
All omitted terms lie in the noncritical cubic sectors listed above. Thus simply extracts the displayed coefficients. In particular, the direct cross pieces are
The mean and mixed harmonics in Eq. equation 132 feed back through the quadratic FFN. Their contribution is
Therefore the cross coefficient is the sum of direct attention, direct cubic FFN, and slaved feedback:
This gives Eq. 121.
Coexistence versus exclusion. At simultaneous onset implies ; because the symbol is even, Eq. equation 139 is symmetric under , so to cubic order. The radial dynamics is therefore the gradient map of Eq. equation 19. In the symmetric case , and with , the mixed state has . Linearizing the radial increment there gives
so coexistence is stable for . A single-mode state, say , has transverse multiplier
so it is stable against invasion by mode 2 exactly when . By symmetry the same holds for the other single-mode state.
H EFFECTIVE POTENTIALS
The potential representation used in the main text follows directly from the cubic amplitude equations.
One mode. For a single critical mode, the amplitude equation in the co-rotating frame has the form
Writing gives, to cubic order,
while produces the nonlinear phase drift. Defining
the radial dynamics becomes
with
For standing waves and clusters the cubic coefficient is real. For traveling waves, the potential describes only the radial dynamics, while the imaginary part of controls the phase velocity.
Two competing modes. For two non-resonant standing modes, the amplitude equations are
At onset, in the reflection-symmetric setting considered here, the two critical modes have the same linear multiplier and the cross-coupling is symmetric,
The radial dynamics can therefore be written as
with
Now consider the symmetric saturating case
with . Then
Its stationary points satisfy
Besides the origin, there are two single-mode states,
and a mixed state
provided .
At either single-mode state, the Hessian of V has eigenvalues
Therefore the single-mode states are minima when
In this regime, cross-suppression is stronger than self-saturation, so coexistence is unstable and either mode can suppress the other: the winner-takes-all regime.
At the mixed state, the Hessian eigenvalues are
Hence the mixed state is a minimum when
corresponding to stable coexistence of the two modes.
The transition occurs at
where the cubic potential becomes degenerate along
Finally, near threshold these minima coincide with the stable fixed points of the cubic amplitude map. Indeed, linearizing
around a stationary point gives
Since the Hessian eigenvalues are , for sufficiently small , a local minimum of has all multipliers inside the unit circle. Thus the potential picture directly reproduces the coexistence and winner-takes-all regimes of the two-mode amplitude equations.
I EXPERIMENTS
I. 1 EFFECTIVE-POTENTIAL FIGURE (FIGURE 2)
Figure 2 plots the effective potentials introduced in Sec. 5. For one critical mode, panels (a) and (b) show
for and , respectively, with and overlaid. The marked extrema illustrate stable and unstable amplitudes below and above the linear threshold. For two critical modes, panels (c) and (d) show schematic surfaces of
with . When , the wells lie between the coordinate axes and both modes coexist; when the ratio is 2.5, the wells lie on the axes and the dynamics is winner-takes-all. These schematic surfaces use signed amplitudes to display the symmetry of the normal form.
I. 2 SCALAR-MODEL PHASE DIAGRAMS (FIGURE 3)
Figure 3 is generated by iterating the scalar map in Eq. equation 13 on a ring of tokens. Except for the cluster series in panel (a), the feed-forward branch is with , so that
Thus the cubic FFN term is destabilizing, and saturation is supplied by the state dependence of attention through , with . We use and plot its magnitude . The cluster series has no PE, and the cubic branch with (and ), so that , and : the heterogeneous sector is critical as in Theorem 5.1, the even part makes the slaved mean , and it is started from a balanced two-cluster seed.
The positional logits have the form
where is the peak positional logit, or PE strength. Panel (a) compares the numerical amplitudes and the square-root and linear growth in prediction obtained in Sec.5 for various representations: wave amplitude , cluster size , the coexisting modes , the angular speed of the traveling wave and finally cluster mean . Panels (b) and (c) use symmetric two-lobe kernels , with in panel (b), and in panel (c). In panel (a), each series sweeps at a fixed kernel so as to set : the standing wave uses (critical mode the minimizer of ); the traveling wave uses the one-sided skewed lobe , with for and for , at , whose Fourier symbol is complex and therefore supports traveling modes; and the coexisting modes use with lobe widths and tuned so that . Panel (d) uses the mixture , where the second lobe has width and .
At each grid point, we iterate the map for 5000 layers. The initial state is a small random perturbation of amplitude . In panel (d), we use two single-mode seeds
After iteration, we Fourier analyse the state. Here R is the modulus of the critical Fourier coefficient, is its phase advance over the final layer, and is the dominant observed wavenumber. In panel (d), the competition outcome is determined from the final amplitudes of modes 4 and 5 for the two initial seeds; bistability means that each seed retains its own mode. Gray regions indicate parameters for which the homogeneous state is linearly stable.
The overlays compare these measurements with the predictions of the amplitude theory. The linear threshold is
(169) where is the Fourier symbol of the positional attention kernel. For a selected standing mode, the predicted saturated amplitude is
For the traveling-wave series of panel (a), the predicted phase advance and wavenumber is
For panel (d), the cubic two-mode theory predicts the single-mode states
as the condition for the i-mode state to suppress mode j.
Near onset, where , the simulated amplitude agrees with to within 3% in median error; over the full unstable region, the median error increases to 14%, as expected from a cubic truncation. The observed wavenumber matches the linear prediction at 96% of unstable grid points. The exceptions occur near transition lines and in the resonant sector , where . Finally, the predicted competition phase agrees with the simulated outcome at 97% of the grid points.
J CONTROLLED EXPERIMENTS: EXPLOITING STRUCTURED REPRESENTATIONS
In this section we give the full construction and evaluation protocol of the controlled experiments described in Section 6.2. The objective is to test consequences of the derived matrix dispersion relation as well as our realized taxonomy. The question we seek to answer is the following: if a task requires a privileged representation, does initializing to amplify the relevant joint token-feature structure provide an optimization advantage? To answer this question, we design three task families, and vary a theoretically identifiable property of the critical mode while holding the architecture, parameter count and maximal linear gain fixed.
J.1 ARCHITECTURE AND GAIN-MATCHED DISPERSION ENGINEERING
All controlled experiments use the following setup. Periodic sequences of tokens, feature width , attention heads and looped interactions of the single weight-tied Transformer block detailed in Section 3. We use relative positional encodings, the standard content-dependent query-key attention as presented, a residual MLP with tanh activation, and no normalization. We initialize the feedforward weights so that the point-wise residual Jacobian of the homogeneous state satisfies:
with . For each engineered "morphology" or structured-representation we calibrate OV matrices and relative positional encodings so that:
and
This ensures both that all selected morphologies have the same gain, and also that the homogeneous mode is not preferred at initialization.
By engineering this dispersion relation, we can controllably select among three morphologies:
• Standing-wave: we place the critical mode at
• Traveling-wave: in this case all morphologies share the same but the leading multiplier is assigned an additional token phase
• Feature-rotating: here we also initialize with but engineer feature operator for a critical mode inducing a feature-rotation
In addition to these engineered initializations we include the following baselines: a gain-matched random morphology with a seed-dependent random critical mode, a standard Transformer initialization with learned relative positional bias, and a standard initialization with sinusoidal absolute positional encoding.
J.2 TASK FAMILIES
Here we describe the 3 task families designed to target a specified morphology.
T1: periodic infilling (wavelength) : this task consists in infilling a scalar periodic signal whose dominant mode is . The signal is perturbed by random phases and amplitude, together with weak nuisance and components. The signal is quantized into 8 levels, giving 8 class labels. In addition to the signal perturbation, a block of 12 tokens is removed, and an additional 25 % of the token are randomly masked. The masked block is longer than one period for all carrier frequencies, which prevents the task from being solved by mere copying.
T2: shift (propagation direction) : input contains a dominant carrier frequency and weak nuisance modes . These signals are again quantized into 8 classes. The output is the input sequence shifted by , 25% of the tokens are masked. A solution to the task would be an accumulated phase shift of
T3: rotating-wave infilling (feature rotation) : at token j, the input lies in a 2D feature-plane with angle: , with , and is again quantized into 8 angular states giving 8 labels. We add phase perturbation, mask a block of 12 tokens and randomly mask 25 % of the tokens. The target simply shifts the feature vectors by 8th turn with which would correspond to a rotation in feature space of:
The model must then recreate the carrier across token space while ensuring the correct rotation in feature space.
J.3 TRAINING PROTOCOL AND METRICS
Optimization uses AdamW, with learning rate , weight decay , gradient clipping at norm 1 and batch size of 64. Each run lasts 300 gradient steps. For the training-efficiency analysis we employ training data of size:
J.4 RESULTS
Figure 6 reports the complete engineered-arm/task grids. The predicted diagonal is visible on all three axes. Wavelength matching produces an especially sharp dissociation: the matched standing wave arms achieve mean early AUC between 0.619 and 0.626, whereas the frozen strongest mismatched arms are between 0.132 and 0.134. Propagation direction produces a smaller but consistent phase specificity: matched arms obtain early AUC 0.559–0.582, compared with 0.362–0.391 for the frozen mismatches. Feature-rotation sense is also resolved: matched arms obtain early AUC approximately 0.853–0.854, with matched-mismatched differences between 0.061 and 0.132 depending on rotation magnitude. Across all 12 tasks, every paired matched–mismatched comparison has the same-sign ordering for all 12 final seeds.

Figure 6: Extended version of Fig. 4. Heatmap of AUC of learning curves for each (task, initialization) pair; color gives the z-scores. Higher scores in the diagonal support the dynamical prior induced by mode criticality.
(a) data efficiency

(b) learning curves, n = 256
(c) theory predicts speed
Figure 7: Learning speed and data efficiency on T1: held-out cross-entropy versus training-set size (left) and learning curves (right) for the matched, mismatched and gain-matched random initializations.
J.5 LEARNING SPEED AND DATA EFFICIENCY
Figure 7 gives complementary views of the effect. For T1, the matched morphology improves held-out cross-entropy relative to the gain-matched random and mismatched structured controls across the training-set-size sweep, with the largest differences in the low-data regime. The corresponding learning curves show that most of the separation occurs early, motivating as the primary statistic. The standard relative-PE baseline is an intentionally less controlled practitioner baseline, it is not gain matched and does not satisfy the fixed, construction.
K VISION EXPERIMENTS
We next test whether the same-dispersion relation based design principle applies in a less controlled image-classification setting. The goal is to alter the initialization of the 2-dimensional dispersion landscape of a ConViT-style attention block and test whether favoring heterogeneous spatial modes changes optimization on CIFAR-10.
K.1 WEIGHT-TIED CONVIT ARCHITECTURE
To stay in line with our theory, we use a weight-tied ConViT, in which one Transformer block is applied repeatedly across depth. A patch embedding maps a image to a token grid ( ). The embedding dimension is , we employ heads and have depth . Unless otherwise stated, we use a gated-positional self-attention (GPSA) as described in (d'Ascoli et al., 2021), and a periodic relative encoding to stay firmly in line with our theory. The architecture has no class token and no absolute positional embedding. Classification uses mean pooling followed by LayerNorm and a linear layer.
K.2 INITIALIZATION
We compare seven initializations.
• default: uses standard small random weights and disables structured positional locality.
• +I, -I: these variants use a Mimetic-style (Trockman & Kolter, 2023) initialization for QK and initialize the full OV operator, from a random matrix plus a positive or negative identity-biased component. It has the form
• +pos: these variants additionally initialize the GPSA positional logits with a localized ConViT positional encoding. Variants such as combine negative mimetic with a localized positional kernel.
These initialization schemes allow us to separate the three ingredients suggested by the theory, namely the interplay of OV geometry and attention positional structure in selecting relevant heterogeneous structures.
K.3 TWO-DIMENSIONAL DISPERSION RELATION
For a homogeneous embedded token state , our architecture allows exact computation of the matrix dispersion relation. For each positional frequency , we have:
where is the learned attention residual scale. In this particular case, and given our initialization this is analytically tractable. Figure 5 visualizes this 2d dispersion for various initialization-positional structure combination. As predicted by the theory, without positional encoding the dispersion is nearly flat or dominated by the homogeneous mode. Local positional encoding makes the dispersion relation frequency dependent. We see the interplay with OV geometry, negative-identity biased OV amplifies heterogeneous segments while positive-identity biased OV amplifies the homogeneous mode. We believe this helps rationalize the empirical observations that led to this initialization in the original work Trockman & Kolter (2023)
K.3.1 FINITE-DEPTH VALIDATION OF THE DISPERSION PREDICTION
Although the dispersion relation is a one-step local quantity, the tied network applies the same block times. We therefore test whether it predicts finite-depth perturbation growth. For each Fourier sector , we perturb the homogeneous state by along the leading eigenvector of and measure the perturbation norm after 12 tied steps. We compare it with the exact linear prediction
and the initialization-time proxy .
As shown in Fig. 9, the measured growth agrees with the exact linear evolution to below relative error for pos, pos, and engineered initialization. Moreover, closely predicts the relative growth across Fourier sectors, with Pearson correlations 0.9984, 0.9993, and 0.9999, respectively. Thus, the initialization-time dispersion map accurately predicts which spatial modes are preferentially amplified through the full tied depth in the local regime.

Figure 8: Visualizations of the 2D dispersion relation for various combinations of positional structure and OV geometry

Figure 9: Comparison of linear theory growth prediction vs actual deviation from homogeneous state from various positional encoding and OV geometry combinations
K.4 CIFAR-10 TRAINING PROTOCOL
We use CIFAR-10 with a fixed class-balanced 45k/5k train/validation split and the standard 10k test set. Training uses random resized crops, horizontal flips, RandAugment, color jitter, random erasing, and standard normalization; full-data results are averaged over three seeds.
Models are trained for 100 full-data-equivalent epochs with AdamW (batch size 512, learning rate , weight decay ), five epochs of warmup followed by cosine decay, and gradient clipping at norm 1. Biases, positional parameters, GPSA gates, and residual scales are exempt from weight decay. For data-efficiency experiments, we keep the number of optimization steps fixed to the full-data schedule across dataset fractions.
We report final test accuracy, test-accuracy AUC, and the first epoch reaching 90% test accuracy; seeds that do not reach the threshold are excluded from and the number of successful seeds is reported.

Figure 10: CIFAR-10 optimization under dispersion-aware initialization. Test accuracy (left), test-accuracy AUC (middle), and epoch reaching 90% test accuracy (right), over three seeds. Localized positional attention combined with negative OV geometry accelerates training, with the engineered sharp-pos initialization performing best overall.

Figure 11: Data efficiency on CIFAR-10. Final test accuracy (left) and test-accuracy AUC (right) for different training-set fractions. Error bars show one standard deviation across three seeds, except the 5% default baseline (n = 2). The engineered initialization remains strongest across the sweep.
K.4.1 OPTIMIZATION RESULTS
Figure 10 summarizes the full-data results. OV sign alone has little effect without positional structure, whereas combining localized attention with negative OV geometry substantially accelerates optimization. Sharpening the positional kernel further improves learning speed, with a smaller improvement in final accuracy.
K.4.2 DATA EFFICIENCY
We repeat the comparison using 5%–100% of the training set while keeping the optimization-step budget fixed. As shown in Fig. 11, the engineered initialization has the highest mean final accuracy and AUC at every evaluated fraction, with the largest gains over the unstructured default in the low-and intermediate-data regimes.
K.4.3 TRAINING DIAGNOSTICS AND DISPERSION EVOLUTION
Figure 12 shows that the positional variants maintain heterogeneous token representations while both the attention residual scale and GPSA positional gate adapt during training. Thus, the engineered initialization biases the initial dynamics without freezing a prescribed attention operator.
We also recompute the two-dimensional dispersion relation from checkpoints (Fig. 13). Holding negative OV geometry fixed, the sharper positional kernel produces a stronger initial heterogeneous-mode bias, but both spectra subsequently reorganize. Dispersion engineering therefore acts as an initial preference rather than a persistent spectral constraint.

Figure 12: Training diagnostics for the tied ConViT. Final-depth token heterogeneity (left), learned attention residual scale (middle), and mean GPSA positional gate (right). Representations remain non-collapsed while the attention parameters adapt throughout training.

engineered sharp pos
Figure 13: Evolution of the spatial dispersion relation. at epochs 0, 1, 5, 25, and 100 for one seed; stars denote the maximally amplified Fourier sector. Both initial spectra evolve substantially during training.
K.4.4 ROBUSTNESS AND SCOPE
Table 1 summarizes two architectural ablations. The benefit of combining positional locality with negative OV geometry persists with pre-LN, although the additional gain from positional sharpening does not. In contrast, injecting the positional bias inside the content softmax (PSA) is markedly less stable at the same initialization scale, with several runs diverging. Thus, the effect is robust to normalization but depends on how positional structure enters attention.
L A PATTERN-FORMATION PRIMER: THE SWIFT–HOHENBERG MODEL
This appendix illustrates, on the canonical pattern-forming Swift–Hohenberg model (Cross & Greenside, 2009), the two objects used in the main text: the dispersion relation and the amplitude equation. As in Eq. 3, the model couples a spatial propagation operator to local pointwise dynamics:
where and . The homogeneous state is reminiscent of the collapsed Transformer state. To probe its stability, consider a perturbation , where encodes spatial scale and its growth rate. Linearizing Eq. 181 gives the dispersion relation
Its sign determines whether a perturbation grows or decays, while its shape determines which mode is preferentially amplified: here the critical mode is . Thus, the dispersion relation simultaneously characterizes the loss of stability of the homogeneous state and the structure that emerges from it, as illustrated in Fig. 14.
Linear analysis, however, does not determine the fate of the emerging mode. Near onset, the solution is dominated by , and nonlinear effects govern whether its amplitude diverges or saturates. Expanding Eq. 181 to the third order and projecting onto the critical mode yields reduced amplitude dynamics of the form
| Initialization | Final acc. (%) | AUC (%) | |
|---|---|---|---|
| GPSA, no normalization | |||
| default + pos | |||
| GPSA, pre-LN | |||
| default + pos | - | ||
| - | |||
| PSA, no normalization | |||
| - | |||
| - | |||
Table 1: Normalization and attention-form ablations. Parentheses indicate the number of contributing seeds when fewer than three runs are available; for , they indicate the number of seeds reaching 90% accuracy within 100 epochs.


Figure 14: The Swift-Hohenberg illustration: the dispersion relation (a) defines the emergent perturbations, the amplitude potential in (b) dictates their stability, leading to the apparition of patterns in (c).
The dispersion relation controls the stability of the homogeneous state, while the nonlinear coefficient controls the stabilization of the emerging structure; for , the growing mode saturates at finite amplitude. We see in Fig. 14(b) the impact of , which can be viewed as engineering the stability landscape of the emergent pattern.
This example contains the two ingredients used in the main text: the dispersion relation determines when the homogeneous state loses stability and which structures become accessible, while nonlinearities determine their subsequent fate. Crucially, in this example the propagation operator diagonalizes along Fourier modes, reducing the stability analysis to independent spatial scales. In Transformers, positional encoding and multi-head attention play the analogous role (Theorem 4.5), giving rise to a matrix-valued dispersion relation.