Manuscript Offprint
arXiv:2610.37041Guided-RLVR: Guided Exploration in Reinforcement Learning with Verifiable Rewards
Abstract
Reinforcement learning with verifiable rewards (RLVR) has shown strong empirical gains in improving the reasoning ability of large language models (LLMs) on tasks such as mathematics and programming. However, recent studies have shown that RLVR rollouts often collapse onto a narrow set of reasoning trajectories, limiting the explored reasoning space. Motivated by findings that thinking tokens at critical steps serve as critical structural elements in LLM reasoning pathways, we propose Guided-RLVR, a novel approach that augments RLVR with a lightweight controller. The controller strategically injects semantically meaningful steering tokens into the sampling distribution, encouraging the model to approach problems from multiple reasoning perspectives and thereby expanding the exploration space. Experiments on mathematical reasoning and code generation benchmarks show that Guided-RLVR consistently outperforms existing RLVR methods while producing more diverse reasoning trajectories.
1 Introduction
Large language models (LLMs) have demonstrated remarkable capabilities on reasoning-intensive tasks (Achiam et al. 2023; Team et al. 2024), from mathematical problem solving (Lightman et al. 2023) and code generation (Wei et al. 2023) to multi-step logical inference (Yao et al. 2023). While supervised fine-tuning establishes a strong foundation, reinforcement learning with verifiable rewards (RLVR) has emerged as a powerful paradigm for pushing reasoning accuracy further, particularly in domains where correctness verification is available (Shao et al. 2024; Yu et al. 2026).
Despite these successes, recent work has revealed a fundamental limitation: RLVR predominantly reinforces reasoning paths that already exist in the base model's prior distribution (Tomihari and Sato 2026; Yue et al. 2025; Wu et al. 2025). While this reweighting improves pass@1 accuracy by increasing the probability of correct trajectories, it often fails to expand the set of problems the model can solve under repeated sampling. Instead, RLVR-trained models can exhibit distributional collapse, in which their rollouts concentrate on a narrow set of high-probability solution patterns and leave large regions of the reasoning space unexplored. This limits the value of inference-time sampling: even with a generous
t-SNE of Hidden States

Figure 1: t-SNE (van der Maaten and Hinton 2008) visualization of final-layer rollout representations from vanilla RLVR and guided steering, with 32 rollouts per problem. Total variance is computed in the standardized high-dimensional representation space before projection.
sampling budget, the model may repeatedly generate variations of the same approach rather than discover alternative strategies.
We examine this phenomenon by sampling 32 responses per problem on 200 MATH instances (Hendrycks et al. 2021) under vanilla RLVR and guided steering. Total variance is computed before dimensionality reduction as the trace of the covariance matrix of the standardized final-layer representations, equivalently the sum of variance across hidden dimensions; t-SNE (van der Maaten and Hinton 2008) is used only for visualization. As shown in Figure 1, vanilla RLVR produces a compact cluster, whereas guided steering spreads the rollout representations over a substantially broader region and increases total variance by nearly fourfold. This contrast indicates that steering-token interventions reduce the representational concentration observed under vanilla sampling. We observe the same trend with both GRPO (Shao et al. 2024) and DAPO (Yu et al. 2026) across mathematical reasoning benchmarks.
These observations motivate a more direct approach to
These authors contributed equally.
Corresponding author.
expanding the exploration space. In reasoning tasks, certain thinking tokens, such as discourse connectives (“Therefore”, “However”) and reflective markers (“Wait”, “Since”), carry disproportionately high mutual information with respect to the final answer (Qian et al. 2026). These tokens appear at structural turning points in reasoning chains, where the model shifts between inductive generalization and deductive inference (Sloman and Sloman 2009; Cai et al. 2025). Rather than relying solely on stochastic temperature sampling, exploration can therefore be guided by promoting such tokens at selected points during generation.
Building on this insight, we introduce Guided-RLVR, which augments RLVR with a lightweight learned Logic Controller. During rollout generation, the controller is activated at high-entropy sentence boundaries and conditions on the policy's hidden state to select a semantically meaningful steering token. It then boosts the selected token's logit before sampling from the perturbed next-token distribution. The controller and policy are optimized jointly using the same group-relative advantages, reinforcing interventions associated with higher-reward rollouts. Consequently, the guided rollout distribution increases the likelihood of sampling low-prior, high-reward reasoning trajectories that vanilla RLVR rarely explores.
We evaluate Guided-RLVR on mathematical reasoning (MATH (Hendrycks et al. 2021), AIME2024, AIME2025, and AMC2023) and code generation (Code-R1) using two backbones (Qwen2.5-7B-Instruct and Qwen3-4B) and two RLVR algorithms (GRPO and DAPO). Across all four combinations of backbone and RLVR algorithm, Guided-RLVR achieves the highest average performance, outperforming both vanilla RLVR and the exploration-enhanced methods ENT (Cheng et al. 2026) and REP (Tuyls et al. 2026). The improvements are particularly consistent at larger sampling budgets. Complementary analyses of trajectory diversity and pass@k scaling show that these gains are accompanied by more diverse reasoning trajectories and broader problem coverage under repeated sampling, supporting the intended role of Guided-RLVR in guided exploration.
Our main contributions are:
• We show why standard RLVR rarely reaches low-prior trajectories under a finite rollout budget. A union-bound analysis links their vanishing learning signals to their sampling probabilities.
• We introduce Guided-RLVR with a state-conditioned Logic Controller. At high-entropy sentence boundaries, it selects steering tokens to perturb the rollout distribution. The controller and policy are jointly optimized with an auxiliary log-perplexity exploration reward. This design increases the likelihood of sampling low-prior, high-reward reasoning trajectories.
• Experiments show that Guided-RLVR achieves stronger pass@k scaling and greater trajectory diversity without increasing generation length, suggesting broader exploration of the reasoning space.
2.1 Exploration in RLVR
RLVR methods such as GRPO (Shao et al. 2024) and DAPO (Yu et al. 2026) improve reasoning through verifiable feedback, yet gains in single-sample accuracy can coexist with reduced solution coverage under repeated sampling (Yue et al. 2025; Wu et al. 2025). To encourage exploration, ENT (Cheng et al. 2026) augments advantages with a clipped, gradient-detached entropy term, while REP (Tuyls et al. 2026) and DIVER (Hu et al. 2026) introduce representation-based and sequence-level diversity incentives, respectively. CDE (Dai et al. 2025) uses response perplexity and critic uncertainty, and likelihood-based rewards provide feedback from reference-answer probabilities (Kwiatkowski et al. 2026). These methods shape exploration through optimization signals; our focus is a complementary intervention in the rollout sampling process.
Exploration has also been studied at finer granularity. Wang et al. (2025) identify high-entropy forking tokens and concentrate policy-gradient updates on them, alongside decoding experiments at these positions. SIREN (Jiang et al. 2025) restricts entropy regularization to selected positions and vocabulary candidates, while Lp-Reg (Huang et al. 2026a) protects potentially useful low-probability candidates from suppression. These results motivate targeted exploration rather than indiscriminate entropy maximization. Guided-RLVR builds on this perspective by learning which semantic steering token to promote at high-entropy sentence boundaries, directly biasing the next-token distribution during rollout generation.
2.2 Guided Rollouts and Reasoning-Time Steering
G RPO-A (Guo et al. 2026) and ICPO (Huang et al. 2026b) guide RL rollouts through reference reasoning steps and in-context expert demonstrations, respectively. Our controller selects semantic steering tokens from the current hidden state to guide continuations at eligible sentence boundaries.
At inference time, Soft Reasoning (Zhu et al. 2025) guides generation through first-token embedding search, while ESamp (Zeng et al. 2026) steers decoding using latent novelty estimates. Qian et al. (2026) use thinking-token interventions to guide reasoning. Guided-RLVR incorporates semantic-token steering into RL rollout generation, jointly optimizing the controller and reasoning policy.
3 Methodology
3.1 Problem Formulation
Let denote the unperturbed LLM policy and the rollout distribution obtained from its old snapshot using the configured temperature and top-k/top-p decoding. Given a prompt , standard RLVR (Shao et al. 2024) samples responses , computes rewards , and forms group-relative advantages , where and are the group mean and standard deviation, and is a small constant for numerical stability. The policy is updated by minimizing
(1)
where , is the per-token policy ratio, controls clipping, and no KL penalty is applied. The expectation includes prompts drawn from the training data and rollout groups drawn from . Here denotes the policy snapshot used to collect the rollout group, not the initial pretrained model.
This formulation reweights high-reward trajectories once sampled, but exploration stays tied to the rollout distribution . Let denote valid but low-prior trajectories for , such as an uncommon decomposition or a corrective reflection step. Each rollout independently lands in with probability . Let denote the probability that at least one of the sampled rollouts belongs to . By Boole's inequality (the union bound),
When , or when it is exactly zero under top-p truncation, such trajectories are rarely or never observed under a finite rollout budget. The same bound propagates to the learning signal: since the gradient of the GRPO objective above is an expectation over , the contribution of is scaled by and vanishes in the same edge case (derivation in Appendix F.1). Low-prior trajectories thus yield a vanishing learning signal, and unsampled ones none at all: standard RLVR mainly reweights trajectories the current policy already favors, rather than expanding the explored reasoning space.
This motivates our goal: rather than rely solely on self-sampling from , we construct a guided rollout distribution with the aim of increasing the probability of low-prior, high-reward regions ,
while retaining verifiable task feedback. Guided-RLVR achieves this with a lightweight controller that perturbs sampling through steering tokens, guiding exploration beyond the base model's dominant modes.
3.2 Guided-RLVR
Human reasoning combines inductive steps, which infer patterns from instances, and deductive steps, which apply them under constraints (Sloman and Sloman 2009). This interplay also matters for language-model reasoning: dynamically integrating induction and deduction improves LLM adaptability (Cai et al. 2025), and reflective or transitional tokens (e.g., “So”, “Since”, “If”) coincide with mutual-information peaks that correlate with lower prediction error (Qian et al. 2026).
Motivated by these observations, we propose Guided-RLVR (Figure 2), a guided RLVR framework with a lightweight controller that perturbs the next-token distribution toward semantically meaningful steering tokens during rollout. This structured intervention exposes the policy to a broader range of candidate reasoning trajectories.
Logic Controller Formally, the Logic Controller is a small MLP that selects which steering token to promote during rollout generation. Its vocabulary and hidden-state aggregation are detailed in Appendix B.
The controller is queried only when two conditions hold: (i) the previous token ends with one of punctuation marks (. ? !), defining a sentence boundary; and (ii) the model exhibits high entropy, indicating uncertainty over the next continuation:
where is the entropy and is a dynamic threshold (full schedule in Appendix B.2).
At a triggered step , the controller conditions on the model’s hidden state and outputs a discrete action
each corresponding to a steering token from a predefined set . The selected token's logit is adjusted by to reach the target probability (derivation in Appendix A). Temperature scaling and top-k/top-p filtering then yield the perturbed distribution .
Exploration via a Log-Perplexity Reward The sparse correctness reward cannot determine whether an intervention contributed to a correct rollout or was merely incidental (Dai et al. 2025), so we add a log-perplexity exploration bonus. Following likelihood-based rewards that use the model's log-probability of a reference answer (Kwiatkowski et al. 2026), we use the reduction in uncertainty over the answer tokens y as an auxiliary signal for guided reasoning. Let denote the log-perplexity of the answer sequence y conditioned only on the prompt x, and let denote the log-perplexity of the same answer conditioned additionally on the controller-guided reasoning chain :
A positive gap means the reasoning chain reduces the model's uncertainty over the answer. The total reward combines the correctness reward with a scaled version of this exploration bonus:
where normalizes and clips (Appendix C.4).
(a) Mixed rollout generation

