TL;DR
Imagine trying to navigate a billion-dimensional maze in the dark by only taking 30 random steps at a time to test the ground—and somehow finding the exit anyway, only to start wandering off and forgetting how you got there. That is the strange reality of fine-tuning Large Language Models (LLMs) with Evolution Strategies (ES). This paper uses continuous-time physics-style math to unify and explain why ES works against all dimensional odds, why training rewards mysteriously peak and then decay, and why models suffer massive catastrophic forgetting along the way.
What Problem Does This Paper Address?
When aligning LLMs, gradient-based reinforcement learning (like PPO or GRPO) is the standard tool, though it is notoriously finicky and prone to reward hacking. Recently, Evolution Strategies (ES)—a derivative-free, "zeroth-order" method that perturbs model weights with random noise and shifts toward better-scoring perturbations—has emerged as a surprisingly stable alternative.
However, empirical results with ES present three baffling puzzles that classical optimization theory cannot explain:
- The Dimensionality Paradox: Classical math says random search in $D \approx 10^9$ parameters should fail miserably with a tiny population of $N \approx 30$ perturbations. Yet, it works.
- Training-Reward Rise-then-Decay: During ES fine-tuning, the training reward often climbs nicely, hits a peak, and then mysteriously starts dropping.
- Catastrophic Forgetting: Even after training accuracy converges, performance on general pre-training benchmarks keeps decaying, accompanied by massive parameter drift far larger than in gradient-based RL.
Methods
Instead of tracking discrete, noisy steps, the authors zoom out and model Z-score-normalized ES (standard ES where batch rewards are normalized by their mean and standard deviation) as a continuous-time Stochastic Differential Equation (SDE)—the same mathematical machinery used to describe Brownian motion in physics.
What’s new here is combining an exact finite-batch weak SDE approximation with a geometric split of the parameter landscape around a local optimum:
- The Effective Subspace ($d$ dimensions): A tiny, low-rank slice of space where task curvature (the Hessian) is sharp and real learning happens ($d \ll D$).
- The Neutral Subspace ($D - d \approx D$ dimensions): The vast, nearly flat expanse of remaining parameters where the training task barely cares if weights move.
By tracking dynamics across Adaptive (steep gradient) and Neutral (flat gradient) regimes, the authors separate purposeful optimization progress from high-dimensional random wandering.
Datasets
No new benchmarks are introduced. Alongside synthetic quadratic toy landscapes, the authors fine-tune seven LLMs across five model families (Qwen2.5, OLMo-2, SmolLM2, Llama-3.2, and Phi-4) on four reasoning/math tasks: Countdown, GSM8K, MATH, and SVAMP. Pre-training capability retention (forgetting) is evaluated on HellaSwag.
Key Insights and Ideas
- Darwin Meets Kimura in Weight Space: Borrowing a neat analogy from evolutionary biology, ES exhibits Darwinian positive selection in the tiny effective subspace while simultaneously undergoing Kimura’s neutral drift—accumulating relentless random noise across the billion-dimensional neutral subspace.
- Why $N=30$ Beats Billions of Parameters: In the Adaptive Regime, forward progress speed doesn't depend on $D$, and the competing noise baseline scales with $d/N$ rather than $D/N$. As long as the intrinsic task dimension $d$ is small, tiny populations suffice.
- Z-Score Shaping isn't Just a Hack: Normalizing rewards via Z-scores acts like an automatic adaptive learning rate and attains the theoretical Fisher-information upper bound for sensitivity under an auxiliary Gaussian reward model.
- One Drift Explains Two Bugs: Because the neutral subspace isn't perfectly flat—just very weakly curved—relentless neutral diffusion eventually adds up to a noticeable quadratic penalty, causing rise-then-decay on the training task. Meanwhile, pre-training tasks (like HellaSwag) do care about those "neutral" directions, so that exact same parameter drift causes catastrophic forgetting.
- Smarter Compute Budgets: For a fixed evaluation budget ($C = N \times T$ steps), neutral drift scales inversely with $N^2$. Once initial rapid learning finishes, using a larger population $N$ for fewer steps $T$—or simply stopping early—curbs destructive parameter drift.
Key Results
- Pinpoint SDE Accuracy: Closed-form SDE approximations match actual discrete ES trajectories on smooth and oscillatory synthetic landscapes within 6.6% and 4.2% relative error, respectively.
- Clockwork Parameter Drift: Across all seven LLMs and four tasks, squared weight displacement grows almost perfectly linearly with updates—landing just 1% to 12% above the theoretical nominal rate ($\eta^2 D$).
- Predictable Learning Curves: Early LLM reward improvements closely follow the predicted quadratic reference curve, achieving median $R^2$ values between 0.955 and 0.978.
- Forgetting & Population Scaling: HellaSwag accuracy showed a negative slope against the square root of updates in 56 out of 62 LLM runs. On Qwen2.5-0.5B (Countdown), small populations ($N=8$ and $N=15$) suffered 13%–15% post-peak training reward drops, whereas $N=30$ stayed within 2% of its peak over 2,000 iterations.
Limitations and Future Work
The theoretical analysis is local to a single optimization basin with a static effective subspace, meaning it doesn't capture "mode hopping" between distinct optima or large-step finite-discretization quirks. Empirically, LLM runs used 2–3 seeds per cell, population/horizon sweeps focused only on Qwen2.5-0.5B, and forgetting was tested solely on HellaSwag. Finally, the authors didn't directly measure the intrinsic dimension $d$ or evaluation-task Hessians in the LLMs—highlighting direct estimation of these curvatures, along with covariance-adapted ES (like CMA-ES), as prime territory for future work.
Summary updated