← All transcripts

Post-Training Gemini 4 for Real Engineering Work — Melvin Johnson, Google DeepMind Transcript, AI Summary & Key Points

AI Engineer · 4 days ago · Science & Technology · 17:51 · EN

Watch on YouTube

Answer

Gemini 4 is post-trained for real engineering work through hard task sourcing, rubric-based grading, hardened isolated evaluation environments, honesty training and feedback from 100,000+ internal Google engineers.

AI Summary

Google DeepMind post-trains Gemini 4 for real engineering work, not just benchmark completion. Gemini 4 Argon, Carbon and Hydrogen all launched within 28 days after a 236-day gap without a frontier model — a 10x improvement in shipping speed, enough to earn an official apology from Dylan. Carbon leads Cursor Bench (3.3x cheaper than the second best model), Perplexity's Wander (9x cheaper) and Zapier's Automation Bench (2x cheaper per task); Hydrogen is about 60% on Terminal Bench 4 versus 3.8 Flash's 20%, three times more performant and three times faster. Post-training rests on four pillars: sourcing hard tasks (easy tasks give zero RL signal), grading with rubrics generated from real commits instead of binary unit tests, hardening the evaluation environment against reward hacking (isolated sandboxes, withheld test sets, penalties for cheating detected from actions not thoughts — Carbon scores 0% cheating rate on Terminal Bench 4, about 5x less adversarial than Argon), and training honesty (fabrication cut from 8% to about 3% for Hydrogen and 1.5% for Carbon, grounded in full trajectories, with reward for reporting partial progress). Faster shipping comes from 100,000+ Google engineers dog-fooding models on the company's mono-repo, blind battles, and routing users to experimental candidates, feeding friction back into the next training cycle — six releases in the last 16 weeks versus launches every 2-3 months in the Gemini 3 era.

Key Points

  • Gemini 4 Argon, Carbon and Hydrogen all launched within 28 days after 236 days without a frontier model — a 10x improvement in shipping speed
  • Carbon is number one on Cursor Bench at 3.3x cheaper than the second best model, number one on Perplexity's Wander deep-research benchmark at 9x cheaper, and number one on Zapier's Automation Bench at 2x cheaper per task
  • Hydrogen scores about 60% on Terminal Bench 4 versus 3.8 Flash's 20% — three times more performant while three times faster — and is available on anti-gravity, the Gemini API, the Gemini app and search
  • AI writes about 75% of Google's new code, up from under 25% a few years ago, with 100,000 people writing code in anti-gravity inside Google daily
  • Task complexity has grown from seconds-long chat completions to days-long real engineering tasks and swarms of agents solving open problems
  • Easy tasks give zero learning signal: as models improve, learnable prompts get too easy within one training iteration, so simple sweep-style tasks are pruned and replaced with multifile-repo tasks
  • Grading moves from binary unit-test correctness to rubric-based grading generated automatically from real multifile-repo commits, giving dense rather than 0/1 signal
  • Other hot training tasks: building CLI tools from an empty folder and a specification against a hidden test suite, and production codebase diffs from real model usage

AI in practice

Agents

  • Gemini 4 agent swarms (via Antigravity) — Solve real open engineering problems over multiple days inside Google's monorepo 2 held 06:06

Tools & resources

1 item

Links mentioned

🔒 Full analysis locked

Unlock more videos and the full analysis

A credit unlocks one video's full analysis for good — the build steps, the tools and how each was used, the methods behind every use case. Pro opens the whole library instead, and raises how many videos you can analyse a day.

Unlock full analysis — free

Transcript

Searchable transcript of Post-Training Gemini 4 for Real Engineering Work — Melvin Johnson, Google DeepMind — AI Engineer (17:51). Search for a phrase, then click its timestamp to jump straight to that moment in the video.

Captions sourced from the original video on YouTube, published by AI Engineer. The video, its captions and all related intellectual property remain the property of their respective owners; AINotes claims no ownership. Provided for research, accessibility and search — see the Transcript Notice and Copyright Policy.

