cs.SESep 29, 2026

Is manual software optimization a thing of the past?

Authors: Pavlin G. Poličar, Martin Špendl, Tomaž Hočevar

Organizations: Faculty of Computer and Information Science University of Ljubljana Večna pot 113, 1000 Ljubljana, Slovenia

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.

Explore similar work

CardsList
  1. Evolving Excellence: Automated Optimization of LLM-based Agents

    Dec 9, 2025Paul Brookes, Vardan Voskanyan, Rafail Giavrimis +18Agentic Optimization

  2. SWE-fficiency: Can Language Models Optimize Real-World Repositories on Real Workloads?

    Nov 8, 2025Jeffrey Jian Ma, Milad Hashemi, Amir Yazdanbakhsh +5Code OptimizationDecode Speedup

  3. Evaluating LLMs on Real-World Software Performance Optimization

    Jun 24, 2026Ezgi Sarıkayak, Wenchao Gu, Hesham Ghonim +1Code OptimizationLarge Language Model Benchmarks