InfraEvolve: an AI-infrastructure-native self-evolving multi-agent framework
A single agent run narrows onto the first direction it picks, then keeps refining it, trapping the search in a local optimum. InfraEvolve, our implementation of ELLIS for AI-infrastructure work, schedules fresh agent runs on one optimization task, archives each run's patch, score and report, and builds each new run's context from that archive. Across Φ-Bench tasks, the orchestrated search framework reaches on average 1.88× the speedup of a single Claude Code run, and on the five MLSys 2026 problems it beats Claude Code and Codex at the same run count by 1.05× to 3.87×.
Main contributions
An open-source stack for long-horizon optimization. We release ELLIS, which runs and archives the search, EvolveVista, which visualizes the search tree as it grows, and TraceVista, which unfolds each run layer by layer, from system states down to the raw records.
The coordinated loop beats repeated sampling. Across Φ-Bench tasks the framework reaches on average 1.88× the speedup of a single Claude Code run, and on all five MLSys 2026 problems it outperforms Claude Code and Codex at an equal run budget.
Reports are what make gains compound across runs. Every run ends by writing down what it tried, what worked, what failed and what still looks promising. A fresh run reads these reports, investigates the search again and commits to the most promising direction. Inheriting only the best code is no better than repeated sampling, while reports alone carry more than half of the gain.
Introduction
As coding agents grow more capable, they are taking on longer and more autonomous engineering work. Performance engineering for AI infrastructure has become one of their most active fronts, where agents already use execution and profiling feedback to make real code faster. Within a single run, however, their progress tends to stall in the same way. A run picks one optimization strategy early and keeps refining it as the gains shrink. When those refinements start failing, it concludes the task is near its ceiling, even though only one direction has run out of headroom.
Human performance engineers work differently. They come back to a workload with notes from earlier experiments and use the recorded measurements to decide whether to refine what they have or chase a different bottleneck. Big speedups in AI infrastructure usually need several distinct strategies combined, and a gain in one direction often exposes an opportunity in another that nobody could see beforehand.
InfraEvolve gives an agent that habit. It treats a complete agent run as the unit of search, starts every run fresh, and gives it the record of everything tried so far.
The run as the unit of search
Evolutionary systems such as AlphaEvolve search over individual code proposals. A model suggests a diff, a separate evaluator scores it, and progress comes from selection over a large population. A coding agent already builds, tests and times its own changes, so one run proposes and measures many times on its own. InfraEvolve makes the whole run the node and leaves the inside of a run to the agent (Figure 1).
With only a handful of runs per task, the outer loop cannot win by sampling more. Its real job is to decide what each new run should forget and what it should keep.
Fresh runs break context inertia. Long runs suffer from context inertia, where a model commits to a hypothesis in its context and keeps pursuing it after the evidence says to change course. Every failed attempt becomes one more example pulling the next attempt the same way, and compacting the context keeps exactly the work that drives the fixation. InfraEvolve ends each run and starts the next from an empty context, which resets the agent's sense of what is still possible.
Knowledge compounds across branches. Forgetting the context does not mean forgetting the lessons. Every run leaves behind its code, its score and a short report of what worked, what failed and what is still worth trying. The next run inherits that record from every branch of the search, so understanding accumulates far beyond any single run while the habits of one run stay behind.
Each round picks a starting node, launches a fresh run with that node's code and the reports of every node, then scores and reviews the result before it joins the archive (Figure 2). The loop stops after a fixed number of runs, or when the last few runs stop improving the best.
The starting node is an anchor, not a constraint, and the loop can choose it in three ways (Figure 3). The best strategy always continues from the current best, baseline always restarts from the original code, and exploration samples nodes by score while discounting those already expanded many times, so a weaker node can still become a stepping stone.
Results
Most tasks come from Φ-Bench, a set of 85 tasks from real codebases that range from operators and kernels to end-to-end training and serving, each graded Junior, Senior or Principal. The other five are the MLSys 2026 competition problems, which were never used while building InfraEvolve. Every run uses Claude Code with Claude Opus 5.5 at medium effort. To isolate the loop, Claude Code and Codex (GPT-6.1 Sol) are each run independently as many times as InfraEvolve on each problem, and we report their best.
best speedup relative to the first run, geometric mean over Φ-Bench tasks
over the better of Claude Code and Codex at the same run count, MLSys 2026
The loop reaches speedups a single run does not. On Φ-Bench tasks with a valid first run, the best score ends at 1.88× that of the first run in geometric mean (Figure 4a). The gain varies widely. It exceeds 2× on 18 tasks, and 10× on 6 of them, lies between 1.05× and 2× on 25 tasks, and stays below 1.05× on the other 28, where the first run is already close to the final score.
The results stay competitive with prior frameworks. On the Junior tier of Φ-Bench, InfraEvolve scores higher than KDA and AKO4X on most tasks (Figure 4b). Running time is not controlled across the three, at 24.4, 20.9 and 12.7 hours, since each framework decides for itself when a run is done. On the five MLSys 2026 problems, InfraEvolve is ahead of the scores reported by KDA and AKO4X on DSA Attention, GDN Prefill and MoE, and on par with KDA on DSA Indexer (19.3× against 19.1×) and AKO4X on GDN Decode (1.16× against 1.18×). On all five it beats both standalone agents, by 1.05× on GDN Decode up to 3.87× on GDN Prefill (Figure 4c).
Gains accumulate as later runs change direction. In AI infrastructure, pushing one direction to its limit often exposes the next bottleneck. The next run investigates the archive and takes on that bottleneck, so the best score keeps climbing in steps. For example, on the cloud-catalog task, early runs refine a bitset dominance check, run 4 parallelizes the search, and run 7 moves the core into a C kernel with a thread pool. Run 9 then joins run 8's kernel with run 7's pool and reaches 135×, drawing on two branches of the archive at once (Figure 5).
No fixed budget fits every task. The mean best score rises fastest in the first few runs, but 30% of tasks stop within four runs while 38% are still improving at run 8. Stopping on marginal gain spends runs where they still help.
Ablation
Which part of the loop produces this gain? Each run inherits two things, starting code in its workspace and an archive in its prompt. The ablation varies both across six configurations on 10 Φ-Bench tasks, with two campaigns of six runs per task (Table 1).
| Configuration | Starting code | Archive | What it tests |
|---|---|---|---|
| independent runs | initial code | none | repeated sampling alone (control) |
| best code only | current best | none | inheriting code alone |
| reports only | initial code | reports, scores | inheriting reports alone |
| best + reports | current best | reports, scores | code on top of reports |
| full | current best | reports, scores, patches | whether patches help |
| exploration + reports | sampled by score | reports, scores | whether the starting node matters |
The archive-driven loop beats repeated sampling. Independent runs also improve with more attempts, but slowly after the second. At the same six runs, full reaches 1.28× their score, for 1.1× the agent time and 1.6× the input tokens (Figure 6c).
Reports are necessary. Inheriting only the best code scores 9.0×, no better than independent runs at 8.7×. The code shows the best solution so far, but not what earlier runs tried or which directions failed.
Code helps only on top of reports. Restarting from the original code but reading the archive already reaches 10.3×, more than half of the gain, so a run can rebuild earlier solutions from the written record alone. Adding the best code on top lifts this to 11.3×.
Patches and start selection show little difference at small run budgets. Once reports are in place, full and exploration + reports land at 11.1× and 11.0×, within the intervals of best + reports. With so few runs the archive holds few candidates to choose from, so these choices may well matter more at larger budgets.
Keeping the numbers honest
Selection favours high scores, so noise and reward hacking compound down a lineage unless they are stopped at the door.
Paired timing. The same code runs at different speeds on different machines, and on one machine at different times. Timing the candidate in alternation with the oracle or baseline on the same machine cancels that drift (Figure 7). Without a reference, every new best is measured again on other machines and ranked by the median, and leftover processes are killed before each measurement.
Two checks against reward hacking. A candidate that passes the task's verifier is still rejected if it edits outside the permitted scope, does not come from the code under evaluation, or uses means the task forbids. A trajectory review then reads the patch, the report and the file-access records to see which techniques the agent actually used. Both checks run after the run and are still partly manual. One way to automate them is to time each candidate again with a changed procedure, such as fresh inputs on every call, and flag speedups that do not survive.
Limitations
One model, one effort. Every run uses Claude Opus 5.5 at medium effort. A weaker model may not rebuild solutions from reports alone, so code inheritance could matter more there.
Performance tasks only. Each task has a scalar objective and an automatic check that takes minutes. Long-horizon work without a cheap score, such as feature development or research, is not yet covered.
Conclusion
Coding agents are already good at making code faster. What they lack is a way to keep going once a single run runs out of ideas. With InfraEvolve, every fresh run starts with what it needs to keep climbing.
The loop optimizes real AI infrastructure, the very stack that agents run on, so a model can turn the loop on itself. In Inkling 2 Mini for Inkling 2 Mini, the model made itself 1.495× faster by rewriting its own inference engine. We think this is where things are heading, agents that keep improving the systems beneath them, and through them, themselves.
Beyond performance, these findings point to cross-run coordination as a way to keep agents exploring on open-ended tasks.