(b) State-conditioned steering
Intervene only when
Sentence boundary
Hidden state
Logic Controller
MLP
Semantic action
Steering token
Reflection
Wait
Progression
Then
Causality
Therefore / Hence
Causal Reflection
Since / Because
Contrast
But / However
Hypothesis
If
Deepseek-R1 traces
Controller cold start
Example action shown: Reflection → Wait
Logit steering
Probability

(c) Rewards & joint updates
Trajectory reward
Answer log-perplexity
Bonus only for correct,
successfully perturbed rollouts
Shared group advantage
Policy
GRPO / DAPO
Controller
Entropy
regularization
Intervention
events only
Figure 2: Overview of Guided-RLVR. (a) For each prompt , policy generates rollouts: two unperturbed (greedy and stochastic) and eight guided. (b) At sentence boundaries where next-token entropy exceeds the dynamic threshold , the Logic Controller maps aggregated hidden states to a semantic action and steering token . A bias boosts its logit toward probability before sampling the next token from the perturbed distribution . (c) Reward combines task correctness with a bonus , granted only to correct math rollouts where a promoted token was sampled. Here measures the same answer's log-perplexity reduction when conditioned on the reasoning chain; normalizes and clips this difference, and scales the bonus. Group mean , standard deviation , and stabilizer normalize rewards into advantages shared by policy and controller updates.
Joint Optimization of Policy and Controller Each rollout group mixes guided completions from with unperturbed baselines (Section 4.1). Denote this collection procedure by and the group-relative advantage from composite rewards by .
Logit boosting is used only for rollout sampling. For policy optimization, we keep the sampled completion, including steering tokens, but evaluate both current and old probabilities on the same prefixes using unboosted logits at the configured loss temperature:
For GRPO, we minimize
(3)
where and clipping uses . DAPO divides the summed clipped terms by the generation batch's completion-token count. Both objectives use guided data without additional importance correction (Appendix C.2).
The controller shares , averaging valid successful interventions within each completion and weighting eligible completions equally:
(4)
Here weights entropy regularization. The policy and controller use separate optimizers on the same rollout batch.
4 Experiments
4.1 Experimental Setup
Backbone Models We conduct our main experiments on two backbone models: Qwen2.5-7B-Instruct (Qwen et al. 2025) and Qwen3-4B (Yang et al. 2025). These models differ in parameter scale and post-training recipe, allowing us to assess whether the benefits of our method persist across distinct model configurations.
Datasets. For MATH (Hendrycks et al. 2021), we sample 2,000 training instances and 500 test instances from the original dataset. For Code-R1 (Liu and Zhang 2025), we sample 2,000 training instances and 500 test instances from the original dataset. For the competition benchmarks, we train on 2,000 instances sampled from DAPO-Math-17k-Processed (Yu et al. 2026) and evaluate on AIME2024, AIME2025, and AMC2023.
Evaluation metric. We report pass@K (Chen et al. 2021). Following (Cheng et al. 2026), we use K = 128 for the smaller and more challenging competition AIME2024/2025, and AMC2023, and K = 16 for MATH and Code-R1. The estimator and sampling budgets are detailed in Appendix D.
Baselines We compare against vanilla GRPO (Shao et al. 2024) and DAPO (Yu et al. 2026), as well as two exploration baselines: ENT (Cheng et al. 2026) and REP (Tuyls et al. 2026). Our method augments GRPO/DAPO with the Logic Controller. We hold the RL training data, training schedule, decoding configuration, and evaluation procedure fixed across variants; method coefficients follow the corresponding implementations.
Controller cold start. Before RL training, we cold-start the controller on OpenThoughts-114k-math (Guha et al. 2025) using DeepSeek-R1 (Guo et al. 2025) traces, training it to predict six steering categories (Reflection, Progression, Causality, Causal Reflection, Contrast, Hypothesis) (Qian et al. 2026; Cai et al. 2025) at sentence boundaries (Appendix C.1). This provides additional controller supervision that none of the baselines receives. To separate the contribution of supervised initialization from guided RL training, we also evaluate a controller trained from random initialization without this cold start (Section 4.4).
Each group contains completions: two unperturbed baselines (one greedy and one stochastic) and eight controller-guided completions. We set and apply the log-perplexity bonus only to successfully perturbed, correct rollouts. All methods are trained for 5,000 steps on MATH and Code-R1, and 1,000 steps on AIME2024, AIME2025, and AMC2023. Data processing, reward design, and training hyperparameters are detailed in Appendix C.
4.2 Main Results
Table 1 presents results across two backbones and five benchmarks. We compare Guided-RLVR with vanilla GRPO and DAPO, as well as variants augmented with ENT or REP. Guided-RLVR achieves the highest average score for every pairing of backbone and RLVR algorithm. Its margin over the strongest baseline ranges from 1.1 to 2.8 points.
The benefits of Guided-RLVR are most evident under repeated sampling. On AIME2024, AIME2025, and AMC2023, it achieves the best or tied-best pass@128 for every pairing of backbone and RLVR algorithm. With the same budget of 128 samples per problem, a higher pass@128 means that a larger fraction of problems are solved at least

