arXiv(opens in a new tab)cs.CLSep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.10226

ΦΦ-Bench: Can Large Language Models Engineer the Infrastructure That Powers Them?

Leilei Ding, Shumin Wang, Yuting Huang, Fanqi Wan, Yinmin Zhang, Qi Han, Yiming Xu, Feiyuan Zhang, Xiaomeng Chu, Guoliang You, Wuyang Zhang, Daxin Jiang, Yanyong Zhang

Abstract

Large language models (LLMs) have demonstrated remarkable capabilities in reasoning and code generation, raising the prospect that they could assist in developing and optimizing the very infrastructure that powers them. However, existing benchmarks mainly focus on isolated kernels, predefined operators, or pre-specified optimization targets, and therefore fail to evaluate the ability of LLMs to perform open-ended, long-horizon LLM infrastructure engineering. To address this gap, we present Φ-Bench, a benchmark for systematically evaluating LLMs on engineering the LLM infrastructure stack. Derived from optimization problems studied in frontier research and grounded in real-world code repositories, Φ-Bench provides broad coverage of the LLM infrastructure stack and spans tasks of varying complexity, ranging from localized kernel-level function completion to long-horizon implementation and end-to-end system optimization. Extensive experiments on frontier LLMs reveal their current capabilities and limitations in engineering complex LLM infrastructure, offering insights into the challenges that remain on the path toward autonomous optimization of future AI infrastructure.

Introduction

With recent advances in large language models (LLMs) in reasoning (Guo et al. 2025) and code generation (Z.AI 2026), leveraging LLMs to support the development of next-generation AI models has emerged as a promising research direction (Ma et al. 2026; Ishibashi, Yano, and Oyamada 2025). A particularly important challenge in this context is engineering and optimizing the software infrastructure underlying LLM training and inference, hereafter referred to as LLM infrastructure. Prior work (Kwon et al. 2023; Narayanan et al. 2021) has demonstrated that infrastructure-level optimizations can substantially improve GPU utilization and reduce computational costs. These developments naturally

raise an intriguing question: Can large language models engineer and optimize the infrastructure that powers them?

Although several benchmarks have evaluated LLMs on GPU kernel implementation (Ouyang et al. 2025; Li et al. 2025) and optimization (Nangia et al. 2026; Li et al. 2026), their evaluation settings are typically restricted to individual functions or small collections of isolated components. Consequently, they do not fully capture the complexity of engineering and optimizing real-world LLM infrastructure. In practice, such tasks are inherently long-horizon and open-ended: developers must understand and navigate an existing infrastructure stack, identify bottlenecks and optimization opportunities, and iteratively implement, profile, debug, and refine their solutions. This end-to-end workflow extends far beyond code completion or isolated, single-commit modifications. Furthermore, existing benchmarks cover only a narrow subset of the topics involved in LLM infrastructure engineering, limiting their ability to comprehensively assess whether an LLM can develop and optimize modern AI infrastructure. These limitations motivate the need for a comprehensive, long-horizon, and open-ended benchmark that more faithfully evaluates whether LLMs can engineer the infrastructure that powers them.

To bridge this gap, we introduce Φ\Phi-Bench, the Frontier AI Infrastructure Benchmark, as a systematic evaluation of frontier LLMs on real-world workloads derived from top-tier systems papers and public LLM infrastructure repositories. Three principles guide its design: long-horizon, open-ended problem solving, comprehensive coverage of LLM infrastructure, and scalable task synthesis. Unlike benchmarks centered only on completing isolated functions, Φ\Phi-Bench allows agents to navigate existing codebases and iteratively implement, profile, debug, and optimize their solutions.

To achieve broad coverage, we construct a bottom-up taxonomy of modern LLM infrastructure from 2,260 papers and 1,852 artifacts collected from public repositories, and use it to guide task synthesis. To scale benchmark construction beyond the limited supply of manually curated engineering artifacts, we develop an agent-loop-based pipeline that au

∗^{*}Work done as an intern at StepFun.

∗^{*}Equal contribution.

†^{\dagger}Correspondence to: Daxin Jiang djiang@stepfun.com and Yanyong Zhang yanyongz@ustc.edu.cn.

Figure

Figure 1: Performance of frontier models on Φ-Bench. Left: Overall scores achieved by different models. Right: Model performance across different infrastructure topics.

tomatically mines high-value challenges from repositories and iteratively generates comprehensive test cases. Together, these designs enable a broad, realistic, and scalable evaluation of LLM agents on infrastructure engineering.

The resulting benchmark comprises 85 challenging tasks in three task formats with progressively increasing scope and open-endedness: Kernel Function Completion (KFC), Long-Horizon Implementation (LHI), and End-to-End Optimization (E2EO). Together, these formats form a graduated evaluation spanning local kernel implementation, repository-scale infrastructure development, and end-to-end system optimization. This design enables Φ-Bench to distinguish an agent's ability to implement efficient computational primitives, conduct long-horizon codebase engineering, and perform open-ended, hypothesis-driven infrastructure optimization.

Using Φ-Bench, we conduct a systematic evaluation of frontier LLMs. The best-performing model, Claude Opus 5, achieves a score of 36.53%, leaving substantial room for improvement. Further experiments show how the number of refinement iterations and the reasoning budget affect model performance. Detailed analyses of model solution trajectories further reveal their distinct strengths and weaknesses, providing insights into future model improvements, and highlight the key challenges that must be addressed before LLMs can reliably contribute to engineering and optimizing the infrastructure that powers them.

In summary, we make the following contributions:

  • We introduce Φ-Bench, the Frontier AI Infrastructure Benchmark, comprising 85 challenging tasks grounded in real-world efforts to engineer and optimize the infrastructure for LLM training and inference.
  • We develop a systematic, taxonomy-guided benchmark construction methodology grounded in research papers and repository artifacts and an agent-loop-based synthesis pipeline that automatically mines candidate engineering problems from repositories and constructs comprehensive test cases through iterative test generation.
  • We systematically evaluate frontier LLMs on Φ-Bench and analyze their solution trajectories, revealing substantial room for improvement and providing insights into future model improvements.

References (18)