TL;DR
TGRL (Temperature-Grouped Reinforcement Learning) improves the reasoning capabilities of Large Language Models by turning temperature-induced diversity into an explicit training signal. By comparing low-temperature "reference" rollouts with high-temperature "exploration" rollouts, the method identifies exactly which tokens are responsible for discovering better solutions, leading to up to 36% faster training and significant gains across math, coding, and agentic tasks.
What Problem Does This Paper Address?
Reinforcement Learning with Verifiable Rewards (RLVR)—where models learn from tasks with binary "right/wrong" outcomes like math or code—is the current gold standard for post-training LLMs. However, these models often suffer from a "bottleneck of exploration."
If a model's decoding is too conservative (low temperature), it gets stuck in local optima, repeating the same mistakes. If it's too stochastic (high temperature), the search space becomes noisy, and the model struggles to identify which specific part of a long reasoning chain actually led to a correct answer. Existing methods like GRPO (Group Relative Policy Optimization) treat all rollouts at a single temperature, leaving the actual benefit of exploration unquantified and the credit for success spread thinly across every token in a trajectory.
Methods
TGRL introduces a two-stage mechanism to quantify and exploit exploration:
- Mixed-Temperature Grouping: For every prompt, the model generates a group of responses split into two subsets: a low-temperature ($T_0$) "reference" group and a high-temperature ($T_1$) "exploration" group. The reward gap between these groups ($\Delta R_g$) provides a prompt-level estimate of the exploration gain.
- JS-Based Token Credit Allocation: To solve the credit assignment problem, TGRL uses the Jensen–Shannon (JS) divergence between the next-token distributions induced by the two different temperatures.
- If the JS divergence at a specific token position is high, it means that position is highly sensitive to temperature—it’s a "decision point" where exploration changed the model's path.
- TGRL allocates more policy-gradient credit to these temperature-sensitive tokens, focusing the model's learning on the parts of the reasoning chain that actually benefited from broader search.
Crucially, TGRL uses an asymmetric update rule: it uses the low-temperature group to calculate statistics but only applies gradients to the high-temperature exploratory trajectories. This prevents the conservative reference branch from introducing competing update directions that might weaken the exploration signal.
Datasets
The authors evaluated TGRL across 11 diverse benchmarks:
- Mathematical Reasoning: AIME 2024/2025, AMC 2023, MATH500, Minerva, and OlympiadBench.
- Code Generation: LiveCodeBench, CodeForces, and HumanEval+.
- Long-Horizon Agent Tasks: ALFWorld (household tasks) and WebShop (online shopping).
Training was conducted using the DeepScaleR dataset for math and DeepCoder for programming tasks, utilizing Qwen3 (4B, 14B, 32B) and Qwen2.5-7B-Instruct backbones.
Key Insights and Ideas
- Temperature as a Perturbation: Instead of viewing temperature as just a decoding hyperparameter, the authors treat it as a controllable perturbation. The model's local sensitivity to this perturbation (measured by JS divergence) acts as a principled proxy for identifying critical decision points in a reasoning chain.
- Quantifying the "Aha!" Moment: By comparing a "safe" answer to an "exploratory" one, TGRL explicitly measures whether broader search actually helped for a specific prompt. This allows the optimizer to ignore noise and focus on prompts where exploration is genuinely beneficial.
- Efficiency without Budget Expansion: Unlike test-time scaling (which just samples more), TGRL works within a fixed rollout budget (e.g., 4 responses per prompt). It simply reallocates that budget (e.g., 1 low-T, 3 high-T) to generate a better training signal.
Key Results
TGRL consistently outperformed strong RLVR baselines like GRPO, PPO, and RLOO:
- Speed: Reached equivalent accuracy targets 36% faster in wall-clock time compared to DAPO (a strong baseline).
- Math: Improved the six-benchmark math average by 1.6% at the 32B scale. On the challenging AIME24, it improved the best prior result by 2.2%.
- Coding: Raised the model's CodeForces rating by 196.7 points and improved LiveCodeBench Pass@16 by 4.4%.
- Agents: Achieved a 86.7% success rate on ALFWorld, a 6.3% improvement over the best RL baseline.
Limitations and Future Work
- Verifiable Rewards Only: The current framework relies on a scalar verifier (right/wrong). It is not yet clear how this would translate to open-ended dialogue or subjective preference optimization (RLHF) where rewards are noisier.
- Fixed Temperature Gap: While the paper explores different temperature gaps, the optimal $T_0$ and $T_1$ are currently fixed. The authors suggest that adaptive multi-temperature grouping—where the gap changes based on model performance—is a promising direction for future research.
- Interactive Environments: Future work could extend this to more complex, multi-turn interactive environments where the exploration gain might be even more significant.
Summary updated