It’s late, your coffee is cold, and you’re probably wondering if an AI could just do this research for you. The good news? Researchers are working on exactly that. The bad news? Building an AI that can autonomously run, fail, and refine experiments over hundreds of iterations is surprisingly hard—not because the models are "dumb," but because they have terrible memories.
In their paper, Demystifying the Autoresearch Harness, Tam et al. take a scalpel to the "harness"—the software infrastructure that manages an agent's memory—to find out what actually makes a self-evolving AI tick.
TL;DR
The secret to a great AI researcher isn't just a bigger brain (model); it’s a better filing system. By systematically testing how agents store past attempts and "lessons learned," the authors found that keeping expandable digests of every past attempt ("folding") and aggressively deleting unused skills is the winning formula, leading to their state-of-the-art agent, MLEvolver.
What Problem Does This Paper Address?
We are entering the era of "AI for AI" (AI4AI). We want agents that can hop onto Kaggle, write CUDA kernels, or optimize neural networks entirely on their own. These are "long-horizon" tasks: the agent might try 100 different approaches to solve one problem.
The bottleneck is the context window. As the agent works, its history grows until it overflows. If the agent simply forgets the first 50 attempts (recency truncation), it might repeat old mistakes. If it tries to summarize everything into a single paragraph, it loses the technical nuances that led to a breakthrough. Similarly, if it saves every "pro-tip" it discovers, it eventually drowns in a "skill library" so bloated that it can't find the useful advice anymore.
The authors wanted to know: what is the optimal way to manage this experimental history and skill set?
Methods
The researchers built a unified framework to test five specific memory mechanisms against a simple "forget the oldest stuff" baseline. They looked at two dimensions:
- Context Management (The History):
- Compaction: Summarizing old attempts into a single, rolling "state of the union" block.
- Folding: Condensing each attempt into a one-line digest. The agent can "unfold" and read the full details of a specific past attempt only when it thinks it's relevant.
- Skill Management (The Lessons):
- Merging: Combining semantically similar lessons to reduce redundancy.
- Promotion: Turning frequently successful lessons into "standing rules" that are always in the prompt.
- Deletion: The "Marie Kondo" approach—if a skill hasn't been picked in the last five tries, delete it.
Datasets
The agents were tested on two grueling benchmarks:
- MLE-Bench: A collection of Kaggle machine learning competitions. Success is measured by "Gold Normalized Score" (GNS)—how close the agent got to a gold medal.
- KernelBench: A task where agents must write high-performance CUDA kernels. Success is measured by speedup over standard PyTorch implementations.
They tested these across three different model backbones: gpt-oss-120b, gpt-6-luna, and gpt-6-sol.
Key Insights and Ideas
- Folding > Compaction: This was a major "aha" moment. Summarizing the past (Compaction) actually hurt performance in some cases because it destroyed the "addressability" of individual experiments. Folding allows the agent to maintain a bird's-eye view of all 100 attempts while still being able to dive deep into the code of attempt #12 if needed.
- The Skill Bloat Paradox: You’d think more knowledge is better, but an unmanaged skill library actually degrades performance. Interestingly, Deletion—simply throwing away unused skills—performed better than sophisticated merging or promotion. It keeps the "search space" for lessons clean and high-signal.
- Offense vs. Defense: The researchers categorized skills as "offensive" (trying new optimizations) or "defensive" (avoiding crashes/errors). They found that open-weight models like
gpt-ossare much more "offensive" and aggressive, while proprietary models likegpt-6are more "defensive" and conservative in their self-improvement.
Key Results
By combining the two best mechanisms—Context Folding and Skill Deletion—the authors created MLEvolver.
As shown in the results, MLEvolver significantly outperformed existing state-of-the-art agents like AIDE and OpenEvolve:
- MLE-Bench Lite: Achieved a 72.7% medal rate, a relative gain of 23% over AIDE.
- KernelBench: Reached a 94% fast₁ score (meaning it beat the reference implementation on 47 out of 50 problems).
- Efficiency: It achieved these results under the same inference budget as its competitors, proving that how you use the context window is just as important as how many tokens you have.
Limitations and Future Work
While MLEvolver is a leap forward, the authors note a few boundaries:
- Linearity: The study focused on a single, sequential refinement loop. It didn't explore parallel "tree searches" where an agent tries five different ideas at once.
- Task Isolation: Each task started with a fresh skill library. The researchers haven't yet tackled "cross-task" learning, where an agent takes a lesson learned in a vision competition and applies it to a tabular data competition.
- Tool Use: The study didn't evaluate interactive coding agents (like those that use a terminal in real-time), which might require even more complex memory "harnesses."
In short: if you want an AI to do your job, don't just give it a bigger brain—give it a better trash can and a very organized filing cabinet.
Summary updated