TL;DR
CTRLS introduces a novel framework that models Chain-of-Thought (CoT) reasoning as a Markov Decision Process (MDP) within a latent semantic space. By optimizing the transitions between reasoning steps using distributional reinforcement learning, it enables large language models to systematically explore diverse reasoning paths and perform self-correction, all while keeping the underlying LLM weights completely frozen.
What Problem Does This Paper Address?
While Chain-of-Thought (CoT) prompting has drastically improved the reasoning capabilities of Large Language Models (LLMs), conventional methods generate intermediate steps autoregressively (token-by-token) without any high-level planning. This lack of transition-aware modeling often causes models to prematurely commit to flawed reasoning paths.
On the other hand, structured frameworks like program synthesis or rigid tool-use pipelines enforce strict logical steps but sacrifice the semantic flexibility and adaptability of natural language. CTRLS bridges this gap by treating reasoning steps not just as strings of text, but as trajectories moving through a continuous latent semantic space, allowing for flexible yet structured step-by-step guidance.
Methods
The authors formulate CoT decoding as an MDP defined by states (latent reasoning contexts), actions (distributions over next reasoning steps), and rewards (final answer correctness). The framework operates in two distinct phases:
- Phase 1: Offline CTRLS Pretraining: The model learns to map text reasoning steps into a latent space. Token embeddings from a frozen LLM are processed via spectrum decomposition and $k$-means clustering to define $K=64$ discrete latent states. A variational framework optimized via an Evidence Lower Bound (ELBO) objective trains a U-Net Adapter to inject these latent states back into the token representations, alongside a transition model ($P_\theta$) that learns how states evolve.
- Phase 2: On-Policy Reinforcement Learning: The transition policy is fine-tuned using the REINFORCE policy gradient algorithm based on trajectory-level binary rewards (whether the final answer is correct). To ensure robust exploration and prevent the policy from collapsing into a few repetitive paths, the authors incorporate $\epsilon$-greedy sampling and entropy regularization.
Throughout both phases, the core parameters of the backbone LLM remain entirely frozen; only the lightweight U-Net adapter and transition networks are trained.
Datasets
The framework was evaluated on two widely recognized mathematical reasoning benchmarks:
- GSM8K: A dataset of high-quality, grade-school-level math word problems requiring multi-step arithmetic reasoning.
- MATH: A significantly more challenging dataset containing competition-level mathematics problems across algebra, calculus, and number theory.
Key Insights and Ideas
- Reasoning as Latent Trajectories: Instead of treating CoT as a flat sequence of tokens, modeling it as transitions between abstract semantic states allows the model to capture "epistemic uncertainty"—essentially knowing what it doesn't know before emitting the next sentence.
- Emergent Self-Reflection: By explicitly training the transition dynamics, the model naturally learns to evaluate its own intermediate steps. If a derived value violates a problem constraint, the latent transition guides the model to backtrack or verify its work before outputting a final answer.
- The Necessity of Entropy Regularization: During on-policy RL, without entropy pressure, the transition policy quickly collapses toward a few high-probability but sub-optimal paths, stalling performance gains. Introducing a small entropy penalty ($H=0.01$) keeps the search space broad and stable.
Key Results
The authors integrated CTRLS into LLaMA-3.2-3B-Instruct and Qwen2.5-3B-Instruct, yielding substantial improvements over standard autoregressive generation:
- Exploration Efficiency (pass@20): On GSM8K with a generation temperature of $\eta=0.5$, CTRLS boosted LLaMA-3.2's pass@20 score from 72.5% to 82.5%. On the harder MATH dataset, it improved Qwen2.5's score from 65.0% to 75.0%.
- Qualitative Error Reduction: LLM-as-a-judge evaluations using GPT-4 confirmed that CTRLS significantly reduced common algebraic substitution errors and suppressed hallucinated or logically ungrounded steps.
- Verification Capabilities: In case studies involving prime number verification, the baseline model prematurely accepted incorrect candidate values, whereas CTRLS successfully initiated a validation step to filter out invalid solutions.
Limitations and Future Work
Despite its success, the authors noted a few limitations:
- Exploration Instability: On the highly complex MATH dataset, Qwen2.5 exhibited some learning degeneration during later stages of on-policy RL, highlighting the sensitivity of transition-aware exploration on harder tasks.
- Fixed Granularity: The latent state space relies on a predefined number of clusters ($K=64$), which may restrict the semantic granularity for highly diverse or non-mathematical reasoning domains.
- Sparse Rewards: The reinforcement learning phase relies purely on terminal, binary rewards. Integrating process-based rewards (PRMs) that evaluate the correctness of each intermediate step could further stabilize training.
Summary updated