Phi-Bench: Can Large Language Models Engineer the Infrastructure That Powers Them?
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) now show strong reasoning and coding abilities, raising the prospect that they could assist in developing and optimizing the very infrastructure that powers them. Existing benchmarks, however, mainly focus on isolated kernels, predefined operators, or pre-specified optimization targets, and cannot evaluate open-ended, long-horizon LLM infrastructure engineering. To address this gap, we present Phi-Bench, a benchmark of 85 tasks grounded in real LLM training and inference codebases. The tasks cover nine categories of LLM infrastructure and come in three formats, ranging from kernel function completion to long-horizon implementation and repository-wide end-to-end optimization. They are built by a construction pipeline that turns real pull requests, issues, and repository code into executable tasks with validated tests, and every reward is gated by correctness and anti-hacking checks. Across eight frontier models, the strongest model, Claude Opus 5, scores only 36.53%, and every model performs worse on long-horizon, repository-level implementation than on kernel-level tasks. Trajectory analysis further suggests that stronger models treat optimization as controlled experimentation, validating ideas with cheap local runs and ruling out confounders before drawing conclusions. We will open-source Phi-Bench to facilitate future research on LLM agents' ability to develop and optimize the LLM infrastructure that powers themselves.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 8 of its 14 references that are in the map. First posted on arXiv 9 Sep 2026.
Builds on
8 of 14 references.
References · 8
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,040
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 225
- 2025TritonBench: Benchmarking Large Language Model Capabilities for Generating Triton Operatorscited by 75
- 2026KernelBenchX: A Comprehensive Benchmark for Evaluating LLM-Generated GPU Kernelscited by 12
- 2026TREX: Automating LLM Fine-tuning via Agent-Driven Tree-based Explorationcited by 8
- 2026ISO-Bench: Can Coding Agents Optimize Real-World Inference Workloads?cited by 6
Built on by
Citing papers per year: 2026: 1.
1 paper.