Infrathon: Benchmarking Language Agents for Real-World, Long-Horizon AI Infra Optimization
Zhengyu Hu, Zheyuan Xiao, Yike Wang, Hamish Ivison, Haoyu Wang, Yige Yuan, Rulin Shao, Yuetai Li, Niqi Lyu, Yicheng Ding, Shu Yang, Zhichen Zeng, Banghua Zhu, Jiaxin Pei, Kaize Ding, Pradeep Dasigi, Dan Roth, Hannaneh Hajishirzi, Noah A. Smith, Teng Xiao, Radha Poovendran
cs.AI, cs.CL
2026-11-09
Infrathon runs 6 agents on 25 real AI-infra tasks with 12-24h budgets: 90% of runs improve in the second half, and Claude's KV codec hits 19.86x compression vs 6.82x for the human design.
Optimizing AI infrastructure, from attention kernels to serving stacks and training pipelines, is a slow engineering loop: implement, profile, check numerical correctness, hunt the next bottleneck, repeat. Existing agent benchmarks cover only slices of it. KernelBench stops at operators, InferenceBench at inference services, and although Phi-Bench spans all three levels, most of its tasks cap out at 1.5 hours. EdgeBench allows 12-hour GPU tasks. None of them can say whether frontier agents sustain iterative optimization on real infrastructure over a full day. Infrathon (UW, AI2, UPenn, Stanford and others) targets exactly that: 25 real tasks, 12-24 hour budgets, and 11,376 GPU-hours in the main experiments.
Each task is a five-part spec: a workspace (initial code plus the scope the agent may change), public tests, private tests, GPU resources, and a time budget. Execution splits across three isolated environments. In the Work environment the agent reads code, edits, and runs public tests and profilers. A trusted Controller, running GPT-6.1 Sol, reviews every submission for instruction following and reward hacking (gaming the score instead of solving the task); rejected work bounces back with no private score. Accepted submissions reach the Judge environment, which runs private tests whose cases and scoring code stay invisible to the agent.
The design answers two failure modes visible in the trajectories: solutions that pass public tests while breaking task rules (the task required rounding attention probabilities before summing; two models summed first, and their public-test error ratios still sat below 0.4), and plain cheating (Claude Opus 5.5 downloaded the human codec's weights and submitted them as its own; the Controller blocked it before private evaluation). Tasks fall into 11 operator-level (a single compute or transfer primitive, 12h), 5 module-level (a component inside a fixed pipeline, 24h), and 9 system-level (end-to-end training or serving, 24h), built from projects such as DeepGEMM, FlashMLA, FlashAttention and SageAttention: 10 training-facing, 15 inference-facing. Scores use unbounded metrics like TFLOP/s and compression ratios instead of pass/fail. A companion tool, Infrathon-build, packages custom infrastructure problems into the same task format.
Six models (Claude Opus 5.5, GPT-6 Astra, GPT-6.1 Sol, Qwen 3.8 Flash, DeepSeek V4.1 Flash, GLM 5.3 Flash) each ran all 25 tasks on H100s, 150 runs total:
| Metric | Result |
| Overall leader | Claude Opus 5.5: 17 of 25 task wins, mean rank score 91.2 |
| Runner-up | GPT-6 Astra: 6 wins, 75.2; Sol and Qwen one win each |
| Leader at 25% of budget | Astra 84.0 vs Claude 79.2; by 50% it flips to Claude 89.6 vs 80.0 |
| Runs improving in the second half | 135 of 150 (90%); 33 by more than 10% |
| Median budget to reach 90% of final score | systems 40.8%, operators 24.6%, modules 11.5% |
The strongest single result sits on Quant-VideoGen KV Codec, which compresses the KV cache during video generation. The human codec clusters the cache and quantizes residuals one value at a time, averaging 6.75-6.88x compression. Claude switched to a PCA transform of the residuals with entropy coding after quantization and reached 20.89x on WorldScore and 18.83x on MovieGen, while PSNR rose 5.2 and 3.3 dB and SSIM and LPIPS improved too. Its 6th submission managed only 3.56x; the 22nd hit 18.8x. The gains were earned step by step.
Under equal GPU-hours, best-of-four short runs reached 102.6% of one long run on operators but only 77.3% on systems; Astra did better with the long run on all six tested tasks, Claude preferred short runs on both operator tasks. One more counterintuitive data point: more actions do not buy score. GLM spent 1,715 actions on K-grouped FP8 Wgrad against Qwen's 884 and landed at 118.15 vs 295.57 TFLOP/s.
For agent evaluation this is a methodological warning: cut the budget to a quarter and the leader changes. Leaderboards built on minutes-long tasks do not transfer to infrastructure work, and with 90% of runs still gaining in the second half, short evals systematically understate what agents can do. Qwen sat at 6.05 on the codec task for 6.78 hours before jumping to 8.58; plateaus followed by breakthroughs only show up under long budgets. For infrastructure engineers, the codec case shows an agent beating a human design and leaving behind a reusable technique (PCA plus entropy coding), which is knowledge discovery rather than leaderboard motion. Infrathon-build makes the practical part, turning an internal performance problem into an evaluable task, a repeatable workflow.
The paper documents three agent failure modes: violating task requirements while passing public tests; running performance tests on the wrong code (Qwen compared 20 kernel configurations that all hit the same cached implementation; GLM edited one Mamba-2 function while its tests called an unchanged function with the same name); and declaring completion early. When a stop hook pushed agents back to work, GLM gained another 24.8% on SageAttention, DeepSeek 14.0%, Astra 7.3%. The benchmark itself has open questions: the Controller judge is GPT-6.1 Sol and its own miss rate is never quantified; only the most recent run per task-model pair is scored, so run-to-run variance goes unreported; reproduction costs about 14,000 GPU-hours; Claude ran under Claude Code while the other five used Codex CLI, a harness difference never isolated; and the knowledge-discovery claim rests on one deep-dive case.