TL;DR
When a standard language model "thinks" step-by-step in text, it is secretly doing something much more geometric under the hood: it is descending a continuous error landscape, much like gradient descent. By compressing the model's growing key-value (KV) cache into a fixed-size latent space, this paper shows that specific words act as steering wheels—some exploiting the downward slope toward an answer, others climbing uphill to escape bad local minima—and that we can exploit this geometry at inference time to get more diverse, accurate answers.
What Problem Does This Paper Address?
There are currently two competing stories for how Large Language Models (LLMs) reason. One story is discrete: the model generates a Chain-of-Thought (CoT), token by token. The other is continuous: purpose-built recurrent models iteratively refine a hidden state, settling into low-energy "attractor basins" like a ball rolling to the bottom of a valley.
Meanwhile, a growing body of skepticism suggests that CoT tokens aren't faithful transcripts of the model's internal algorithm anyway. So what is an off-the-shelf, unmodified token-based LLM actually doing in continuous space while it reasons? Until now, nobody had directly observed these dynamics, largely because a transformer's true state—its KV cache—grows with every token and is far too high-dimensional to analyze directly.
Methods
To make the invisible visible, the authors formalize CoT reasoning as a dynamical system over the model's KV-cache prefix $S_t$. Because $S_t$ is a true Markov state (everything the model will do next depends only on $S_t$), it captures the complete computational state.
To tame its growing size, they train a KV-cache Variational Autoencoder (VAE)—a 6-layer bidirectional Transformer encoder and decoder—to compress $S_t$ into a fixed 1,024-dimensional coordinate $z_t$. Crucially, the VAE isn't just trained to reconstruct the past cache; it also includes a continuation loss that forces $z_t$ to preserve whatever information the model needs to generate its future reasoning steps.
With $z_t$ in hand, the authors map out two fields across thousands of reasoning trajectories:
- The Error Field $E(S_t)$: How often the model gets the final answer wrong if forced to stop thinking right at step $t$.
- The Flow Field: The speed and direction the model's latent state actually moves from step to step.
They then run causal interventions: splicing 64 off-policy tokens into a trace to see how it recovers, and perturbing the initial KV cache in 8 orthogonal directions (Latent Seeds) to mimic random restarts in gradient descent.
Datasets
The authors study three reasoning models—DeepSeek-R1-Distill-Qwen-1.5B, Qwen3-4B, and Llama-3.1-Nemotron-Nano-4B—training a separate KV-cache VAE for each on over 1 million math traces (including DeepMath-103K). They evaluate dynamics on 32-problem subsets of MATH-500, GPQA-Diamond, and StateBench (a state-tracking task), plus AMC23 and GSM8K for the latent-seed experiments. For reinforcement learning (RL) analysis, they train Qwen3-4B with GRPO on 2,048 problems from the MATH training split.
Key Insights and Ideas
- Token-based LLMs implicitly descend error gradients: Even without explicit energy-based training, the latent trajectory of a standard LLM aligns with the downward slope of the error field ($-\nabla E$) significantly beyond chance.
- Words act as an exploration–exploitation controller: The model's own vocabulary steers the descent. Committing phrases like "hence", "therefore", and "the answer" push the state downhill to exploit a solution. Backtracking phrases like "think again" or "made a mistake" push it uphill against the gradient to escape local minima and explore. Inserting these phrases at random sentence starts causally reproduces the same directional shifts.
- Trajectories are resilient to noise, but not to wrong content: If you inject high-temperature or content-free tokens from the model's own vocabulary, the latent state quickly forgets the perturbation and resumes its descent. However, injecting reasoning from a different problem or out-of-distribution random tokens permanently corrupts the state.
- The flow doesn't slow down at the bottom: Unlike true physical energy descent, the latent state does not slow down when it reaches a low-error region. Instead, its speed slows down purely as a function of token depth ($t$), which neatly explains why reasoning models notoriously "overthink" and keep generating even after they've found the right answer.
- RL reshapes the landscape: Post-training with RL (GRPO) reduces the number of attractor basins, funnels more trajectories into valid basins, and shortens the path needed to get there.
Key Results
- Depth, not error, governs speed: Depth alone predicts log latent speed out-of-sample with $R^2 = 0.80\text{--}0.91$, while adding the error $E$ yields virtually no improvement ($\Delta R^2 \le 0.001$).
- Latent Seeds boost diversity and
pass@8: Perturbing the initial state $S_0$ in 8 orthogonal directions steers trajectories to different local minima. On MATH-500,Qwen3-4Bimprovespass@8from0.921to0.953and distinct answers from1.15to1.42. OnR1-1.5B, distinct answers jump from1.45to2.07on MATH-500 and1.64to3.02on AMC23. - RL optimization in numbers: Across 127 GRPO steps on
Qwen3-4B,pass@1rises from0.374to0.773, average basins per problem drop from3.00to2.52, final states landing in a basin increase from55%to68%, and median reasoning length shrinks from2,632to1,496tokens.
Limitations and Future Work
While the authors show that LLMs possess all the individual pieces of a feedback controller—knowing where they are, deciding when to backtrack, and moving up or down the error gradient—they note that it is not yet established whether the model wires these pieces together into a closed-loop system. Additionally, because latent speed currently tracks token depth rather than solution confidence, future work could train models to slow down as error drops, potentially curbing overthinking and improving inference-time scaling.
Summary updated