Policy gradient (PG) methods such as GRPO dominate LLM fine-tuning, yet recent work showed that Evolution Strategies (ES) also scale to fine-tuning models with billions of parameters. Which method needs fewer samples, and on which tasks, remains unclear. We view the two methods as estimators of the same gradient that differ in where they explore. Because ES perturbs parameters, its noise grows with the number of parameters, and because PG samples actions, its noise grows with the number of generated tokens. Only noise along the directions that change the reward slows learning. The cost of ES then depends on the effective dimension, the number of independent skills a task requires rather than its parameter count, while the cost of PG depends on the effective horizon, which counts only the tokens that share both credit and weights with the reward-carrying ones. We train both methods on a synthetic task where the number of skills and the effective horizon can be varied separately. PG is cheaper when the horizon is short, ES becomes cheaper once it is long enough, and this crossover moves to longer horizons as the number of skills grows. We then measure the effective horizons of 20 NLP, math reasoning, and agentic tasks and compare the two methods with Qwen2.5-7B. PG leads on short-horizon tasks, the two tie on the moderate-horizon math ones, and no task has a horizon in the regime where the theory predicts an ES advantage. Terminal-Bench has a far longer horizon. There, in a preliminary comparison with Qwen3.5-4B, ES without any credit assignment reaches a higher success rate than the PG checkpoint released with Tmax, as the theory predicts. ES should thus have the advantage on long-horizon tasks with few independent skills and a nonvanishing reward signal. Current benchmarks are only at the onset of this regime, so ES should become more competitive as agentic tasks grow longer.
Figures & tables
Figure 1: Parameter-space and action-space exploration. ES and PG estimate nearly the same gradient but draw their noise from different spaces. (a) The expected reward landscape J(θ) . (b) ES perturbs the parameters with Gaussian noise of scale σ and estimates the gradient of the smoothed objective Jσ(θ)=Eε[J(θ+σε)] . (c) PG samples actions and estimates the gradient of J . The ES target gradient approaches the PG target gradient as σ→0 .
Figure 2: The controlled testbed. The testbed sets the number of independent skills and the number of reward-irrelevant tokens separately. The task has r independent skills, each with its own inputs and its own targets. A rollout samples one skill, and a policy with shared parameters θ∈RD emits a categorical distribution over V tokens at each of T=k+F positions. The k decision positions have fixed targets, and the reward is the fraction of them that are correct. The F filler positions do not affect the reward but still enter the PG gradient. The controls are the number of skills r , the decisions per skill k , the filler length F , the parameter count D , and the vocabulary size V .
Figure 3: Variance at a fixed policy. Counted over all directions, the noise of ES grows with the parameter count and that of PG with the sequence length. Panels (a) and (b) use the linear lift at initialization with one skill, k=4 , and V=5 , and measure trCov(g^) without optimization. (a) ES variance grows linearly with D over a 1000× range. (b) PG variance grows linearly with T . (c) Per-step score energy κ is bounded for categorical actions and grows linearly with continuous action dimension.
Figure 4: What each method pays for. ES pays mainly for the number of skills and PG for the effective horizon, and neither pays for the parameter count. Left, the number of independent skills r ; right, the horizon. Top, reward-relevant variance at initialization, relative to its value at r=1 (a) or F=0 (b); bottom, trained cost in rollouts per skill to reach expected reward 0.9 . PG uses terminal credit unless marked per-token. (a) Variance against r at F=1024 . Dotted lines are ∝r for ES and, for PG , the measured no-filler variance plus the filler term γβF of Teff (Section 3 ), with the overlap γ measured at each r and no fitted parameter. (b) Variance against k+F at r=4 , with Teff=k+γβF dotted. (c) Cost per skill against r at F=1024 ; inset, against the parameter count D at r=4 without filler. (d) Cost per skill against the horizon at r=4 . Error bars are interquartile ranges over 8 (c) and 16 (d) seeds.
γ→0 (no overlap)
γ>0 (shared weights)
β→0 (per-token credit)
free
free
β≈1 (terminal credit)
free
paid for
Table 1: When PG pays for filler. Filler lengthens the effective horizon only when it both receives credit ( β>0 ) and overlaps the reward-relevant directions through shared weights ( γ>0 ).
Figure 5: Trained sample cost on the shared MLP. ES becomes cheaper than PG beyond a crossover horizon, which grows with the number of skills and is set by the effective horizon rather than the number of filler tokens. All runs use k=4 and terminal credit, with both methods tuned in every cell. Sample cost is the number of rollouts until the expected reward of the policy reaches 0.9 . (a) Ratio of the costs of PG and ES across the number of independent skills and the filler length, with local filler. The dashed line marks where the two methods tie. (b) The horizon at which the two methods tie, against the number of skills, for local and global filler. In filler tokens (dashed) the two filler types differ by up to an order of magnitude. In effective tokens, Teff=k+γF with the overlap γ measured against the reward-relevant directions of all skills (solid), they agree within about a factor of two at every number of skills except two, and the tie horizon grows with the number of skills. Table 4 lists the costs.
Figure 6: Real tasks on the horizon axis, and trained outcomes. Current benchmarks sit at short to moderate effective horizons, below the crossover, where PG should need fewer samples. (a) Sampled tokens per rollout (tick) and effective horizon Teff (marker) of each task, measured in the setup of its training run and ordered by Teff (values in Table 6 ). Grey marks classification tasks, whose base accuracy is 78% to 88% . (b) Final score of ES minus that of PG . Filled: our comparisons at equal episodes, each method tuned (mean of three seeds, bars combine the two standard deviations). Hollow: outcomes reported by Qiu et al. (2026) , whose math baselines are released RL checkpoints, not matched runs.
Figure 7: Performance comparison on Terminal-Bench 2.1. Vanilla ES improves on the base model at least as much as the best released PG checkpoint for this model on Terminal-Bench 2.1, a task far longer than those of Fig. 6 . Results show the Qwen3.5-4B base model before training, after ES fine-tuning, and after PG training with the Tmax recipe ( Ivison et al., 2026 ) . Each checkpoint is evaluated five times, and bars show the mean and the spread over the five evaluations. Results from Schweighofer et al. (2026) .
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
condition
γ
F=64
F=1024
F=4096
terminal credit, local filler
0.57
10.6 / 10.1
154.5 / 145.8
612.9 / 580.2
terminal credit, global filler
0.06
2.0 / 2.0
17.0 / 16.8
64.8 / 64.2
per-token credit, local filler
0.00
1.0 / 1.0
1.0 / 1.0
1.0 / 1.0
Appendix
Table 2: Reward-relevant PG variance relative to its value without filler, measured / predicted by (k+γβF)/k ( r=4 skills, k=4 , 300 gradient estimates of 64 rollouts per condition, 3 seeds). Here every estimate uses one fixed skill and is projected onto that skill’s reward-relevant subspace, so the no-filler variance contains no term from sampling the skill. Fig. 4 b samples the skill and projects onto the subspace of all four skills, so its growth with filler is smaller.
ES (parameter space)
PG (action space)
explores by
perturbing parameters θ±σε
sampling actions a∼πθ
observes
scalar return R
per-token scores ψt
samples per update
P perturbations
G rollouts
energy per unit
1/σ2 (tunable)
κ=1−∑vpv2≤1
reward noise
Var(R)≤41
Var(A^)≤41
nominal count
D parameters
T positions
Appendix
Table 3: The ES – PG correspondence. Both reward-relevant variances are a product of reward noise, the energy per unit, and an effective count. In the testbed, Deff=r⋅k does not change with D , while Teff=k+γβF grows with F unless γ or β is zero.
PG
skills r
ES
F=0
F=256
F=1024
F=4096
terminal credit, local filler
1
512
64
256
1,408
4,096
2
896
144
1,072
1,536
4,944
4
992
176
640
2,712
7,096
8
1,428
200
692
2,756
9,884
Appendix
Table 4: Median rollouts per skill until the expected reward reaches 0.9 ( k=4 ). ES does not depend on the filler or on the credit scheme.
Figure 8: Global filler. With filler that overlaps every skill, the cost of PG per skill grows with the number of skills about as fast as that of ES , so the two methods stay close throughout. Same grid and color scale as Fig. 5 a, with one set of filler codes shared by all skills.
Figure 9: Hyperparameters and rollouts per update. ES must tune its step size and perturbation scale together, and the number of rollouts per update barely moves where the two methods tie. All runs use k=4 . (a)–(c) Cost of ES in rollouts per skill, the mean over 4 tuning seeds, over its step size and perturbation scale, for 4 , 16 , and 64 skills. The red box marks the selected setting, and > marks runs stopped at their tuning cap. (d)–(f) Updates needed to reach the target, re-tuned at every value, against the population N of ES , the group size G of PG with and without filler, and the number of prompts per update with N=G=64 . A flat curve means that extra rollouts are wasted, and a curve falling as one over the rollouts per update means that the total cost is unchanged.
Figure 10: How each method learns the skills. PG locks few decisions, mostly at long filler with many skills, where its locks persist, while ES commits decisions early and repairs most wrong ones later, and more skills slow ES down much more than PG . Each panel is one training run at the tuned setting of the plane ( k=4 , local filler). Thin lines show, for each skill, the probability that the policy produces its targets, and the black line is the average over skills. The strip below each panel shows the fraction of decisions that are locked. Rows are PG with no filler, with 1,024 filler tokens, and with 16,384 filler tokens, and ES , which filler does not affect. Columns are the number of skills. The number in each panel is the cost in rollouts per skill. The PG run with 64 skills and 16,384 filler tokens was not tuned separately and stops at its budget.
Figure 11: Repair of wrong decisions, measured in training runs. ES keeps pulling a wrong decision back toward its target up to a margin set by σ , whereas the pull of PG vanishes as the wrong token gains a lead, so ES repairs most locked decisions and PG leaves many locked. All runs use 16 skills, k=4 , no filler, and four seeds per setting. PG runs at step sizes above its tuned value of 0.003 , where it locks often enough to measure. The horizontal axes give the margin m by which a wrong token leads. (a) The pull μ(m) toward the target in an update of the decision’s own skill, divided by the step size. Values below zero mean that these updates on average push the wrong token further ahead, and bars are standard errors. (b) Probability that the target is back in the lead within 20 updates. (c) Of the decisions locked when the number of locks is largest, the fraction still not repaired 400 updates later. Bins with fewer than five locked decisions are omitted.
task
problems × rollouts
tokens
Deff (interval)
half budget
signal
reference
webq
64×128
117
12 ( 12 – 22 )
15 , 11
0.75
60
trivia
128×128
62
24 ( 20 – 36 )
27 , 22
0.64
19
squad
128×128
30
35 ( 27 – 53 )
35 , 32
0.88
35
translate
128×128
25
125 ( 103 – 247 )
135 , 111
0.88
204
xsum
64×512
43
385 ( 309 – 517 )
453 , 325
0.74
14
webshop ∗
119×128
85
19 ( 16 – 22 )
22 , 16
0.60
30
Appendix
Table 5: Number of independent skills from reward gradients, Eq. 13 , on Qwen2.5-7B-Instruct. Problems × rollouts per problem; tokens per rollout; the estimate with its 68% bootstrap interval over problems; the estimates from the two halves of the rollout budget; the share of each gradient estimate that is signal; and the reference-gradient dimension on the same problems. MATH-500 uses problems screened for a mixed outcome in 8 rollouts. ∗ Without the one goal of 120 whose signal is about 430 times the median.
task
N
tokens
Teff
held out
Deff
weighted
reward
alfworld
256
158
125 ( 114 – 140 )
135
41 ( 39 – 43 )
49
0.31
webshop
44 †
87
59 ( 50 – 66 )
79
30 ( 27 – 35 )
28
0.17
olympiad
256
1,202
522 ( 466 – 571 )
560
77 ( 72 – 83 )
32
0.10
math-500
256
1,104
434 ( 341 – 527 )
458
39 ( 35 – 42 )
6.9
0.33
aime
30 †
1,037
380 ( 309 – 484 )
558
131 ( 102 – 178 )
80
0.07
amc
28 †
1,077
261 ( 191 – 362 )
295
101 ( 84 – 124 )
64
0.21
Appendix
Table 6: Horizon and reference-gradient dimension of every task in Fig. 6 , each measured with the model and sampling of its training run. Tokens are the mean generated tokens per rollout, the tick of Fig. 6 a. Intervals are 68% bootstrap intervals over examples. The held-out horizon leaves the measured examples out of the reference subspace. The two Deff columns are the reference-gradient dimension, unit-norm and weighted by gradient norm, and follow the style of the references rather than the number of skills. Reward is the mean reward of the base model’s rollouts. The three blocks are the agentic tasks, the math tasks with Countdown, and the language tasks. † Fewer than 100 references. ∘ The reward varies across rollouts for fewer than 5% of the examples.
task
base
PG LoRA
PG all weights
ES
rate
SQuAD
0.281
0.820±0.022
0.822±0.007
0.378±0.097
1×10−6
TriviaQA
0.098
0.566±0.008
0.541±0.021
0.099±0.020
3×10−6
WebQuestions
0.106
0.300±0.016
0.282±0.008
0.107±0.004
1×10−6
XSum
0.260
0.350±0.006
0.341±0.004
0.266±0.009
3×10−6
translation
0.521
0.575±0.004
0.581±0.009
0.522±0.002
3×10−6
IMDB
0.880
0.963±0.026
0.978±0.031
0.913±0.010
3×10−6
Appendix
Table 7: PG on rank- 16 LoRA adapters and on all weights, with ES on all weights, on the language tasks at Qwen2.5-7B-Instruct. Final held-out scores, mean and standard deviation over three seeds at the selected configuration. The last column is the selected learning rate of full-weight PG .
task
Teff
base
PG
ES
ES − PG
csqa
1.6
0.840
0.842±0.014
0.850±0.015
+0.008
arc
1.8
0.850
0.853±0.005
0.852±0.012
−0.002
boolq
2.0
0.865
0.878±0.013
0.858±0.005
−0.020
agnews
2.3
0.780
0.823±0.070
0.803±0.013
−0.020
winogrande
2.5
0.800
0.802±0.033
0.783±0.005
−0.018
imdb
4.1
0.880
0.963±0.026
0.913±0.010
−0.050
Appendix
Table 8: Head-to-head comparisons at Qwen2.5-7B-Instruct after tuning both methods, ordered by measured horizon. Final held-out scores at each method’s selected configuration, mean and standard deviation over three seeds.
task type
base
update 10
update 20
update 30
pick and place ( 18 )
6
10
13
13
pick two ( 18 )
4
6
8
15
clean ( 24 )
2
3
10
13
examine ( 10 )
2
3
7
8
cool ( 18 )
1
1
0
5
heat ( 8 )
1
2
3
3
Appendix
Table 9: Held-out ALFWorld games won by PG (one seed) by task type, out of the number in brackets.
Cognizant AI Lab, San Francisco, CA, USA · Massachusetts Institute of Technology, Cambridge, MA, USA · University of California, Los Angeles, Los Angeles, CA, USA +1