Reinforcement learning with verifiable rewards spends much of its rollout budget on states that yield no learning signal. We recast this as a question about the sampling distribution itself: under a fixed rollout budget, which distribution over states minimizes the variance of the policy-gradient estimator? The answer admits a closed-form Neyman allocation, μvarπ(s)∝dπ(s)σπ(s), which connects naturally to GRPO's group-relative advantage and induces an emergent reverse curriculum as the policy improves, with no externally imposed schedule. Building on this principle, we propose VSR (Variance-driven State Resampling), a plug-in modification to GRPO using a prefix replay buffer and a zero-cost variance proxy. On mathematical reasoning benchmarks and long-horizon agentic tasks (Sokoban, BabyAI), VSR outperforms GRPO and GiGPO on most benchmarks with fewer generated tokens per update.
Figures & tables
Figure 1: Continuations from early prefixes mostly fail and from late prefixes mostly succeed; both yield low signal. VSR samples states in proportion to dπ(s)σπ(s) to capture the highest signal.
Figure 2: An emergent curriculum from the variance-optimal proposal. μvarπ is concentrated near G early in training, and gradually walks backward through the maze toward S as cells closer to the goal are mastered one after another. This is the reverse curriculum: the training signal visits the state space in reverse without any externally imposed schedule. It is a built-in property of variance-optimal sampling: the variance-minimizing distribution by construction concentrates wherever the policy is reachable but still uncertain, and that frontier moves backward as the policy improves.
Algorithm 1 VSR (Variance-driven State Resampling)
Figure 3: Illustration of intermediate states used by VSR. Left: a BabyAI agent after picking up the red key. Right: a math problem with a partial reasoning trace appended.
Model
Method
AIME24
AIME25
AMC23
Olympiad
MATH500
Minerva
Avg
Qwen2.5-7B -Instruct
Base model
10.0
7.9
53.2
39.2
75.6
37.3
37.2
GRPO
8.8
4.8
53.4
38.3
72.5
38.6
36.1
VSR+GRPO
11.4
10.4
57.7
33.5
73.7
38.7
37.6
Llama-3.2 -3B-Instruct
Base model
5.3
0.6
21.8
12.6
40.0
13.8
15.7
SFT
0.3
0.4
7.2
5.0
23.1
5.4
6.9
GRPO
4.4
1.0
18.7
12.6
39.2
16.5
15.4
Table 1: Mathematical reasoning results (%) on AIME24, AIME25, AMC23, OlympiadBench, MATH500, and Minerva. Reinforce-Ada-Est and static uniform expert-prefix resets are additional single-run controls on Llama-3.2-3B-Instruct. Best result in each column is in bold .
Figure 4: Training dynamics on the 1K hard subset of OpenR1-Math-220k for Qwen2.5-7B-Instruct (top) and Llama-3.2-3B-Instruct (bottom). Columns show training reward, validation accuracy, and response length over training steps. VSR+GRPO sustains higher training reward and validation accuracy than GRPO with shorter responses.
Sokoban
BabyAI
Model
Method
SynthLoc
OneRoom
MiniBoss
Avg
Qwen2.5-1.5B-Instruct
Base model
9.4
11.6
9.3
21.4
14.1
GiGPO
12.7
32.3
27.9
30.9
30.4
VSR+GiGPO
18.8
51.2
54.6
36.9
47.6
Qwen2.5-3B-Instruct
Base model
17.2
9.3
18.6
16.7
14.9
GiGPO
21.5
51.2
46.5
30.9
42.9
Table 2: Agentic-task success rates (%) on Sokoban and BabyAI. Best result is in bold .
Figure 5: Training dynamics on BabyAI and Sokoban for Qwen2.5-1.5B-Instruct (top two rows) and Qwen2.5-3B-Instruct (bottom two rows). Columns show training reward, validation success rate, and newly generated continuation length after the selected reset state over training steps. The shorter continuation length partly follows mechanically from starting a fraction of rollouts at intermediate states and should not be read as shorter complete trajectories from the original task state.
Figure 7: Empirical continuation success rate as a function of hint ratio. For each of the 1K hard prompts in the training subset, we truncate the corresponding successful DeepSeek-R1 trajectory to a fraction α∈{0%,25%,50%,75%,100%} of its length and sample 8 continuations under Qwen2.5-7B-Instruct. The blue curve shows the mean per-prompt success rate across the 1K prompts; the shaded band shows the 25–75 percentile across prompts. The mean is approximately linear in α , supporting the linear interpolation used in p^t(si∣τ)=(1−αi)p0(x)+αiR(τ) .
Hyperparameter
Qwen2.5-7B-Instruct
Llama-3.2-3B-Instruct
Replay ratio ρ
0.5
0.5
Training steps
360
360
Max Prompt Length
2048
2048
Max Response Length
4096
4096
Rollout Group Size
8
8
Training batch size
128
128
Appendix
Table 4: Hyperparameters for mathematical reasoning experiments.
Hyperparameter
Qwen2.5-1.5B-Instruct
Qwen2.5-3B-Instruct
Replay ratio
0.3
0.3
Recency window
5
5
Max prompt length
2048
2048
Max response length
256
256
Rollout group size
8
8
Training batch size
32
32
Appendix
Table 5: Hyperparameters for agentic-task experiments.
Method
AIME24
AIME25
AMC23
Olympiad
MATH500
Minerva
Avg.
GRPO
4.4
1.0
18.7
12.6
39.2
16.5
15.4
Reinforce-Ada-Est
4.2
0.1
18.0
12.4
39.9
15.4
15.0
Static uniform expert-prefix resets
5.6
0.5
22.7
14.1
43.7
15.8
17.1
VSR
6.2
0.6
20.4
15.3
54.0
17.8
19.1
Appendix
Table 6: Additional mathematical-reasoning controls on Llama-3.2-3B-Instruct. These are single training runs; the original benchmark evaluation protocol is otherwise unchanged.
Method
Run 1
Run 2
Run 3
Mean ± SD
Uniform replay
46.1
39.1
46.9
44.0±4.3
VSR
47.6
50.8
46.1
48.2±2.4
Appendix
Table 7: Independent-run BabyAI scoring ablation on Qwen2.5-1.5B. Values are average success rates (%).