Analysis

Published

AlphaEvolve: an evolutionary coding agent for algorithm discovery with Gemini

BY

Jin Tan Ruan

Jin Tan Ruan

AlphaEvolve uses a user-defined evaluator to score Gemini’s proposed code changes. The highest-scoring programs become starting points for the next round. In a study of more than 50 open math problems, Google DeepMind reported improvements on the best-known constructions in roughly one in five cases. The approach depends on whether an evaluator can reliably recognize a better solution.

Flowing layers of white paper forming intricate curved contours.

Abstract

AlphaEvolve is a coding agent from Google DeepMind that wraps Gemini in an evolutionary loop: every generated program is executed, scored by a user-supplied evaluation function, and either retained as a parent for later generations or discarded. This article describes the task contract, the four-component loop, the choice of abstraction level, the safeguards against metric gaming, and the asynchronous pipeline that sustains throughput.

Reported results include a scheduling heuristic that recovers 0.7% of Google's worldwide compute, a 23% speedup in a core Gemini training kernel, and the first improvement in 56 years on Strassen's 1969 algorithm for multiplying 4x4 complex-valued matrices. The design rests on one thesis: creativity and verification are separable, and an architecture that separates them can scale each independently.

Introduction

Large language models write plausible code. When such models are used for discovery rather than autocomplete, the difficulty lies in the word plausible. A model readily produces a sorting routine, a scheduling heuristic, or a matrix multiplication kernel that looks right, and looking right has no value when the goal is an algorithm better than what the field already has. The gap between generating code and discovering algorithms is the gap between fluency and truth.

AlphaEvolve, announced by Google DeepMind, is an architecture for closing that gap. It wraps Gemini in an evolutionary loop in which every piece of generated code is executed, scored by machine-gradable metrics, and either kept as breeding material or discarded. Nothing survives on plausibility. The results attracted attention well beyond the usual demonstration cycle: a scheduling heuristic recovering 0.7% of Google's worldwide compute, a 23% speedup in a core Gemini training kernel, and the first improvement in 56 years on Strassen's 1969 algorithm for multiplying 4x4 complex-valued matrices. This article examines the machinery behind those results: the loop, the abstraction choices, the anti-gaming safeguards, and the systems engineering, at the level of detail an ML engineer or researcher would require before applying the pattern.

Problem Formulation: A Machine-Gradable Metric

AlphaEvolve requires an executable evaluation function that maps each candidate solution to scalar metrics. The evaluator defines the search objective, so its coverage and failure modes matter. Improvement depends on the candidate space, the evaluator, and the search budget; computability alone does not guarantee a better solution.

The second half of the contract is the starting code. The user marks the regions open to modification with comment annotations, # EVOLVE-BLOCK-START and # EVOLVE-BLOCK-END, inside an otherwise ordinary program. Everything outside the markers is scaffolding that the system leaves unchanged; everything inside is genetic material. The design decision appears minor but has a substantial consequence, because it means AlphaEvolve does not need a special problem format. An existing codebase, with its real build system and real dependencies, becomes an evolution substrate through the addition of two comments and an evaluator.

This framing explains both the capability of the system and its boundary. Data center scheduling qualifies because a candidate heuristic can be scored in simulation. Kernel optimization qualifies because wall-clock time is a number. A bound in extremal combinatorics qualifies because a construction either achieves a value or does not. What the loop cannot address, by its own design, is work whose quality no function can score, and the white paper is direct about that scope.

System Architecture: The Evolutionary Loop

The architecture is a cycle through four components (Figure 1), and each is examined separately below.

The AlphaEvolve evolutionary loop
Figure 1. The AlphaEvolve evolutionary loop. Parents sampled from the program database seed each new prompt.

The prompt sampler assembles the input that the language model receives, which extends far past a task description. Each prompt carries multiple previously discovered solutions sampled from the program database, so the model never generates from a blank slate; it is presented with the current frontier of known-good programs, together with rendered evaluation results, meaning the program, the outcome of executing it, and its scores. The user can inject explicit context (papers, hints, constraints), and the system also supports meta prompt evolution, in which instructions and context suggested by the language model itself are co-evolved alongside the programs. The prompt is therefore not a fixed template. It is itself an evolving artifact.

