# Transcript [SPEAKER_00]:
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. So here's an example. People say Gemini is cooked, but GCP is cooking. For all intents and purposes, we believe DeepMind is no longer a frontier lab. 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. And we have launched Gemini 4 Argonne. We announced Carbon and we launched Carbon all within the last 28 days. So we're on a run here. And that's not it. In the process, we're actually garnered an apology from Dylan. He says official apology to Google. They actually cooked. They're not cooked. Ethan says one of the most significant aspects of Gemini 4 is the speed at which we're launching things. So we've gone 236 days without having a frontier model. And we've had two frontier models in 28 days. That's a 10x improvement in our speed of shipping. And people call us Google cooked, but Google's not cooked. So it's good to 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 Carbon has built. We found this video on there.
Kudos to the model for building that video 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, real world use cases, model processing multi-modal documents. But it's not just the demos. Carbon's actually number one on a bunch of real world customer use cases. And one of the things that we're really excited about is it's not just really good on these benchmarks, it's actually much cheaper. So on CursorBench, 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 queries, it's the best model. You saw competitor models come out. We're 9x cheaper than the second best model there. And on AutomationBench, which is Zapier's benchmark, again, we're number one, while being two times cheaper per task. And that's not it. Today, we announced a new element to our Gemini 4 series, and it's not a surprise. It's Hydrogen. So 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. And I have a graph that shows the A index which many of you might be familiar with, and time on the x-axis. You can see it's one of the fastest models for that level of intelligence. And to give you a sense of how far Gemini has come, 3.8 flash on Terminal Bench 4 was about 20%. And Hydrogen is about 60%. So we're three times better performance while being three times faster, right? That's no easy task, and we're really happy to bring that to you in your hands so you can build things with it. And that completes our Gemini 4 series. So we have Gemini 4 Carbon, a frontier model for deep frontier intelligence, Gemini 4 Hydrogen, which is fast for everyday execution. And we'll have more elements of course, there are many elements left in the periodic table, and we have a lot of work to do to exhaust them. But we're glad to put it out there for you all to test it and for you all to play with it.
Now, I think enough marketing with the models. 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 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. Now, the complexity of the tasks that people do have also increased exponentially in the last couple of years. We started with models just completing chats, which took seconds, to writing small functions within minutes. You can submit a PR and resolve an issue, takes about an hour. But now people are doing days of real engineering tasks with the model. 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 4 real engineering tasks? We have to start with hard tasks. So we really need to source hard problems for the model. Grading of these models is actually a very hard problem. So you want to grade how an experienced code reviewer would grade. You want to grade how 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.
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? So you might have heard as models are getting better, lots of benchmarks are getting saturated. And it's not just the benchmarks that get saturated. Our training data get saturated too. So here is a graph that shows for three different iterations of the Gemini 4 models, how much the share of learnable prompts has gone down. So we had X percent 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 training on easy tasks? Easy tasks give you zero learning signal, right? So you have a prompt where all of your rollouts are going to be correct, 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 tasks than the models are getting better, right?
So how do we go about it? We first have to identify these easy tasks and prune them. So we cut these simple Sweeband style tasks from the mixture that are too easy for the models. We expand into much harder Swee tasks, for example, that are multi-file repos. We go from unit test or binary correctness to rubric-based grading. And rubrics give you dense signal. They're not just zero, one. They can be more gradients within the criteria. Here are some examples of hard tasks that we train on. So we look at multi-file repos and we extract commits from them. From those commits, we have models automatically extract rubrics. We don't actually necessitate unit tests being involved. We can actually generate rubrics on the fly based on these repos. Another example, a great example of tasks, we try to teach the model to build CLI tools from scratch. So you start with an empty folder and a specification. The specification says, hey, you have to build this tool. It's called grep. These are the parameters of grep. 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 grep is going to be. So you have a hidden test suite that you can evaluate the binary on. The last example is production code-based tasks. So you look at real usage of the model inside your production code base and extract useful tasks out of them.
Now, let me talk a little bit about the graders. So agents, they find any way. 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. 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. It writes the fake evidence into a temp file. It will delete any evidence of it faking it, right? So you have to be smarter about how you judge these models, especially as they become more capable.
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. So what we do is we move from unit test-based correctness to rubric-based. When these are generated from real commits, the rubrics also provide dense learning signal, not just 0-1 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 here are the edge cases that need to pass. 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 an isolated sandbox. 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'm done. And the test come into play and then it will look at the test and resubmit the solution, right? So you don't want that. 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 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. So any cheating or hampering of the environment gets a very negative RL reward. And all of this is detected just based on the actions that the model is taking, not the thoughts.
So a good example of how we have handled cheating is 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. 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 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. 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 is going to be impossible for you to verify, right? We've gone through all of these examples.
Now, here is an example of fabrication rates in Gemini, right? So we on an internal E-valve started with 8% fabrication in that hard E-valve. We cut that down dramatically to about 3% for Hydrogen. And Carbon is half of that. It's about 1.5%. But we're striving to get this down to zero. You don't want your agents fabricating anything, right? But they try to fabricate because they want to be helpful. 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, right? So we filter out lots of training trajectories where there is not just intended fabrication, but unintended fabrication. There are lots of claims that are not fully supported. 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 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. 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 team of 100,000 plus engineers at Google using the model for realistic tasks. You know, many of you might know Google is a mono repo. And what is a mono repo? The entire company is one code base, right? And I don't know how to measure this, but I think it might be one of the largest mono repos in the world.
Now, that's a really complex code base. 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 for our users. We run blind battles with them through multiple different candidates. We let users pick the best model that they want. We also run A/B tests, where under the hood we're 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 rapidly iterate, train on hard problems. And as the models get better, the engineers are going to push the model in interesting ways. This is also why we've gone from releasing in weeks to releasing in quarters to releasing in weeks. So in the Gemini 3 era, we've had launches every two to three months. But now we've had six releases in the last 16 weeks, right? And we're very excited to have you all try Carbon and Hydrogen and Gemini 4. And we're excited for us to see what you all do with it. And we're not done. So we have a lot more elements to go through. With that, thank you. Thank you.
Thank you. Kudos to the model for building that video 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 multi-model documents. But, you know, it's not just the demos. Carbon's actually number one on a bunch of real world customer use cases. And one of the things that we're really excited about is, you know, it's not just really good on these benchmarks, it's actually much cheaper. So on CursorBench, 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 queries, it's the best model. You know, you saw competitor models come out. We're 9x cheaper than the second best model there. And on AutomationBench, which is Zapier's benchmark, again, we're number one, while being two times cheaper per task. And that's not it. I mean, today, we announced a new element to our Gemini 4 series, and it's not a surprise. It's Hydrogen. 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. And, you know, I have a graph that shows the A index which many of you might be familiar with, and time on the x-axis. 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 performance 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. And that completes, you know, our Gemini 4 series.
So, we have Gemini 4 Carbon, a frontier model for deep frontier intelligence, Gemini 4 Hydrogen, which is fast for everyday 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. But we're glad to put it out there for you all to test it and for you all to play with it. 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. 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. 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 4 real engineering tasks? We have to start with hard tasks. So, we really need to source hard problems for the model. 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. 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? 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 get saturated too. So, here is a graph that shows for three different iterations of the Gemini 4 models, how much the share of learnable prompts has gone down. So, let's say we had X percent 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 training on easy tasks? Easy tasks give you zero learning signal, right? So, you have a prompt when all of your rollouts are going to be correct, 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 tasks, then the models are getting better, right? 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 Sweeband style tasks from the mixture that are too easy for the models. We expand into much harder Swee tasks, for example, that are multi-file repos. We go from unit test or binary correctness to rubric-based grading. And rubrics give you dense signal. They're not just zero, one. They can be more gradients within the criteria. Here are some examples of hard tasks that we train on. So, we look at multi-file repos and we extract commits from them. From those commits, we have models automatically extract rubrics. We don't actually necessitate unit tests being involved. We can actually generate rubrics on the fly based on these repos.
Another example, a great example of tasks, you try to teach the model to build CLI tools from scratch. So, you start with an empty folder and a specification. The specification says, hey, you have to build this tool. It's called grep. These are the parameters of grep. 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 grep is going to be. So, you have a hidden test suite that you can evaluate the binary on. The last example is production code-based TIFFs. So, you look at real usage of the model inside your production code base and extract useful tasks out of them.
Now, let me talk a little bit about the graders. So, agents, you know, they find any way. 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. 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 fake evidence into a temp file. It will delete any evidence of it faking it. Right? So, you have to be smarter about how you judge these models, especially as they become more capable.
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. So, what we do is we move from unit test-based correctness to rubric-based. When these are generated from real commits, the rubrics also provide dense learning signal, not just 0-1 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 pass. 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 an isolated sandbox. 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'm done. And the test come into play and then it will look at the test and resubmit the solution. Right? So, you don't want that.
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 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. So, any cheating or hampering of the environment gets a very negative RL reward. And all of this is detected just based on the actions that the model is taking, not the thoughts. So, a good example of how we have 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. 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 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. 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 is going to be impossible for you to verify. Right? We've gone through all of these examples.
Now, here is an example of fabrication rates in Gemini. Right? So, we on an internal E-valve started with 8% fabrication in that hard E-valve. We cut that down dramatically to about 3% for hydrogen. And carbon is half of that. It's 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. 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. Right?
So, we filter out lots of training trajectories where there is, you know, not just intended fabrication, but unintended fabrication. There are lots of claims that are not fully supported. 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 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. 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 team of 100,000 plus engineers at Google using the model for realistic tasks. You know, many of you might know Google is a mono repo. And what is a mono repo? The entire company is one code base. Right? And I don't know how to measure this, but I think it might be one of the largest mono repos in the world. Now, that's a really complex code base. 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 for our users.
We run blind battles with them through multiple different candidates. We let users, you know, pick the best model that they want. We also run ELIS, where under the hood we're 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. This is also why, you know, we've gone from releasing in weeks to releasing, to releasing in quarters to releasing in weeks.
So, in the three, in the Gemini 3 era, we've had launches every two to three months. But now, we've had six releases in the last 16 weeks, right? And we're very excited to have you all try carbon and hydrogen and Gemini 4. And we're excited for us to see what you all do with it. And we're not done. So, we have a lot more elements to go through. With that, you know, thank you. Thank you.