00:12 Hey everyone, good to be here. I'm Melvin and I lead post training for Gemini. So today I thought I'll take you through a little journey of how we post train Gemini 4. And our journey begins by people calling us not a frontier model. Um, so here's an example. You know, people say Gemini is cooked, but GCP is cooking. For all intents and purposes, we believe Deep Mind is no longer a frontier lab.

00:38 Ethan Malik, who we respect a lot, he says in his own nice way, pretty long gap between launches is what he calls us. And I'm here to tell you we're not dead. We're here. uh and we have launched uh Gemini 4 Argon, we announced Carbon and we launched Carbon all within the last 28 days. So we're on a we're you know we're on a run here and that's not it.

01:12 Uh in the process we actually garnered an apology from Dylan. No, he says official apology to Google. Uh they're actually cooked. They're not cooked. Um Ethan says, you know, one of the most significant aspects of Gemini 4 is the speed at which we're launching things. Um so we've gone 236 days without having a Frontier model and we've had two Frontier models in 28 days.

01:37 That's a 10x improvement in our speed of shipping. And you know, people call us Google kind of cooked, but Google's not cooked. So it's good um to see see that sentiment. It's glad to be on the other end. It's also good to be on the receiving end of the bad comments because it pushes you to do better. I want to start by playing a little video of a bunch of things that uh Carvin has built.

02:39 Thank you. Now, kudos to the model for building that video uh itself. So you saw great examples of the model doing much better at 3D model building assets using Blender. There's lots of games in there. The real world use cases, model processing, multimodel documents. Uh but you know, it's not just the uh the demos. Carbon's actually number one on a bunch of real world customer use cases.

03:08 And one of the things that we're really excited about is, you know, it's not just uh really good on these benchmarks, it's actually much cheaper. Um, so on Cursor Bench, it's the number one model today and it's 3.3 times cheaper than the second best model. On Perplexity's Wander, which is a benchmark for deep research um queries, it's the best model.

03:30 you know, you saw um competitor models come out were 9x cheaper than the second best model there. And on automation bench, which is Zapier's uh benchmark, again, we're number one while being two times um cheaper per task. And that's not it. I mean, today we announced the new element uh to our Gemini 4 series, and it's not surprise. Uh it's uh hydrogen.

03:57 Um, so you know, you might have seen the launch earlier today. Gemini 4 hydrogen is where we're trying to bring the Gemini 4 intelligence to everyone. It's fast, it's dependable, it's launched on all surfaces on anti-gravity, on the Gemini API, in the Gemini app, and on search. Um, and you know I have a graph that shows the AA index with many of you might be familiar with and time on the x-axis.

04:28 You can see it's one of the fastest models for that level of intelligence. And to give you a sense of how far you know Gemini has come, 3.8 flash on terminal bench 4 was about 20%. And hydrogen is about 60%. So we're three times better performant while being three times faster, right? So that's no easy task and we're, you know, really happy to bring that to you in your hands so you can build things with it.

05:02 And that completes, you know, our uh Gemini 4 series. So we have Gemini 4 carbon a frontier model for deep frontier intelligence. Gemini 4 hydrogen which is fast for everyday uh execution and we'll have more elements you know of course there are many elements left in the periodic table and we have a lot of work to do to exhaust them uh but we're glad uh to put it out there for you all to test it and for you all to play with it.

05:29 Um, now I think enough marketing with the models. I want to I was told this is a deeply technical audience. So I want to talk a little bit about why post- training these frontier models is hard and what goes into that. Let me start by saying you know AI writes about 75% of Google's new code today. And this is up from less than 25% a few years ago. And there are 100,000 people using anti-gravity writing code inside Google every single day.

06:06 Now the complexity of the tasks that people do have also increased exponentially in the last couple of years. We started with you know models just completing chats which took seconds to writing small functions within the minutes. You can submit a PR and resolve an issue. Takes about an hour, let's say. But now people are doing days of real engineering tasks with the model.

