Characterizing Latent Reasoning Dynamics in LLMs
Prateek Humane, Supriyo Chakraborty, Atharv Naphade, Sabmit Sahu, Irina Rish
Abstract
Reasoning in LLMs is typically explained through two distinct mechanisms: the autoregressive generation of discrete tokens, and the looped refinement of a continuous latent state. Both improve performance by increasing inference-time computation, yet the continuous computational dynamics underlying an off-the-shelf, token-based model's reasoning have not been directly observed. We bridge this gap by formalizing token-based reasoning as state transitions over KV-cache prefixes, compressing this high-dimensional space with a KV-cache VAE. Our broader goal is to characterize these reasoning dynamics and better understand the underlying computations driving them. Analyzing the resulting state-space dynamics, we find that standard autoregressive LLMs implicitly perform latent reasoning: their trajectories closely mimic descent over error basins. Specific tokens drive this descent, some rapidly exploiting the error gradient and others escaping local minima to explore. We find trajectories to be relatively stable, quickly recovering their descent path after off-policy perturbations. Applying these mechanistic insights, we causally improve inference-time scaling by optimizing the token-budget tradeoff between trajectory depth and breadth. Specifically, we demonstrate that initializing diverse latent ``random seeds," much like in vanilla gradient descent, steers trajectories toward distinct local minima and yields a larger diversity in correct answers. Finally, we find that RL post-training reshapes the latent space to contain fewer basins, along with faster and more likely convergence to basins correlated with improved performance.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI
- Comments
- 34 pages (11 main paper pages), 20 figures, 16 tables
Related papers
Robust LLM-based User Simulation With Trained Latent-State Dynamics
Shared title terminologycs.LGMartin Mladenov, Jihwan Jeong, Hubert Pham et al.
ContextWorld: Benchmarking In-Context Dynamics Adaptation in Latent World Models
Shared title terminologycs.LGGuo An, Yuhao Yan, Zijing Wu et al.
Reusable Latent Reward Interfaces for Diffusion Alignment
Shared title terminologycs.LGYuwei Zhang, Chubin Chen, Hao Chen et al.
L-TSF: A Time Series Forecasting Model Designed via Logical Reasoning
Shared title terminologycs.LGJianqi Zhang, Xingyu Zhang, Zeen Song et al.
PerturbAlign: Adaptive Multi-Reference Learning for Cell Perturbation Response Prediction with LLMs
Shared title terminologycs.LGJie Deng, Dan Liu, Libo Zhang
Delivered Sooner: Learned Brevity Travels With a Reasoning Model's Feed-Forward Weights
Shared title terminologycs.LGAlexander Boesgaard Lorup