← In the News

Heidelberg's AAE skill makes an optimizing agent predict each change and keep only those that pass agreed checks

Agentic Algorithm Engineering (AAE) · Christian Schulz, Algorithm Engineering Group, Heidelberg University · Project page and GitHub repository, MIT licence

Machine-readable Download Markdown

AAE hands the classic algorithm engineering cycle (design, analysis, implementation, experiment) to an autonomous agent working on an existing code base. During setup the user and the agent agree on the benchmark, the metric, the correctness assertions and the budget; after that the loop runs on its own. Before each experiment the agent records "a falsifiable hypothesis with its predicted effect". After each change it runs the agreed assertions, such as bit-identical output, and keeps the change only if the benchmark improved and the output is still correct. Otherwise it reverts. Every accepted change becomes its own numbered patch, and the session ends with a PDF report that gives each hypothesis a page: intuition, prediction, measurements, verdict.

The group's results table covers its own open-source solvers. It lists VieCut, an exact minimum cut solver, as 8.9x faster on one thread and 8.8x on 32 threads with "every cut unchanged"; the KaHIP kaffpa graph partitioner as 3.9x faster in total time (2.8x geometric mean over 537 runs) with partition quality unchanged; and Hochbaum's pseudoflow maximum-flow solver as 3.0x faster, with the flow value verified on all 164 DIMACS instances. The KaHIP session's report records 122 experiments and 69 hypotheses, 41 kept and 28 discarded.

The method's paper, a September preprint by David A. Bader, Adil Chhabra, Ernestine Großmann, Monika Henzinger, Alexander Noe and Schulz, to appear at the 13th DIMACS Implementation Challenge workshop, reports smaller factors for VieCut: 1.28 sequential and 1.63 on 32 threads on real-world k-cores, and 6.26 and 127 on the DIMACS core instances. Its abstract notes: "Even though we had already tuned our algorithm by hand extensively, the agent finds significant optimizations." The repository cites both the VieCut v2.0 release and the paper for the 8.9x figure, and the material we read does not reconcile the two sets of numbers. All of these are the authors' own measurements on code they maintain; we read the project page, the repository's README and the preprint's abstract, not the paper body or the session reports.

The README is frank about running it unattended. It says the agent "may eventually stop and ask for user input instead of continuing the loop" even with permission prompts disabled, and suggests a manager agent that tells the executor to continue, or a /loop command that nudges it every 30 minutes. For Codex it recommends --yolo only "in a trusted, externally isolated environment such as a dedicated container or VM."

Why it matters: Loops such as autoresearch keep a change because a metric went up. AAE fixes the correctness contract before the loop starts and makes the agent commit to a prediction before it measures, so a speedup that alters the output is reverted, and a reviewer can compare what the agent expected with what it got. Shipping one patch per kept change also lets the human accept or drop changes one at a time.