The LLM ensemble generates the candidates. AlphaEvolve uses Gemini 2.0 Flash and Gemini 2.0 Pro together, and the division of labor is deliberate: Flash provides throughput, maximizing the breadth of ideas explored per unit time, while Pro provides depth, contributing occasional suggestions of higher insight that redirect a lineage. The ablations in the white paper support the choice; runs restricted to the small model alone measurably underperform. The arrangement is a portfolio strategy applied to thought: many cheap hypotheses, a few expensive ones, and evolution determining which were productive.

The output format is a detail of practical interest to engineers. For substantial codebases, models emit changes as diffs in a SEARCH and REPLACE block format, targeting specific regions rather than regenerating whole files, which keeps mutations local, reviewable, and cheap. For short programs the system can request full rewrites instead. In both cases, what evolves is real code in version-control-sized increments.

The evaluators execute and score. Every candidate is run against the user's evaluate function, and much of the practical capability of the system resides in the machinery around this step. An evaluation cascade lets the user specify ensembles of test cases of increasing difficulty, such that new solutions advance to the next stage only if they achieve sufficiently promising results on all earlier stages; weak candidates are eliminated on cheap tests before expensive ones run, a hypothesis-testing structure that concentrates compute on programs that have earned it. Evaluation is parallelized, can run on accelerators, and can optimize multiple metrics at once. The system also permits LLM-generated feedback as a scoring channel for qualities like simplicity that resist closed-form measurement, layered on top of the hard metrics rather than replacing them.

The program database closes the cycle. Scored programs enter a store whose selection algorithm is inspired by a combination of MAP-elites and island-based population models. The choice addresses the classic failure mode of naive optimization: keeping only the best program collapses diversity, and breakthroughs depend on diversity. MAP-elites preserves champions across different regions of a feature space rather than one global winner; island models evolve semi-isolated subpopulations that occasionally exchange material. Together they let the database exploit strong lineages while protecting unusual ones long enough for an unconventional idea to mature into a winning one.

Choice of Abstraction Level

The most transferable insight in the white paper is easily overlooked on a first reading. AlphaEvolve can be applied to the same problem in very different ways, and the paper emphasizes the case where the evolved programs are not the final output but a means to discover solutions. The user chooses the level of abstraction: evolve the solution directly, evolve a constructor function that builds it, or evolve an entire search algorithm that searches for it.

The matrix multiplication result illustrates this choice at its most instructive setting. Faster matrix multiplication reduces to finding low-rank decompositions of a particular tensor, a nonconvex optimization problem known to be hard. AlphaEvolve did not evolve decompositions. It evolved the gradient-based search that finds them: the code under evolution included the optimizer configuration (one discovered variant switches to optax.adamw with a tuned weight decay), the loss function (evolved additions included discretization penalties, noise injection, and cyclical annealing schedules), and the hyperparameter sweep itself, into which the system introduced 13 new parameters. Each evolved program was scored by running it, from multiple random seeds, against a set of decomposition targets through the evaluation cascade. The evolved searcher improved the known state of the art on 14 different matrix multiplication targets, among them the rank-48 decomposition for 4x4 complex-valued matrices, which improved on the rank-49 of Strassen's algorithm after 56 years.

The methodological point is of particular relevance to researchers. When the object of interest is too hard to sample directly, evolving the discovery procedure moves the search into a space where LLM priors about code, optimizers, and loss shaping apply. AlphaEvolve was, in effect, conducting automated research on optimization methods, with the tensor decompositions as the measurable byproduct.

Safeguards Against Metric Gaming

Any system that optimizes a proxy raises the issue of what happens when the proxy is gamed, and the answers given in the white paper are concrete enough to reuse.

Execution is the first line of defense: because every candidate is run, incorrect suggestions from the base model are filtered rather than accumulated. Generalization is tested by construction where it matters; in the Gemini kernel work, the input shapes were split so that half formed the training set driving the evolution and the withheld half formed the evaluation set, so a heuristic overfitted to its optimization targets would be exposed rather than shipped. Numerical validity is enforced against ground truth; in the FlashAttention work, every proposed modification was checked against the reference implementation on randomized inputs to confirm numerical correctness throughout optimization. Exactness constraints can be pushed into both the scoring and the prompt; for tensor decompositions, evaluated entries were rounded to the nearest integer or half-integer, and the request for near-integral solutions was stated in natural language in the prompt, steering the search toward exactly verifiable algebra. Where the stakes are highest, verification leaves the loop entirely: the TPU circuit change had to pass the full battery of hardware verification, and the mathematical results feed constructions whose correctness is checked independently of the system that found them.

