Learning Structured Reasoning via Tractable Trajectory Control

Po-Nien Kung, Zhen Yang, Jeffrey Luo, Cheng-Fu Yang, Haikang Deng, Zi-Yi Dou, Yinfei Yang, Nanyun Peng, Zhe Gan, Kai-Wei Chang

Introduction

Reinforcement Learning (RL) has emerged as the premier method for enhancing the reasoning capabilities of Large Language Models (LLMs), enabling the sophisticated "system 2" thinking seen in recent models. However, standard RL relies heavily on stochastic exploration. If a model needs to execute a complex cognitive maneuver—such as realizing a mistake and backtracking—the probability of it randomly generating that exact sequence of tokens is vanishingly small.

Because these high-value reasoning trajectories are sparse, models often fail to discover and learn them during unconstrained sampling. Previous solutions typically rely on Supervised Fine-Tuning (SFT) using expensive expert data, or "reward shaping" (awarding points for specific keywords). Unfortunately, reward shaping frequently results in reward hacking, where the model learns to parrot keywords without performing the underlying logical steps. To address this, researchers introduce Ctrl-R, a framework designed to steer models toward diverse reasoning strategies during RL using tractable trajectory control.

Methodology: Tractable Trajectory Control

Ctrl-R treats complex reasoning structures as lexical constraints, actively guiding the rollout process to incentivize the exploration of diverse problem-solving patterns. The framework operates through four primary mechanisms:

  1. Reasoning Patterns as Constraints: Specific cognitive behaviors—such as Induction, Counterfactual Thinking, or Overthinking Awareness—are defined as sets of target keyphrases.
  2. Tractable Probabilistic Guidance: Rather than relying on chance, Ctrl-R employs a "white-box" guidance model. By combining a distilled Hidden Markov Model (HMM) with a Deterministic Finite Automaton (DFA), the system calculates the exact probability that a given token sequence will eventually satisfy the reasoning constraint.
  3. The Behavior Policy: During the RL rollout phase, this probabilistic guidance reshapes the model’s output distribution. Because the researchers know the exact mathematical probabilities behind every token choice, they can maintain a tractable behavior policy.
  4. Power-Scaled Importance Sampling: Forcing the model to explore specific patterns generates off-policy trajectories. To correct for this distribution mismatch, Ctrl-R uses importance sampling equipped with a novel power-scaling factor ($\beta$). A factor of $\beta=1$ provides mathematical perfection but optimization instability, while $\beta=0$ acts as pure advantage shaping. The authors identify an intermediate value ($\beta=0.2$) as the optimal setting, allowing the model to selectively learn from exploratory, out-of-distribution trajectories while ignoring overly forced, noisy ones.

Experimental Setup

The framework was rigorously evaluated across both text-only and vision-language domains:

  • Language Models: Trained on the DAPO-Math-17K dataset and evaluated on high-stakes mathematical benchmarks, including AIME ’24/’25, MATH500, AMC’23, Minerva, and Olympiad.
  • Vision-Language Models (VLMs): Trained on OpenVLThinker-grpo (medium and hard splits) and evaluated on visual math benchmarks like MathVista, MathVision, MathVerse, MMMU-Pro, Emma, and HallusionBench.

Key Insights and Results

Ctrl-R demonstrates that models can effectively internalize complex reasoning behaviors rather than merely mimicking them. A major finding is that Ctrl-R improves the model's actual problem-solving accuracy when it uses the targeted keywords, proving it learns the underlying cognitive behavior.

The paper also identifies an "Exploratory Sweet Spot." Trajectories with very low importance weights are too heavily forced ("noisy"), while those with high weights represent standard, uncreative paths. The most effective learning occurs in the exploratory regime, where the model applies reasoning structures in meaningful, unconstrained ways.

Performance-wise, Ctrl-R yields consistent gains. On 1.7B and 8B Qwen3 models, it improved average math scores by +1.27% to +1.38% over the state-of-the-art DAPO baseline. In vision-language tasks, Ctrl-R achieved a +2.60% gain, outperforming methods that require complex multi-stage SFT and data synthesis from much larger models. Furthermore, despite the sophisticated mathematics involved, the HMM-based guidance adds negligible latency to token generation, making it highly practical for standard RL pipelines like PPO or GRPO.

Limitations and Future Directions

While highly effective, Ctrl-R currently relies on hand-crafted reasoning patterns defined by humans. Future iterations could automatically discover these patterns directly from successful trajectories. Additionally, reasoning constraints are currently sampled randomly for each prompt; developing a "meta-policy" to dynamically select the most appropriate reasoning structure (e.g., choosing Induction specifically for pattern-finding problems) would further enhance efficiency. Finally, guiding a model to be more thoughtful naturally leads to longer responses, which increases total training time and computational cost.

Summary updated

BibTeX
@inproceedings{kung2026learning,
  author = {Po-Nien Kung and Zhen Yang and Jeffrey Luo and Cheng-Fu Yang and Haikang Deng and Zi-Yi Dou and Yinfei Yang and Nanyun Peng and Zhe Gan and Kai-Wei Chang},
  title = {{Learning Structured Reasoning via Tractable Trajectory Control}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=x6J7va4BYz},
}
Figure