TL;DR
Training large language models to reason using reinforcement learning (RL) is notoriously tricky: if a model writes a 1,000-word math proof and gets the final answer right, how does it know which specific words were brilliant insights and which were lucky detours? By feeding a "critic" model multiple alternate attempts and their final scores in-context during training, researchers unlocked pinpoint, token-by-token feedback. This turns noisy, end-of-the-line rewards into a dense roadmap for rapid learning, boosting reasoning performance by over 50% on tough math benchmarks using very little online data.
What Problem Does This Paper Address?
Imagine grading a student's three-page calculus exam solely by marking the final boxed number right or wrong. If the student made an arithmetic slip on page one, caught it on page two, and still got the right answer, a single "100%" stamp rewards the mistake just as much as the correction.
This is the credit assignment problem in RL fine-tuning for language models. Current state-of-the-art methods (like GRPO) largely rely on sparse outcome rewards, assigning uniform credit across an entire generated sequence.
In classical RL, you solve this with a value function (or "critic")—a companion model that predicts the probability of eventual success from any intermediate token. Yet in language modeling, critics have struggled so badly that modern pipelines often abandon them altogether. Why? Because looking at half a math solution in isolation, a standard critic has to guess two massive unknowns simultaneously: what the true answer actually is, and how the policy model tends to behave down the line. With an astronomical space of possible word sequences, standard critics end up noisy and unreliable.
Methods
The authors introduce In-Context Value Learning (ICVL), built on a delightfully simple asymmetry: while the main policy model ("actor") cannot cheat at test time, the critic is only used during training. There is no rule against giving the critic privileged information.
Instead of forcing the critic to evaluate a partial response in a vacuum, ICVL leverages the natural in-context learning abilities of LLMs. For a given prompt, the authors sample a group of $g$ rollouts (e.g., 32 attempts) and score them (0 or 1). When training the critic to predict token-level values for rollout $i$, they stuff the other $g - 1$ rollouts—along with their binary rewards—directly into the critic's context window.
This immediately anchors the critic: the initial state's value is just the average group score, and the final states match their known outcomes. Inferring intermediate token values becomes a semantic pattern-matching game against counterfactual futures. Crucially, the target rollout itself is excluded from the context ($I^{-i}$); otherwise, the critic just memorizes the final score, collapsing the learning signal to zero.
Architecturally, the critic is initialized from a base LLM (Qwen3-1.7B) by repurposing existing output logits to predict reward probabilities via binary cross-entropy. Once pretrained on offline rollouts, this frozen critic provides dense token-level value estimates to a standard Proximal Policy Optimization (PPO) algorithm.
Datasets
- Training: A combined mathematical reasoning corpus built from DeepScaleR, the MATH training split, and the GSM8K training split (generating 32 rollouts per prompt up to 32k tokens).
- Evaluation: AIME 2025, AMC 2023, Math 500, and GSM8K. No new benchmarks were introduced.
Key Insights and Ideas
- Knowing the answer isn't enough; knowing the actor is key: Giving a critic just the ground-truth math answer helps, but giving it 32 peer trajectories lowers prediction loss significantly further. Why? Because value depends on this specific policy's quirks and reasoning habits, which counterfactual rollouts expose directly.
- Scaling laws for hindsight: Critic error drops following a clean power-law ($\alpha \approx -0.16$) as you feed more counterfactual rollouts into the context.
- Flipping the PPO $\lambda$ switch: In PPO's Generalized Advantage Estimation (GAE), $\lambda \approx 1$ relies heavily on final Monte Carlo outcomes, while $\lambda = 0$ relies 100% on step-by-step critic differences ($V(s_{t+1}) - V(s_t)$). With a naive critic, setting $\lambda = 0$ causes policy learning to collapse due to high bias. With ICVL, setting $\lambda = 0$ triggers a massive performance leap—proving the token-level estimates are genuinely trustworthy.
- Give secrets to the teacher's grader, not the student: Prior self-distillation methods feed ground-truth answers to a teacher policy, risking distribution shift. Giving privileged context to the value function instead proves much more effective.
Key Results
- Token-Level Precision: Compared to an unconditioned baseline, ICVL slashes squared value-prediction error by over 50% across early (0.17 to 0.08), middle (0.29 to 0.12), and late (0.05 to 0.02) trajectory states.
- Rapid Adaptation: Pretraining the critic offline and fine-tuning the policy on just 1,024 online samples, PPO with ICVL ($\lambda = 0$) outperforms all baselines across every benchmark:
- AIME 2025: 29.27% vs. GRPO's 18.96% (over 50% relative gain) and Base Model's 9.48%. Standard PPO ($\lambda = 0$) collapsed to 11.46%.
- AMC 2023: 70.31% vs. GRPO's 58.05%.
- Math 500: 84.65% vs. GRPO's 79.60%.
- GSM8K: 86.85% vs. GRPO's 84.95%.
Limitations and Future Work
- Memory Footprint: Stuffing dozens of long reasoning rollouts into a prompt requires a massive context window, driving up memory demands during value estimation.
- Scope of Experiments: Results were validated on a single model size (Qwen3-1.7B), binary math rewards, and a one-shot offline-to-online adaptation setup with a fixed critic. Scaling to larger models, continuous/non-binary rewards, and fully iterative online actor-critic loops remains open.
- Better Policy Extraction: The authors paired ICVL with off-the-shelf PPO, noting that specialized off-policy or offline RL algorithms could exploit these high-fidelity critics even more effectively.
Summary updated