INQUIRING LINE

When researchers tweak how an AI agent uses its tools to do better on test tasks, the gains often vanish on new tasks — why?

Why do evolved harness edits often fail to generalize beyond their training tasks?

This explores why an AI agent's scaffolding (its prompts, tools and control flow, together called the harness) can be automatically rewritten to score better on the tasks it was tuned on, yet lose much of that gain on new tasks.


This explores why automatically rewriting an agent's harness (the prompts, tools and control flow wrapped around a frozen model) often produces gains that shrink once the agent leaves the tasks it was tuned on. The corpus's most direct answer is that the edits are mostly a cache, not a lesson. When researchers traced harness-evolution runs edit by edit, the changes looked sensible, but most of them stored fixes the agent could have rediscovered on its own within a single attempt Do harness edits learn reusable strategies or memorize task fixes?. A saved shortcut helps on the task it came from. It does not give the agent a capability it lacked, so there is little to carry over.

The loop itself pushes in that direction. Edits are proposed from failures on a fixed set of tasks and kept if the score on those same tasks rises, so a benchmark-specific patch and a reusable mechanism look identical to the selection step. One line of work treats this as ordinary overfitting and adds constraints at both the proposal and selection stages to favor reusable mechanisms Does harness self-improvement memorize tasks instead of learning broadly?. Another evolves each harness module separately, on data kept apart from the benchmark, and pools evidence across many tasks before changing anything, which is what lets it separate mechanism-level improvement from task adaptation Can harness modules improve separately from benchmark data?.

There is also a measurement problem that makes the failure easy to miss. Harness evolution is a search loop, so some of its reported gain may just be extra attempts at the tasks. Unless it is compared against plain task-level search given the same feedback and inference budget, you cannot tell better design from more effort How should harness evolution gains be fairly compared?. That fits the memorization finding: if an edit only records what one more rollout would have found, the 'improvement' is search spending under a different name.

A less obvious cause is that a harness edit only helps if the model actually uses it. Producing useful edits turns out to be about equally easy for weak and strong models, but benefiting from them peaks at mid-tier models: weak ones fail to activate or follow the added material, and the strongest ones follow it less Do stronger models evolve harnesses better than weaker ones?. So an edit can fail to transfer across models as well as across tasks.

None of this means evolved harnesses cannot generalize. An agent rewritten seven times over eight days matched or beat a human-refined one on four held-out benchmarks, including out-of-distribution physics tasks Can evolution match human-built agents on unseen tasks?, and optimizing across many environments at once surfaced four general mechanisms that cut token traffic nearly in half at comparable performance Can agent harnesses be automatically optimized across many environments?. The successes share a trait: the evidence behind each edit came from many tasks or environments, so only changes that helped broadly survived.


Sources 7 notes

Do harness edits learn reusable strategies or memorize task fixes?

Analysis of harness-evolution trajectories reveals rational edits across prompt and tool layers, but most persist fixes an agent could rediscover in a single rollout. Gains remain limited because memorized shortcuts only cache solutions already within reach, not unlock new capabilities.

Does harness self-improvement memorize tasks instead of learning broadly?

Recursive edits to agent scaffolding can memorize evolve-set tasks, causing in-distribution gains to shrink out-of-distribution. RRSI addresses this by constraining the proposal and selection stages to favor reusable mechanisms over benchmark-specific ones.

Can harness modules improve separately from benchmark data?

ModularRSI evolves harness modules independently using contrastive trajectories on benchmark-disjoint data, showing consistent gains across unseen tasks and domains. The approach isolates mechanism-level improvements from task-specific adaptation by aggregating evidence across tasks before updating components.

How should harness evolution gains be fairly compared?

Harness evolution is itself a search loop, so its reported gains must be compared against task-level search under identical feedback and inference budgets. Without this control, improvements are confounded between better design and more search effort.

Do stronger models evolve harnesses better than weaker ones?

Producing useful harness edits shows no capability advantage across model tiers, but using those edits peaks at mid-tier models and declines at stronger tiers. Weak models fail to activate or follow harness artifacts; strong models lose these capabilities as scaling erodes instruction-following.

Show all 7 sources
Can evolution match human-built agents on unseen tasks?

An agent improved through seven automated rewrites over 8 days performed as well as or better than a human-refined agent on four unseen benchmarks, including out-of-distribution physics tasks. This suggests evolutionary self-improvement can achieve parity with human-driven R&D on generalization.

Can agent harnesses be automatically optimized across many environments?

Cross-environment harness optimization yielded four mechanisms (action execution, context compaction, observation handling, delegated reading) that reduced token traffic by 44.7–49.0% while maintaining comparable performance on a 51-task benchmark, suggesting harness-level gains are orthogonal to model improvements.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.