Two-Clustering Regime of Token Dynamics in Causal Attention

Trinh Tien Nguyen, Duy-Tung Pham, Hoang-Son Do, Tan Minh Nguyen, Thieu VoNeurIPS 2026

TL;DR

Ever wonder what actually happens to token embeddings as they pass through hundreds of Transformer layers? Treating tokens like interacting particles in a physical system, this paper proves that under causal attention, high-dimensional token trajectories inevitably collapse onto a 2D plane and settle into two opposing clusters dictated by the Value ($V$) matrix. Aside from cracking an open mathematical conjecture, this gives us a crystal-clear theoretical reason why fine-tuning the $V$ matrix in LLMs is so much more effective than just tweaking Queries and Keys.

What Problem Does This Paper Address?

Modern autoregressive LLMs (like GPT, Llama, and Mistral) rely on causal attention, where each token can only look backward at preceding tokens. Researchers often study deep Transformers by taking their "continuous-time limit"—viewing layers as time steps and tokens as particles flowing on a high-dimensional unit sphere (thanks to RMSNorm).

In full (bidirectional) attention, tokens behave nicely like a gradient flow and clump into clusters. Causal attention is much messier because the interactions are asymmetric (token 5 cares about token 1, token 1 doesn't care about token 5). In 2024, researchers observed empirically—and conjectured—that tokens in deep causal attention eventually split into two opposing clusters ($\pm \xi_{\max}$), aligned with the top eigenvector of the Value ($V$) matrix. However, standard mathematical tools (like Lyapunov functions) completely break down when tokens aren't confined to a single hemisphere or when model weights change across layers ("time-dependent" regimes). Until now, nobody could rigorously prove why or when this two-cluster split happens.

Methods

To analyze a simplified, FFN-free causal self-attention layer with residual connections and RMSNorm, the authors introduce a novel mathematical toolkit:

  • Hierarchical Suppression & Error-to-Transverse Ratio: Using induction along the sequence of tokens, they separate a token's directional movement from its magnitude. They define a ratio comparing noise from earlier tokens to the remaining energy in non-dominant directions, proving that coordinates compete like an "expert-selection process" until almost all dimensions are wiped out.
  • "Instability-Within-the-Flow" (The Moving Hilltop): Because layer weights $Q(t), K(t), V(t)$ change with depth $t$, the system has no static equilibrium. The authors model token evolution like a small ball rolling on a hill whose summit $r(t)$ is actively moving. If the hilltop slows down across deeper layers, the ball cannot stay balanced; it rolls off to one of two extremal poles ($\pm 1$), corresponding to the two opposing clusters.

Datasets

Because this is primarily a theoretical dynamical systems paper, the authors test their math mostly on synthetic simulations—tracking randomly initialized tokens on unit spheres across 2D, 3D, 32D, and 128D spaces through 200 to 5,000 layers.

To connect theory to real-world LLMs, they also replicate fine-tuning ablation results (from prior LoRA literature) on two standard NLP benchmarks: WikiSQL and MultiNLI. No new datasets are introduced.

Key Insights and Ideas

  • Rigorous Dimensionality Reduction: Even if your embedding space has 128 or 4,096 dimensions, long-term causal token dynamics collapse onto a 2D coordinate plane. Every coordinate except the dominant direction and a single surviving "transverse" competitor gets suppressed to zero.
  • The "Déjà Vu" Recurrence: Once earlier tokens settle into their clusters, a trailing token is forced to repeatedly re-align with the dominant direction $\pm\xi_{\max}$ as depth approaches infinity—meaning dominant past information isn't forgotten, it echoes endlessly.
  • Positivity is Non-Negotiable: The famous two-cluster conjecture only holds if the largest eigenvalue of the $V$ matrix is strictly positive ($\lambda_{\max} > 0$). If $\lambda_{\max} \le 0$, the authors prove the conjecture is false, and tokens can get trapped elsewhere.
  • Why $V$ Rules Fine-Tuning: Because the attractors $\pm\xi_{\max}$ are eigenvectors of $V$, the Value matrix literally sets the destination for every token in the sequence. $Q$ and $K$ change the speed and path (the moving hilltop), but $V$ defines the poles.

Key Results

  • Theoretical Proofs: The authors prove Conjecture 1.1 from Karagodin et al. (2024) and extend it to time-varying weights, showing that aside from at most one razor's-edge trajectory (starting right on the moving hilltop), almost all token initializations converge to $\pm\xi_{\max}$.
  • GQA Simulations: In a 5,000-layer simulation using Grouped-Query Attention (GQA) (used in Llama 3 and Mistral) with 64 tokens, 4 query heads, and 1 KV head, randomly scattered tokens cleanly snap into two tight, opposing clusters on the circle.
  • LLM Fine-Tuning Validation: Replicating GPT-3 175B LoRA experiments (keeping trainable parameters fixed at 18M), adapting $Q$ and $K$ together yields 71.4% validation accuracy on WikiSQL. Adapting $V$ alone jumps to 73.0%, and adapting $Q, V$ reaches 73.7% (with a similar edge of 91.3% for $Q,V$ vs. 90.8% for $K$ alone on MultiNLI), confirming $V$'s outsized role in steering representations.

Limitations and Future Work

The authors are admirably upfront about the gap between tractable math and messy reality (Remark 4.4):

  • Architectural Simplifications: The proofs omit feed-forward networks (FFNs), which are massive components of real Transformers.
  • Strict Matrix Assumptions: To make the proofs work, the authors assume $V(t)$ is symmetric with time-invariant eigenvectors, and that the query-key product $Q^\top K(t)$ follows a specific block-matrix structure. Real pre-trained Transformers rarely obey these exact symmetries.

Relaxing these structural constraints on $V, Q,$ and $K$—and bringing FFNs into this "moving hilltop" dynamical framework—remains a wide-open frontier.

Summary updated

Abstract

We partially resolve Conjecture 1 of *Karagodin et al., Clustering in Causal Attention Masking (NeurIPS 2024)* and extend it to time-dependent parameter regimes. The conjecture predicts that causal attention dynamics converge to two clusters aligned with the eigenvectors associated with the largest eigenvalue $\lambda_{\max}$ of the value transformation. We prove that this behavior holds when $\lambda_{\max}>0$ and is generally false when $\lambda_{\max}\le0$. The resulting two-cluster regime is common in practice and substantially more challenging than the classical single-cluster setting studied previously. A central contribution of our work is the identification of a rigorous dimension deduction phenomenon: despite evolving in a high-dimensional embedding space, token trajectories collapse onto a two-dimensional structure governed by a small number of dominant directions. Building on this insight, we introduce a new analytical framework--instability within the flow--inspired by instability phenomena in physical systems. This framework enables the analysis of steady-regime behavior in non-monotone, non-autonomous attention dynamics. Our theoretical findings are illustrated through simulations and experimental studies using Group Query Attention (GQA) layers.
BibTeX
@inproceedings{nguyen2026two,
  author = {Trinh Tien Nguyen and Duy-Tung Pham and Hoang-Son Do and Tan Minh Nguyen and Thieu Vo},
  title = {{Two-Clustering Regime of Token Dynamics in Causal Attention}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=APlaj5UkCk},
}
Figure