Table of five safeguards (execution, held-out generalization, reference check, exactness constraints, external verification) with the work each was applied to and the mechanism.
Figure 2. Five safeguards against metric gaming described in the white paper, where each was applied, and the mechanism behind it.

None of these safeguards is exotic. Held-out sets, reference checks, and exact verification constitute the standard kit of careful ML practice, applied here with unusual discipline at the boundary between a generative model and the truth.

Systems Design and Throughput

Around the loop sits an infrastructure decision that indicates what makes such systems work. AlphaEvolve is built as an asynchronous computational pipeline, using Python's asyncio, in which prompt construction, LLM calls, and evaluations for many candidates run concurrently, and the pipeline is explicitly optimized for throughput rather than the latency of any single step. The white paper quantifies the benefit: the design makes it feasible to spend on the order of 100 compute-hours evaluating a single candidate solution, with parallelized evaluation keeping the generational clock moving even when individual evaluations are that heavy.

The efficiency of the search is apparent in a comparison with FunSearch, DeepMind's 2023 predecessor (Figure 3). FunSearch needed millions of LLM samples to evolve a single short Python function of ten to twenty lines, evaluated within minutes on a CPU. AlphaEvolve reaches its results with thousands of samples, evolves entire code files running to hundreds of lines in any programming language, and evaluates on accelerators for hours when needed. The difference comes from spending far more intelligence per sample: state-of-the-art models instead of small ones, rich context and execution feedback in every prompt instead of minimal context, and whole-file scope instead of single-function scope. The ablations confirm the compound effect: removing evolution, removing context in prompts, removing meta prompt evolution, restricting to single-function scope, or downgrading the models each costs measurable performance. No single technique accounts for the performance of the system; the loop as a whole does.

FunSearch and AlphaEvolve compared
Figure 3. FunSearch and AlphaEvolve compared on sample count, scope of evolved code, evaluation, models, and prompt context.

Results

The results are best read as a survey of what machine-gradable truth makes possible, because they span four very different kinds of engineering and pure mathematics.

Table of five rows (scheduling on Borg, Gemini training kernels, FlashAttention compiler internals, TPU silicon, mathematics) with columns for what was evolved, how it was verified, and the reported result.
Figure 4. White-paper results at a glance: what was evolved, how it was verified, and the reported result in each of the five areas.

Scheduling. Google's cluster manager, Borg, continually places jobs against CPU and memory constraints, a vector bin-packing problem where stranded capacity on one dimension wastes the other. AlphaEvolve evolved a scoring heuristic whose deployed form is a single interpretable expression combining the residual CPU and memory of a machine with their ratios in both directions, penalizing placements that leave the two resources unbalanced. In production for over a year, it continuously recovers an average of 0.7% of Google's fleet-wide compute that would otherwise be stranded. The team notes that this route was chosen over deep reinforcement learning deliberately: the code solution performed better and brought interpretability, debuggability, predictability, and ease of deployment that a learned policy could not.

Kernels. The core of Gemini training runs on matrix multiplication kernels whose performance hinges on tiling: choosing the tile dimensions (M, N, P) for every input shape. AlphaEvolve evolved a tiling heuristic that beat the existing expert-designed one by an average of 23% across all kernels, cutting Gemini's overall training time by 1% and compressing what the paper describes as months of dedicated engineering into days of automated experimentation. A one percent reduction in the training cost of a frontier model, discovered by a system running on that model's ancestor, constitutes the first small turn of a loop to which the paper returns later.

Compiler internals. For FlashAttention, AlphaEvolve operated on the XLA compiler's intermediate representation, a target with two unfavorable properties that the paper names explicitly: the IR exists for debugging rather than for direct editing, and it is compiler-generated and already heavily optimized. The system sped up the attention kernel itself by 32% and the surrounding pre- and postprocessing by 15%, with every step checked against the reference implementation. The demonstration is significant beyond the numbers, because it shows the approach working below the level of human-friendly source code.

Silicon. In hardware, AlphaEvolve examined an already optimized Verilog implementation of a key arithmetic circuit in the TPU's matrix multiplication unit and found a rewrite removing unnecessary bits, validated by TPU designers and integrated into an upcoming chip. The paper marks it as Gemini's first direct contribution to TPU arithmetic circuits.

