Turning an invention into a search problem #
To search for an algorithm, a team must describe what candidates are allowed to look like, which inputs they should handle and how to evaluate them. Multiplication counts, execution time on a named processor and correctness over all inputs are different measures. A candidate can improve one while leaving another unchanged. Choosing a representation can make experiments tractable by ruling out large families of irrelevant programs. It can also rule out useful approaches.
A small sorting routine illustrates the difference. A fast routine that misorders one possible arrangement has failed the sorting task. A correct routine that saves one instruction may still run more slowly on a processor with different scheduling behavior. The evaluation must preserve both the functional contract and the conditions under which a speed claim is meaningful. In automated machine learning, a candidate can be a combination of a classifier and its settings. The selection procedure can then be tested on fresh examples after the search is over. Restricting the candidates can also make a proof feasible. The halting problem rules out a procedure that could always decide whether any unrestricted candidate program on any given input finishes.
Discovering matrix multiplication procedures #
AlphaTensor represented matrix multiplication as a tensor decomposition game. Successful moves reduced a mathematical object to zero, and the move sequence encoded a way to compute a matrix product. By searching this space the team found useful procedures, including an improvement for a four-by-four problem over a finite field. The arithmetic domain matters because identities valid in one field need not carry over to another.
In 2025 the AlphaEvolve team reported a search-generated procedure for four-by-four matrices over complex numbers using 48 scalar multiplications. Comparing the number directly with a finite-field result would conflate two different mathematical tasks. An implementation also incurs additions, data movement and numerical considerations that a multiplication count alone leaves open.
From a candidate to a library routine #
The AlphaDev study treated the construction of small sorting routines as a sequence of assembly-level choices. Training rewards reflected correctness and performance. The team examined the resulting candidates and translated useful procedures into C++ for inclusion in LLVM’s libc++ sorting library. The path from a proposed instruction sequence to a routine that developers could use required human interpretation, testing and integration. A gain on a small fixed-size sort can have a different effect when the routine forms only one part of a larger sort.
Why this matters for claims of self-improvement #
Each case provides an inspectable artifact, such as a decomposition or an executable routine. Researchers can ask another implementation to reproduce the calculation and can measure the gain under changed conditions. Evidence for a broader feedback loop would need another link. If a new routine speeds future model training, how much research time or compute does it save across an entire project, and what additional discovery follows? Keeping those measurements separate makes individual engineering advances informative without assigning them an unsupported trajectory.
Automated scientific discovery encounters a further cost when a candidate has to be tested on a physical instrument. In a battery-lifetime study, the researchers shortened the search both by choosing which charging schedules to try and by estimating their lifetime from early measurements. An eventual validation run still had to check those estimates.
Sources
- Alhussein Fawzi and colleagues, Discovering faster matrix multiplication algorithms with reinforcement learning (2022) doi.org
- Daniel Mankowitz and colleagues, Faster sorting algorithms discovered using deep reinforcement learning (2023) doi.org
- Alexander Novikov and colleagues, AlphaEvolve: A coding agent for scientific and algorithmic discovery (2025) arxiv.org
- Chris Thornton and colleagues, Auto-WEKA: Combined Selection and Hyperparameter Optimization of Classification Algorithms (2013) arxiv.org
- Alan M. Turing · On Computable Numbers, with an Application to the Entscheidungsproblem (1936–37) doi.org
- Peter M. Attia and colleagues · Closed-loop optimization of fast-charging protocols for batteries with machine learning (2020) nature.com