Periodic Four-Stage Cycle in Transformer Attention Training Revealed by Gradient-Flow Analysis
Problem: The Monotonic Convergence Assumption
The standard understanding of Transformer attention training rests on a monotonic convergence assumption:
This assumption is implicit in every loss curve, early-stopping mechanism, and learning-rate schedule, yet it has never been rigorously verified — until the work of Chen et al. (2026).
Through gradient-flow analysis, the paper proves that attention learning follows a periodic four-stage cycle rather than a monotonic convergence trajectory. The finding is validated on three very different datasets: synthetic Markov data, WikiText, and TinyStories.
Mathematical Framework
The methodology is built on continuous-time gradient flow:
where \(\theta = (W_E, W_P, W_A)\) denotes embedding, projection, and attention parameters. Linearizing around a critical point \(\theta^*\) (where \(\nabla \mathcal{L}(\theta^*) = 0\)):
where \(H(\theta^*) = \nabla^2 \mathcal{L}(\theta^*)\) is the Hessian. Analyzing its eigenvalue structure determines the stability conditions and transition mechanisms of each stage.
> Gradient flow vs. discrete optimization: Gradient flow is an idealized description in the \(\eta \to 0\) limit. The paper's argument relies on the standard assumption that for sufficiently small \(\eta\), discrete trajectories are topologically equivalent to the continuous flow. Adaptive optimizers like Adam introduce momentum and second-moment estimates that may alter local dynamics, though the large-scale phase-space structure is preserved.
The Four Stages
1. Condensation: Rank-One Collapse of Embeddings
Early in training, embedding and projection matrices rapidly converge to low-rank structure:
meaning the parameter space is compressed to a one-dimensional subspace (\(W_E \approx u_E v_E^T\), \(W_P \approx u_P v_P^T\)). During this stage, gradients on attention parameters \(W_A\) are nearly zero ("frozen") because the low-rank embeddings do not yet provide enough signal differentiation to drive attention learning. On synthetic Markov data, this stage lasts roughly the first 10–20% of training steps.
2. Focus: Frequency-Driven Attention Bias
Once embedding/projection errors drop sufficiently, attention parameters receive effective gradient signal. Because high-frequency tokens dominate the data, attention weights become systematically biased toward them:
In Markov data, the stationary distribution \(\pi\) of the transition matrix \(P\) determines token frequency; high-frequency tokens' key vectors are updated more often, systematically increasing alignment with queries. Attention maps become "spiked" — a few high-frequency tokens capture most of the attention mass. This frequency-driven focusing appears on Markov data, WikiText (function words like "the"), and TinyStories (high-frequency narrative patterns), suggesting it is a universal feature of attention training.
3. Dilution: Higher-Order Coupling and Mass Redistribution
Continued attention evolution back-propagates through the gradient chain and perturbs the embedding space:
When changes in \(A\) accumulate past a critical threshold, the embedding matrix undergoes mass redistribution: energy concentrated along high-frequency token directions disperses into a broader subspace. Attention peaks "melt," and the weight distribution flattens. This is not an active "choice" by attention parameters but an emergent property of the coupled embedding-attention system.
4. Asymmetry Lifting: Symmetry Breaking and Cycle Restart
At degenerate critical points, low-frequency token embeddings are symmetric — they "look identical" to the model. Mathematically, the Hessian has zero eigenvalues:
Tiny perturbations during training (numerical error, gradient noise, statistical fluctuations) break this symmetry. Once a low-frequency token gains a slight "advantage," a positive-feedback mechanism amplifies it:
The model enters a new embedding direction, attention parameters effectively re-initialize, and a new Condensation–Focus–Dilution cycle begins.
Experimental Validation
| Dataset | Type | Controllability | Stages observed | Cycle clarity | |:--------|:-----|:----------------|:----------------|:--------------| | Synthetic Markov data | Artificial | Fully controllable | All four stages | High, sharp boundaries | | WikiText | Real Wikipedia | Medium | All four stages identifiable | Medium, overlapping | | TinyStories | Simplified narrative | Medium | All four stages identifiable | Medium, Focus more prominent |
On synthetic data the four stages have clearly distinguishable temporal boundaries; on natural language data stages overlap, but the core dynamical pattern is consistent.
The Blind Spot of Loss Monitoring
Standard monitoring assumes global loss decrease implies monotonic optimization of all components — an implication that does not hold mathematically. Global loss is an aggregate over layers, heads, and tokens; softmax, MLP, and residual connections smooth local oscillations, making periodic attention-level dynamics invisible.
| Monitoring level | Observability | Standard practice | Information content | |:-----------------|:--------------|:------------------|:--------------------| | Global loss | High | Standard | Aggregate trend, masks local dynamics | | Layer-wise loss | Medium | Occasional | Partially recovers layer differences | | Head-wise attention entropy | Low | Non-standard | Can detect Focus/Dilution transitions | | Per-token attention weights | Very low | Non-standard | Can detect frequency-driven bias |
> Attention entropy as a detection signal: Defined as \(H(A) = -\sum_j A_{ij} \log A_{ij}\), entropy is low during Focus (attention concentrated) and rises during Dilution (attention dispersed). Tracking its time evolution offers a simple periodicity detector; the paper does not propose this metric explicitly, but it follows directly from the analysis.
Limitations and Outlook
- Single-layer assumption: The rigorous theory holds only for single-layer Transformers on Markov data. Multi-layer models introduce inter-layer coupling, potential information bottlenecks, and possibly emergent dynamics (chaos, synchronization, phase locking).
- Discrete optimizers: Gradient flow assumes \(\eta \to 0\); Adam's momentum, adaptive learning rates, and discrete jumps may alter apparent periods or skip fine structure near critical points.
- Paths forward: multi-layer extension, direct discrete analysis of Adam/SGD, lightweight online detection tools, and intervention strategies (data augmentation or learning-rate adjustment targeting the Dilution stage).
Conclusion
This work advances the understanding of Transformer attention training from "monotonic convergence" to "periodic dynamics." The contribution is not a new technique but the revelation of a basic fact hidden behind a default assumption. If attention learns through cyclic loops, all training infrastructure designed around monotonic convergence — early stopping, learning-rate schedules, convergence diagnostics — needs re-evaluation.
Paper Details
| Item | Content | |:-----|:--------| | Title | Focus and Dilution: The Multi-stage Learning Process of Attention | | Authors | Zheng-An Chen, Pengxiao Lin, Zhi-Qin John Xu, Tao Luo | | arXiv | 2605.01199 | | Published | May 2, 2026 | | Category | cs.LG | | Method | Gradient-flow analysis, stage linearization at critical points | | Data | Synthetic Markov data, WikiText, TinyStories | | Key finding | Attention learning follows a periodic four-stage cycle: Condensation → Focus → Dilution → Asymmetry Lifting |