Figure 3: Trajectory diversity across sampling budgets on MATH using Qwen2.5-7B-Instruct with GRPO. Solid lines denote TD and dashed lines denote ED; higher values indicate greater diversity.
once. These results therefore indicate that guided exploration broadens problem coverage.
4.3 Exploration Analysis
To determine whether the performance gains are accompanied by broader exploration, we analyze trajectory diversity, pass@k scaling, and generation length.
Trajectory diversity. We measure diversity on the 500-problem MATH test split using Qwen2.5-7B-Instruct with GRPO. Following (Hu et al. 2026), we report Textual Diversity (TD) and Equational Diversity (ED). TD is computed as the average pairwise dissimilarity between responses at the sentence level. ED is defined as the proportion of equations in a given response that do not appear in any other response sampled for the same problem. Higher values of TD and ED indicate greater textual variation and greater derivational diversity, respectively.
Figure 3 reports both metrics for sampling budgets from k=8 to k=128. Guided-RLVR achieves the highest TD and ED at every budget. At k=128, it obtains TD= 0.70 and ED= 0.16, compared with TD= 0.60 and ED= 0.13 for vanilla GRPO. ENT and REP remain below vanilla GRPO on both metrics across all budgets, showing that exploration-oriented objectives do not necessarily yield diverse rollouts. By directly perturbing the sampling distribution through state-conditioned steering token selection, Guided-RLVR produces greater textual variation and a broader range of equation sets under the same sampling budget.
Pass@k scaling. Table 1 reports performance at selected sampling budgets. To examine performance across the full range of budgets, Figure 4 presents pass@k curves for all five benchmarks using Qwen3-4B with GRPO. Guided-RLVR maintains a clear advantage throughout the sampling range on AIME2024 and AIME2025, and remains best or competitive across budgets on AMC2023, MATH, and Code-R1. The consistent ranking across values of k shows that the gains are not specific to the endpoint budgets reported in Table 1. At any fixed k, a higher pass@k means that more problems
| Method | MATH | AIME2024 | AIME2025 | AMC2023 | Code-R1 | AVG | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| pass@1 | pass@16 | pass@1 | pass@128 | pass@1 | pass@128 | pass@1 | pass@128 | pass@1 | pass@16 | ||
| Qwen2.5-7B-Instruct | |||||||||||
| GRPO | 62.1 | 79.4 | 11.20 | 46.67 | 5.99 | 50.00 | 43.23 | 90.36 | 82.0 | 94.8 | 56.58 |
| GRPO + ENT | 64.5 | 78.8 | 7.97 | 46.67 | 7.06 | 46.67 | 39.31 | 91.57 | 80.4 | 93.2 | 55.62 |
| GRPO + REP | 64.9 | 78.0 | 10.89 | 50.00 | 6.48 | 50.00 | 43.22 | 91.57 | 82.6 | 95.6 | 57.33 |
| GRPO + Ours | 65.6 | 80.6 | 12.11 | 53.33 | 5.03 | 53.33 | 42.77 | 92.77 | 82.6 | 96.0 | 58.41 |
| DAPO | 65.2 | 81.2 | 10.57 | 43.33 | 5.68 | 46.67 | 43.05 | 87.95 | 80.2 | 96.0 | 55.98 |
| DAPO + ENT | 64.1 | 78.8 | 10.65 | 50.00 | 4.66 | 46.67 | 42.92 | 90.36 | 81.4 | 94.4 | 56.40 |
| DAPO + REP | 65.1 | 79.6 | 10.33 | 43.33 | 4.92 | 46.67 | 43.60 | 89.16 | 81.2 | 96.8 | 56.07 |
| DAPO + Ours | 65.5 | 81.4 | 11.56 | 50.00 | 5.08 | 50.00 | 42.25 | 91.57 | 81.6 | 96.6 | 57.56 |
| Qwen3-4B | |||||||||||
| GRPO | 65.0 | 78.2 | 15.94 | 63.33 | 12.06 | 53.33 | 43.45 | 93.98 | 85.5 | 95.4 | 60.62 |
| GRPO + ENT | 63.8 | 77.4 | 25.96 | 73.33 | 20.65 | 70.00 | 56.50 | 93.98 | 85.8 | 95.4 | 66.28 |
| GRPO + REP | 61.0 | 74.6 | 37.32 | 80.00 | 28.26 | 73.33 | 66.52 | 96.39 | 85.4 | 95.4 | 69.82 |
| GRPO + Ours | 66.3 | 78.6 | 41.17 | 83.33 | 32.94 | 76.67 | 67.72 | 97.59 | 85.9 | 96.2 | 72.64 |
| DAPO | 66.0 | 76.8 | 14.13 | 73.33 | 13.20 | 70.00 | 45.52 | 92.77 | 85.6 | 94.8 | 63.21 |
| DAPO + ENT | 64.4 | 75.8 | 20.29 | 76.67 | 19.09 | 70.00 | 56.04 | 95.18 | 85.6 | 96.0 | 65.91 |
| DAPO + REP | 62.5 | 74.4 | 38.20 | 83.33 | 29.19 | 73.33 | 64.05 | 97.59 | 85.2 | 96.2 | 70.40 |
| DAPO + Ours | 66.5 | 77.4 | 38.98 | 83.33 | 29.84 | 76.67 | 63.38 | 98.80 | 85.8 | 96.0 | 71.67 |
Table 1: Main results across two backbones (Qwen2.5-7B-Instruct and Qwen3-4B) and two RLVR algorithms (GRPO and DAPO). All values are percentages. Ours denotes Guided-RLVR. AVG is the unweighted mean of the ten reported metrics. Within each backbone and RLVR algorithm block, the best value in each column is shown in bold; ties are also shown in bold.
| Method | MATH | AIME2024 | AIME2025 | AMC2023 |
|---|---|---|---|---|
| GRPO | 326.36 | 1224.94 | 935.95 | 818.50 |
| GRPO + ENT | 413.90 | 1224.84 | 910.15 | 724.80 |
| GRPO + REP | 407.15 | 1207.24 | 964.91 | 794.88 |
| GRPO + Ours | 338.04 | 1087.85 | 748.06 | 693.89 |
Table 2: Average generation length in tokens for the GRPO variants on four mathematical benchmarks using Qwen2.5-7B-Instruct, averaged over all completions. Lower values indicate shorter generations.
are solved by at least one sampled response; the curves therefore demonstrate more effective use of the available sampling budget.
Generation length. To examine whether broader exploration simply reflects longer generations, we compare the average generation length of the GRPO variants on four mathematical benchmarks using Qwen2.5-7B-Instruct (Table 2). Guided-RLVR remains close to vanilla GRPO on MATH and produces shorter responses on all three competition benchmarks. It also uses fewer tokens than ENT and REP on every benchmark. These results indicate that the improvements in trajectory diversity and pass@k are not primarily explained by longer reasoning chains (Wu et al. 2025). State-conditioned steering redirects the rollout distribution without mechanically extending the generated sequences.
Overall, Guided-RLVR enhances exploration in two complementary respects: higher pass@k reflects broader problem coverage under a fixed sampling budget, while higher TD and ED indicate greater textual and equational diver- sity among sampled trajectories. These benefits are obtained without longer generations, indicating that increased token consumption is not their primary explanation. Appendix E.1 further examines the controller's action distribution and token-specific outcomes.
4.4 Ablation and Sensitivity
Setup. We conduct a controlled ablation on the 500-problem MATH test split using Qwen2.5-7B-Instruct trained with GRPO. Starting from the complete Guided-RLVR configuration, we modify one component at a time: (a) replace the learned, state-conditioned controller with random steering token selection; (b) always select the fixed steering token “Wait”; (c) remove the entropy threshold while retaining the sentence-boundary trigger; (d) remove the log-perplexity exploration reward; (e) grant the exploration bonus to all rollouts, in contrast to restricting it to those that are both successfully perturbed and correct; (f) omit supervised controller cold-start training while retaining online joint optimization; or (g) exclude steering-attempt positions from the policy loss while retaining guided generation and controller updates. All variants share the RL training configuration and are evaluated at their respective best checkpoints. We report pass@1 and pass@16 using 16 independent samples per problem. Pass@1 estimates the success probability of a single sampled response, whereas pass@16 reflects the ability to produce at least one correct solution across multiple attempts.
Steering-token selection. Replacing the learned controller with random steering-token selection lowers pass@1 from 65.6 to 63.4 and pass@16 from 80.6 to 77.2. The decline in

