Is manual software optimization a thing of the past?

📅 2026-09-29
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the heavy reliance of scientific software optimization on domain experts, which impedes large-scale data processing. To overcome this limitation, this work proposes a framework in which large language model (LLM) agents autonomously optimize mature scientific software. Within this paradigm, human involvement is restricted to defining objectives and verification mechanisms, while automated acceleration is achieved through algorithmic restructuring and low-level code optimization. The contributions demonstrate that, for verifiable problems, artificial intelligence can attain automated optimization surpassing manual efforts, thereby reshaping human–machine collaboration paradigms. Empirically, the proposed approach yields up to two orders of magnitude speedup in tasks such as t-SNE and discovers novel graph counting algorithms.
📝 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.
Problem

Research questions and friction points this paper is trying to address.

software optimization
large language models
autonomous agents
scientific software
performance improvement
Innovation

Methods, ideas, or system contributions that make the work stand out.

Large Language Models
Autonomous Agents
Software Optimization
Algorithm Discovery
Scientific Computing
P
Pavlin G. Poličar
Faculty of Computer and Information Science, University of Ljubljana
M
Martin Špendl
Faculty of Computer and Information Science, University of Ljubljana
T
Tomaž Hočevar
Faculty of Computer and Information Science, University of Ljubljana