Gemini 4AI
Content type: Concept
5 min read
How Google DeepMind trains Gemini 4 for real engineering tasks
- Reading
- 5 min
In a conversation at AI Engineer CODE, Google DeepMind researchers detail how Gemini 4's post-training targets multi-day tasks and why a correct patch can still fail the mergeability test.
In an interview with the Latent Space podcast published on December 1, 2026, Melvin Johnson and Omar Sanseviero, from Google DeepMind, detailed how the post-training team builds Gemini 4 to handle software engineering tasks that go beyond generating a correct piece of code. The conversation took place during the AI Engineer CODE event and brought up internal project names such as Carbon, Hydrogen, Antigravity, and FelonyBench, used as chapters of the interview.
The interview's central angle is not the launch itself (Gemini 4 Neon, in fact, only arrived after the recording), but the process behind the model's ability to act as an engineering reviewer, not just as a text generator that happens to compile. For those who develop with these models on a daily basis, this framing matters more than the launch benchmark: it explains why the same model generation sometimes gets the code right but gets the workflow around it wrong.
Carbon and Hydrogen: two models, two types of tasks
The interview includes a chapter titled "Carbon, Hydrogen, and which model to use for which job," but the source does not detail the content beyond this title, without attributing to Johnson a specific description of what each internal name represents. The pair of names suggests a separation between models optimized for quick responses and models prepared for extended reasoning, although the technical details of each were not disclosed in the available conversation.
The practical point for those building products on top of the Gemini API is that model choice is no longer just a matter of size or cost per token. In practice, this suggests that asking "which model serves this type of engineering task" is a routing criterion that devs building code agents should replicate when deciding between Gemini variants for PR review, test generation, or broad refactoring.
The mergeability test: correct is not enough
One of the most cited points in the conversation is the chapter "Why a correct patch can still fail the mergeability test." The source does not detail the content of this section beyond the chapter title, but the name itself already points to an inversion of the traditional metric for evaluating code models: the most direct reading is that it would not be enough for the patch to compile or pass unit tests, it would also need to be mergeable in the broader sense of software engineering, something the interview names as a problem without describing in detail.
This directly changes the evaluation bar for code agents. A benchmark that only checks whether the output passes automated tests measures a fraction of the work done by those who review pull requests every day. In practice, this means that evaluating a coding agent solely by its green-test rate remains a weak proxy: the criterion that really matters for whoever maintains a repository in production is whether that patch would survive a real review, with team conventions, cross dependencies, and a history of decisions that no unit test captures.
Agents that work for days, not minutes
Another axis of the interview is the shift from tasks lasting a few seconds to what the researchers call multi-day agentic tasks. Gemini 4's post-training, according to the conversation, has come to consider scenarios in which the agent maintains context and resumes work over longer sessions, instead of solving everything in a single invocation.
For those building with function calling or orchestrating agents on top of the Gemini API, this shift in time horizon has concrete implications:
- State management becomes as relevant as prompt quality, since the agent needs to reconstruct where it left off;
- Evaluating partial progress in tasks that span several days requires metrics different from binary pass/fail.
Antigravity: 100,000 users shaping post-training
Sanseviero mentioned that Antigravity, Google's internal tool, already has more than 100,000 users whose real-world use feeds Gemini's post-training cycle. This volume of internal usage works as a continuous laboratory: instead of relying only on academic benchmarks or manually curated datasets, the team observes how Google's own engineers use the model on production tasks and feeds those signals back into training.
What happens in Antigravity ends up becoming a post-training signal for Gemini.
Paraphrase of Omar Sanseviero's description in the conversation with Latent Space
This kind of closed loop is a structural advantage that's hard to replicate outside a big tech company: few companies have 100,000 internal developers generating real usage data on their own model before it even reaches the public.
TPUs, Gemma, and the co-design behind it all
The interview also touched on how Gemini's training benefits from co-design with TPUs, and cited Gemma 3n and its per-layer embeddings as an example of an efficiency technique that crosses the line between Google's open and closed models. The logic is that optimizations designed to run smaller models, like Gemma, end up informing architectural decisions that flow up into Gemini.
For those who only consume the API, this infrastructure detail explains part of the cost and latency difference between providers: teams that control the hardware end to end (TPU, model, post-training) have more levers to tune performance per task than those running third-party models on generic GPUs.
What remains open
The conversation also mentioned FelonyBench, used to evaluate model behavior, and a "Decisions API" mentioned only as the final chapter, with no public technical detail so far. Both appear as clues to where agent evaluation is heading (behavior and decision-making, not just code correctness), but without enough specification in the source to go beyond the name.
For those evaluating whether it's worth migrating development workflows to Gemini 4, the practical takeaway from the interview is that the differentiator lies not just in the final model, but in the evaluation pipeline behind it: teams that want to replicate this pattern internally should invest in real mergeability metrics and internal usage loops before optimizing solely for public benchmarks.
Translated from the Brazilian Portuguese original · Read the original
Datasette Lite runs an entire Python database in the browser via WebAssembly
Datasette Lite compiles Datasette, a Python tool for exploring data, entirely to WebAssembly using Pyodide. The result: full SQL queries running only in the browser, with no backend at all.





