When an AI rewrites its own setup to get smarter, it mostly just memorizes the last problem's answer — not a transferable lesson.
Why do evolved harness edits mostly memorize rather than generalize?
This explores why, when an agent rewrites its own scaffolding (prompts, tools, instructions) to do better, those edits tend to cache one-off fixes for specific tasks instead of learning transferable strategies.
This explores why an agent's self-edits to its own harness end up caching task-specific patches rather than distilling reusable strategy. The most direct answer in the corpus is almost deflationary: when researchers actually read the evolved edits, the changes look rational across prompt and tool layers, but most of them just persist a shortcut the agent could have rediscovered on its own in a single try Do harness edits learn strategies or just memorize fixes?. The edits cache fixes for problems that were already solvable; they rarely convert a genuine failure into a success. So 'memorization' here isn't a bug in the search — it's what a greedy loop naturally produces when the cheapest way to raise the score is to hard-code the answer to the task in front of it.
The deeper reason becomes clear once you notice that harness evolution is itself a search loop. Its reported gains are confounded with plain search effort, so unless you compare against a matched task-level search budget and evaluate on held-out tasks, you can't tell whether the harness got smarter or just got more attempts — and 'more attempts, memorized' is exactly the null hypothesis Are harness evolution gains really from better design?. Memorization is the path of least resistance for any optimizer graded on the training set; generalization only shows up when the evaluation forces it.
There's a suggestive parallel in how models absorb instructions and rewards more generally. Instruction tuning turns out to teach the output format, not task understanding — models trained on semantically empty or even wrong instructions perform about as well, because what transfers is knowledge of the answer space, not reasoning Does instruction tuning teach task understanding or output format?. RL post-training similarly tends to collapse onto one dominant format and suppress alternatives rather than expand capability Does RL training collapse format diversity in pretrained models?. Evolved harness edits sit in the same family: local optimization pressure rewards surface fixes that satisfy the visible signal, and the strategic, generalizing content is precisely what's hardest to elicit.
What's striking is that the corpus also shows the opposite is achievable when memory is structured deliberately. The ACE framework treats context as an evolving playbook, using generate-reflect-curate loops and incremental updates so that hard-won detail isn't compressed away into a bland shortcut — and it posts double-digit gains without labeled supervision Can context playbooks prevent knowledge loss during iteration?. Reflexion gets agents to learn from failure by storing verbal self-diagnoses in episodic memory, and it works precisely because binary success/failure feedback blocks rationalization Can agents learn from failure without updating their weights?. VOYAGER compounds reusable, composable skills into a library so new abilities build on old ones instead of overwriting them Can agents learn new skills without forgetting old ones?. The contrast is the real lesson: naive harness evolution memorizes because nothing in the loop rewards abstraction; the systems that generalize add explicit machinery — reflection, curation, composition — that forces a fix to be turned into a strategy before it's stored.
One last wrinkle worth knowing: the ability to write useful edits and the ability to benefit from them aren't the same. Edit-writing capacity is roughly flat across model tiers, but the payoff follows an inverted-U, peaking in mid-tier models — weak models never invoke the harness, and strong ones struggle to follow their own instructions faithfully Do stronger models always evolve harnesses better?. And how the harness is represented matters: reorganizing it around runtime behavior rather than raw code lets even weaker planners localize correctly Can explicit behavior maps help weaker planners compete with stronger models?. So whether an edit memorizes or generalizes is not fixed by the agent's raw strength — it's shaped by the loop's incentives and the harness's structure, both of which you can design.
Sources 9 notes
Inspecting evolved harness edits reveals rational changes across prompt and tool layers, but most persist fixes the agent could rediscover in one rollout. Gains remain limited because edits cache shortcuts for already-solvable tasks rather than converting failures into successes.
Harness evolution is itself a search loop, so its reported improvements are confounded with search effort. Only improvements beyond equal task-level search budget can be attributed to harness design, and held-out evaluation is needed to rule out task memorization.
Models trained on semantically empty or deliberately incorrect instructions achieve comparable performance to those trained on full correct instructions, achieving 43% vs random baseline 42.6%. The semantic content of instructions appears largely irrelevant; what transfers is knowledge of the output space.
Controlled experiments show RL consistently amplifies one format distribution from pretraining within the first epoch while collapsing alternatives. The winning format depends on model scale, not necessarily performance, and is largely hidden when starting from proprietary pretrained models.
The ACE framework treats contexts as evolving playbooks using generation-reflection-curation loops rather than full rewrites. This prevents knowledge loss from compression and detail erosion, achieving +10.6% on agentic tasks and +8.6% on finance without labeled supervision.
Show all 9 sources
Reflexion demonstrates that unambiguous environmental feedback (success/failure) enables agents to write useful self-diagnoses and improve across episodes without parameter updates. The binary signal prevents rationalization, and keeping reflections uncompressed preserves their usability.
VOYAGER demonstrates that storing executable skills in an embedding-indexed library and composing complex skills from simpler ones allows agents to learn continuously while avoiding the forgetting that occurs with weight-update-based methods. Environmental feedback refines skills while an automatic curriculum drives continual exploration.
Model capability to produce useful harness edits stays constant across tiers, but capacity to actually benefit from those edits follows an inverted U-shape, peaking in mid-tier models. Weak models fail to invoke harnesses; strong models struggle with faithful instruction-following.
A behavior-to-code mapping representation improved win rates by 10–19 points while reducing planner tokens by 8–13%. Weaker planners using this mapping matched stronger models' code localization across all precision and recall metrics.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Harness Updating Is Not Harness Benefit: Disentangling Evolution Capabilities in Self-Evolving LLM Agents
- Rethinking the Evaluation of Harness Evolution for Agents
- Harness Handbook: Making Evolving Agent Harnesses Readable,Navigable, and Editable
- Scaling Laws for Agent Harnesses via Effective Feedback Compute
- From Model Scaling to System Scaling: Scaling the Harness in Agentic AI
- SkillClaw: Let Skills Evolve Collectively with Agentic Evolver
- Useful Memories Become Faulty When Continuously Updated by LLMs
- Continual Learning Bench: Evaluating Frontier AI Systems in Real-World Stateful Environments