Attention Can Hold Tokens Apart: Stable Clusters Beyond the Value Spectrum in Causal Self-Attention

Jinran YiarXiv 2026

TL;DR

Mathematicians studying deep transformers generally expect all token representations to eventually collapse onto the top eigenvector of the value matrix—or its exact opposite—like iron filings snapping to the poles of a magnet. This paper proves that the query–key attention mechanism can actually overpower that magnetic pull, stably holding tokens in completely unexpected, off-axis directions and even forming three distinct clusters. It flips our theoretical intuition: where tokens end up isn't dictated by the value matrix alone, but by a delicate tug-of-war with query–key geometry.

What Problem Does This Paper Address?

As tokens pass through layer after layer of pure self-attention, their representations tend to become increasingly alike, eventually collapsing into clusters. To understand this mathematically, researchers model tokens as particles moving on the surface of a unit sphere, where network depth acts like time.

In generative models using causal attention, a token only looks at itself and preceding tokens. This makes the very first token special: attending only to itself, it inexorably marches toward the leading eigenvector ($\xi$) of the value matrix ($V$), acting as a stationary anchor. Because of this, a prominent conjecture (by Karagodin et al., 2024) proposed a clean rule: when $V$ has distinct positive eigenvalues, every subsequent token is eventually dragged onto that same axis, settling into at most two clusters ($\xi$ and $-\xi$). This paper asks a plain, foundational question: does the value matrix spectrum truly dictate where causally masked tokens cluster, and how many clusters can survive?

Methods

The author tackles this using continuous-time dynamical systems, modeling causal self-attention as a smooth flow on a sphere (and verifying that the findings carry over to discrete-time normalized residual updates).

Because of causal masking, token $i$ only cares about tokens $1$ through $i$. This gives the system's Jacobian—the matrix governing local stability—a neat block lower-triangular structure, allowing token stability to be analyzed sequentially. Using this property, the author:

  1. Constructs explicit counterexamples of query–key score matrices ($A = \beta Q^\top K$) and value matrices ($V$) and proves their stability by showing all Jacobian eigenvalues are strictly negative (creating "hyperbolic sinks" that trap nearby trajectories).
  2. Derives an exact 2D phase law by freezing the first token at its destination (the "anchored flow") and reducing the second token's angular velocity to a single scalar equation.
  3. Analyzes higher-dimensional escape routes using monotone coordinates and Lyapunov-like contractions when the top eigenvalue of $V$ is repeated.

Datasets

Not discussed in the paper. (This is a purely theoretical work; the author only uses synthetic, uniformly random initializations on unit spheres for diagnostic numerical simulations to illustrate the size of attraction basins.)

Key Insights and Ideas

  • A Tug-of-War on the Sphere: A later token feels two competing forces: its predecessors pull it toward the anchor $\xi$, while its own value dynamics push it toward the nearer pole. Because attention weights depend on where the token currently sits, a clever query–key geometry can crank up self-attention whenever the token drifts away from the pole, balancing the two pulls stably at an off-axis point.
  • An Exact Phase Transition: For two tokens in 2D with diagonal score matrix $\text{diag}(a,b)$, off-axis attractors appear if and only if the score gap satisfies $b - a > (1+a)/2$. This yields a sharp uniform threshold of $1/2$, explaining why previous proofs of two-cluster collapse required strict upper bounds on query–key score gaps.
Classification of off-axis equilibria and attractors across parameter regimes in the 2D anchored flow.
  • Breaking the Two-Cluster Limit: The value spectrum doesn't cap the number of clusters, either. With three tokens in a 2D plane, attention scores can hold all three in completely different directions—pairwise at least $90^\circ$ apart—even when $V$ only has two eigenvalues.
  • Extra Dimensions Destroy the Trap: What happens if the top eigenvalue of $V$ is repeated (forming an eigenspace $L$ of dimension $\ge 2$)? The off-axis traps vanish! The extra dimensions give trapped tokens an "escape route" to slide around inside $L$ without fighting the value dynamics, destabilizing every off-axis equilibrium into a saddle point and restoring single-cluster consensus.

Key Results

  • Disproving Conjecture 1 (Simple Top Eigenvalue): For $V = \text{diag}(8,3)$, the author constructs explicit positive-definite score matrices (with invertible, tied queries and keys $Q=K$) where the second token stably converges to $(-\frac{4}{5}, \frac{3}{5})$ instead of $(\pm 1, 0)$. This isn't a zero-probability fluke: in 20,000 random 2-token simulations, 38.05% of runs landed in off-axis clusters. This persists across any dimension $d \ge 2$, sequence length $n \ge 2$, and discrete step size $\eta > 0$.
  • Sharp Planar Counting: For any $2 \times 2$ score matrix, a second token has at most 6 equilibria in total and at most 3 attracting destinations—a bound shown to be exact.
  • Three-Cluster Sink: In a 3-token planar setup, simulations from 20,000 random initializations converged to three distinct directions 20.0% of the time.
  • Partially Proving Conjecture 2 (Repeated Top Eigenvalue): When the top eigenvalue has multiplicity $m \ge 2$, every non-consensus equilibrium is unstable. Almost every initialization collapses to a single cluster at an explicit exponential rate in two regimes: when token count $n \le m$, or for any $n$ when the complementary subspace $L^\perp$ is one-dimensional.

Limitations and Future Work

The author is refreshingly candid about what these results do not say. The model analyzes an idealized toy transformer: a single attention head, weights shared across infinitely many layers, spherical normalization instead of standard LayerNorm, no MLPs, and no positional encodings (like RoPE). Real-world LLMs violate all of these assumptions, so you shouldn't use these equations to count clusters in Llama-3. Instead, this clarifies the foundational physics of the mathematical sandbox used to study attention. Finally, while single-cluster consensus for repeated top eigenvalues is proved in two specific regimes, proving it for arbitrary sequence lengths and arbitrary complement dimensions remains an open problem.

Summary updated

BibTeX
@misc{yi2026attention,
  author = {Jinran Yi},
  title = {{Attention Can Hold Tokens Apart: Stable Clusters Beyond the Value Spectrum in Causal Self-Attention}},
  year = {2026},
  eprint = {2611.39030},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39030},
}
Figure