Demystifying the Autoresearch Harness: How Context and Skills Shape Self-Evolving Agents
Kelvin Kiu-Wai Tam, Newt Hue-Nam K. Nguyen, Tianshi Zheng, Yunxiang Mo, Weihan Li, Zhongwei Xie, Chiu Yeung Tang, Jui-Yu Ho, Yangqiu Song, Ginny Y. Wong, Simon See
cs.AI
2026-11-21
Folding each attempt into a digest beats truncation in all six settings, by up to 19.2%. MLEvolver adds skill deletion and medals in 16 of 22 MLE-Bench Lite contests.
An autoresearch agent can spend dozens or hundreds of rounds on one scored task. The attempt log outgrows the context window, and a dropped attempt cannot be fetched later. A second store, the skill library, keeps natural-language lessons and gets noisier as it grows. AIDE holds a tree of candidates. AlphaEvolve holds a program database. Both change memory and search together, so a higher score has two explanations. This paper changes one memory component at a time inside one loop, against recency truncation: keep the newest attempts that fit, and discard the oldest for good.
Each round picks one action. proposenew starts a different approach, refinecurrent edits the current solution, and debugcurrent repairs a failure. The coder sees the task, any standing rules, skills picked from that task's own library, and a history view. The budget is fixed at 32K tokens. Every configuration of a task starts from the same deliberately weak seed, so later scores are gains over one starting point.
Folding and compaction both respond to a full window, and they keep different things. Folding writes a diagnostic digest of every attempt. The agent then opens the code and logs of a few attempts until the history budget is spent. Compaction merges older attempts into one fixed-length running summary and keeps only a recent tail in full. A single past attempt cannot be opened again.
The skill library starts empty. Deletion removes a skill after five consecutive rounds without selection. Merging fuses a new skill with its nearest neighbor when cosine similarity reaches 0.8, using Qwen3-Embedding-0.6B. Promotion turns a skill into a standing rule, present on every later prompt, only if it coincided with at least one new best.
The backbones are gpt-oss-120b, gpt-6-luna, and gpt-6-sol. MLE-Bench uses 10 Kaggle contests, six low-complexity and four medium, for 100 rounds each. Gold-normalized score (GNS) puts a do-nothing submission at 0 and the gold line at 100, with medium contests weighted 2. KernelBench uses 50 problems, 20 single operators, 20 fused chains, and 10 full models, for 50 rounds each. The metric is geometric-mean speedup over PyTorch Eager.
Folding ranks first in all six model-benchmark cells, 8.6% above truncation on average. Compaction averages 0.3%. Deletion, promotion, and merging average 4.1%, 3.0%, and 2.2%.
| Setting | Truncation | Folding |
| oss, MLE GNS | 70.5 | 76.1 (+7.9%) |
| luna, MLE GNS | 86.1 | 89.7 (+4.2%) |
| sol, MLE GNS | 93.2 | 94.7 (+1.6%) |
| oss, kernel speedup | 1.17× | 1.29× (+10.3%) |
| luna, kernel speedup | 1.46× | 1.74× (+19.2%) |
| sol, kernel speedup | 2.16× | 2.34× (+8.3%) |
The 19.2% cell is the largest of the six, on luna and KernelBench. On sol, MLE moves only 1.6% off a 93.2 baseline. Compaction goes both ways: oss GNS rises from 70.5 to 71.6, while sol falls from 93.2 to 91.6. Kernel speedup falls from 1.17× to 1.16× on oss and rises from 2.16× to 2.20× on sol.
New-best rate in the first 10% of rounds is nearly flat: folding 35.4%, compaction 36.3%, truncation 35.3%. After that, folding is at 12.0%, truncation at 10.2%, compaction at 9.7%. Truncation keeps 6.2 full attempts and about 18.4k tokens. Folding keeps records of 42.0 attempts in about 12.1k tokens. Compaction spends a similar token count and cannot reopen one attempt.
An unmanaged skill library beats a no-skill run by 2.1% on average. On MLE with oss, that library ends at 312 skills, promotion at 330, and deletion at 31. Picks per prompt differ by an order of magnitude: 6.4 to 7.1 for oss, 1.2 to 1.9 for luna, 0.5 to 0.6 for sol. The share labeled offensive is 53.1%, 30.2%, and 25.4%. Average gains from managing skills are 5.1% for oss, 1.9% for luna, and 2.1% for sol.
Across six configurations and three backbones, kernel speedup rises 65.2% in the first half and another 7.4% in the second. GNS rises 41.6 points, then 2.9. Folding leads at the midpoint in five of six settings and finishes first in all six.
MLEvolver stacks folding with deletion and is compared with AIDE and OpenEvolve, an open-source AlphaEvolve. All three use gpt-6-sol, a 32K window, and 100 rounds. The tasks change: 22 low-complexity contests in MLE-Bench Lite, and 50 full-model problems in KernelBench Level 3.
| System | Any medal | Gold | fast1 | fast2 | Final speedup |
| MLEvolver | 72.7% (16/22) | 10 | 94% (47/50) | 62% (31/50) | 2.99× |
| AIDE | 59.1% | 7 | 78% | 26% | 1.85× |
| OpenEvolve | 63.6% | 7 | 70% | 14% | 1.41× |
Medal-rate gains of 23.1% over AIDE and 14.3% over OpenEvolve are ratios, not percentage points. On that same relative basis the two benchmarks average +22% versus AIDE and +24% versus OpenEvolve. On MLE, MLEvolver reaches 97.4 GNS by round 20, already past the other two systems at round 100, and finishes at 98.1, 1.4% above AIDE at 96.7 and 2.6% above OpenEvolve at 95.6. On kernels it hits 2.08× by round 10, past both final scores. From round 50 to 100 it moves from 2.67× to 2.99×, up 11.9%, against 0.8% for AIDE and 5.2% for OpenEvolve.
At about 12.1k tokens, folding still has an entry for 42 attempts. Truncation holds 6.2 full attempts and spends about 18.4k tokens. Compaction spends a similar budget and leaves a summary that cannot be opened, with a lower new-best rate later on. Spending fewer tokens does not, by itself, preserve the experiments that matter.
Five unselected rounds and a skill is removed. On the oss MLE run the library falls from a few hundred entries to 31, and deletion still beats merging and promotion on average. Merging can strip the conditions that made a lesson specific. Promotion can leave an outdated lesson on every later prompt.
oss picks many skills and splits offense and defense about evenly, which is where skill management averages a 5.1% gain. luna and sol often take fewer than two skills, mostly defensive ones, and gain 1.9% and 2.1%. The same skill policy shrinks when the backbone changes.
On Kaggle, a new model family is a different submission. Final GNS values sit high and close together, so medals separate the systems more than the score. Kernel edits can keep building on the last version, and only the MLEvolver chain is still clearly accelerating late. AIDE walks a candidate tree. OpenEvolve samples from islands of programs. How much of that gap is the memory policy alone is not isolated.
The paper states three boundaries. The loop is one refinement chain, so parallel tree search and population evolution are untested. Claude Code and Codex are absent, because their tool calls do not share one iteration unit. Each task builds its own skill library, so cross-task transfer is outside the claim.
The ablation and the head-to-head do not share a task set. Ten contests, a mix of KernelBench levels, and 50 kernel rounds do not explain a 72.7% medal rate on Lite or a 94% fast1 on Level 3. Folding and deletion are not crossed again, so the combination is unmeasured against either piece alone.
Variance is unreported, and each contest reads as a single trajectory. Seeds are deliberately weak, and the second half adds only 2.9 GNS on average. Whether the same memory is worth its window from a strong start is open. Deletion is fixed at five consecutive misses, a poor match to a model that picks six or seven skills a turn and another that picks under one, and the threshold is not swept. The lead figure says a skill goes after 20 unselected attempts. The method sets the threshold at 5. KernelBench documents reward-hacking checks. The MLE side says much less about submissions that game the metric.