Google says its AI agents sped up TPU chip routines by up to 2.69×
Antigravity agents built their own fast tests to search for improvements. The reported gains span chip routines, CPU design and offline cluster-scheduling experiments.
Loading page…
Antigravity agents built their own fast tests to search for improvements. The reported gains span chip routines, CPU design and offline cluster-scheduling experiments.
Listen to this story
Google reports that Antigravity agents used DuoDiscover’s faster, agent-built “yardsticks” to search code changes while checking that local tests still tracked full evaluations. The method delivered a 5.0% geometric-mean gain on a CPU-prefetcher benchmark and improved TPU kernels over engineer-written references; cheaper Gemini Hydrogen outperformed Gemini Carbon overall despite making nearly five times as many calls. Borg scheduling gains remain offline and under review, while Google says codebase-optimization access is planned for a future Antigravity update.
Across five TPU kernels, agents achieved 1.50×–2.69× speedups over existing reference code while passing correctness and numerical-tolerance tests.
Hydrogen made 163,797 model calls versus Carbon’s 33,195; cache-hit rates differed substantially, so realized API spending is not a clean price comparison.
DuoDiscover’s tailored evaluators ran 20–50 times faster than full tests, with checks to invalidate yardsticks that stopped ranking changes faithfully.
Google says AI agents accelerated five specialized routines for its TPU chips by 1.50× to 2.69×, beating reference code written by performance engineers. The December 3 results show Antigravity agents finding improvements while passing correctness and numerical-tolerance tests—not simply producing faster code at the expense of those checks.
The Antigravity and Google Research teams ran the experiments through Antigravity’s /teamwork workflow. Their report also describes gains on a CPU-design benchmark and candidate improvements to Borg, Google’s cluster-management system. The common problem was not generating more edits: it was finding ways to judge them without waiting hours for every full test.
Google says a TPU-kernel benchmark can take tens of minutes, while evaluating a CPU design can take more than a day. That makes feedback the bottleneck: an agent may generate candidate changes much faster than the system can establish whether they help.
The method comes from DuoDiscover, a research paper submitted in October. Each worker agent identifies a promising code region and builds a tailored, faster evaluator, called a yardstick. Google says these local tests run 20–50 times faster than the full evaluation, letting workers explore changes before seeking expensive confirmation.
Letting agents construct their own tests creates an obvious risk: they can optimize for a shortcut that no longer reflects the real goal. DuoDiscover repeatedly checks whether each yardstick still ranks changes faithfully and invalidates those that drift. A lightweight coordinator shares confirmed work among agents rather than assigning every subproblem in advance.
For the chip experiments, Google tested five DeepSeek-V4 Pallas kernels—specialized code routines—with both Gemini Carbon and Gemini Hydrogen. Workers isolated stages, tried different memory layouts and scheduling strategies, and combined complementary changes. The baseline was the existing engineer-written reference code, not an unoptimized starting implementation.
Hydrogen, which Google describes as faster and cheaper per token, produced the higher geometric-mean speedup across the five kernels. It made 163,797 model calls against Carbon’s 33,195—nearly five times as many. Carbon narrowly led on two kernels; Hydrogen led on the other three.
The spending comparison needs care. Hydrogen reused cached input much more often: 85.7% versus Carbon’s 48.4%. Google calculates that Carbon’s five runs would have cost roughly $5,016 at Hydrogen’s cache-hit rate. The realized bills therefore reflect both model pricing and how often earlier input could be processed at discounted cached rates.
Google also ran three Carbon-powered campaigns on Borg’s C++ scheduler. These results came from offline simulations and replays of production traces. The proposed changes remain under review with the Borg team and have not been validated or deployed in production.
On DPC4, a CPU data-prefetcher design benchmark, Carbon achieved a reported 5.0% geometric-mean speedup across three evaluation regimes. Google compares that with 3.5% for the best human-crafted entry and 3.8% for ArchAgent v2. Its campaign took 9.6 days and graded 2,244 candidates; ArchAgent v2 took more than 40 days and graded over 12,000.
For developers, access to this codebase-optimization capability is still ahead: Google says it will roll out in the next Antigravity update.
Loading discussion...
Join the conversation
Explain where independent checks matter most.
Be the first to share a perspective or an experience.
Reader comments
Newest comments first. Replies stay oldest first.