Mathematics. Applied to more than 50 open problems, the system rediscovered the best known constructions in roughly 75% of cases and improved the state of the art in roughly 20% (Figure 5), including a configuration of 593 non-overlapping unit spheres touching a central unit sphere in 11 dimensions, raising the kissing number's lower bound past the previous record of 592. For a search process with no sense of prestige, a 56-year-old record and an obscure bound are the same kind of object: a number an evaluator can check.

Outcomes across more than 50 open mathematical problems
Figure 5. Outcomes across more than 50 open mathematical problems, as reported by DeepMind: roughly 75% rediscovered the best known construction and roughly 20% improved the state of the art. Shares are approximate; the remainder is inferred, not reported.

Deployment as a Product

In July 2026, the research system became a product. Google Cloud announced general availability of AlphaEvolve on the Gemini Enterprise Agent Platform, opening the same evolutionary machinery to any organization with an algorithm to improve and a metric to defend.

The productized workflow compresses the white paper's architecture into four steps (Figure 6): define a baseline seed algorithm with the code segments open to optimization, establish a scoring function covering correctness, performance, and operational constraints, let the agentic harness generate and refine candidates against those metrics, and deploy the winner. The API design preserves the division of authority that makes the research system trustworthy, with one detail of particular relevance to enterprise engineers: the evaluator runs client-side. The client-side runner queries the AlphaEvolve API to acquire mutated candidate solutions, runs them through the customer's own deterministic evaluator, which can be running anywhere the customer chooses, and submits only the scores back. Candidate generation is Google's; the ground truth, and the code and data that define it, execute wherever the customer runs the evaluator.

Productized AlphaEvolve workflow
Figure 6. The productized AlphaEvolve workflow in four steps. During generation and refinement, a client-side runner fetches candidates from the AlphaEvolve API, scores them with the customer's own deterministic evaluator, and returns only the scores; the evaluator, code and data never leave the customer's environment.

Early-access teams reported results on several workloads. Figure 7 lists their reported gains and the metric each team used. Klarna applied the system to one of its largest ML training pipelines and doubled throughput while improving model quality, under the reproducibility constraints of regulated finance; over three weeks the system explored nearly 6,000 candidate programs and, in the team's words, discovered deep architectural rewrites no engineer would have tried. JetBrains measured 15 to 20% IDE performance improvements and framed the change precisely: engineers still own the benchmark, the review, and the release decision, and what shrinks is the search space. BASF, after repeated failed attempts to build a supply chain digital twin with deterministic models, reported improving its existing planning and forecasting models by over 80%. FM Logistic improved warehouse routing by 10.4% on top of an already heavily optimized baseline, saving over 15,000 kilometers of staff travel. PacBio reduced variant detection errors in DNA sequencing by 30% through improvements to DeepConsensus, Schrödinger quadrupled the speed of molecular discovery, Kinaxis improved key forecasting accuracy metrics by more than 22% while cutting runtime by over 90% on benchmark datasets, and Oak Ridge National Laboratory ran the system on the Frontier exascale supercomputer to explore optimization candidates in parallel, reaching parts of the design space manual work would not have covered.

Google's own new deployments extend the internal record: a 20% reduction in write amplification in Spanner's log-structured merge-tree compaction, a compiler optimization recovering nearly 9% of software storage footprint, a 5% accuracy gain across 20 natural disaster risk categories, and the discovery of quantum circuits with 10x lower error rates for running complex molecular simulations on the Willow quantum processor. Among early access users, qBraid reports significantly more error-efficient error-correcting codes for quantum chemistry. Pushmeet Kohli's framing of the release captures the trajectory: AI moving beyond a productivity assistant that accelerates how people work toward a discovery engine that expands what they can achieve. Documentation, an onboarding guide, a GitHub repository with Colab examples, and IDE integration are all available to prospective users.

Reported gains from AlphaEvolve deployments
Figure 7. Reported gains from AlphaEvolve deployments, limited to results stated as a single percentage. Each row reports a different metric, so the rows are not directly comparable. Kinaxis is reported as more than 22% and the storage-footprint recovery as nearly 9%; multiplicative gains (Klarna 2x, Schrödinger 4x, Willow 10x) and ranges (JetBrains 15-20%) are omitted.

Discussion

AlphaEvolve illustrates how language-model generation can be paired with explicit evaluation to search for improved programs. Its usefulness depends on the task definition, evaluator, and execution environment.

The reported applications span algorithm discovery and infrastructure optimization. These results support further investigation into evaluator-guided search, with evaluation criteria and deployment conditions made explicit.

Sources and version notes

