{"type":"post","id":"google-s-antigravity-teamwork-makes-tpu-kernels-2-e4a310","slug":"google-s-antigravity-teamwork-makes-tpu-kernels-2-e4a310","title":"Google's Antigravity /teamwork Makes TPU Kernels 2.69× Faster in 9 Days","description":"Google ran autonomous codebase optimization campaigns in Antigravity using /teamwork, testing Gemini Carbon and Gemini Hydrogen on five DeepSeek-V4 Pallas TPU kernels against existing reference kernels written by performance engineers.","retrieval_nugget":"Google ran autonomous codebase optimization campaigns in Antigravity using /teamwork, testing Gemini Carbon and Gemini Hydrogen on five DeepSeek-V4 Pallas TPU kernels against existing reference kernels written by performance engineers. It reports speedups of 1.50× to 2.69×, with every kernel passing correctness and tolerance tests. (antigravity.google)","published_at":"2026-12-05","updated_at":"2026-12-05","record_date":"2026-12-05","date_kind":"published_at","topics":["google","gemini"],"entities":["Google","Google Antigravity","Gemini Carbon","Gemini Hydrogen","DuoDiscover","Borg","vLLM","DeepSeek-V4"],"related_patterns":["harness-architecture-outlives-model-choice"],"novelty_label":"new_fact","what_changed":"Google reports that Antigravity /teamwork optimized TPU kernels to run 2.69× faster in nine days.","prior_refs":["https://newruntime.com/posts/google-research-published-its-own-version-of-this-71c616/"],"source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","source_urls":["https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork"],"production":{"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-12-05T10:00:29.105Z","independent_sources":4,"notes_synthesized":null,"writer_model":"gpt-6-luna","critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":{"label":"new_fact","confidence":"high"},"editorial_value":"high","human_review":"selective"},"citations":[{"claim":"","quotes":["We ran these campaigns in Google Antigravity using /teamwork , where this codebase optimization capability is rolling out in the next update.","TPU kernel optimization results To … Sparse MLA, and Streamindex TopK.","Importantly, the baseline (1.00×) for every kernel is the existing Pallas reference kernel written by performance engineers.","Across all five DeepSeek-V4 kernels, the agents consistently unlocked 1.50× to 2.69× speedups while passing every correctness and tolerance test."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=We%20ran%20these%20campaigns%20in%20Google%20Antigravity%20using%20%2Fteamwork%20%2C%20where%20this%20codebase%20optimization%20capability%20is%20rolling%20out%20in%20the%20next%20update.&text=TPU%20kernel%20optimization%20results%20To,Sparse%20MLA%2C%20and%20Streamindex%20TopK.&text=Importantly%2C%20the%20baseline%20%281.00%C3%97%29%20for%20every%20kernel%20is%20the%20existing%20Pallas%20reference%20kernel%20written%20by%20performance%20engineers.&text=Across%20all%20five%20DeepSeek%2DV4%20kernels%2C%20the%20agents%20consistently%20unlocked%201.50%C3%97%20to%202.69%C3%97%20speedups%20while%20passing%20every%20correctness%20and%20tolerance%20test.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Full evaluation is costly: Google says a TPU kernel suite routinely takes tens of minutes, while a vLLM serving-engine evaluation takes nearly 1.5 hours per candidate.","quotes":["TPU kernel optimization results To … Sparse MLA, and Streamindex TopK."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=TPU%20kernel%20optimization%20results%20To,Sparse%20MLA%2C%20and%20Streamindex%20TopK.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Workers profile code regions, estimate their cost share and reducible gap, then build target-specific proxy evaluators.","quotes":["Benchmarking a TPU kernel suite routinely takes tens of minutes, measuring an LLM serving engine like vLLM takes nearly 1.5 hours per candidate, and simulating a CPU microarchitecture design across realistic workload traces can take more than a day."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Benchmarking%20a%20TPU%20kernel%20suite%20routinely%20takes%20tens%20of%20minutes%2C%20measuring%20an%20LLM%20serving%20engine%20like%20vLLM%20takes%20nearly%201.5%20hours%20per%20candidate%2C%20and%20simulating%20a%20CPU%20microarchitecture%20design%20across%20realistic%20workload%20traces%20can%20take%20more%20than%20a%20day.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"They isolate stages, explore tiling, memory layout and scheduling in parallel, and combine promising gains into end-to-end kernels.","quotes":["The workers profile execution, estimate each region’s cost share and reducible gap to its analytical floor (such as Amdahl’s law or hardware roofline ), and jointly choose two things: An optimization target: A focused region of code with meaningful score-weighted headroom."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=The%20workers%20profile%20execution%2C%20estimate%20each%20region%E2%80%99s%20cost%20share%20and%20reducible%20gap%20to%20its%20analytical%20floor%20%28such%20as%20Amdahl%E2%80%99s%20law%20or%20hardware%20roofline%20%29%2C%20and%20jointly%20choose%20two%20things%3A%20An%20optimization%20target%3A%20A%20focused%20region%20of%20code%20with%20meaningful%20score%2Dweighted%20headroom.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Google says these yardsticks check local correctness and score edits 20× to 50× faster than the true evaluation, with continuous statistical fidelity tests in a two-loop search.","quotes":["Rather than making narrow parameter tweaks, worker agents isolated individual kernel stages, built fast per-stage yardsticks, explored different tiling, memory-layout, and scheduling strategies in parallel, and combined complementary gains into verified end-to-end kernels."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Rather%20than%20making%20narrow%20parameter%20tweaks%2C%20worker%20agents%20isolated%20individual%20kernel%20stages%2C%20built%20fast%20per%2Dstage%20yardsticks%2C%20explored%20different%20tiling%2C%20memory%2Dlayout%2C%20and%20scheduling%20strategies%20in%20parallel%2C%20and%20combined%20complementary%20gains%20into%20verified%20end%2Dto%2Dend%20kernels.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"The workflow draws on DuoDiscover research and ran in Antigravity via /teamwork.","quotes":["A target-specific yardstick: A proxy evaluator built by the worker itself that checks local correctness and scores candidate edits 20× to 50× faster than the true evaluation.","It reframes optimization under expensive evaluation around three tightly coupled mechanisms: target and yardstick co-discovery , a two-loop search protected by continuous statistical fidelity testing , and bottom-up fleet orchestration with a clean-room trust boundary ."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=A%20target%2Dspecific%20yardstick%3A%20A%20proxy%20evaluator%20built%20by%20the%20worker%20itself%20that%20checks%20local%20correctness%20and%20scores%20candidate%20edits%2020%C3%97%20to%2050%C3%97%20faster%20than%20the%20true%20evaluation.&text=It%20reframes%20optimization%20under%20expensive%20evaluation%20around%20three%20tightly%20coupled%20mechanisms%3A%20target%20and%20yardstick%20co%2Ddiscovery%20%2C%20a%20two%2Dloop%20search%20protected%20by%20continuous%20statistical%20fidelity%20testing%20%2C%20and%20bottom%2Dup%20fleet%20orchestration%20with%20a%20clean%2Droom%20trust%20boundary%20.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"","quotes":["How it works The workflow behind these results is based on the research behind our paper DuoDiscover: Scaling Autonomous Discovery Beyond the Evaluation Bottleneck , which we ran in Antigravity via /teamwork ."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=How%20it%20works%20The%20workflow%20behind%20these%20results%20is%20based%20on%20the%20research%20behind%20our%20paper%20DuoDiscover%3A%20Scaling%20Autonomous%20Discovery%20Beyond%20the%20Evaluation%20Bottleneck%20%2C%20which%20we%20ran%20in%20Antigravity%20via%20%2Fteamwork%20.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Google estimates campaign API costs at $8,826 for Hydrogen and $12,305 for Carbon, across 163,797 calls and 334 agents for Hydrogen, and 33,195 calls and 208 agents for Carbon.","quotes":["Both Gemini Carbon and Gemini Hydrogen discover substantial speedups across all five kernels, reaching 1.97× and 2.10× geometric mean respectively."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Both%20Gemini%20Carbon%20and%20Gemini%20Hydrogen%20discover%20substantial%20speedups%20across%20all%20five%20kernels%2C%20reaching%201.97%C3%97%20and%202.10%C3%97%20geometric%20mean%20respectively.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"In 12-hour multi-cluster replays, a proposed placement policy cut interruptions per chip-hour by 55.1% while meeting availability and disruption guardrails.","quotes":["Using Gemini Carbon , we ran three autonomous optimization campaigns spanning both scheduling quality (reducing workload interruptions) and scheduler execution efficiency (increasing scheduling throughput and cutting CPU usage)."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Using%20Gemini%20Carbon%20%2C%20we%20ran%20three%20autonomous%20optimization%20campaigns%20spanning%20both%20scheduling%20quality%20%28reducing%20workload%20interruptions%29%20and%20scheduler%20execution%20efficiency%20%28increasing%20scheduling%20throughput%20and%20cutting%20CPU%20usage%29.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"These were offline simulations and production-trace replays, not deployed changes.","quotes":["Core host scheduler throughput: Targeting … placement, with zero infeasible placements."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Core%20host%20scheduler%20throughput%3A%20Targeting,placement%2C%20with%20zero%20infeasible%20placements.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"On DPC4, a CPU data-prefetcher benchmark with a fixed storage cap, simulator and trace suite, each evaluation spans over 1,700 simulations and can take up to 28 hours.","quotes":["All results below come from offline simulations and replays of production cluster traces; they represent promising candidate changes that are currently under review with the Borg team and have not yet been validated or deployed in production."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=All%20results%20below%20come%20from%20offline%20simulations%20and%20replays%20of%20production%20cluster%20traces%3B%20they%20represent%20promising%20candidate%20changes%20that%20are%20currently%20under%20review%20with%20the%20Borg%20team%20and%20have%20not%20yet%20been%20validated%20or%20deployed%20in%20production.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Google reports a 5.0% geometric-mean speedup across three regimes, versus 3.5% for the best human-crafted entry and 3.8% for a prior AlphaEvolve-based system.","quotes":["CPU design optimization results Building … taking up to 28 hours.","DPC4 grades designs under a fixed storage cap, simulator, and trace suite with each evaluation spanning over 1,700 simulations and taking up to 28 hours."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=CPU%20design%20optimization%20results%20Building,taking%20up%20to%2028%20hours.&text=DPC4%20grades%20designs%20under%20a%20fixed%20storage%20cap%2C%20simulator%2C%20and%20trace%20suite%20with%20each%20evaluation%20spanning%20over%201%2C700%20simulations%20and%20taking%20up%20to%2028%20hours.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Realized costs were sensitive to prompt-cache hit rates: Hydrogen recorded 85.7% and Carbon 48.4%; Google estimates Carbon’s five runs would have cost about $5,016 at Hydrogen’s cache rate.","quotes":["Across all five DeepSeek-V4 kernels, the agents consistently unlocked 1.50× to 2.69× speedups while passing every correctness and tolerance test."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Across%20all%20five%20DeepSeek%2DV4%20kernels%2C%20the%20agents%20consistently%20unlocked%201.50%C3%97%20to%202.69%C3%97%20speedups%20while%20passing%20every%20correctness%20and%20tolerance%20test.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Borg gains remain offline candidates under review, not production results.","quotes":["Note: Prompt cache hit rates also affected realized cost (85.7% on Hydrogen vs. 48.4% on Carbon, where uncached input is priced 20× higher than cached reads; normalized to an equal 85.7% cache hit rate, the five Carbon runs would total roughly $5,016).","48.4% on Carbon, where uncached input is priced 20× higher than cached reads; normalized to an equal 85.7% cache hit rate, the five Carbon runs would total roughly $5,016)."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Note%3A%20Prompt%20cache%20hit%20rates%20also%20affected%20realized%20cost%20%2885.7%25%20on%20Hydrogen%20vs.%2048.4%25%20on%20Carbon%2C%20where%20uncached%20input%20is%20priced%2020%C3%97%20higher%20than%20cached%20reads%3B%20normalized%20to%20an%20equal%2085.7%25%20cache%20hit%20rate%2C%20the%20five%20Carbon%20runs%20would%20total%20roughly%20%245%2C016%29.&text=48.4%25%20on%20Carbon%2C%20where%20uncached%20input%20is%20priced%2020%C3%97%20higher%20than%20cached%20reads%3B%20normalized%20to%20an%20equal%2085.7%25%20cache%20hit%20rate%2C%20the%20five%20Carbon%20runs%20would%20total%20roughly%20%245%2C016%29.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Google says external researchers can already access Gemini 4 models through /teamwork and /boost, while the codebase optimization capability is slated for a coming Antigravity update.","quotes":["All results below come from offline simulations and replays of production cluster traces; they represent promising candidate changes that are currently under review with the Borg team and have not yet been validated or deployed in production."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=All%20results%20below%20come%20from%20offline%20simulations%20and%20replays%20of%20production%20cluster%20traces%3B%20they%20represent%20promising%20candidate%20changes%20that%20are%20currently%20under%20review%20with%20the%20Borg%20team%20and%20have%20not%20yet%20been%20validated%20or%20deployed%20in%20production.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"","quotes":["Google says the codebase-optimization capability will arrive in an upcoming Antigravity update. External researchers can already access Gemini 4 models through /teamwork and /boost, according to the company’s research overview."],"cite_url":"https://research.google/blog/advancing-science-engineering-with-antigravitys-teamwork-feature#:~:text=Google%20says%20the%20codebase%2Doptimization%20capability%20will%20arrive%20in%20an%20upcoming%20Antigravity%20update.%20External%20researchers%20can%20already%20access%20Gemini%204%20models%20through%20%2Fteamwork%20and%20%2Fboost%2C%20according%20to%20the%20company%E2%80%99s%20research%20overview.","source_url":"https://research.google/blog/advancing-science-engineering-with-antigravitys-teamwork-feature","publisher":"research.google"},{"claim":"","quotes":["We ran these campaigns in Google Antigravity using /teamwork , where this codebase optimization capability is rolling out in the next update."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=We%20ran%20these%20campaigns%20in%20Google%20Antigravity%20using%20%2Fteamwork%20%2C%20where%20this%20codebase%20optimization%20capability%20is%20rolling%20out%20in%20the%20next%20update.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"}],"schema_version":"newruntime-agent-readable-v0.2","stable_id":"post:google-s-antigravity-teamwork-makes-tpu-kernels-2-e4a310","status":"published","visuals":[],"editor":{"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]},"routes":{"html":"https://newruntime.com/posts/google-s-antigravity-teamwork-makes-tpu-kernels-2-e4a310/","markdown":"https://newruntime.com/posts/google-s-antigravity-teamwork-makes-tpu-kernels-2-e4a310.md","json":"https://newruntime.com/posts/google-s-antigravity-teamwork-makes-tpu-kernels-2-e4a310.json"},"markdown_url":"https://newruntime.com/posts/google-s-antigravity-teamwork-makes-tpu-kernels-2-e4a310.md","next_reads":[{"type":"topic","path":"/topics/google/","url":"https://newruntime.com/topics/google/","title":"Google","reason":"Explore the google topic hub.","media_type":"text/html","markdown_url":"https://newruntime.com/topics/google.md","json_url":"https://newruntime.com/topics/google.json"},{"type":"topic","path":"/topics/gemini/","url":"https://newruntime.com/topics/gemini/","title":"Gemini","reason":"Explore the gemini topic hub.","media_type":"text/html","markdown_url":"https://newruntime.com/topics/gemini.md","json_url":"https://newruntime.com/topics/gemini.json"},{"type":"collection","path":"/posts/","url":"https://newruntime.com/posts/","title":"Field Notes","reason":"Open the latest editorial analysis.","media_type":"text/html","json_url":"https://newruntime.com/posts.json"},{"type":"collection","path":"/sources/","url":"https://newruntime.com/sources/","title":"Sources","reason":"See the original sources this archive cites.","media_type":"text/html"}]}
