From the source
Google Antigravity is rolling out a codebase optimization capability in its next update, with agents powered by Gemini delivering up to 2.69× speedups on
DeepSeek-V4 TPU kernels.
- The company frames the problem as one of evaluation cost: benchmarking a TPU kernel suite takes tens of minutes, and measuring an LLM serving engine like vLLM takes nearly 1.5 hours per candidate.
- Hand-crafted microbenchmarks do not scale, and static proxies fall prey to Goodhart's law as agents exploit gaps between proxy and true benchmark.
- The agents instead discover what to optimize and how to measure progress cheaply, verifying that fast proxies stay faithful and reserving expensive true evaluations for confirmations.
- Across five DeepSeek-V4 Pallas TPU kernels, the agents reached 1.50× to 2.69× speedups while passing every correctness and tolerance test, with Gemini Hydrogen at a 2.10× geometric mean versus Gemini Carbon's 1.97×.
- Hydrogen costs $1.50 / $0.075 / $7.50 per million uncached input, cached input, and output tokens, 2.67× cheaper per token than Carbon, and ran nearly 5× as many LLM calls.
- On Borg, the same workflow found candidate scheduling changes that cut TPU workload interruptions by 55.1% in offline replays of production traces.






