AlgoTune: Can Language Models Speed Up General-Purpose Numerical Programs?

O. Press, Brandon Amos, Hao-Yu Zhao, Yi-Kai Wu, Samuel K. Ainsworth +19 more
7/1/2025

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Despite progress in language model (LM) capabilities, evaluations have thus far focused on models'performance on tasks that humans have previously solved, including in programming (Jimenez et al., 2024) and mathematics (Glazer et al., 2024). We therefore propose testing models'ability to design and implement algorithms in an open-ended benchmark: We task LMs with writing code that efficiently solves computationally challenging problems in computer science, physics, and mathematics.

Show full abstract

Our AlgoTune benchmark consists of 154 coding tasks collected from domain experts and a framework for validating and timing LM-synthesized solution code, which is compared to reference implementations from popular open-source packages. In addition, we develop a baseline LM agent, AlgoTuner, and evaluate its performance across a suite of frontier models. AlgoTuner uses a simple, budgeted loop that edits code, compiles and runs it, profiles performance, verifies correctness on tests, and selects the fastest valid version. AlgoTuner achieves an average 1.72x speedup against our reference solvers, which use libraries such as SciPy, sk-learn and CVXPY. However, we find that current models fail to discover algorithmic innovations, instead preferring surface-level optimizations. We hope that AlgoTune catalyzes the development of LM agents exhibiting creative problem solving beyond state-of-the-art human performance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{press2025algotune,
  title  = {AlgoTune: Can Language Models Speed Up General-Purpose Numerical Programs?},
  author = {O. Press and Brandon Amos and Hao-Yu Zhao and Yi-Kai Wu and Samuel K. Ainsworth and D. Krupke and Patrick Kidger and Touqir Sajed and Bartolomeo Stellato and Jisun Park and Nathanael Bosch and Eli Meril and Albert Steppi and A. Zharmagambetov and Fang-Zhao Zhang and David Pérez-Piñeiro and A. Mercurio and Ni Zhan and T. Abramovich and Kilian Adriano Lieret and Hanlin Zhang and Shirley Huang and Matthias Bethge and Ofir Press},
  year   = {2025},
  eprint = {2507.15887},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2507.15887},
  url    = {https://doi.org/10.48550/arXiv.2507.15887},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.15887.svg)](https://codeofpaper.com/paper/2507.15887)

Discussion