Autonomous Optimization of Numerical Algorithms by an AI Agent: Application to Atomistic Simulation

Jeheon Woo and colleagues at the Korea Institute for Advanced Study present AIOA, a loop in which a coding agent improves numerical algorithms in the ASE atomistic simulation library against a fixed metric, guarded by verifiers it cannot edit.
Ask this paper
Two targets. The agent rewrites implementations to run faster with unchanged results, and redesigns methods to converge with fewer force evaluations.
Speed. Agents made six ASE kernels 22-24x faster on average in Python with NumPy and SciPy.
Fewer evaluations. On unseen problems, the best agent-designed optimizers needed 3.1-3.4x fewer force evaluations than L-BFGS for structure relaxation and 4.6-17x fewer than standard climbing-image nudged elastic band for reaction paths.
Novelty. The agent-written optimizers include two algorithmic components the authors did not find in the literature.
Abstract
Coding agents built on large language models, run in automated improvement loops, can discover more efficient algorithms. We present AIOA, a framework that brings this approach to the numerical algorithms of atomistic simulation: an agent improves an algorithm against a pre-specified metric in a loop guarded by verifiers it cannot alter. Applied to ASE, a widely used atomistic simulation library, AIOA targets two facets of an algorithm: its implementation, rewritten to run faster with unchanged results, and the method itself, redesigned to converge with fewer force evaluations. Agents made six kernels 22-24 times faster on average in Python with NumPy and SciPy. On unseen problems, optimizers from the best configuration needed 3.1-3.4 times fewer force evaluations than L-BFGS for structure relaxation and 4.6-17 times fewer than standard climbing-image nudged elastic band calculations for reaction paths. The agents' optimizers also contain two algorithmic components we did not find in the literature.