TL;DR
The authors introduce RSIBench-Infra, the first benchmark designed to evaluate if AI agents can optimize the end-to-end training and inference infrastructure they run on. By testing agents across 20 production-scale tasks, they found that top-tier agents can achieve validated speedups of over 1.10× in 66.2% of cases, demonstrating a critical step toward recursive self-improvement.
What Problem Does This Paper Address?
As AI infrastructure spending approaches half a trillion dollars, a glaring efficiency gap remains: most LLM serving engines achieve only 22–38% of their theoretical hardware throughput. To bridge this gap and move toward Recursive Self-Improvement (RSI)—where AI systems autonomously improve their own capabilities—agents must be able to optimize their underlying software stack.
Existing benchmarks for agentic optimization are often "siloed," focusing on isolated components like individual GPU kernels. However, a fast kernel doesn't always translate to a faster system if the bottleneck shifts elsewhere. The field lacked a way to measure whether agents could navigate the complexity of a full production stack—spanning engines, kernels, and hardware instructions—to deliver measurable, end-to-end performance gains without breaking the model's actual intelligence.
Methods
The researchers developed a three-stage workflow for RSIBench-Infra: Optimize, Apply, and Evaluate.
- Optimization: Agents are given an "official recipe" (a runnable baseline) and an eight-hour budget. They can profile the system, edit source code, and test changes across the entire stack.
- The OCI Protocol: To ensure reproducibility and prevent "sandbox escapes," agents submit their modifications as a single Open Container Initiative (OCI) image layer. This layer is then applied to a clean base environment for testing.
- Quality Gates: Speed is useless if the model starts hallucinating. Every submission must pass a "Quality Gate"—a task-specific validation (like GSM8K for math or LongBench for context) to ensure the optimization didn't degrade the model's output quality.
- Analytical SOL: The paper introduces a "Speed-of-Light" (SOL) reference, using analytical simulations to estimate the theoretical maximum performance of the hardware, providing a bounded score for how close an agent gets to perfection.
Datasets
RSIBench-Infra consists of 20 tasks spanning diverse model families (GLM, Qwen, Kimi, DeepSeek) and modalities (text, video generation, diffusion, and robotics).
- Inference Tasks: 16 tasks using engines like vLLM, SGLang, and TensorRT-LLM, deployed on up to 32 accelerators (NVIDIA H20/L40S and Ascend 910B).
- Training Tasks: 4 tasks covering Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL) algorithms like GRPO.
- Lite Set: A subset of 5 tasks designed for evaluation on a single GPU to make the benchmark more accessible to the research community.
Key Insights and Ideas
- Cross-Stack is King: The most successful agents didn't just tweak one thing; they performed "cross-stack optimization." For example, one agent combined a custom sparse-attention kernel with hierarchical host caching to achieve a massive speedup.
- Optimization "Personalities": Different agent-model configurations showed distinct preferences. GPT-6 Astra and Claude Opus 5.5 leaned heavily into operator fusion, while GLM-5.3 and Qwen3.8-Max focused more on cache and memory management.
- The "Local vs. Global" Struggle: A recurring challenge for agents was identifying which local improvements (like a faster kernel) would actually translate into end-to-end throughput gains.
- Efficiency vs. Brute Force: Interestingly, the top-performing models (Astra and Claude) used less than half of their allocated eight-hour budget, suggesting that the ability to identify the right strategy quickly is more important than exhaustive trial-and-error.
Key Results
The study evaluated seven agent-model configurations. Across 130 formally scored results:
- 66.2% of submissions achieved a validated speedup of at least 1.10×.
- GPT-6 Astra emerged as the leader, achieving a "Faster Rate" of 80% (improving 16 out of 20 tasks) and a median speedup of 1.33×.
- Claude Opus 5.5 showed the highest median speedup (1.34×) on the subset of tasks it was allowed to attempt (it was restricted on some due to API safety filters).
- Extreme outliers were observed, such as a 6.1× speedup on a text diffusion task through a combination of block-causal prefill and state reuse.
Limitations and Future Work
- Safety Filters: The evaluation of Claude was hampered by API safety-policy errors, highlighting a friction point between highly capable agents and the guardrails that govern them.
- Single-Run Estimates: The current results are point estimates from single runs. Future iterations will likely need repeated runs to establish confidence intervals.
- Hardware Diversity: While the benchmark includes NVIDIA and Ascend, expanding to more diverse accelerators (like TPU or specialized AI startups) would further test agent adaptability.
- Long-Term Stability: The benchmark measures short-term throughput; future work could explore how agent-optimized infrastructure holds up over weeks of continuous production load.
Summary updated