Imagine you’re trying to tune a grand piano. You have two choices. You could meticulously adjust every single string, one by one, listening for the perfect pitch (that’s Policy Gradient). Or, you could give the entire piano a calculated, rhythmic shake and see if the overall harmony improves (that’s Evolution Strategies).
For years, the "string-by-string" approach has dominated the world of Large Language Model (LLM) fine-tuning. But as our AI agents start tackling longer, more complex tasks, the strings are getting tangled. This paper asks a provocative question: Is it time to start shaking the piano?
TL;DR
Policy Gradient (PG) methods are the industry standard for LLM tuning, but they struggle with "noise" as tasks get longer. Evolution Strategies (ES), which perturb the model’s parameters rather than its actions, turn out to be surprisingly efficient because they don't care how many parameters a model has—only how many independent "skills" the task requires. As we move toward long-horizon agentic tasks, ES is poised to become the superior tool.
What Problem Does This Paper Address?
Fine-tuning an LLM with Reinforcement Learning (RL) usually involves methods like PPO or GRPO. These are Policy Gradient methods: they sample different words (actions) and see which ones lead to a reward. This works great for short answers, but for "long-horizon" tasks—like an agent navigating a complex computer terminal over hundreds of steps—PG hits a wall.
The problem is credit assignment. If an agent performs 1,000 actions and gets a "success" at the end, which of those 1,000 actions actually helped? PG treats every token as potentially responsible, which introduces massive "noise" into the learning process. Evolution Strategies (ES) avoid this by tweaking the model's weights directly and looking at the total reward, but researchers long feared ES wouldn't scale to models with billions of parameters.
Methods
The authors compare these two methods by viewing them as two different ways to estimate the same goal: the gradient of the reward.
- Policy Gradient (PG): Explores in action space. Its "cost" is tied to the effective horizon ($T_{eff}$)—essentially, how many tokens in a sequence are relevant to the reward.
- Evolution Strategies (ES): Explores in parameter space. Its "cost" is tied to the effective dimension ($D_{eff}$)—the number of independent skills needed, rather than the total number of parameters in the model.
To prove this, they built a "Multi-skill combination lock" (Figure 2), a synthetic testbed where they could precisely control the number of skills and the length of "filler" (useless) tokens to see exactly when one method overtakes the other.
Datasets
The researchers didn't just stay in the lab; they tested these theories across 20 diverse tasks using the Qwen2.5-7B and Qwen3.5-4B models:
- NLP & Reasoning: SQuAD, TriviaQA, GSM8K, MATH-500.
- Agentic Tasks: ALFWorld (household chores) and WebShop (online shopping).
- The "Final Boss": Terminal-Bench, a high-stakes environment where agents must solve complex engineering tasks in a Linux terminal. This benchmark has a much longer horizon than typical RL tasks.
Key Insights and Ideas
- "Dimension is Free": This is the headline-grabber. Even though an LLM has billions of parameters, fine-tuning usually only happens in a low-dimensional subspace. ES doesn't pay a penalty for the "ambient" size of the model; it only pays for the complexity of the task itself.
- "Horizon is Not": For PG, every extra token is a potential source of noise. As tasks get longer, the "effective horizon" grows, making PG increasingly unstable and expensive.
- The Crossover Point: There is a predictable "sweet spot" where ES becomes cheaper than PG. If a task is long (high horizon) but relatively simple in terms of the number of independent skills required (low dimension), ES wins.
Key Results
- Short Tasks: On standard NLP tasks (short horizons), PG remains the king. It’s more sample-efficient and reaches higher scores faster.
- The Tie: On mathematical reasoning tasks (moderate horizons), the two methods are roughly neck-and-neck.
- The ES Victory: On Terminal-Bench, which features sequences in the thousands of tokens, "vanilla" ES (with no special engineering) outperformed the specialized PG checkpoints released by other researchers.
- Stability: ES was able to "repair" wrong decisions that PG had "locked in." Because ES perturbs parameters, it can find its way out of local minima that PG gets stuck in (Figure 1).
Limitations and Future Work
While ES shines in long horizons, it still requires a reward signal. If the task is so hard that the model never sees a success, neither method can learn.
The authors also note that current benchmarks are mostly "short" by ES standards. We are only just entering the regime where ES becomes competitive. Future work will likely look at multi-agent training, where the "horizon" includes the actions of many different models, potentially making the case for Evolution Strategies even stronger.
In short: if you're building an AI to write a haiku, stick with Policy Gradients. But if you're building an agent to manage a cloud server for an hour? It might be time to start shaking the piano.
Summary updated