TRANSMISSION // 2612.02425v1
What an LLM’s hidden reasoning path may reveal
Source published
Researchers compress language models’ growing internal memory into a map and find evidence that tokens steer reasoning toward lower-error states—but not that it behaves like ordinary gradient descent in every respect.

A language model’s reasoning is more than the words it produces: each generated token also changes the model’s internal memory. A new preprint tracks those changes and finds that, in several tested models, internal trajectories often move in directions associated with fewer wrong answers. The picture is suggestive, but it has important limits: the map is learned, the experiments cover a narrow set of models and tasks, and the trajectories do not behave exactly like a conventional optimization process.
A language model that explains a math problem step by step leaves two kinds of traces. There is the visible text, and there is a growing internal record that helps the model produce what comes next. Researchers have long debated whether the text faithfully describes the computation. In a new preprint, Prateek Humane and colleagues ask a different question: can the model’s internal changes during ordinary text generation be measured as a continuous path—and do those paths resemble optimization?
The team treats each model’s key-value cache, or KV cache, as its state. This cache stores information the transformer uses from earlier tokens. Because it grows with every generated token, it is too large to inspect directly. The researchers trained a variational autoencoder (VAE) to compress cache states into a 1,024-dimensional representation. The VAE was trained not only to reconstruct caches but also to preserve information about how the model would continue from them. The original language models remained frozen during this analysis.
To estimate whether a state was “good,” the researchers stopped reasoning at that point, prompted the model to answer, and measured how often its answers were wrong across repeated samples. They then compared changes in the compressed state with local changes in this estimated error. The main analyses covered three models: DeepSeek-R1-Distill-Qwen-1.5B, Qwen3-4B, and Llama-3.1-Nemotron-Nano-4B. The detailed analysis examined 32 selected questions per setting; questions that were always solved or never solved were excluded from some analyses because they offered no changing error pattern to study.
The trajectories often pointed toward lower error—but did not behave like a textbook gradient descent. Across the settings studied, the model’s own sampled tokens tended to move its internal state in a direction aligned with decreasing estimated error. When researchers substituted tokens from unrelated reasoning or random vocabulary samples, that alignment weakened or disappeared during the substitution. Once the model resumed generating its own tokens, alignment generally returned. The authors also report that certain inserted phrases, including phrases associated with reconsidering or committing to an answer, could shift the measured trajectory in the same direction as when the model used them naturally.
But another expected feature of optimization was missing. If a system is descending an error landscape, it might slow down near low-error regions. Here, latent movement speed was strongly associated with how many tokens had been generated, and the error estimate added essentially no predictive value beyond depth. In plain terms, the models’ internal movement slowed as their reasoning traces progressed, not reliably when their answers became more likely to be correct. The authors therefore describe the evidence as partial: trajectories align with error reduction, but they do not show every characteristic of descent into an optimum.
The team also tested whether deliberately changing a trajectory’s starting state could produce different answers. Their “latent seeds” method perturbed the initial cache in several directions, then let the model continue. In comparisons across math datasets and three models, this often increased the variety of answers and sometimes improved pass@8—the chance that at least one of eight attempts is correct. The results were not uniformly better on every model and dataset, and the method could lower pass@1, the accuracy of a single attempt. This is a trade-off between exploring more possibilities and making the best first guess, not a general improvement in accuracy.
In a separate experiment, the authors trained Qwen3-4B with reinforcement learning on math problems. As training progressed, their measurements showed fewer identified error basins, more final states in a basin, and shorter median reasoning traces, alongside higher performance in that setup. These observations describe a relationship within their experiment; they do not establish that fewer basins cause better performance in general.
There are substantial uncertainties. The compressed space is a learned approximation, not a direct view of a model’s thoughts. Its quality varied across the three models, and some measurements depend on estimates from repeated sampled answers and local gradient fits. The primary trajectory analyses use small sets of selected questions, while additional evaluations are used for the answer-diversity tests. The findings may not carry over to other models, tasks, or decoding settings. The paper itself notes that the models do not reliably slow near low-error states, and that whether they combine their apparent error detection and backtracking into a feedback controller remains unestablished.
This is an arXiv preprint, not a peer-reviewed publication. The authors say they plan to release code and checkpoints. Until the methods and findings have been independently scrutinized and tested more broadly, the work is best read as a proposed measurement framework and preliminary evidence—not proof that language models reason by literally following gradients. Read the preprint.
- large language models
- AI reasoning
- KV cache
- latent representations
- mechanistic interpretability
- inference-time scaling
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
Tracing the Internal Signals Behind Language Model Reasoning
Supporting evidence: Both papers report that intervening on internal model states can change reasoning-related outcomes in their tested systems: the origin paper reports that latent-state seeding improved pass@k, while Li et al. report performance changes after scaling components selected by IPG. This supports only the bounded claim that internal interventions can affect reasoning behavior; the intervention methods, models and evaluations differ, so the results are not direct replications.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.02425v1 — Original paper
Excerpt reference:
static/papers/2612.02425v1.md:68-118
Basis: Paper text
Source file SHA-256:ca917b45f44834bee9f2cc0dc12e954004558808eadfd911beb2dbabdffc8c7d2602.02313v3 — Original paper
Excerpt reference:
static/papers/2602.02313v3.md:2907-2979
Basis: Paper text
Source file SHA-256:58d202f3ca3a981a3a60c10b8a718ebe89459e7b56359d0ee682c251c5c85b192602.02313v3 — Original paper
Excerpt reference:
static/papers/2602.02313v3.md:569-629
Basis: Paper text
Source file SHA-256:58d202f3ca3a981a3a60c10b8a718ebe89459e7b56359d0ee682c251c5c85b19
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Do language models adapt how they reason as tasks get harder?
Source published
Shared keywords: ai reasoning, inference time scaling
The words that quietly steer AI reasoning
Source published
Shared keywords: ai reasoning, kv cache, large language models
AI’s compressed thoughts stumble on harder reasoning
Source published
Shared keywords: ai reasoning, large language models
A learned way to shrink an AI’s working memory
Source published
Shared keywords: kv cache, large language models
A Reversible Code for Shorter AI Reasoning
Source published
Shared keywords: large language models