Figure 4: Pass@k scaling across all five benchmarks using Qwen3-4B with GRPO. The maximum sampling budget is k=128 for AIME2024, AIME2025, and AMC2023, and k=16 for MATH and Code-R1.
| Variant | pass@1 | pass@16 |
|---|---|---|
| Vanilla GRPO | 62.1 | 79.4 |
| Guided-RLVR | 65.6 | 80.6 |
| (a) Random steering token selection | 63.4 | 77.2 |
| (b) Fixed steering token (“Wait”) | 63.9 | 78.2 |
| (c) No entropy threshold | 62.1 | 79.2 |
| (d) No log-perplexity reward | 62.0 | 79.6 |
| (e) Unconditional bonus | 64.6 | 79.4 |
| (f) No controller cold start | 64.0 | 79.6 |
| (g) Mask steering-attempt positions | 63.8 | 80.0 |
Table 3: Component ablation on MATH using Qwen2.5-7B-Instruct with GRPO. All values are percentages. Both pass@1 and pass@16 are estimated from 16 independent samples per problem at the selected checkpoint.
both metrics suggests that state-conditioned token selection improves individual rollouts and helps generate useful complementary reasoning trajectories under repeated sampling.
Fixed token selection. Always selecting “Wait” lowers pass@1 from 65.6 to 63.9 and pass@16 from 80.6 to 78.2. This gap suggests that a single connective is insufficient to cover the different reasoning transitions needed across problems and rollouts. “Wait” promotes reflection but cannot provide other semantic directions such as progression, causality, contrast, or hypothesis. State-conditioned selection among multiple categories therefore provides broader steering and improves problem coverage under repeated sampling.
Entropy threshold. Removing the entropy threshold decreases pass@1 by 3.5 points and pass@16 by 1.4 points. Restricting interventions to high-entropy sentence boundaries therefore benefits both metrics. During training without the threshold, policy entropy rises instead of converging while evaluation accuracy declines (Appendix E.2). This pattern supports the role of the entropy threshold in controlling perturbations and maintaining stable guided exploration.
Log-perplexity reward. Removing the log-perplexity exploration reward decreases pass@1 from 65.6 to 62.0 and pass@16 from 80.6 to 79.6. Without this auxiliary signal, the model receives no direct feedback on whether a guided reasoning chain makes the correct answer more predictable. The decline in both metrics suggests that the log-perplexity reward helps reinforce useful perturbations beyond the sparse correctness reward alone.
Conditional exploration bonus. Granting the exploration bonus unconditionally decreases pass@1 from 65.6 to 64.6 and pass@16 from 80.6 to 79.4. The log-perplexity bonus measures whether the reasoning chain makes the generated answer more predictable, not whether that answer is correct. An incorrect answer can therefore receive a positive bonus when it is granted unconditionally. Restricting the bonus to successfully perturbed, correct rollouts keeps this auxiliary signal aligned with task correctness.
Controller cold start. Without supervised controller initialization, Guided-RLVR achieves pass@1 of 64.0 and pass@16 of 79.60. These scores exceed vanilla GRPO by 1.94 and 0.20 percentage points, respectively. Its pass@16 also exceeds ENT (78.8) and REP (78.0), although its pass@1 remains below both exploration baselines. Cold start adds 1.56 points in pass@1 and 1.00 point in pass@16 over this variant.
Intervention-position loss masking. To test whether intervention positions should contribute to policy learning, variant (g) retains guided generation and controller updates but excludes the policy-loss term at every position where steering is attempted, even if the promoted token is not sampled. Generated tokens remain in the context, and GRPO averages over the remaining valid positions. This masking lowers pass@1/pass@16 from 65.6/80.6 to 63.8/80.0, favoring retention of intervention positions in the policy loss (Appendix E.3).
Hyperparameter Sensitivity We investigate the impact of the log-perplexity exploration bonus coefficient . Figure 5 compares on MATH using Qwen2.5-7B-Instruct. The setting achieves the highest peak accuracy and outperforms the larger coefficients at most checkpoints, whereas and generally produce lower and less stable accuracy. Because the bonus rewards reductions in answer uncertainty, excessive weighting can favor perturbations that make the answer more predictable without improving its correctness. The bonus should therefore remain auxiliary to the verifiable reward, keeping guided exploration aligned with task correctness; we use throughout.

