Google's AlphaEvolve AI agent recovers 0.7% of its compute
Google DeepMind's AlphaEvolve pairs Gemini models with automated evaluators to evolve the code behind Google's data center scheduling, Gemini training kernels, TPU circuits and Spanner storage.
GoogleUnited States (Google's data center fleet worldwide)Cloud and data centersScaled
- Scale
- Google's entire data center fleet
- Use case
- AI-evolved algorithms for computing infrastructure
- Business function
- Engineering and design
- Kind of solution
- Scientific discovery and design
- Who built it
- Built in-house
- Human oversight
- Assists people
- Organization
- Enterprise, part of Alphabet
- AI types
- Generative AI, Agentic AI, Optimization
tl;drA Borg scheduling heuristic from AlphaEvolve recovers 0.7% of Google's fleet-wide compute.See the results
Google uses AlphaEvolve, a Gemini-powered coding agent from Google DeepMind, to improve the algorithms that run its data centers, train its Gemini models and shape its chips1.
AlphaEvolve pairs Gemini models with automated evaluators that verify each answer, and an evolutionary framework builds on the most promising ideas1. A scheduling heuristic it found for Borg, Google’s cluster manager, runs across the entire fleet and recovers on average 0.7% of fleet-wide compute2.
In May 2026, Google DeepMind reported that AlphaEvolve had moved from pilot testing to a core component of Google’s infrastructure3. Its newer results include a 20% cut in write amplification in Google Spanner3.
Before the deployment
Google’s engineers wrote the heuristics inside these systems by hand or tuned them with search, and each problem had its own bottleneck2:
- Stranded compute: A badly placed job could leave a machine out of one resource, such as memory, while another resource, such as CPU, sat free2.
- Kernel tuning: Search-based autotuning needed retuning for every change in input shape, and hand-written tiling heuristics were a major engineering bottleneck2.
- Chip design: Register-transfer level (RTL) optimization of circuits demanded months of iteration by highly skilled engineers2.
- Cache policies: Finding better cache replacement policies took a human-intensive effort spanning months3.
Google DeepMind showed in 2023 that language models can write functions that find new knowledge on an open scientific problem1. AlphaEvolve goes further and evolves whole codebases1.
What was built
AlphaEvolve runs an evolutionary loop over code. Gemini models propose changes, evaluators run and score each new program, and the strongest programs feed the next round2.
- Engineers: Supply the starting program with the parts to evolve marked, the evaluation code, and optional settings2.
- Gemini models: Gemini 2.0 Flash generates many candidates at low latency. Gemini 2.0 Pro adds fewer, higher-quality suggestions that can advance the search2.
- Evaluators: Run each candidate on small cases first, then on harder stages only if it passes, which filters out faulty programs early2.
- Program database: Stores every scored program and brings earlier ideas back into later prompts2.
- Designers and experts: Check the winning code. TPU designers validated the circuit rewrite, and human experts confirmed the FlashAttention code correct for all possible inputs2.
“It proposed a circuit design so counterintuitive yet efficient that it was integrated directly into the silicon of our next-generation TPUs.”
Alternatives considered
For Borg, Google chose AlphaEvolve’s code over a deep reinforcement learning approach. The code performed better and is easier to interpret, debug, predict and deploy, which a mission-critical system needs2.
Rollout
By May 2026, Google used AlphaEvolve as a regular tool to optimize the design of its next TPUs3. In July 2026, Google made the same agent generally available to Google Cloud customers4, on Gemini Enterprise Agent Platform5.
Technology and architecture
AlphaEvolve runs as an asynchronous pipeline of a controller, LLM samplers and evaluation nodes. The pipeline is tuned for throughput, to propose and evaluate as many ideas as a compute budget allows2. Evaluating one new solution can take on the order of 100 compute-hours, so the work is spread over an evaluation cluster2.
| Layer | What they used | Role | Source |
|---|---|---|---|
| Task agent | AlphaEvolve | Evolutionary coding agent that proposes, scores and selects new versions of an algorithm’s code | 1, 2 |
| Language model | Gemini 2.0 Flash | Generates a high rate of candidate code changes at low latency | 2 |
| Language model | Gemini 2.0 Pro | Supplies occasional higher-quality suggestions that advance the search | 2 |
| Prompt and context management | Prompt sampler | Builds prompts from earlier programs in the program database | 2 |
| Offline evaluation | Evaluators pool | Runs and scores each candidate program in a cascade of harder test cases | 2 |
| Data set | Program database | Stores scored programs and resurfaces earlier ideas in later prompts | 2 |
| Agent orchestration | Asynchronous pipeline | Runs the controller, LLM samplers and evaluation nodes concurrently for throughput | 2 |
| Simulation testing | Data center simulator | Scores candidate Borg heuristics on historical snapshots of fleet workloads and capacity | 2 |
| Business or operational system | Borg | Google’s cluster manager, whose scheduler ranks machines with the evolved heuristic | 1, 2 |
| Compute and servers | TPU accelerators | Run candidate tiling heuristics to measure real kernel runtime | 2 |
| Framework or library | Pallas | JAX extension in which the Gemini training kernels are written | 2 |
Data inputs
- Production code: The Borg heuristic evolved from the one already in production2.
- Fleet snapshots: Historical snapshots of workloads and capacity across Google’s fleet feed the data center simulator. An unseen set of recent workloads tests the result2.
- Kernel input shapes: Shapes collected automatically from kernel users split into a training half and an evaluation half2.
- Hardware and compiler code: A Verilog implementation of a TPU arithmetic circuit, and the XLA-generated intermediate representations of the FlashAttention kernel2.
Integrations
- Borg scheduler: The heuristic takes a pending job’s CPU and memory needs and a machine’s free CPU and memory, and returns a priority score. Borg assigns the job to the highest-scoring machine, among other objectives2.
- TPU accelerators: Candidate tiling heuristics run on real TPUs, which measure the kernel’s runtime on each input shape2.
- TPU design flow: AlphaEvolve proposes changes in Verilog, the language that hardware engineers already use1, 2.
How one heuristic reached the Borg fleet
- Engineers framed online job scheduling as vector bin-packing with two variables, CPU and memory2.
- An early version of AlphaEvolve evolved a new heuristic function from the one in production2.
- A data center simulator scored each candidate on historical snapshots of workloads and capacity2.
- The team tested the best heuristic on unseen recent workloads to check that it generalizes2.
- The heuristic beat the production one, and Google rolled it out to the entire fleet2.
- Post-deployment measurements across the fleet confirmed the simulator results2.
The heuristic only ranks machines that Borg has already found able to run the job, so its scheduling decisions are correct by construction2.
Results
| Metric | Before | After | Scope and timeframe | Reported by |
|---|---|---|---|---|
| Fleet-wide compute recovered | Previous production heuristic | 0.7% | Entire fleet, in production over a year by May 2025 | Google DeepMind, measured1, 2 |
| Average kernel speedup | Expert-designed heuristic | 23% | A matrix multiplication kernel for Gemini training | Google DeepMind, measured1, 2 |
| Reduction in Gemini’s overall training time | Not disclosed | 1% | Gemini training, from the faster kernel | Google DeepMind, measured1, 2 |
| Reduction in Spanner write amplification | Not disclosed | 20% | Google Spanner, reported May 2026 | Google DeepMind, measured3 |
- Recovered compute: The 0.7% is the average share of fleet-wide compute that would otherwise be stranded, recovered continuously2. The heuristic had been in production for over a year by May 20251.
- Kernel speedup: The 23% is an average across all kernels against the expert-designed heuristic, and it cut Gemini’s overall training time by 1%2. The tiling heuristic is deployed in production2.
- Engineering time: Kernel optimization went from several months of dedicated engineering effort to days of automated experimentation2. The announcement put the earlier effort at weeks1.
- Spanner and storage: In May 2026, refined Log-Structured Merge-tree compaction heuristics cut Spanner’s write amplification, the ratio of data written to data requested, by 20%3. New compiler strategies cut the storage footprint of software by nearly 9%3.
- FlashAttention: For a transformer model used for inference at scale on GPUs, the kernel ran 32% faster and its pre- and postprocessing 15% faster2. The announcement gave up to a 32.5% speedup1.
- Cache policies: AlphaEvolve found more efficient cache replacement policies in two days3.
Lessons learned
The Borg result is the strongest of the set. It’s a fleet-wide production deployment, and post-deployment measurements matched the simulator2.
Readable code was a deliberate choice. Google picked it over deep reinforcement learning for interpretability and ease of deployment, and the Verilog output fits how hardware engineers already work2.
AlphaEvolve only handles problems with an automated evaluator, so tasks that need manual experimentation are out of scope2. InfoQ drew the same line. The approach works where a problem has a measurable, automatable evaluation function, and not on code judged by people5.
The TPU circuit change in the white paper wasn’t new to the design flow. Downstream synthesis tools independently caught the same simplification, so AlphaEvolve’s contribution was finding it earlier, at the RTL stage2.
Much of the work sits in the evaluator. A practitioner quoted by InfoQ said the outcomes mostly come from “very well designed environments for both the LLM and the evolutionary algorithm to work well”5. InfoQ added that the search will exploit anything the evaluator fails to measure, such as fast code that is subtly wrong5.
Google’s own accounts of the kernel work differ on the time it replaced and on the FlashAttention speedup. The white paper is the one that states the configuration behind its figures1, 2.
The Borg, kernel, Spanner and storage figures are Google’s own measurements, from Google DeepMind’s posts and white paper1, 2, 3. InfoQ noted that all performance figures in the July 2026 announcement were vendor-provided or customer testimonials5.
Case study scorecard
- 0.7% Fleet-wide compute recovered1, 2
- 23% Average kernel speedup1, 2
- 1% Reduction in Gemini's overall training time1, 2
- 20% Reduction in Spanner write amplification3
Sources by publication date
- Organization 3
- Press, academic, and regulators 2
Build this solution yourself
Analysis
What you need
- An evaluator that scores code automatically: Every result here came from a problem with a measurable score, such as stranded resources in a simulator or kernel runtime on TPUs2. Check that your problem has one first.
- A test bed built on your own data: The Borg heuristic was scored on historical fleet snapshots and tested on unseen recent workloads before the rollout2.
- A change that is safe by construction: The heuristic only reorders machines that Borg already found capable, and the tiling heuristic leaves the kernel’s math alone2. Your evolved code needs a boundary like that before it reaches production.
Reference architecture
Scientific discovery and design
A scientific discovery and design solution searches a space of candidate molecules, materials, layouts, or configurations with models that score each candidate far faster than the test that settles it. A surrogate scorer predicts what a slow high-accuracy check would report for each candidate, and screening filters cut the list to a shortlist that the check confirms. Domain experts choose what to make, build, or run from that shortlist, and the results of the high-accuracy check become training data for the models.
- Ranking model
- Candidate generator
- Domain libraries (documented in this case study)
- Surrogate scorer
- Screening filters
- Run orchestration
- Elastic compute (documented in this case study)
- Training pipeline
- Design workspace
- Discovery platform
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
- Google: Google lays out TPU chip blocks with reinforcement learning. AlphaChip placed 25 Trillium TPU blocks with 6.2% less wirelength than human experts.
- Unilever: Unilever's beauty labs cut formulation rounds with AI. Formulation cycles fell from five or six rounds to one or two in Unilever's beauty R&D.
- Syensqo: Syensqo finds a new polymer in 18 months with AI screening. AI screening of 4 million molecules found Syensqo a new polymer in 18 months.
- Bristol Myers Squibb: AI vets every BMS small molecule design before the lab. AI predictions now inform the design of every small molecule program at Bristol Myers Squibb.
- PepsiCo: PepsiCo plant digital twins lift throughput 20% in pilot. The initial deployment lifted throughput 20%, with capex an estimated 10 to 15% lower.
- General Motors: AI surrogates cut GM's drag analysis from weeks to minutes. GM designers now get drag estimates for new shapes in minutes instead of about two weeks.
Cite this case study
Enterprise AI Case Studies. "Google's AlphaEvolve AI agent recovers 0.7% of its compute." Updated Nov 29, 2026. https://case-studies.ai/use-cases/engineering-and-research/ER-071-ai-evolved-infrastructure-algorithms-google/
@misc{csai-er-071,
author = {{Enterprise AI Case Studies}},
title = {{Google's AlphaEvolve AI agent recovers 0.7% of its compute}},
year = {2026},
note = {Updated 2026-11-29},
url = {https://case-studies.ai/use-cases/engineering-and-research/ER-071-ai-evolved-infrastructure-algorithms-google/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
AlphaEvolve: A Gemini-powered coding agent for designing advanced algorithms
Supporting excerpts (14)
AlphaEvolve pairs the creative problem-solving capabilities of our Gemini models with automated evaluators that verify answers, and uses an evolutionary framework to improve upon the most promising ideas.
AlphaEvolve enhanced the efficiency of Google's data centers, chip design and AI training processes
In 2023, we showed for the first time that large language models can generate functions written in computer code to help discover new and provably correct knowledge on an open scientific problem.
AlphaEvolve is an agent that can go beyond single function discovery to evolve entire codebases and develop much more complex algorithms.
Over the past year, we've deployed algorithms discovered by AlphaEvolve across Google's computing ecosystem, including our data centers, hardware and software.
AlphaEvolve discovered a simple yet remarkably effective heuristic to help Borg orchestrate Google's vast data centers more efficiently.
This solution, now in production for over a year, continuously recovers, on average, 0.7% of Google's worldwide compute resources.
offers significant operational advantages of human-readable code: interpretability, debuggability, predictability and ease of deployment
Crucially, the proposal must pass robust verification methods to confirm that the modified circuit maintains functional correctness.
This proposal was integrated into an upcoming Tensor Processing Unit (TPU), Google's custom AI accelerator.
By suggesting modifications in the standard language of chip designers, AlphaEvolve promotes a collaborative approach between AI and hardware engineers
it sped up this vital kernel in Gemini's architecture by 23%, leading to a 1% reduction in Gemini's training time
AlphaEvolve significantly reduces the engineering time required for kernel optimization, from weeks of expert effort to days of automated experiments
AlphaEvolve achieved up to a 32.5% speedup for the FlashAttention kernel implementation in Transformer-based AI models.
- Source 2:
AlphaEvolve: A coding agent for scientific and algorithmic discovery
Supporting excerpts (54)
The user provides an initial program (with components to evolve marked), evaluation code, and optional configurations
The Prompt sampler uses programs from the Program database to construct rich prompts
the LLMs generate code modifications (diffs), which are applied to create new programs
These are then scored by Evaluators (Section 2.4), and promising solutions are registered back into the Program database
we utilize a combination of Gemini 2.0 Flash and Gemini 2.0 Pro
This ensemble approach allows us to balance computational throughput with the quality of generated solutions.
Gemini 2.0 Flash, with its lower latency, enables a higher rate of candidate generation, increasing the number of ideas explored per unit of time.
Gemini 2.0 Pro, possessing greater capabilities, provides occasional, higher-quality suggestions that can significantly advance the evolutionary search
the user can specify ensembles of test cases of increasing difficulty, such that new solutions are evaluated on the next stage only if they achieve sufficiently promising results in all earlier stages
new solutions are initially evaluated on a small scale before being subjected to the main test cases, to filter out faulty programs early
makes it feasible to spend on the order of 100 compute-hours to evaluate any new solution
allowing AlphaEvolve to distribute this work through asynchronous calls to an evaluation cluster
the primary goal of which is to optimally resurface previously explored ideas in future generations
the evolutionary database implements an algorithm that is inspired by a combination of the MAP elites algorithm
and island-based population models
the asynchronous pipeline comprises a controller, LLM samplers, and evaluation nodes
The entire pipeline is optimized for throughput (rather than the speed of any one particular computation), in order to maximize the number of ideas that can be proposed and evaluated within a specific overall computation budget.
Inefficient assignments can result in stranded resources: when a machine can no longer accept jobs because it has run out of one kind of resource (e.g., memory) but still has other resources free (e.g., CPU).
We address this challenge by framing the online job scheduling problem as a vector bin-packing problem with two variables.
A heuristic function takes as input a pending job's CPU and memory requirements and a potential machine's CPU and memory availability. This function then outputs a priority score for the machine.
The Borg scheduler subsequently assigns the pending job to the machine with the highest priority score as determined by the heuristic function, among other objectives.
Because this heuristic only influences the ranking of machines already determined by Borg to be available and capable of running each pending job, the resulting scheduling decisions are effectively correct by construction.
An early version of AlphaEvolve was used to discover a remarkably simple yet effective heuristic function (shown in Figure 6), evolving from the existing one in production.
We use a simulator of our data centers to provide feedback to AlphaEvolve based on historical snapshots of workloads and capacity across Google's fleet.
We measure the performance of AlphaEvolve's heuristic function on an unseen test dataset of recent workloads and capacity to ensure generalization.
Observing that AlphaEvolve's heuristic function outperforms the one in production, we rolled out AlphaEvolve's heuristic function to the entire fleet.
Post-deployment measurements across Google's fleet confirmed the simulator results
this heuristic function continuously recovers on average 0.7% of Google's fleet-wide compute resources, which would otherwise be stranded
AlphaEvolve was chosen over a deep reinforcement learning approach because its code solution not only leads to better performance, but also offers clear advantages in interpretability, debuggability, predictability, and ease of deployment
Pallas is an extension to JAX that enables writing custom, highly specialized programs (kernels) tailored for optimal execution on hardware accelerators.
Traditionally, kernel engineers rely on either search-based autotuning or manually crafted heuristics to determine near-optimal tiling configurations for various input shapes.
Search-based tuning interrupts the research workflow, necessitating retuning for every input shape change.
manually crafting effective tiling heuristics is a major engineering bottleneck
aiming to minimize this runtime on various input shapes on real TPU accelerators
The kernel's correctness is maintained by construction because AlphaEvolve is optimizing the tiling strategy for this kernel rather than altering
we automatically collect realistic kernel input shapes from kernel users
Half of these input shapes form the training set, providing the optimization targets during the evolutionary process. The remaining input shapes form the evaluation set, used to test the general applicability of the resulting heuristic.
an average 23% kernel speedup across all kernels over the existing expert-designed heuristic, and a corresponding 1% reduction in Gemini's overall training time
significantly reduced the kernel optimization time, from several months of dedicated engineering effort to just days of automated experimentation
The tiling heuristic discovered by AlphaEvolve has been deployed in production
Register-Transfer Level (RTL) optimization, a critical step in this process, involves manually rewriting hardware descriptions to improve metrics like power, performance, and area, demanding months of iteration by highly skilled engineers.
AlphaEvolve was challenged to optimize an already highly optimized Verilog implementation of a key TPU arithmetic circuit within the matrix multiplication unit.
AlphaEvolve was able to find a simple code rewrite that removed unnecessary bits, a change validated by TPU designers for correctness.
this specific improvement was also independently caught by downstream synthesis tools
AlphaEvolve's contribution at the RTL stage demonstrates its capability to refine source RTL and provide optimizations early in the design flow
it communicates the suggested changes directly in Verilog, the standard language used by hardware engineers, fostering trust and simplifying adoption
We challenged AlphaEvolve to directly optimize the XLA-generated IRs encapsulating the FlashAttention kernel along with pre- and postprocessing code.
We optimized a configuration corresponding to a highly impactful transformer model used for inference at scale on GPUs
Each modification proposed by AlphaEvolve was checked against the reference (unmodified) code on randomized inputs in order to ensure numerical correctness throughout optimization.
The final version of the code was rigorously confirmed by human experts to be correct for all possible inputs.
the FlashAttention kernel for the configuration of interest was sped up by 32%
resulting in a 15% speed up in this part
The main limitation of AlphaEvolve is that it handles problems for which it is possible to devise an automated evaluator.
it puts tasks that require manual experimentation out of our scope
- Source 3:
AlphaEvolve: Gemini-powered coding agent scaling impact across fields
Supporting excerpts (9)
optimize algorithms that have since been deployed across critical parts of Google's infrastructure
AlphaEvolve has graduated from pilot testing to becoming a core component of our infrastructure.
AlphaEvolve has been used as a regular tool to optimize the design of the next generation of TPUs.
It also helped discover more efficient cache replacement policies, achieving in two days what previously required a concerted, human-intensive effort spanning months.
It proposed a circuit design so counterintuitive yet efficient that it was integrated directly into the silicon of our next-generation TPUs.
Jeff Dean, Chief Scientist, Google DeepMind and Google Research
AlphaEvolve improved the efficiency of Google Spanner by refining its Log-Structured Merge-tree compaction heuristics.
This optimization reduced 'write amplification'—the ratio of data written to storage versus the original request—by 20%.
It also provided insights for new compiler optimization strategies that reduced the storage footprint of software by nearly 9%.
- Source 4:
AlphaEvolve is available for everyone
Supporting excerpts (4)
Traditional coding methods often cannot explore all the possible algorithms and implementations because the search space is simply too vast.
Today, AlphaEvolve is generally available (GA) on Google Cloud.
AlphaEvolve has grown from a research project into a key tool we use at Google.
AI is moving beyond acting as a productivity assistant that accelerates how we work to a discovery engine that expands what we can achieve.
- Source 5:
Google's AlphaEvolve Reaches General Availability with Evolutionary Code Optimization as a Service
Supporting excerpts (7)
Google recently announced the general availability (GA) of AlphaEvolve on the Gemini Enterprise Agent Platform
Google's internal usage predates the product.
AlphaEvolve works where the problem has a measurable, automatable evaluation function.
Code whose quality depends on human judgment is not.
All performance figures are vendor-provided or customer testimonials published on Google's own blog, with no independent benchmarks.
the outcomes reported are in almost all cases the result of very well designed environments for both the LLM and the evolutionary algorithm to work well
teams must build a scoring harness that captures every property they care about, because the evolutionary search will exploit anything the evaluator fails to measure, such as producing fast code that is subtly wrong in ways the tests do not catch
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.