Is manual software optimization a thing of the past?
Pavlin G. Poličar, Martin Špendl, Tomaž Hočevar
Key points
From the paper's conclusion- For well-scoped, verifiable problems, we argue that manual software optimization may be a thing of the past.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Simple Agents Outperform Experts in Biomedical Imaging Workflow Optimization.Proceedings. IEEE Computer Society Conference on Computer Vision and Pattern Recognition · 2026
- Autonomous Optimization of Numerical Algorithms by an AI Agent: Application to Atomistic SimulationarXiv · 2026
- Agentic Superoptimization of Bioimaging Analysis Workflows.... Conference on Language Modeling · 2025
- What Should an LLM Know? Knowledge-Guided Warm Starts for Software OptimizationarXiv · 2026
- Agentic Optimization: LLM Agents Select and Configure Algorithms for Engineering DesignarXiv · 2026
- LLM-guided chemical process optimization with a multi-agent approachMachine Learning Science and Technology · 2025