CHSZLab/AgenticAlgorithmEngineering
37 stars · Last commit 2026-11-23
Agents that optimize code like an algorithm engineer: falsifiable hypotheses, benchmarks, verified patches, PDF report
README preview
<p align="center"> <img src="https://raw.githubusercontent.com/CHSZLab/AgenticAlgorithmEngineering/main/img/banner.svg" alt="Agentic Algorithm Engineering" width="900"/> </p> # Agentic Algorithm Engineering This repository contains the program definition for **Agentic Algorithm Engineering (AAE)**, a methodology that turns autonomous agents into performance engineers following the Algorithm Engineering cycle: design, analysis, implementation, and experimental evaluation, driven by falsifiable hypotheses. See [AAE.md](AAE.md) for the full program definition. Besides the optimized code, every AAE session produces two artifacts: one numbered patch per accepted change in `patches/`, and a PDF report in `report/` with the trajectory of the metric and one page per tested hypothesis (intuition, prediction, code change, measurements, verdict). The methodology is described in the paper [Agentic Algorithm Engineering: Improving Shared-Memory Exact Minimum Cuts](https://arxiv.org/abs/2609.07204) (13th DIMACS Implementation Challenge, to appear), which applies AAE to the shared-memory exact minimum cut solver [VieCut](https://github.com/VieCut/VieCut). See [Citation](#citation) below if you use AAE in your work. ## Example Results AAE sessions on established open-source codes. Every kept change was checked against the original output. | Code | Problem | Result | Correctness | Details | |---|---|---|---|---| | [VieCut](https://github.com/KaHIP/VieCut) | exact minimum cut | **8.9x faster** on 1 thread, 8.8x on 32 threads; no longer runs out of memory on large-cut graphs | every cut unchanged | [v2.0](https://github.com/KaHIP/VieCut/releases/tag/v2.0), [paper](https://arxiv.org/abs/2609.07204) | | [KaHIP](https://github.com/KaHIP/KaHIP) `kaffpa` | graph partitioning | **3.9x faster** in total time (2.8x geometric mean over 537 runs) | partition quality unchanged | [v3.26](https://github.com/KaHIP/KaHIP/releases/tag/v3.26), [report](examples/reports/kahip_kaffpa_speed_report.pdf) |