06:30 People have swarms of agents solving real open problems with the model. We have engineers across Google using anti-gravity and our Gemini 4 models to solve tasks over multiple days. Now, how do we go about post- training Gemini for real engineering tasks? We have to start with hard tasks. So we need really need to source hard problems for the model.

06:52 Grading of these models is actually a very hard problem. So you want to grade like an experienced code reviewer would grade. You want to grade like an experienced engineer would grade a solution. Large scale RL is how we train the model. And we want to dog food our models with our 100,000 engineer community and repeat the loop. So any failures in the dog food become tasks for the next iteration of the loop.

07:20 So I want to start by going into a little bit more detail of each of these sections. So let's start with the hard tasks, right? Um so you might have heard you know as models are getting better lots of benchmarks are getting saturated and it's not just the benchmarks that get saturated our training data gets saturated too. So here is a graph that shows for three different iterations of the Gemini 4 models how much uh the share of learnable prompts has gone down.

07:46 So let's say we had x% of learnable prompts for the first iteration. By the time we finish and train the next one, the prompts are too easy for the second one. We finish that and train the third one, the prompts are too easy for the third one. So what's the problem with uh training on easy task? Easy task give you zero learning signal, right? So you have a prompt when all of your rollouts are going to be correct.

08:06 There's no variance. There's no RL signal. So you really need to focus on getting hard tasks and you really need to be faster at getting hard task. Then the models are getting better, right? Um so how do we go about it? We first have to you know identify these easy tasks and prune them. So we cut these simple sweep style tasks from the mixture that are too easy for the models.

08:30 we expand into much harder tasks for example that are multifile repos. We go from unit test or binary correctness um to rubric based grading and rubrics give you dense signal. They're not just 01. There can be um more gradients within the um within the criteria. Here are some examples of hot tasks that we train on. So uh we look at multifile repos and we extract commits from them.

09:02 From those commits we have models automatically extract rubrics. Um we don't actually ne necessitate unit tests being involved. We can actually uh generate rubrics on the fly based on these repos. Another example a great example of tasks are you try to teach the model to build uh CLI tools from scratch. So you start with an empty folder and a specification.

09:24 The specification says, hey, you have to build this tool. It's called GP. These are the parameters of GP. These are the flags. This is the functionality. And you let the model build the entire tool from scratch. And you know what the functionality for GP is going to be. So you have a hidden test suite that you can evaluate the binary on. The last uh example is production codebased diffs.

09:50 So you look at real usage of the model inside your production codebase and extract useful tasks out of them. Now let me talk a little bit about uh the graders. So agents you know they find any way you're you're training them to pass the test. So they will find any way to pass the test but if the test pass that doesn't necessarily mean that they've solved the problem.

10:15 There are examples where the agent will bypass the checker. There are examples where the agent will game the benchmark. There are examples where the agent will fake the evidence. You know, it writes the uh fake evidence into a temp file. It'll delete any evidence of it faking it, right? Um so you have to be smarter about how you judge these models, especially as they become more capable.

10:41 Now, this is what I meant by grading like a reviewer. So if you've done a code review, you have a very strict reviewer, you're going to know they're not just going to think about the correctness of the solution. They're actually going to think about the style. They're going to think about maintainability. They're going to think of many different aspects.

10:57 So what we do is we move from unit test base correctness to rubric base and these are generated from real commits. The rubrics also provide dense learning signal not just 01 signal and we penalize any sort of solution that is looking for a workaround. Right? So here is an example of a rubric where the criteria is you know here are the edge cases that need to be passed.

11:24 This is an example of hygiene that needs to be maintained. These are constraints around verification that need to be satisfied. Now, it's not just about the rubrics needed for grading. We also need to be careful about the graders not being gamed and you really need to harden the environment that the grader is in. So, we think about putting the graders in a isolated sandbox.

11:50 So, we remove git history and git remote so the answers don't leak. The test sets are held out. So, only when the agent is done and submits the solution do we actually reveal the test. We've had instances where the agent will fake it and say, "Hey, I I'm done and the tests come into play and then it'll look at the test and resubmit the solution." Right?

