atlas

Research map / Large language models / Agents, code and math

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

NeurIPS 2025 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces AlgoTune, a 154-task benchmark scoring LMs by speedup of generated numerical code over reference library solvers, plus the AlgoTuner budgeted agent loop evaluated on four frontier models.

Problem

Existing code benchmarks check binary correctness on human-solved tasks; there is no open-ended measure of whether LMs can make numerical programs faster than reference implementations.

Approach

Score LM-written solvers by runtime speedup over reference solvers from popular Python libraries (NumPy, SciPy, CVXPY, sklearn, NetworkX), gated by a task-specific solution verifier, and evaluate with a budgeted SWE-Agent-style loop (AlgoTuner) that edits, profiles, and verifies code.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use AlgoTuner with o4-mini-high to optimize reference solversAlgoTune reference solvers · AlgoTune (154 tasks)harmonic-mean speedup: 1.00× -> $1.72\times$Helped
Use AlgoTuner with DeepSeek R1AlgoTune reference solvers · AlgoTune (154 tasks)harmonic-mean speedup: 1.00× -> $1.70\times$Helped
Use AlgoTuner with Gemini 2.5 ProAlgoTune reference solvers · AlgoTune (154 tasks)harmonic-mean speedup: 1.00× -> $1.51\times$Helped
Use AlgoTuner with Claude Opus 4AlgoTune reference solvers · AlgoTune (154 tasks)harmonic-mean speedup: 1.00× -> $1.33\times$Helped
Rewrite the CVXPY feedback-controller solver to use SciPy's discrete algebraic Riccati solverfeedback_controller_design · feedback_controller_designspeedup: 81Helped
Use symmetric eigendecomposition and apply eigenvalues directly to eigenvectorspsd_cone_projection · psd_cone_projectionspeedup: 8Helped
Replace NetworkX objects with adjacency lists and a single Weisfeiler–Lehman passgraph_isomorphism · graph_isomorphismspeedup: 52xHelped
Use BLAS operations instead of pure Pythoncommunicability solver · communicabilityspeedup: more than 142xHelped
Replace the SciPy solver with a Numba kernelode_hodgkinhuxley · ode_hodgkinhuxleyspeedup: 112xHelped
Compile a Numba kernel that streams once over the dataWasserstein distance solver · wasserstein_distspeedup: more than 4xHelped
Use the same implementation as the referencesvm solver · svmspeedup: 1.00No clear effect
Replace scikit-learn's optimized Lasso with a pure-Python and Numba regressorlasso solver · lassoruntime relative to reference: 0.33xHurt

Surprising findings

Limitations

Experimental setup

Datasets: AlgoTune tasks (154 tasks, 5-task dev set)

Benchmarks: AlgoTune

Metrics: speedup over reference (harmonic mean) percentage of tasks with at least 1.1x speedup

Baselines: o4-mini-high Claude Opus 4 Gemini 2.5 Pro DeepSeek R1 0528

Builds on: SWE-Agent LiteLLM Cython Numba

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy