Is manual software optimization a thing of the past?
Not on the map. Why?
Abstract (arXiv)
Scientific software is increasingly required to process larger datasets while maintaining acceptable execution times. Software optimization traditionally requires substantial expertise in programming, algorithms, and numerical methods. Recent advances in large language models (LLMs) offer the possibility of automating much of this process. We investigate whether LLM-based agents can autonomously achieve substantial performance improvements in scientific software, including mature implementations that have already been extensively optimized by human developers. We tasked an LLM-based agent with optimizing software for three computational problems: t-SNE, single-sample gene set enrichment analysis (ssGSEA), and graphlet counting. Humans defined the scope, correctness criteria, and a verification mechanism, after which the agent worked autonomously, in some cases for several hours. Code maintainers reviewed each resulting implementation and verified its correctness. The optimized implementations were faster in all tested configurations, by up to two orders of magnitude over the fastest existing tools. The improvements included low-level code optimizations, mathematical reformulations, and an entirely new algorithm for graphlet counting. Software optimization can increasingly be delegated to autonomous agents, with the human role shifting from implementing optimizations to deciding which software to optimize, defining objectives, providing verification mechanisms, and ensuring the correctness of the final software. For well-scoped, verifiable problems, we argue that manual software optimization may be a thing of the past.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 5 of its 12 references that are in the map. First posted on arXiv 29 Sep 2026.
Builds on
5 of 12 references.
References · 5
- 2023Learning Performance-Improving Code Editscited by 103
- 2025AlgoTune: Can Language Models Speed Up General-Purpose Numerical Programs?cited by 24
- 2025SWE-fficiency: Can Language Models Optimize Real-World Repositories on Real Workloads?cited by 15
- 2025SysLLMatic: Large Language Models are Software System Optimizerscited by 6
- 2026Evaluating LLMs on Real-World Software Performance Optimizationcited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025LLM Agents Making Agent Tools
- 2026FormulaCode: Evaluating Agentic Optimization on Large Codebases
- 2026AgentHPOBench: A Benchmark For Evaluating LLM Agents as Sequential Hyperparameter Optimizers
- 2026AlphaLab: Autonomous Multi-Agent Research Across Optimization Domains with Frontier LLMs
- 2025An Agent-Based Framework for the Automatic Validation of Mathematical Optimization Models
- 2025Towards Scientific Intelligence: A Survey of LLM-based Scientific Agents
- 2025OptimAI: Optimization from Natural Language Using LLM-Powered AI Agents
- 2024Data Interpreter: An LLM Agent For Data Science