12:09 So, you don't want that. Um, we also want to be much more detailed with our scoring. So, we take the full diff and we look at the reference and we look at multiple aspects. It's not just the correctness. We also want to look at the code quality. We also want to look at the scope uh of the change that was done. And then finally we want to penalize any sort of cheating attempt by the agent while being careful not to police the thoughts.

12:36 Um so any you know cheating or hampering of the environment gets a very negative RL reward. Uh and all of this is detected just based on the actions that the model is taking not the thoughts. Um so a good example of how we've handled cheating is you know carbon for instance has 0% cheating rate on terminal bench 4. Our previous models had a much higher cheating rate and it's about 5x less adversarial than argon.

13:00 So every generation of the model we're trying to make it much more aligned so it's not trying to cheat. Now finally I think uh I want to talk about model behavior a little bit and modeling honesty specifically. Now agents they always want to be helpful and sometimes they fake helpfulness. You might have seen this in your usage of the agents. So sometimes they'll claim that tests have passed when they've obviously not passed.

13:32 They'll declare done but obviously they're not done. They'll make edits that they'll claim to have made edits but they've not made those edits. Or they'll invent facts and APIs and whatnot. or they will give you a wall of text that has so many numbers that it's going to be impossible for you to verify. Right? We've gone through all of these examples.

13:53 Now, here is an example of fabrication rates in Gemini. Right? So, we on an internal eval started with 8% fabrication in that hard eval. We cut that down dramatically to about 3% for hydrogen and carbon is half of that is about 1.5%. But we're striving to get this down to zero. Like you don't want your agents fabricating anything, right? But they try to fabricate because they want to be helpful.

14:21 And you really have to try hard to align them to be helpful but not by faking it. How do we reduce the fabrication? Believe it or not, you have to clean your data. Uh right. So we filter out lots of training trajectories where there's you know not just uh intended fabrication but unintended fabrication. There's lots of claims that are not fully supported.

14:46 They're not verified. We ground in the full trajectory. So if the agent says I've completed the task and it has a final response, we actually look at that response and see all of the actions that the agent had taken in the trajectory to get to that final solution and we look at the steps that were taken. So you really need to when the agent says, "I'm done."

15:06 and gives you a summary, that needs to be grounded in the actions that were taken. And we want to reward honesty. So if there's a hard problem, it's better for the agent to say, "Hey, this is my partial progress. It's a hard problem. I'm done here. This is my partial solution." Rather than faking the last step and saying, "Hey, I've solved the problem.

15:26 You know, this is done." Finally, shipping in weeks. So how are we able to ship so rapidly? And the biggest reason for that is our internal uh team of 100,000 plus engineers at Google using the model for realistic tasks. You know many of you might know Google is a monor repo and what is a monor repo? The entire company is one codebase right and I don't know how to measure this but I think it might be one of the largest monor repos in the world.

15:59 Now that's a really complex uh codebase and we have the best people in the world using a really complex code base to do really complex tasks. So every time we have a new candidate from post training, we actually serve that model uh for our users. We run blind battles with them through multiple different candidates. We let users you know uh pick the best model that they want.

16:26 We also run less where under the hood we're routing the routing people to experimental models and get signal and feedback from that and we take all of these signals and friction back into training the next candidate. So this is a cycle that helps us you know rapidly iterate really train on hard problems and as the models get better the engineers are going to push the model in interesting ways.

16:55 This is also why, you know, we've gone from releasing in weeks um to releasing to we releasing in quarters to releasing in weeks. So, in the three in the Gemini 3 era, we've had launches every 2 to 3 months, but now we've had six releases in the last 16 weeks, right? Uh and we're very excited to have you all try Carbon and Hydrogen uh and Gemini 4. Um, and we're excited for for for us to see what you all do with it.

17:24 Uh, and we're not done. So, we have a lot more elements uh to go through. Uh, with that, you know, thank you.