ExTra: Exploratory Trajectory Optimization for Language Model Reinforcement Learning

Wenyang Hu, Junxiang Jia, Zhen Shu, Daniel Dahlmeier, See-Kiong Ng, Bryan Kian Hsiang LowarXiv 2026

TL;DR

ExTra (Exploratory Trajectory Optimization) addresses the critical failure modes of Group Relative Policy Optimization (GRPO) at extreme task difficulties by extracting latent exploration signals from a model's own rollouts. It introduces a correctness-gated novelty reward to prevent diversity collapse on easy problems and an unsupervised, entropy-guided prefix regeneration mechanism to salvage promising partial reasoning paths on hard problems. This dual approach significantly boosts both single-sample accuracy and inference-time solution coverage across mathematical reasoning benchmarks without requiring extra reward models or discarding hard data.

What Problem Does This Paper Address?

Reinforcement Learning with Verifiable Rewards (RLVR) using GRPO has become a standard approach for training Large Language Models (LLMs) on reasoning tasks like math or coding. However, GRPO suffers from structural weaknesses at the extremes of task difficulty due to its within-group reward normalization:

  1. Easy Problems (Diversity Collapse): The model easily finds correct answers across all sampled rollouts in a group. As a result, the within-group reward variance collapses to near zero, yielding negligible gradients. The policy then over-optimizes a narrow set of reasoning patterns, suppressing trajectory diversity and hurting inference-time scaling metrics like pass@k.
  2. Hard Problems (Gradient Starvation): The model fails to find any correct answers within the group. Since all rewards are zero, the advantages vanish, resulting in zero gradient updates—meaning the model learns nothing from its attempts.

Existing solutions typically filter out or over-sample based on empirical difficulty, but this means discarding hard problems entirely—the exact data needed to push the frontier of LLM reasoning capabilities.

Methods

ExTra introduces two modular, unsupervised mechanisms integrated directly into the standard GRPO loop:

  • Novelty-Driven Intrinsic Rewards (for Easy Problems): To combat diversity collapse, ExTra maintains a rollout memory of sentence embeddings of previously generated correct responses. It calculates an intrinsic novelty reward based on the cosine distance to the closest existing embedding. Crucially, this reward is correctness-gated (only awarded to correct answers) and applied post-normalization so it supplements rather than distorts the standard task reward.
  • Entropy-Guided Prefix Regeneration (for Hard Problems): When a rollout group yields zero correct answers, ExTra salvages the trajectories instead of throwing them away. It computes the Mean Token Entropy (MTE)—the model's average internal vocabulary uncertainty—for intermediate reasoning steps. It selects the prefix with the lowest smoothed MTE (indicating the most coherent, confident partial reasoning chain) and re-queues it as a guided prompt for future training batches. The model then explores continuations from this promising intermediate state, with loss computed only on the newly generated suffix tokens.
Figure 1: Overview of ExTra. Top: On easy problems, a novelty reward is added to GRPO’s normalized advantage, steering the policy toward diverse correct reasoning strategies. Bottom: On hard problems, all rollout prefixes are scored by Mean Token Entropy; The lowest-entropy prefix is re-queued as a guided prompt for the next batch, encouraging exploration from a promising intermediate reasoning step.

Datasets

  • Training Dataset: MATH-DAPO.
  • Evaluation Benchmarks: Six challenging mathematical reasoning datasets: MATH-500, AMC23, Minerva, OlympiadBench, AIME24, and AIME25.

Key Insights and Ideas

  • Internal Uncertainty as a Guide: The most surprising finding is that Mean Token Entropy (MTE)—a completely unsupervised metric computed for free from rollout logits—is a stronger predictor of a prefix's ultimate success rate than many ground-truth-aware metrics. A coherent reasoning chain naturally exhibits lower token-level uncertainty, even if it hasn't reached the final answer yet.
  • Post-Normalization Matters: Adding intrinsic rewards before GRPO normalization couples exploration to the group mean and variance, shrinking the task reward signal. Applying it after normalization preserves the task reward structure while cleanly adding a stable exploration bonus.
  • Synergy of Novelty and Regeneration: The two mechanisms are highly complementary. Novelty rewards expand the pool of diverse, plausible reasoning paths on easier steps, which provides better candidate prefixes for the regeneration mechanism to exploit when things get tough.

Key Results

  • Accuracy Boosts: ExTra significantly improves performance on Qwen3-1.7B, lifting the average pass@1 accuracy across six benchmarks from 47.1% to 52.0% (+4.9 points). The gains are most pronounced on the hardest benchmarks: +8.0 points on AIME24 and +7.7 points on AIME25.
  • Inference-Time Coverage: Average pass@16 increased from 66.4% to 73.2% (+6.8 points), showing that ExTra broadens the distribution of correct trajectories the model can discover.
  • Sample Efficiency: ExTra achieves these gains at a fraction of the rollout cost of resampling methods. ExTra reaches 73.2% average pass@16 using 136k generated prompt instances, whereas the baseline DAPO requires 392k instances but only reaches 63.6% pass@16.
Figure 2: Training dynamics of policy entropy and nov- elty reward. ExTra sustains an active novelty signal while avoiding the entropy collapse associated with ho- mogeneous rollouts.

Limitations and Future Work

  • Domain Scope: The paper focuses entirely on mathematical reasoning with 1-2B scale models. The entropy heuristic relies on the property that correct intermediate reasoning reduces token-level uncertainty. While this likely transfers well to code generation, it might struggle in factual QA or creative writing where fluent but completely incorrect text can still exhibit low entropy.
  • Combining with Filtering: ExTra modifies how trajectories are rewarded and regenerated within a batch, making it orthogonal to batch-filtering methods like DAPO. A natural extension is to combine the two: filtering can remove low-value updates, while ExTra can broaden the solution distribution inside the retained groups.

Summary updated

BibTeX
@misc{hu2026extra,
  author = {Wenyang Hu and Junxiang Jia and Zhen Shu and Daniel Dahlmeier and See-Kiong Ng and Bryan Kian Hsiang Low},
  title = {{ExTra: Exploratory Trajectory Optimization for Language Model Reinforcement Learning}},
  year = {2026},
  eprint = {2606.24994},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.24994},
}
Figure