Google DeepMind: AlphaEvolve overview

Google DeepMind: applications and impact

Research

Browse all research, analyses, and software.

Browse all research notes and technical analyses.

Abstract

AlphaEvolve is a coding agent from Google DeepMind that wraps Gemini in an evolutionary loop: every generated program is executed, scored by a user-supplied evaluation function, and either retained as a parent for later generations or discarded. This article describes the task contract, the four-component loop, the choice of abstraction level, the safeguards against metric gaming, and the asynchronous pipeline that sustains throughput.

Reported results include a scheduling heuristic that recovers 0.7% of Google's worldwide compute, a 23% speedup in a core Gemini training kernel, and the first improvement in 56 years on Strassen's 1969 algorithm for multiplying 4x4 complex-valued matrices. The design rests on one thesis: creativity and verification are separable, and an architecture that separates them can scale each independently.

Introduction

Large language models write plausible code. When such models are used for discovery rather than autocomplete, the difficulty lies in the word plausible. A model readily produces a sorting routine, a scheduling heuristic, or a matrix multiplication kernel that looks right, and looking right has no value when the goal is an algorithm better than what the field already has. The gap between generating code and discovering algorithms is the gap between fluency and truth.

AlphaEvolve, announced by Google DeepMind, is an architecture for closing that gap. It wraps Gemini in an evolutionary loop in which every piece of generated code is executed, scored by machine-gradable metrics, and either kept as breeding material or discarded. Nothing survives on plausibility. The results attracted attention well beyond the usual demonstration cycle: a scheduling heuristic recovering 0.7% of Google's worldwide compute, a 23% speedup in a core Gemini training kernel, and the first improvement in 56 years on Strassen's 1969 algorithm for multiplying 4x4 complex-valued matrices. This article examines the machinery behind those results: the loop, the abstraction choices, the anti-gaming safeguards, and the systems engineering, at the level of detail an ML engineer or researcher would require before applying the pattern.

Problem Formulation: A Machine-Gradable Metric

AlphaEvolve requires an executable evaluation function that maps each candidate solution to scalar metrics. The evaluator defines the search objective, so its coverage and failure modes matter. Improvement depends on the candidate space, the evaluator, and the search budget; computability alone does not guarantee a better solution.

The second half of the contract is the starting code. The user marks the regions open to modification with comment annotations, # EVOLVE-BLOCK-START and # EVOLVE-BLOCK-END, inside an otherwise ordinary program. Everything outside the markers is scaffolding that the system leaves unchanged; everything inside is genetic material. The design decision appears minor but has a substantial consequence, because it means AlphaEvolve does not need a special problem format. An existing codebase, with its real build system and real dependencies, becomes an evolution substrate through the addition of two comments and an evaluator.

This framing explains both the capability of the system and its boundary. Data center scheduling qualifies because a candidate heuristic can be scored in simulation. Kernel optimization qualifies because wall-clock time is a number. A bound in extremal combinatorics qualifies because a construction either achieves a value or does not. What the loop cannot address, by its own design, is work whose quality no function can score, and the white paper is direct about that scope.

System Architecture: The Evolutionary Loop

The architecture is a cycle through four components (Figure 1), and each is examined separately below.

The AlphaEvolve evolutionary loop
Figure 1. The AlphaEvolve evolutionary loop. Parents sampled from the program database seed each new prompt.

The prompt sampler assembles the input that the language model receives, which extends far past a task description. Each prompt carries multiple previously discovered solutions sampled from the program database, so the model never generates from a blank slate; it is presented with the current frontier of known-good programs, together with rendered evaluation results, meaning the program, the outcome of executing it, and its scores. The user can inject explicit context (papers, hints, constraints), and the system also supports meta prompt evolution, in which instructions and context suggested by the language model itself are co-evolved alongside the programs. The prompt is therefore not a fixed template. It is itself an evolving artifact.

The LLM ensemble generates the candidates. AlphaEvolve uses Gemini 2.0 Flash and Gemini 2.0 Pro together, and the division of labor is deliberate: Flash provides throughput, maximizing the breadth of ideas explored per unit time, while Pro provides depth, contributing occasional suggestions of higher insight that redirect a lineage. The ablations in the white paper support the choice; runs restricted to the small model alone measurably underperform. The arrangement is a portfolio strategy applied to thought: many cheap hypotheses, a few expensive ones, and evolution determining which were productive.