Figure 5: Effect of the log-perplexity reward coefficient on MATH evaluation accuracy during training using Qwen2.5-7B-Instruct.
The ablations establish that effective guided exploration depends on more than injecting steering tokens. The controller must adapt the semantic direction to the current reasoning state, while entropy-based triggering confines interventions to points where redirection is most useful. The log-perplexity bonus complements sparse task feedback, but must remain properly weighted and conditioned on correctness to avoid rewarding unhelpful reasoning. These components play complementary roles in making exploration both diverse and task-aligned.
4.5 Computational Cost
We measure RL-stage compute cost in a separate timing benchmark using Qwen2.5-7B-Instruct with LoRA on MATH. Each run uses one RTX PRO 6000 Blackwell GPU, generations per prompt, a maximum of 1,024 new tokens, and 5,000 training steps, with evaluation every 500 steps. The recorded Guided-RLVR run uses the controller without supervised cold start.
As shown in Table 4, Guided-RLVR requires 17.92 GPU-hours, compared with 15.92 for vanilla GRPO, adding 2.00 GPU-hours (12.6% overhead).
| Method | GPU-h | s/step |
|---|---|---|
| GRPO | 15.92 | 11.46 |
| GRPO + ENT | 14.22 | 10.24 |
| GRPO + REP | 16.55 | 11.92 |
| GRPO + Ours | 17.92 | 12.90 |
Table 4: RL-stage compute cost under the shared timing configuration. Ours denotes Guided-RLVR without supervised controller cold start.
5 Conclusion
Standard RLVR reinforces successful trajectories once sampled, yet rarely reaches valid low-prior reasoning paths under a finite rollout budget. We introduced Guided-RLVR to enable guided exploration in RLVR. Its state-conditioned controller selects semantically meaningful steering tokens at uncertain reasoning points. By jointly optimizing the controller and policy, Guided-RLVR learns where and how to redirect generation toward underexplored reasoning trajectories.
Across five benchmarks, Guided-RLVR achieves the highest average performance for every pairing of backbone and RLVR algorithm, with particularly consistent gains at larger sampling budgets. Its higher trajectory diversity and broader problem coverage, achieved without longer generations, support the effectiveness of state-conditioned steering in broadening the sampled reasoning trajectories. Ablations further validate the complementary roles of adaptive token selection, entropy-based intervention, and task-aligned exploration feedback. These findings establish targeted perturbation as an effective approach to exploration in RLVR and motivate future work on learned intervention timing and richer steering spaces.
Acknowledgments
This work was funded by the National Natural Science Foundation of China (NSFC) under Grants No. 62388101, No. 62406013, and No. U25B2070, the Beijing Advanced Innovation Center Funds for Future Blockchain and Privacy Computing, and the Fundamental Research Funds for the Central Universities.
References
Achiam, J.; Adler, S.; Agarwal, S.; Ahmad, L.; Akkaya, I.; Aleman, F. L.; Almeida, D.; Altenschmidt, J.; Altman, S.; Anadkat, S.; et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774.
Cai, C.; Zhao, X.; Liu, H.; Jiang, Z.; Zhang, T.; Wu, Z.; Hwang, J.-N.; and Li, L. 2025. The Role of Deductive and Inductive Reasoning in Large Language Models. In Che, W.; Nabende, J.; Shutova, E.; and Pilehvar, M. T., eds., Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 16780–16790. Vienna, Austria: Association for Computational Linguistics. ISBN 979-8-89176-251-0.
Chen, M.; Tworek, J.; Jun, H.; Yuan, Q.; Pinto, H. P. D. O.; Kaplan, J.; Edwards, H.; Burda, Y.; Joseph, N.; Brockman,
G.; et al. 2021. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374.
Cheng, D.; Huang, S.; Zhu, X.; Dai, B.; Zhao, X.; Zhang, Z.; and Wei, F. 2026. Reasoning with exploration: An entropy perspective. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, 30377–30385.
Dai, R.; Song, L.; Liu, H.; Liang, Z.; Yu, D.; Mi, H.; Tu, Z.; Liu, R.; Zheng, T.; Zhu, H.; and Yu, D. 2025. CDE: Curiosity-Driven Exploration for Efficient Reinforcement Learning in Large Language Models. arXiv:2509.09675.
Guha, E. K.; Marten, R.; Keh, S.; Raoof, N.; Smyrnis, G.; Bansal, H.; Nezhurina, M.; Mercat, J.; Vu, T.; Sprague, Z. R.; et al. 2025. Openthoughts: Data recipes for reasoning models. In First Workshop on Foundations of Reasoning in Language Models.
Guo, D.; Yang, D.; Zhang, H.; Song, J.; Wang, P.; Zhu, Q.; Xu, R.; Zhang, R.; Ma, S.; Bi, X.; et al. 2025. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645(8081): 633–638.
Guo, Y.; Deng, W.; Cheng, Z.; and Tang, X. 2026. G RPO-A: Guided Group Relative Policy Optimization with Adaptive Guidance. In Liakata, M.; Moreira, V. P.; Zhang, J.; and Jurgens, D., eds., Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 4525–4539. San Diego, California, United States: Association for Computational Linguistics. ISBN 979-8-89176-390-6.
Hendrycks, D.; Burns, C.; Kadavath, S.; Arora, A.; Basart, S.; Tang, E.; Song, D.; and Steinhardt, J. 2021. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874.
Hu, Z.; Zhang, S.; Li, Y.; Yan, J.; Hu, X.; Cui, L.; Qu, X.; Chen, C.; Cheng, Y.; and Wang, Z. 2026. Diversity-Incentivized Exploration for Versatile Reasoning. In The Fourteenth International Conference on Learning Representations.
Huang, G.; Xu, T.; Wang, M.; Yi, Q.; Gong, X.; Li, S.; Xiong, R.; Li, K.; Jiang, Y.; and Zhou, B. 2026a. Low-probability Tokens Sustain Exploration in Reinforcement Learning with Verifiable Reward. In Liakata, M.; Moreira, V. P.; Zhang, J.; and Jurgens, D., eds., Findings of the Association for Computational Linguistics: ACL 2026, 24158–24188. San Diego, California, United States: Association for Computational Linguistics. ISBN 979-8-89176-395-1.
Huang, H.-Y.; Tang, C.; Liu, W.; Bai, C.; Yang, S.; and Wu, Y. 2026b. Think Outside the Policy: In-Context Steered Policy Optimization. In Liakata, M.; Moreira, V. P.; Zhang, J.; and Jurgens, D., eds., Findings of the Association for Computational Linguistics: ACL 2026, 2758–2776. San Diego, California, United States: Association for Computational Linguistics. ISBN 979-8-89176-395-1.
Jiang, Y.; Li, Y.; Chen, G.; Liu, D.; Cheng, Y.; and Shao, J. 2025. Rethinking Entropy Regularization in Large Reasoning Models. arXiv:2509.25133.
Kwiatkowski, A.; Butt, N.; Labiad, I.; Kempe, J.; and Ollivier, Y. 2026. Likelihood-Based Reward Designs for General LLM Reasoning. arXiv preprint arXiv:2602.03979.
Lightman, H.; Kosaraju, V.; Burda, Y.; Edwards, H.; Baker, B.; Lee, T.; Leike, J.; Schulman, J.; Sutskever, I.; and Cobbe, K. 2023. Let's verify step by step. In The Twelfth International Conference on Learning Representations.
Liu, J.; and Zhang, L. 2025. Code-R1: Reproducing R1 for Code with Reliable Rewards.
Qian, C.; Liu, D.; Wen, H.; Bai, Z.; Liu, Y.; and Shao, J. 2026. Demystifying reasoning dynamics with mutual information: Thinking tokens are information peaks in llm reasoning. Advances in Neural Information Processing Systems, 38: 12533–12572.
Qwen; :: Yang, A.; Yang, B.; Zhang, B.; Hui, B.; Zheng, B.; Yu, B.; Li, C.; Liu, D.; Huang, F.; Wei, H.; Lin, H.; Yang, J.; Tu, J.; Zhang, J.; Yang, J.; Yang, J.; Zhou, J.; Lin, J.; Dang, K.; Lu, K.; Bao, K.; Yang, K.; Yu, L.; Li, M.; Xue, M.; Zhang, P.; Zhu, Q.; Men, R.; Lin, R.; Li, T.; Tang, T.; Xia, T.; Ren, X.; Ren, X.; Fan, Y.; Su, Y.; Zhang, Y.; Wan, Y.; Liu, Y.; Cui, Z.; Zhang, Z.; and Qiu, Z. 2025. Qwen2.5 Technical Report. arXiv:2412.15115.
Shao, Z.; Wang, P.; Zhu, Q.; Xu, R.; Song, J.; Bi, X.; Zhang, H.; Zhang, M.; Li, Y.; Wu, Y.; et al. 2024. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300.
Sloman, S.; and Sloman, S. A. 2009. Causal models: How people think about the world and its alternatives. Oxford University Press.
Team, G.; Georgiev, P.; Lei, V. I.; Burnell, R.; Bai, L.; Gulati, A.; Tanzer, G.; Vincent, D.; Pan, Z.; Wang, S.; et al. 2024. Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context. arXiv preprint arXiv:2403.05530.
Tomihari, A.; and Sato, I. 2026. Power Distribution Bridges Sampling, Self-Reward RL, and Self-Distillation. arXiv preprint arXiv:2605.04542.
Tuyls, J.; Foster, D. J.; Krishnamurthy, A.; and Ash, J. T. 2026. Representation-Based Exploration for Language Models: From Test-Time to Post-Training. In The Fourteenth International Conference on Learning Representations.
van der Maaten, L.; and Hinton, G. 2008. Visualizing Data using t-SNE. Journal of Machine Learning Research, 9(86): 2579–2605.
Wang, S.; Yu, L.; Gao, C.; Zheng, C.; Liu, S.; Lu, R.; Dang, K.; Chen, X.-H.; Yang, J.; Zhang, Z.; Liu, Y.; Yang, A.; Zhao, A.; Yue, Y.; Song, S.; Yu, B.; Huang, G.; and Lin, J. 2025. Beyond the 80/20 Rule: High-Entropy Minority Tokens Drive Effective Reinforcement Learning for LLM Reasoning. In Belgrave, D.; Zhang, C.; Lin, H.; Pascanu, R.; Koniusz, P.; Ghassemi, M.; and Chen, N., eds., Advances in Neural Information Processing Systems, volume 38, Main Conference, 115452–115486. Curran Associates, Inc.
Wei, Y.; Wang, Z.; Liu, J.; Ding, Y.; and Zhang, L. 2023. Magicoder: Source code is all you need. arXiv preprint arXiv:2312.02120, 3.
Wu, F.; Xuan, W.; Lu, X.; Liu, M.; Dong, Y.; Harchaoui, Z.; and Choi, Y. 2025. The invisible leash: Why rlvr may or may not escape its origin. arXiv preprint arXiv:2507.14843.
Yang, A.; Li, A.; Yang, B.; Zhang, B.; Hui, B.; Zheng, B.; Yu, B.; Gao, C.; Huang, C.; Lv, C.; et al. 2025. Qwen3 technical report. arXiv preprint arXiv:2505.09388.
Yao, S.; Yu, D.; Zhao, J.; Shafran, I.; Griffiths, T.; Cao, Y.; and Narasimhan, K. 2023. Tree of thoughts: Deliberate problem solving with large language models. Advances in neural information processing systems, 36: 11809–11822.
Yu, Q.; Zhang, Z.; Zhu, R.; Yuan, Y.; Zuo, X.; Yue, Y.; Dai, W.; Fan, T.; Liu, G.; Liu, L.; et al. 2026. Dapo: An open-source llm reinforcement learning system at scale. Advances in Neural Information Processing Systems, 38: 113222–113244.
Yue, Y.; Chen, Z.; Lu, R.; Zhao, A.; Wang, Z.; Song, S.; and Huang, G. 2025. Does reinforcement learning really incentivize reasoning capacity in llms beyond the base model? arXiv preprint arXiv:2504.13837.
Zeng, Y.; Lu, A.; Li, L.; Zhang, Z.; Li, Y.; and Ren, K. 2026. Large Language Models Explore by Latent Distilling. arXiv preprint arXiv:2604.24927.
Zhu, Q.; Zhao, R.; Yan, H.; He, Y.; Chen, Y.; and Gui, L. 2025. Soft Reasoning: Navigating Solution Spaces in Large Language Models through Controlled Embedding Exploration. arXiv preprint arXiv:2505.24688.
A Closed-Form Derivation of Perturbation Injection
Problem Setup Assume that at generation step t, the base language model produces raw logits
where is the vocabulary size. The corresponding probability distribution is
Now suppose we wish to raise the probability of a specific target token (whose vocabulary index is ) to a user-specified target value . We do so by adding a nonnegative bias to the corresponding logit:
The perturbed probability distribution is then given by
and our goal is to enforce
Derivation of the Closed-Form Solution We first express the perturbed normalization constant in terms of the original quantities. Observe that
The target constraint becomes
Let . Then
Multiplying both sides by the denominator yields
Expanding and collecting all terms containing x on the left-hand side gives
Hence,
which implies
Therefore,
Simplified Form Note that
where
Substituting this into the previous expression, we obtain the exact solution
Approximate Form In practice, when the target token initially has small probability, we typically have , equivalently When ,
This yields the approximation
Nonnegative Clipping To ensure that we only increase the target token's probability and never reduce it, we apply the clipping rule
where is given by Equation (6). When the target token's original probability already exceeds , the computed is nonpositive, and clipping sets it to zero, corresponding to no intervention.
Final Perturbation Formula Combining the above derivation, the perturbed logits can be written as
with
Writing for the bias applied at generation step to the target token (vocabulary index ), the perturbed logits are , where is the one-hot vector for . The outer maximum ensures we never decrease the target token's logit, only boosting it when necessary. Applying the standard decoding pipeline, the perturbed rollout policy is
followed by top-k and top-p truncation.
B Logic Controller Details
B.1 Steering Token Vocabulary
The controller selects a steering token category from a predefined set (), organized by semantic function. Each category corresponds to one discrete action in the controller's action space . When a category maps to multiple surface tokens, the specific token to inject is sampled in proportion to that token's frequency among the DeepSeek-R1 traces used to cold-start the controller, so that more common connectives are injected more often while rarer variants remain reachable.
| Category | Tokens | Semantic function |
|---|---|---|
| Reflection | Wait | Revisit or reconsider a step |
| Progression | Then | Advance to the next step |
| Causality | Therefore, Hence | Draw a consequence |
| Causal Reflection | Since, Because | Justify by a prior cause |
| Contrast | But, However | Introduce an opposing turn |
| Hypothesis | If | Pose a conditional assumption |
Table 5: Steering token vocabulary , grouped by the six semantic categories the controller predicts. Within a category, the injected token is drawn in proportion to its frequency in the cold-start DeepSeek-R1 traces.
B.2 Trigger Conditions and Entropy-Threshold Schedule
The controller is queried only when three conditions hold: (i) the previous token is a punctuation mark, corresponding to a sentence boundary; (ii) at least tokens have been generated since the last real injection; and (iii) the entropy of the base model's next-token distribution exceeds a dynamic, per-sequence threshold derived from recent entropy statistics and growing progressively stricter with training progress. For each sequence we maintain a sliding window of the last entropy values observed at punctuation positions ( in our experiments). At global training step , the threshold for the -th sequence is
where is a fixed scale factor, is the total number of training steps, and is the batch-wise average of the window standard deviations. A warm-up phase suppresses interventions until each sequence has accumulated at least punctuation events, so the threshold is well-calibrated before any perturbation. These conditions confine interventions to natural restart points under genuine uncertainty, while the progressively increasing threshold reduces unnecessary perturbations as training stabilizes.
B.3 Hidden-State Aggregation
Let be the hidden state of the -th layer at generation step for the last generated token position. The controller aggregates the last layers by summation:
where is the total number of layers and is a hyperparameter.
C Training Details
C.1 Cold-Start Training
The controller does not classify every token during cold-start training. We segment each DeepSeek-R1 trace at sentence-final punctuation (. ? !), and at each boundary take the hidden state of the boundary token, , as input to the MLP. The MLP then predicts which of the six steering categories should follow at that break: Reflection, Progression, Causality, Causal Reflection, Contrast, or Hypothesis.
Supervision is obtained by rule-based labeling: the category of the steering token that actually appears after each boundary in the R1 trace provides the target. For example, Wait → Reflection, Therefore/Hence → Causality. We build a class-balanced training set of 100,000 boundary samples per category (600K in total) and train the MLP with a cross-entropy loss for 10 epochs at a learning rate of . The no-cold-start ablation omits this pretraining while retaining the same steering vocabulary and within-category token sampler.
During the main RL training stage, the controller is not frozen but continues to be updated online with the policy via the group-relative advantage and the log-perplexity exploration bonus. Its update retains valid events where the promoted token was actually sampled, averages their contributions within each completion, and then averages across completions with at least one such event. Hidden states and advantages are detached for this update. The classification MLP is optimized with its own optimizer, decoupled from the policy update.
C.2 Policy Loss Evaluation
The sampled completion, including any steering tokens, is kept unchanged when computing the policy loss. Both probabilities in Equation (2) are evaluated on the generated prefixes using temperature-scaled LLM logits, without the controller's boost or top-k/top-p truncation. The ratio compares the current and old unboosted policies; it does not correct for the guided sampling distribution.
GRPO averages the clipped terms in Equation (3) over valid tokens within each completion and then over completions. DAPO instead normalizes their sum by the generation batch's completion-token count, recorded before validity masking. No KL penalty is applied.
C.3 Controller Learning Rates and Intervention Details
Because the controller's stability requirements differ across tasks, we use a controller learning rate of 5e-7 on MATH and Code-R1, and 5e-6 on AIME2024/2025 and AMC2023. The entropy coefficient is held at for the first half of training, then annealed linearly to zero. The controller update is skipped when no valid successful intervention is available.
When the controller intervenes, the selected steering token's logit is boosted so that its probability reaches a fixed target . The closed-form derivation of the logit adjustment is provided in Appendix A. After applying , the perturbed distribution is re-normalized with the training temperature and top-/top- truncation.
For the exploration baselines, we adopt the entropy coefficient of ENT and the representation-bonus scale of REP as specified by their official implementations.
C.4 Log-Perplexity Reward Parameters
The transformation in the main text is defined as
where is obtained by standardizing within each generation group. We set so that a neutral perturbation () receives no extra reward. The shifted term sigmoid() - is clipped to to prevent extreme values, and the resulting bonus is scaled by before being added to the task reward. This bonus is applied only to the math tasks; for code generation we optimize the correctness reward alone.
Both and are computed on the same answer sequence : is evaluated in the context actually used during generation (with the controller-guided reasoning chain preceding the answer), whereas is a counterfactual re-evaluation of that same answer with removed from the context. This requires a single additional forward pass rather than a separately sampled rollout. The gap therefore isolates the contribution of the reasoning chain to the model's certainty over the answer.
C.5 Data Processing and Reward Design
For each dataset example, we construct an instruction-style prompt that enforces a strict output format. Given a problem , we produce a prompt:
You are an expert in math. Please adhere to the following format:
-
Reason through the problem inside <think> </think> tags.
-
Provide the final numerical answer inside <answer> </answer> tags.
-
All fractions, formulas must be in LaTeX format.
-
End your response with <eos>.
Here is an example: '<think> ...
</think><answer> ... </answer><eos>'
Problem: {problem}
<think>We store the prompt in a prompt field and the ground-truth answer in an answer field.
During training and evaluation, prompts are tokenized with padding and truncation. We set left-padding to align variable-length prompts in a batch. To compute the correctness reward, we parse the substring inside <answer>... </answer> using a regular expression. We treat answers as correct if they match the target string case-insensitively, and additionally attempt numeric matching by casting to floating point and accepting a small tolerance when applicable.
Reward Design We use an automatic verification reward composed of: (i) a format reward that checks whether the completion matches the required <think> and <answer> structure with an additional penalty if there is extra trailing text after the tags, and (ii) a correctness reward that checks whether the extracted final answer matches the ground truth. The final reward is a weighted sum of the two components, and we optionally include a soft overlength punishment that discourages excessively long outputs for DAPO.
C.6 Training Hyperparameters
Table 7 provides the complete training configuration for each backbone model and dataset combination. These model-specific and dataset-specific hyperparameters were tuned to balance training stability, memory efficiency, and generation quality. All other hyperparameters (sampling temperature, , clipping range, number of rollouts, learning rate) are held fixed across all configurations and summarized in Table 6.
| Hyperparameter | Value |
|---|---|
| Sampling temperature (training) | 1.0 |
| Sampling temperature (evaluation) | 0.7 |
| KL penalty coefficient (β) | 0 |
| Decoupled clipping (high) | 0.28 |
| Decoupled clipping (low) | 0.2 |
| Rollouts per prompt (G) | 10 |
| Learning rate (policy) | 5e-6 |
Table 6: Training hyperparameters shared across all methods and datasets.
| Dataset | Token Length | Batch Size | Train Batch |
|---|---|---|---|
| Qwen2.5-7B-Instruct | |||
| MATH | 1024 | 40 | 4 |
| AIME2024/2025 | 8192 | 100 | 20 |
| AMC2023 | 8192 | 100 | 20 |
| Code-R1 | 8192 | 40 | 4 |
| Qwen3-4B | |||
| MATH | 1024 | 40 | 4 |
| AIME2024/2025 | 8192 | 100 | 20 |
| AMC2023 | 8192 | 100 | 20 |
| Code-R1 | 8192 | 40 | 4 |
Table 7: Detailed training configuration for each backbone model and dataset.
D Evaluation Protocol
D.1 Pass@k Estimator
All pass@k results are computed with the unbiased estimator of Chen et al. (2021),
where is the number of correct samples among the generated for problem , with for AIME2024/2025 and AMC2023 and for MATH and Code-R1.
D.2 Sampling Budget
Table 8 summarizes, for each benchmark, the number of test problems, the qualitative difficulty, the sampling budget used for pass@K evaluation, and the rationale behind that choice. Benchmarks with few, extremely hard problems
| Benchmark | # Problems | Difficulty | K |
|---|---|---|---|
| AIME2024 / 2025 | 30 | Extremely hard | 128 |
| AMC2023 | 83 | Hard | 128 |
| MATH | 500 | Moderate | 16 |
| Code-R1 | 500 | Moderate | 16 |
Table 8: Sampling budget used for pass@K evaluation on each benchmark.
(AIME, AMC) require a larger to reveal how much of the solution space a method can actually reach, whereas benchmarks with many, moderately difficult problems (MATH, Code-R1) are already well-estimated at .
E Additional Results
E.1 Controller Behavior
We examine the behavior of the learned Logic Controller in Figure 6. After an initial adjustment period, the action distribution stabilizes without collapsing to a single token. All nine tokens remain active, with “Because” accounting for approximately one third of the selections. Post-intervention accuracy also varies across tokens, indicating that steering actions are associated with different outcomes. Together with the random-selection ablation, these observations show that the gains do not arise from token injection alone and that the controller maintains a non-degenerate action set throughout training.
E.2 Entropy-Threshold Training Dynamics
We examine how the entropy threshold affects training dynamics on MATH using Qwen2.5-7B-Instruct with GRPO. We compare the full Guided-RLVR configuration with ablation (c) in Table 3, which removes the entropy threshold while retaining the sentence-boundary trigger and the other training components. In the full configuration, intervention eligibility follows the dynamic threshold described in Appendix B.2.
Figure 7 shows that entropy initially decreases in both runs, but their subsequent behavior differs substantially. Without the threshold, entropy rises overall after the early decrease, with a temporary reversal in the middle of training, and ends well above its initial level. With the threshold, entropy remains lower and fluctuates within a comparatively narrow range during later training. This contrast accompanies the performance gap in Table 3: removing the threshold lowers pass@1 from to and pass@16 from to at the respective selected checkpoints.
The higher training entropy of the ablated variant therefore does not translate into better solution coverage under the evaluated sampling budgets. By restricting steering to sentence boundaries with unusually high next-token uncertainty, the threshold makes interventions more selective. The observed entropy dynamics and pass@k results are consistent with this selectivity helping to control perturbations while preserving useful exploration. The entropy curves alone, however, do not establish how the diversity or correctness of reasoning trajectories changes during training.
E.3 Intervention-Position Loss Masking
The full Guided-RLVR retains the policy loss at all valid completion positions (Full loss), while the ablation excludes steering-attempt positions (Masked loss). Let record every steering attempt on a non-baseline completion, regardless of whether the promoted token is sampled, and let be the completion-validity mask. The loss masks are
This trigger mask differs from the successful-hit filter used in the controller update.
The ablation excludes intervention positions from the policy loss. GRPO averages over the remaining valid tokens, changing both term inclusion and weighting, whereas DAPO retains its generation-token normalizer (Appendix C.2). Both variants use the unboosted policy ratio in Equation (2); neither substitutes guided sampling probabilities into the denominator.
On MATH using Qwen2.5-7B-Instruct with GRPO, Masked loss achieves pass@1 of 63.8 and pass@16 of 80.0, compared with 65.6 and 80.6 for Full loss. The decreases

