TL;DR
The paper introduces Switch, a novel framework that makes latent (hidden-state) chain-of-thought reasoning in LLMs fully compatible with on-policy reinforcement learning and open to mechanistic interpretability. By framing token-less "thinking" steps with explicit discrete boundary tokens (<swi> and </swi>), the authors unlock standard GRPO training and prove that latent layers perform genuine, causally vital computation rather than acting as inert placeholders.
What Problem Does This Paper Address?
Latent Chain-of-Thought (CoT) aims to accelerate and compress LLM reasoning by replacing verbose, step-by-step text generation with continuous hidden-state transitions. Instead of printing out text, the model feeds its own internal representations back into itself to "think" silently.
However, two major challenges have held this approach back:
- RL Incompatibility: Modern reasoning models (like DeepSeek-R1 or OpenAI's o1) rely heavily on on-policy Reinforcement Learning (RL) to align reasoning paths with correct rewards. Standard RL algorithms require token probabilities to calculate policy gradients. Because latent reasoning steps do not emit discrete tokens, the policy density becomes undefined, making standard on-policy RL impossible.
- The Black Box Problem: Without text outputs, it is incredibly difficult for researchers to inspect what the model is doing during these latent steps. It remained an open question whether the model was actually computing solutions or just learning to bypass these steps as useless fillers.
Methods
The authors solve both problems simultaneously using a deceptively simple primitive: Switchable Latent Reasoning bounded by explicit tokens.
- Boundary Anchors: The model emits a discrete
<swi>token to enter latent mode, executes a block of continuous<latent>steps (where the last-layer hidden state of step $t-1$ becomes the input embedding for step $t$), and emits</swi>to exit back to normal text generation. - Three-Phase Training Pipeline:
- Phase 1 (Switch-SFT): The model learns when to switch. High-entropy (uncertain) token spans in a text-CoT dataset are wrapped in
<swi>...</swi>tags, and the model is fine-tuned to predict these boundaries. - Phase 2 (Latent Curriculum): The text inside the boundaries is progressively replaced with token-less
<latent>steps using a parallel curriculum schedule (converting all spans simultaneously), forcing the model to rely on latent representations. - Phase 3 (Switch-GRPO): On-policy RL is applied using Group Relative Policy Optimization. Because the boundaries are ordinary tokens, the policy ratio is well-defined at every text decision point, while the latent steps are executed deterministically.
Datasets
- Training: An annotated subset of OpenR1-Math, where high-entropy reasoning sub-spans are automatically wrapped in switch tokens.
- Evaluation: The model was benchmarked on standard mathematical reasoning datasets: MATH-500 and GSM8K.
Key Insights and Ideas
- The Switch is a Learned Policy: Probing the model's internal activations revealed that the decision to emit
<swi>is computed dynamically in the deeper layers of the network (achieving 91.9% probe accuracy at the final layer), proving it is a localized control action rather than a stylistic artifact. - Latent Steps are Causally Vital: To see if the silent thinking steps actually mattered, the authors ran causal interventions. Zeroing out the latent hidden states caused accuracy on a diagnostic subset to collapse from 100% to 33.3%. Crucially, replacing the states with random noise of the same norm barely hurt performance (90.5% accuracy), proving that the latent steps perform specific, structurally sound computation.
- Thinking is Front-Loaded: Using logit-lens analysis, the authors discovered that almost all the actual reasoning computation happens at the very first transition upon entering the latent block. The subsequent latent steps essentially act as a holding pattern, waiting for the minimum dwell constraint ($K_{\text{min}}$) to clear before exiting.
Key Results
- Massive Performance Gains: On MATH-500, Switch achieved an accuracy of 79.3%, outperforming the strongest hidden-state recurrence baseline (CoLaR) at the same scale by +25.7 percentage points. On GSM8K, it reached 89.2%.
- RL Makes Thinking Efficient: Applying Switch-GRPO over the SFT baseline halved the latent invocation rate (dropping from 81% to 58%) while simultaneously boosting accuracy on those invoked problems by +12.6 points. The RL successfully taught the model to only "think silently" when it actually needed to.
- Controllable Pareto Frontier: By introducing a correctness-gated brevity bonus into the RL reward function, the authors created an accuracy-efficiency knob. Users can trade a mere 3% drop in accuracy for ~33% shorter text outputs and zero max-length truncations.
Limitations and Future Work
- Scale and Domain Limits: The study was restricted to an 8B parameter model (Qwen3-8B) and focused entirely on mathematical reasoning benchmarks. Performance on multi-domain tasks or larger scales remains untested.
- Gradient Flow Bottleneck: In Switch-GRPO, gradients only flow through the visible text segments; the latent positions are processed via a frozen Key-Value (KV) cache. This means the latent representations are primarily shaped by the Phase 2 curriculum rather than directly by the RL objective.
- Hybrid Architectures: The authors suggest that a natural next step is creating a hybrid system that bridges hidden-state recurrence with samplable vocabulary-mixture latents, allowing the latent tokens themselves to be samplable.
Summary updated