The output format is a detail of practical interest to engineers. For substantial codebases, models emit changes as diffs in a SEARCH and REPLACE block format, targeting specific regions rather than regenerating whole files, which keeps mutations local, reviewable, and cheap. For short programs the system can request full rewrites instead. In both cases, what evolves is real code in version-control-sized increments.

The evaluators execute and score. Every candidate is run against the user's evaluate function, and much of the practical capability of the system resides in the machinery around this step. An evaluation cascade lets the user specify ensembles of test cases of increasing difficulty, such that new solutions advance to the next stage only if they achieve sufficiently promising results on all earlier stages; weak candidates are eliminated on cheap tests before expensive ones run, a hypothesis-testing structure that concentrates compute on programs that have earned it. Evaluation is parallelized, can run on accelerators, and can optimize multiple metrics at once. The system also permits LLM-generated feedback as a scoring channel for qualities like simplicity that resist closed-form measurement, layered on top of the hard metrics rather than replacing them.

The program database closes the cycle. Scored programs enter a store whose selection algorithm is inspired by a combination of MAP-elites and island-based population models. The choice addresses the classic failure mode of naive optimization: keeping only the best program collapses diversity, and breakthroughs depend on diversity. MAP-elites preserves champions across different regions of a feature space rather than one global winner; island models evolve semi-isolated subpopulations that occasionally exchange material. Together they let the database exploit strong lineages while protecting unusual ones long enough for an unconventional idea to mature into a winning one.

Choice of Abstraction Level

The most transferable insight in the white paper is easily overlooked on a first reading. AlphaEvolve can be applied to the same problem in very different ways, and the paper emphasizes the case where the evolved programs are not the final output but a means to discover solutions. The user chooses the level of abstraction: evolve the solution directly, evolve a constructor function that builds it, or evolve an entire search algorithm that searches for it.

The matrix multiplication result illustrates this choice at its most instructive setting. Faster matrix multiplication reduces to finding low-rank decompositions of a particular tensor, a nonconvex optimization problem known to be hard. AlphaEvolve did not evolve decompositions. It evolved the gradient-based search that finds them: the code under evolution included the optimizer configuration (one discovered variant switches to optax.adamw with a tuned weight decay), the loss function (evolved additions included discretization penalties, noise injection, and cyclical annealing schedules), and the hyperparameter sweep itself, into which the system introduced 13 new parameters. Each evolved program was scored by running it, from multiple random seeds, against a set of decomposition targets through the evaluation cascade. The evolved searcher improved the known state of the art on 14 different matrix multiplication targets, among them the rank-48 decomposition for 4x4 complex-valued matrices, which improved on the rank-49 of Strassen's algorithm after 56 years.

The methodological point is of particular relevance to researchers. When the object of interest is too hard to sample directly, evolving the discovery procedure moves the search into a space where LLM priors about code, optimizers, and loss shaping apply. AlphaEvolve was, in effect, conducting automated research on optimization methods, with the tensor decompositions as the measurable byproduct.

Safeguards Against Metric Gaming

Any system that optimizes a proxy raises the issue of what happens when the proxy is gamed, and the answers given in the white paper are concrete enough to reuse.

Execution is the first line of defense: because every candidate is run, incorrect suggestions from the base model are filtered rather than accumulated. Generalization is tested by construction where it matters; in the Gemini kernel work, the input shapes were split so that half formed the training set driving the evolution and the withheld half formed the evaluation set, so a heuristic overfitted to its optimization targets would be exposed rather than shipped. Numerical validity is enforced against ground truth; in the FlashAttention work, every proposed modification was checked against the reference implementation on randomized inputs to confirm numerical correctness throughout optimization. Exactness constraints can be pushed into both the scoring and the prompt; for tensor decompositions, evaluated entries were rounded to the nearest integer or half-integer, and the request for near-integral solutions was stated in natural language in the prompt, steering the search toward exactly verifiable algebra. Where the stakes are highest, verification leaves the loop entirely: the TPU circuit change had to pass the full battery of hardware verification, and the mathematical results feed constructions whose correctness is checked independently of the system that found them.

Table of five safeguards (execution, held-out generalization, reference check, exactness constraints, external verification) with the work each was applied to and the mechanism.
Figure 2. Five safeguards against metric gaming described in the white paper, where each was applied, and the mechanism behind it.

None of these safeguards is exotic. Held-out sets, reference checks, and exact verification constitute the standard kit of careful ML practice, applied here with unusual discipline at the boundary between a generative model and the truth.