(a) Action distribution over training.
| Token | Acc. | |
|---|---|---|
| Because | 488 | 70.29 |
| But | 127 | 58.27 |
| Hence | 116 | 69.83 |
| However | 25 | 72.00 |
| Wait | 146 | 71.92 |
| Since | 42 | 73.81 |
| If | 172 | 67.44 |
| Then | 209 | 66.03 |
| Therefore | 198 | 72.22 |
(b) Post-intervention accuracy (%).
Figure 6: Controller behavior on MATH using Qwen2.5-7B-Instruct with GRPO. Panel (a) shows the cumulative proportion of each steering-token action over training steps. Panel (b) reports the number of interventions and the subsequent rollout accuracy for each token. The accuracy values are descriptive rather than causal because tokens are selected in different reasoning states and have unequal sample counts.

Figure 7: Training entropy on MATH using Qwen2.5-7B-Instruct with GRPO. Removing the entropy threshold (orange) leads to an overall increase after the initial decrease; the full Guided-RLVR configuration (blue) maintains lower entropy during later training.
are 1.8 and 0.6 percentage points, respectively. Guided generation and the controller update are retained; later token losses still condition on the generated prefixes. The comparison supports the full method's loss inclusion and weighting together, without isolating the contribution of successfully emitted steering tokens alone or correcting the guided behavior-distribution mismatch. It also does not establish the frequency of steering-token use during controller-free inference.
F Theoretical Analysis
F.1 Gradient Bound for Low-Prior Trajectories
Because the gradient of Equation (1) is an expectation over the unperturbed rollout distribution , we can split it into contributions from outside and inside :
where is the per-trajectory surrogate term in Equation (1). Under standard regularity assumptions, rewards, the clipped importance ratio, and are all bounded, so the per-trajectory gradient norm is bounded by some constant independent of ; by the triangle inequality, the second term is then bounded by . Hence whenever or is zero under top- truncation, the learning signal from vanishes, mirroring the sampling bound discussed earlier.