Reasoning descends an error gradient
Latent steps align with the local more than chance in every model and task, and about half of that alignment is not explained by depth.
Preprint · 2026
1Mila – Québec AI Institute 2Université de Montréal 3Capital One 4Carnegie Mellon University
A chain of thought is usually read as text to understand the underlying computation of a model. To understand the underlying dynamics of reasoning, we read it as a trajectory: every token updates the model's KV cache, and a learned encoder places that cache as a point in a low-dimensional state space. Over that space we measure how often the model would be wrong if it stopped there. The result is an error landscape. We analyze how ordianry token based reasoning models descend this landscape giving interpretable connections to looped reasoning models.
Latent steps align with the local more than chance in every model and task, and about half of that alignment is not explained by depth.
therefore, the answer push the state downhill; think again, double-check push it uphill to explore. Inserting them in random places lead to the same local ascent/descent.
Perturbing the initial state in orthogonal latent directions, like random restarts in gradient descent, raises the number of distinct answers and pass@8.
The state of an autoregressive transformer after reasoning tokens is its KV cache over the prefix, . It is a Markov state: everything the model does next depends only on . One step samples a token and appends its keys and values:
The cache grows with every token, so it has no fixed coordinate system. We train a KV-cache VAE whose transformer encoder reads the whole prefix and returns a 1024-d latent . Besides reconstructing the cache, it is trained so that running the frozen model from the decoded cache continues the trace the way the original cache would. The latent therefore keeps the information that carries the trajectory forward.
Error field
At a state, we force </think>, sample the answer 16 times, and grade each one.
Low marks a basin: a region of states from which the model already gives the right answer.
Flow field
Latents are recorded every tokens; each step has a speed and a direction . We estimate locally (a kernel-weighted linear fit in the top 32 PCs) and score each step by its alignment : positive means downhill.
Every point below is a real state of a real trace. Hover over a trajectory to read what the model had written up to that point, and to see the 16 answers it gives if it is forced to stop there. Low-error regions are the basins that traces settle into.
Scoring each latent step by the phrase it contains shows that the model uses its own vocabulary to choose a direction. Committing phrases move the state downhill (exploit). Checking and re-planning phrases move it uphill, out of a local minimum (explore).
If tokens were only units of compute, 64 tokens from any source would move the state the same way. We cut traces, splice in tokens from a substitute sampler, and return control to the model. On-policy tokens keep descending. Off-policy tokens move orthogonally. Once the model resumes, every arm descends again within about 100 tokens, but not every arm returns to where normal traces are.
An energy-descending system slows near a minimum. Latent speed does form a smooth field that resembles the error field, but depth carries the resemblance: depth alone predicts with out-of-sample –, and adding adds nothing (). Every trace slows on the same schedule whether or not it has reached the answer. A raw hidden state's speed shows no such structure.
In a non-convex landscape, gradient descent from different initializations ends in different minima. We perturb the initial state along 8 orthogonal latent directions (decoded back into the cache) before generating. Compared with temperature sampling, the trajectories spread over more basins and the model gives more distinct answers, and pass@8 matches or beats the baseline and 10 other inference-time diversity methods in most settings.
Best other method: the highest score among the 10 other inference-time diversity methods compared in the paper. B = 8 traces per question, 16,384-token budget.
@misc{humane2026characterizinglatentreasoningdynamics,
title={Characterizing Latent Reasoning Dynamics in LLMs},
author={Prateek Humane and Supriyo Chakraborty and Atharv Naphade and Sabmit Sahu and Irina Rish},
year={2026},
eprint={2612.02425},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2612.02425},
}