Systems Design and Throughput

Around the loop sits an infrastructure decision that indicates what makes such systems work. AlphaEvolve is built as an asynchronous computational pipeline, using Python's asyncio, in which prompt construction, LLM calls, and evaluations for many candidates run concurrently, and the pipeline is explicitly optimized for throughput rather than the latency of any single step. The white paper quantifies the benefit: the design makes it feasible to spend on the order of 100 compute-hours evaluating a single candidate solution, with parallelized evaluation keeping the generational clock moving even when individual evaluations are that heavy.

The efficiency of the search is apparent in a comparison with FunSearch, DeepMind's 2023 predecessor (Figure 3). FunSearch needed millions of LLM samples to evolve a single short Python function of ten to twenty lines, evaluated within minutes on a CPU. AlphaEvolve reaches its results with thousands of samples, evolves entire code files running to hundreds of lines in any programming language, and evaluates on accelerators for hours when needed. The difference comes from spending far more intelligence per sample: state-of-the-art models instead of small ones, rich context and execution feedback in every prompt instead of minimal context, and whole-file scope instead of single-function scope. The ablations confirm the compound effect: removing evolution, removing context in prompts, removing meta prompt evolution, restricting to single-function scope, or downgrading the models each costs measurable performance. No single technique accounts for the performance of the system; the loop as a whole does.

FunSearch and AlphaEvolve compared
Figure 3. FunSearch and AlphaEvolve compared on sample count, scope of evolved code, evaluation, models, and prompt context.

Results

The results are best read as a survey of what machine-gradable truth makes possible, because they span four very different kinds of engineering and pure mathematics.

Table of five rows (scheduling on Borg, Gemini training kernels, FlashAttention compiler internals, TPU silicon, mathematics) with columns for what was evolved, how it was verified, and the reported result.
Figure 4. White-paper results at a glance: what was evolved, how it was verified, and the reported result in each of the five areas.

Scheduling. Google's cluster manager, Borg, continually places jobs against CPU and memory constraints, a vector bin-packing problem where stranded capacity on one dimension wastes the other. AlphaEvolve evolved a scoring heuristic whose deployed form is a single interpretable expression combining the residual CPU and memory of a machine with their ratios in both directions, penalizing placements that leave the two resources unbalanced. In production for over a year, it continuously recovers an average of 0.7% of Google's fleet-wide compute that would otherwise be stranded. The team notes that this route was chosen over deep reinforcement learning deliberately: the code solution performed better and brought interpretability, debuggability, predictability, and ease of deployment that a learned policy could not.

Kernels. The core of Gemini training runs on matrix multiplication kernels whose performance hinges on tiling: choosing the tile dimensions (M, N, P) for every input shape. AlphaEvolve evolved a tiling heuristic that beat the existing expert-designed one by an average of 23% across all kernels, cutting Gemini's overall training time by 1% and compressing what the paper describes as months of dedicated engineering into days of automated experimentation. A one percent reduction in the training cost of a frontier model, discovered by a system running on that model's ancestor, constitutes the first small turn of a loop to which the paper returns later.

Compiler internals. For FlashAttention, AlphaEvolve operated on the XLA compiler's intermediate representation, a target with two unfavorable properties that the paper names explicitly: the IR exists for debugging rather than for direct editing, and it is compiler-generated and already heavily optimized. The system sped up the attention kernel itself by 32% and the surrounding pre- and postprocessing by 15%, with every step checked against the reference implementation. The demonstration is significant beyond the numbers, because it shows the approach working below the level of human-friendly source code.

Silicon. In hardware, AlphaEvolve examined an already optimized Verilog implementation of a key arithmetic circuit in the TPU's matrix multiplication unit and found a rewrite removing unnecessary bits, validated by TPU designers and integrated into an upcoming chip. The paper marks it as Gemini's first direct contribution to TPU arithmetic circuits.

Mathematics. Applied to more than 50 open problems, the system rediscovered the best known constructions in roughly 75% of cases and improved the state of the art in roughly 20% (Figure 5), including a configuration of 593 non-overlapping unit spheres touching a central unit sphere in 11 dimensions, raising the kissing number's lower bound past the previous record of 592. For a search process with no sense of prestige, a 56-year-old record and an obscure bound are the same kind of object: a number an evaluator can check.

Outcomes across more than 50 open mathematical problems
Figure 5. Outcomes across more than 50 open mathematical problems, as reported by DeepMind: roughly 75% rediscovered the best known construction and roughly 20% improved the state of the art. Shares are approximate; the remainder is inferred, not reported.

Deployment as a Product

In July 2026, the research system became a product. Google Cloud announced general availability of AlphaEvolve on the Gemini Enterprise Agent Platform, opening the same evolutionary machinery to any organization with an algorithm to improve and a metric to defend.

The productized workflow compresses the white paper's architecture into four steps (Figure 6): define a baseline seed algorithm with the code segments open to optimization, establish a scoring function covering correctness, performance, and operational constraints, let the agentic harness generate and refine candidates against those metrics, and deploy the winner. The API design preserves the division of authority that makes the research system trustworthy, with one detail of particular relevance to enterprise engineers: the evaluator runs client-side. The client-side runner queries the AlphaEvolve API to acquire mutated candidate solutions, runs them through the customer's own deterministic evaluator, which can be running anywhere the customer chooses, and submits only the scores back. Candidate generation is Google's; the ground truth, and the code and data that define it, execute wherever the customer runs the evaluator.

Productized AlphaEvolve workflow
Figure 6. The productized AlphaEvolve workflow in four steps. During generation and refinement, a client-side runner fetches candidates from the AlphaEvolve API, scores them with the customer's own deterministic evaluator, and returns only the scores; the evaluator, code and data never leave the customer's environment.

Early-access teams reported results on several workloads. Figure 7 lists their reported gains and the metric each team used. Klarna applied the system to one of its largest ML training pipelines and doubled throughput while improving model quality, under the reproducibility constraints of regulated finance; over three weeks the system explored nearly 6,000 candidate programs and, in the team's words, discovered deep architectural rewrites no engineer would have tried. JetBrains measured 15 to 20% IDE performance improvements and framed the change precisely: engineers still own the benchmark, the review, and the release decision, and what shrinks is the search space. BASF, after repeated failed attempts to build a supply chain digital twin with deterministic models, reported improving its existing planning and forecasting models by over 80%. FM Logistic improved warehouse routing by 10.4% on top of an already heavily optimized baseline, saving over 15,000 kilometers of staff travel. PacBio reduced variant detection errors in DNA sequencing by 30% through improvements to DeepConsensus, Schrödinger quadrupled the speed of molecular discovery, Kinaxis improved key forecasting accuracy metrics by more than 22% while cutting runtime by over 90% on benchmark datasets, and Oak Ridge National Laboratory ran the system on the Frontier exascale supercomputer to explore optimization candidates in parallel, reaching parts of the design space manual work would not have covered.

Google's own new deployments extend the internal record: a 20% reduction in write amplification in Spanner's log-structured merge-tree compaction, a compiler optimization recovering nearly 9% of software storage footprint, a 5% accuracy gain across 20 natural disaster risk categories, and the discovery of quantum circuits with 10x lower error rates for running complex molecular simulations on the Willow quantum processor. Among early access users, qBraid reports significantly more error-efficient error-correcting codes for quantum chemistry. Pushmeet Kohli's framing of the release captures the trajectory: AI moving beyond a productivity assistant that accelerates how people work toward a discovery engine that expands what they can achieve. Documentation, an onboarding guide, a GitHub repository with Colab examples, and IDE integration are all available to prospective users.

Reported gains from AlphaEvolve deployments
Figure 7. Reported gains from AlphaEvolve deployments, limited to results stated as a single percentage. Each row reports a different metric, so the rows are not directly comparable. Kinaxis is reported as more than 22% and the storage-footprint recovery as nearly 9%; multiplicative gains (Klarna 2x, Schrödinger 4x, Willow 10x) and ranges (JetBrains 15-20%) are omitted.

Discussion

AlphaEvolve illustrates how language-model generation can be paired with explicit evaluation to search for improved programs. Its usefulness depends on the task definition, evaluator, and execution environment.

The reported applications span algorithm discovery and infrastructure optimization. These results support further investigation into evaluator-guided search, with evaluation criteria and deployment conditions made explicit.

Sources and version notes

Google DeepMind: AlphaEvolve overview

Google DeepMind: applications and impact

Research

Browse all research notes and technical analyses.

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

Research and collaboration

Have a research question?

Tell us what you’d like to test.

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

Research and collaboration

Have a research question?

Tell us what you’d like to test.

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

Research and collaboration

Have a research question?

Tell us what you’d like to test.

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]