# The AI Frontier: from Gemini 3 Deep Think distilling to Flash — Jeff Dean

Latent Space · 2026-02-12

<https://addtry.com/65e7deba-9972-48d7-958a-f01c393d0e70>

Jeff Dean, Google's Chief AI Scientist, explains how the company's dual strategy of frontier "Pro" models and distilled "Flash" models, alongside co-designed TPUs and latency-optimization, keeps Gemini at the Pareto frontier. Distillation compresses high-capability large models into smaller, efficient ones, enabling Flash models to exceed earlier Pro generations. He emphasizes energy-based thinking: data movement costs thousands more picojoules than arithmetic, making batching and speculative decoding essential. TPU development requires predicting ML workloads 2–6 years out, often speculatively adding hardware features. Gemini was born after Dean wrote a one-page memo arguing that fragmented model efforts across Google Brain and DeepMind should merge into a single unified multimodal effort. Looking ahead, he predicts personalized models attending to all user data and reasoning speeds of 10,000 tokens/second will transform software engineering.

## Questions this episode answers

### Why does Google offer both Gemini Pro and Flash models, and how does Flash keep improving?

Jeff Dean explains that Gemini Flash models are improved through distillation from larger frontier Pro models. For multiple Gemini generations now, the Flash version of the next generation has been as good or even substantially better than the previous generation's Pro. Distillation is key because it allows the smaller model to learn from the larger model's logits, which provides richer supervision than hard labels, and you need the frontier model to enable this distillation.

[3:18](https://addtry.com/65e7deba-9972-48d7-958a-f01c393d0e70?t=198000)

### How does energy consumption influence the design of large language model inference, according to Jeff Dean?

Jeff Dean emphasizes that energy (measured in picojoules per bit) is a critical design factor. He notes that moving data from on-chip SRAM can cost around 1,000 picojoules, while a single multiply is only about one picojoule. This disparity forces batching—running multiple inputs at once—to amortize the data movement cost. Without batching (batch size one), you'd pay the high movement cost for each tiny operation, making the system extremely inefficient.

[32:38](https://addtry.com/65e7deba-9972-48d7-958a-f01c393d0e70?t=1958000)

### How does Google's TPU design process anticipate future machine learning workloads?

Jeff Dean says Google co-designs TPUs by having chip architects collaborate with ML researchers to predict workloads 2–6 years ahead. They may include speculative hardware features that could make certain operations 10 times as fast if the research pans out, while only using a small amount of chip area if they don't. This interaction ensures that future TPUs are optimized for emerging ML techniques, balancing immediate needs with long-term bets.

[35:58](https://addtry.com/65e7deba-9972-48d7-958a-f01c393d0e70?t=2158000)

## Key moments

- **[0:00] Intro**
  - [0:16] Google's Jeff Dean states that owning the Pareto frontier requires both frontier capability and efficiency, and he is pleased with their progress.
  - [1:24] Jeff Dean reveals that distillation, a technique he co-pioneered in 2014, is essential for transferring frontier model capabilities into smaller Flash models.
- **[2:04] Distillation**
  - [2:04] Q: How does Google balance pushing the frontier with deploying economical models for billions of users? Jeff Dean explains that distillation from frontier models is key for smaller models, and both are necessary.
  - [3:33] Flash models in each new Gemini generation now match or surpass the previous generation's Pro models, says Jeff Dean.
  - [4:57] Jeff Dean believes lower latency will be critical as users start asking models to build entire software packages rather than simple code snippets.
  - [7:30] Distillation can produce small models that come very close to the performance of the largest models, according to Jeff Dean.
  - [8:54] Jeff Dean describes the ideal benchmark as having initial model scores of 10-30%, which then improve to 80-90% over time.
- **[10:00] Scaling Tests**
  - [11:06] Jeff Dean argues the single needle in a haystack benchmark is saturated, and the field needs more complex multi-needle tests for long context.
  - [12:30] Jeff Dean envisions future models that give the illusion of attending to trillions of tokens, like searching the entire internet in real time.
  - [14:09] Jeff Dean emphasizes that vision and motion are crucial modalities, noting that evolution has independently evolved eyes 23 times.
  - [15:20] Jeff Dean demonstrates Gemini's video understanding by having it extract an 18-row table of sports events from a highlight reel.
  - [17:00] Jeff Dean outlines a search architecture where models narrow from trillions of tokens to 30,000 candidates and finally 117 documents using lightweight models.
  - [18:33] LLM-based representations allow search to move beyond exact word matching to capturing the topic's relevance, explains Jeff Dean.
- **[19:06] Search & Systems**
  - [19:49] In 2001, Google moved its entire search index into memory, enabling synonym expansion and dramatically improving query understanding, recounts Jeff Dean.
  - [21:48] When designing systems, Jeff Dean advises scaling for 5-10x growth, as 100x growth often justifies a completely different architectural approach.
  - [24:12] Jeff Dean explains that a multiply costs 1 picojoule, but moving data across a chip costs 1,000 picojoules, driving the need for batching.
  - [25:33] Batching amortizes the 1,000-picojoule data movement cost over many multiplies; a batch of one is highly inefficient, says Jeff Dean.
- **[26:47] System Design**
  - [27:18] TPU hardware design at Google co-evolves with ML research, predicting computational needs 2-6 years ahead, notes Jeff Dean.
  - [28:48] Google's TPU roadmap includes speculative hardware features that could yield 10x speedups if successful, with minimal chip area sacrifice.
  - [30:26] Jeff Dean advocates for very low precision to reduce energy per bit transfer, using scaling factors to maintain model quality.
  - [31:59] Speculative decoding effectively multiplies batch size by 8, achieving a 5x amortization improvement in weight movement costs, explains Jeff Dean.
- **[32:52] Energy & Hardware**
  - [35:13] A major open challenge, per Jeff Dean, is making RL effective for non-verifiable domains to replicate coding and math improvements.
  - [37:18] Jeff Dean reflects that just two years ago, models struggled with simple math like 'Fred has two rabbits,' but now they solve IMO problems.
  - [38:42] Jeff Dean finds it misguided to have separate symbolic systems; humans reason without discrete symbols, and neural nets can emulate that.
  - [39:43] Jeff Dean notes that IMO success now uses a single general model with extra inference budget, not specialized geometry models.
  - [41:50] Jeff Dean argues that models should focus on reasoning and retrieval rather than memorizing obscure facts like the length of a small bridge.
- **[41:53] Open Problems**
  - [43:42] Trade-offs in Gemini's data mix between 200 languages and coding performance are constantly adjusted, says Jeff Dean, with modular models as a future direction.
  - [45:36] Jeff Dean describes Devise, a 2013 model that fused images and words, enabling zero-shot generalization to unseen categories like 'microscope'.
  - [47:06] Jeff Dean's undergraduate thesis in 1990 explored parallel neural network training, which he revived later at Google to scale deep learning.
  - [48:38] 'Bigger model, more data, better results' served as Google Brain's scaling mantra for years, says Jeff Dean, driving consistent improvements.
  - [50:00] Jeff Dean wrote a one-page memo arguing it was 'stupid' to fragment resources across separate AI teams, leading to the unified Gemini project which he also named.
- **[52:24] Vertical Models**
  - [52:30] Your interaction style with a coding agent shapes its output; asking for tests versus performance brainstorming leads to different responses, says Jeff Dean.
  - [54:10] Managing 50 AI coding interns would require forming subteams, similar to managing a large software organization, suggests Jeff Dean.
  - [56:00] Jeff Dean stresses that specifying software requirements for AI agents must be precise, as ambiguity leads to under-specification.
- **[59:08] Early Days**
  - [59:30] Jeff Dean predicts that latency will improve by 20-50x, making interactions more delightful and enabling models that do much more between human turns.
  - [1:01:34] Jeff Dean predicts that personalized models attending to all user-permitted state—emails, photos, videos—will be incredibly useful.
  - [1:02:22] Jeff Dean expects specialized hardware to enable much lower latency and more capable models at affordable prices.
- **[1:02:59] Gemini Merge**
- **[1:09:27] AI Coding**
- **[1:21:08] Predictions**

## Speakers

- **Alessio** (host)
- **Swyx** (host)
- **Jeff Dean** (guest)

## Topics

Hardware, Language Models, Inference

## Mentioned

DeepSeek (company), Google (company), OpenAI (company), AI mode (product), AlphaGeometry (product), AlphaProof (product), BERT (product), Chinchilla (product), Deep Think (product), Devise (product), Flamingo (product), Flash (product), Gemini (product), Gemma (product), Gmail (product), Google Search (product), Pro (product), Spanner (product), TPU (product), YouTube (product)

## Transcript

### Intro

**Alessio** [0:04]
Hey, everyone. Welcome to the Latent Space Podcast. This is Alessio, founder of Kernel Labs, and I'm joined by Swyx, editor of Latent Space.

**Swyx** [0:11]
Hello, hello. We're here in the studio with Jeff Dean, chief AI scientist at Google. Welcome.

**Jeff Dean** [0:15]
Thanks for having me.

**Swyx** [0:16]
It's a bit surreal to have you in the studio. I've, I've watched so many of your talks, uh, and obviously, uh, y- your career has been super legendary. So, uh, I mean, congrats. I, I think the, the first thing must be said, congrats on owning the Pareto frontier.

**Jeff Dean** [0:30]
Thank you. Thank you. Pareto frontiers are good.

**Swyx** [0:32]
Yeah.

**Jeff Dean** [0:32]
And it's good to be out there.

**Swyx** [0:35]
Yeah, I mean, I, I think it's a combination of both, uh... Your-- You have-- To own the Pareto frontier, you have to have, like, frontier f- capability, but also efficiency, and then offer that range of models that people like to use.

**Jeff Dean** [0:48]
Mm-hmm.

**Swyx** [0:48]
Uh, and y- you know, s- some part of this was started because of your hardware work, some part of that is your model work, and, uh, you know, I'm sure there's lots of secret sauce that you guys, uh, have worked on, uh, cumulatively.

But, like, it's, it's really impressive to see it all come together in, like, this steadily advancing frontier.

**Jeff Dean** [1:05]
Yeah, yeah. I mean, I think as you say, it's not just one thing, it's like a whole bunch of things up and down the stack.

**Swyx** [1:11]
Yeah.

**Jeff Dean** [1:11]
And, uh, you know, all of those really combine to help make you and us be able to make highly capable large models, as well as, you know, software techniques to get those large model capabilities into much smaller, lighter weight models that are, you know, much more cost-effective and lower latency, but still, you know, quite capable for their size.

So...

**Swyx** [1:32]
Yeah.

**Alessio** [1:33]
How, how much pressure do you have on, like, having the lower bound of the Pareto frontier too? I think, like, the new labs are always trying to push the top performance frontier-

**Jeff Dean** [1:42]
Mm-hmm

**Alessio** [1:42]
... because they need to raise more money and all of that, and you guys have billions of users. And I think initially when you worked on the TPU, you were thinking about, you know, if everybody that used Google will use the voice model for, like, three minutes a day, they would, like, you need to double your CPU number.

Like, what's that discussion today at Google? Like, how do you prioritize frontier versus, like, we actually need to deploy it if we build it?

### Distillation

**Jeff Dean** [2:04]
Yeah, I mean, I think we always wanna have models that are at the frontier or pushing the frontier because I think that's where you see what capabilities now exist that didn't exist at the sort of slightly less capable last year's version-

**Alessio** [2:17]
Mm-hmm

**Jeff Dean** [2:17]
... or last six months ago version. Um, at the same time, you know, we know those, those are gonna be really useful for a bunch of use cases, but they're gonna be, uh, a bit slower and a bit more expensive than people might like for a bunch of other broader use cases.

So I think what we wanna do is always have, um, kind of a highly capable, uh, sort of, uh, affordable model that enables a whole bunch of, you know, lower latency use cases. People can use them for agentic coding much more readily.

Um, and then have the, the high-end, you know, frontier model that is really useful for, um, you know, uh, deep reasoning-

**Alessio** [2:57]
Mm-hmm

**Jeff Dean** [2:57]
... you know, solving really complicated math problems, those kinds of things. And, you know, it's not that one or the other is useful. They're both useful. So I think we like to do both. And also, you know, through distillation, which is a key technique for making the smaller models more capable, you know, you have to have the frontier model in order to then distill it into your, your smaller model.

So it's not like an either/or choice. You sort of need that in order to actually get a highly capable, more modest-sized model.

**Alessio** [3:25]
Yeah. And I mean, you and Jeffrey Hinton came out with distillation in 2014. Like, uh-

**Jeff Dean** [3:29]
Don't forget Oriol Vinyals as well.

**Alessio** [3:30]
Yeah, yeah.

**Jeff Dean** [3:31]
Yeah.

**Alessio** [3:31]
A, a long time ago. Like-

**Jeff Dean** [3:32]
Yeah

**Alessio** [3:33]
... I, I'm curious how you think about the cycle of these ideas. Even like, you know, sparse models and, uh, you know-

**Jeff Dean** [3:39]
Mm-hmm

**Alessio** [3:39]
... how, how do you reevaluate them? How do you think about in the next generational model, what is worth revisiting? Like, uh, yeah, they're just kind of like a, you know... You worked on so many ideas that end up being influential, but, like, in the moment they might not feel that way necessarily.

**Jeff Dean** [3:52]
Yeah, I mean, I, I think distillation was originally motivated because we were seeing that we had a very large image dataset at the time, you know, 300 million images that we could train on with, you know, I, I forget, like 20,000 categories or something.

So much bigger than ImageNet. And we were seeing that if you create specialists for different subsets of those image categories, you know, this one's gonna be really good at sort of mammals-

**Alessio** [4:16]
Mm-hmm

**Jeff Dean** [4:16]
... and this one's gonna be really good at sort of indoor room scenes or whatever. And you can cluster those categories and train on an enriched stream of data after you do pre-training on, on a much broader set of images.

You get much better performance if you then treat that whole set of maybe 50 models you've trained as a large ensemble. Um, but that's not a very practical thing-

**Alessio** [4:39]
Mm-hmm

**Jeff Dean** [4:39]
... to serve, right? So distillation really came about from the idea of, okay, what if we want to actually serve that and train all these independent sort of expert models, um, and then squish it into something that actually fits in a form factor that you can actually serve.

And that's, you know, not that different from what we're doing today. You know, often today we're instead of having an ensemble of 50 models, we're having a much larger scale model that we then distill into a much smaller scale model.

**Swyx** [5:09]
Hmm.

**Jeff Dean** [5:10]
Yeah.

**Swyx** [5:10]
Uh, a part of me also wonders if distillation also has a story with the RL, um, revolution. So what-- Let me, let me maybe try to articulate what I mean by that. Uh, which is you can... Uh, RL basically spikes models in a certain, uh, part of the distribution, and then you have to sort of-- Well, you can spike models, but usually sometimes you, you, it might, it might be lossy in other areas, and it's kind of like an uneven technique, but you can probably distill it back, uh, and you can s- uh...

I think the, the sort of general, um, dream is to be able to advance capabilities without regressing on anything else.

**Jeff Dean** [5:49]
Right.

**Swyx** [5:49]
And I think, like, that, that whole capability merging without loss, uh, uh, I feel like is, is, like, you know, some part of that should be a distillation process, but I can't quite articulate it. I haven't seen much papers about it.

**Jeff Dean** [6:02]
Mm-hmm. Yeah, I mean, I, I, I tend to think of one of the key advantages of distillation is that you can have a much smaller model and you can have a very large, uh, you know, training data set, and you can get utility out of making many passes over that data set because you're now getting the logits from a much larger model in order to sort of-

**Swyx** [6:22]
Yeah

**Jeff Dean** [6:22]
... sort of coax the right behavior out of the smaller model, uh, that you don't-- wouldn't otherwise get with just the hard labels.

**Swyx** [6:28]
Yeah.

**Jeff Dean** [6:28]
Uh, and so, um, you know, I think that's what we've observed is you can get, you know, clo- very close to your largest model performance with distillation approaches.

**Swyx** [6:39]
Yeah.

**Jeff Dean** [6:40]
And that, that seems to be, you know, a nice sweet spot for a lot of people because it enables us to kind of, uh, for multiple Gemini generations now, we've been able to make the sort of-

**Swyx** [6:50]
Flash

**Jeff Dean** [6:50]
... Flash version of the next generation b- as good or even substantially better than the previous generation's Pro. And I think we're gonna keep trying to do that, 'cause that seems like a good, uh, trend to follow.

**Swyx** [7:02]
Um, dare I ask, uh, so it was, it was-- the original map was Flash, Pro, and Ultra.

**Jeff Dean** [7:07]
Mm-hmm.

**Swyx** [7:08]
Uh, is Ult- are you just sitting on Ultra and distilling from that? Is that like the motherload?

**Jeff Dean** [7:12]
Uh, I mean, we have a lot of different kinds of models. Some are internal ones that are not necessarily meant to be released or served. Some are, you know, our Pro scale model, and we can distill from that as well into our Flash scale model.

So I think, you know, uh, it's, uh, it's an important set of capabilities to have, and also inference time scaling can also be a useful thing-

**Swyx** [7:33]
Yeah

**Jeff Dean** [7:33]
... to improve the capabilities of the model then.

**Swyx** [7:36]
Yeah. Yeah, cool. Yeah, and then, uh, obviously, I think the economy of Flash is what it's led to the total dominance. I think, like, the, the latest number is like fifty trillion, uh, tokens. I, I don't know. I mean, obviously, it's changing every day.

**Jeff Dean** [7:47]
Yeah, yeah.

**Swyx** [7:48]
But, uh, you know, by market share-

**Jeff Dean** [7:50]
Hopefully, hopefully up.

**Swyx** [7:51]
No, I mean, there's no... I mean, just the economics-wise, like, uh, because Flash is so economical, like, you can use it for everything. Like, it's in Gmail now, it's in YouTube. Like, it's-

**Jeff Dean** [8:01]
Yeah

**Swyx** [8:01]
... it's in everything.

**Jeff Dean** [8:02]
We're using it more in our search products of our AI mode-

**Swyx** [8:05]
AI mode

**Jeff Dean** [8:05]
... AI mode reviews.

**Swyx** [8:06]
Oh my God.

**Jeff Dean** [8:06]
Yeah.

**Swyx** [8:06]
Flash powers the AI mode. Oh my God. Yeah, that's... Yeah, I didn't even think about that.

**Jeff Dean** [8:11]
Um, I mean, I think one of the things that is, uh, quite nice about the Flash model is not only is it more affordable, it's also a lower latency. And I think latency is actually a pretty important characteristic for these models because we're gonna want models to do much more complicated things that are gonna involve, you know, generating many more tokens from when you ask the model to do something until it actually finishes what you ask it to do, because you're gonna ask now not just write me a for loop, but like write me a, a whole software package to do X or Y or Z.

And so having low latency systems that can do that, uh, seems really important, and Flash is one direction, one, one way of doing that.

**Swyx** [8:51]
Yeah.

**Jeff Dean** [8:51]
You know, obviously our hardware platforms enable a bunch of interesting aspects of our, you know, serving stack as well, like TPUs, uh, the interconnect between chips on the TPUs, uh, is actually quite, quite high performance and quite amenable to, for example, long context kind of attention operations, you know, having sparse models with lots of experts.

Um, these kinds of things really, really matter a lot in terms of how do you make them, uh, servable at scale.

**Swyx** [9:20]
Yeah.

**Alessio** [9:21]
Does it feel like there's some breaking point for like the proto Flash distillation, kinda like one generation delayed? I, I almost think about almost like the capability asymptote in certain tasks. Like the Pro model today is as saturated as some sort of task.

**Jeff Dean** [9:37]
Mm-hmm.

**Alessio** [9:38]
So next generation, that same task will be saturated at the Flash price point.

**Jeff Dean** [9:42]
Mm-hmm.

**Alessio** [9:42]
And I think for most of the things that people use models for, at some point the Flash model in two generation will be able to do basically everything. And how do you make it economical to like keep pushing the pro frontier when-

**Jeff Dean** [9:56]
Mm-hmm

**Alessio** [9:56]
... a lot of the population will be okay with the Flash model? I'm curious how you think about that.

**Jeff Dean** [10:00]
I mean, I think that's true if your distribution of what people are asking people or the models to do is stationary, right?

### Scaling Tests

**Alessio** [10:06]
Mm-hmm.

**Jeff Dean** [10:06]
But I think what often happens is as the models become more capable, people ask them to do more, right? So I mean, I think this happens in my own usage. Like I used to try our models a year ago for some sort of coding task, and it was okay at some simpler things, but wouldn't do-- work very well for more complicated things.

And since then, we've improved dramatically on the more co- on the more complicated coding tasks, and now I'll ask it to do much more complicated things. And I think that's true not just for coding, but of, you know, now, you know, can you analyze all the, you know, renewable energy, uh, deployments in the world and give me a report on solar-

**Alessio** [10:45]
Yeah

**Jeff Dean** [10:45]
... panel deployment or whatever. That's a very complicated, you know, more complicated task than people would have asked a year ago. And so you are gonna want more capable models to push the frontier in the sense of what people ask the models to do, and that also then gives us insight into, okay, where does the...

where do things break down? How can we improve the model in these, these particular areas, uh, in order to sort of, um, make the next generation even better?

**Alessio** [11:12]
Yeah. Are there any benchmarks or like test sets they use internally? Because it's almost like the same benchmarks get reported every time, and it's like, all right, it's like ninety-nine instead of ninety-seven. Like-

**Jeff Dean** [11:22]
Yeah

**Alessio** [11:22]
... how, how do you have to keep pushing the team internally too to like, this is what we're building towards?

**Jeff Dean** [11:26]
Yeah, I mean, I think benchmarks, particularly external ones that are publicly available, have their utility, but they often kind of have a lifespan of utility where they're introduced and maybe they're quite hard for current models. You know, I, I, I like to think of the best kinds of benchmarks are ones where the initial scores are like ten to-

**Alessio** [11:47]
Right

**Jeff Dean** [11:47]
... twenty or thirty percent maybe, but not higher. And then you can sort of work on improving that capability for, uh, whatever it is the benchmark is trying to assess and get it up to like eighty, ninety percent, whatever.

I, I think once it hits kind of ninety-five percent or something, you get very diminishing-

**Alessio** [12:05]
Right

**Jeff Dean** [12:05]
... returns from really focusing on that benchmark because it's sort of- I- it's either the case that you've now achieved that capability, or there's also the issue of leakage in public data or very related kind of data being, being in your training data.

Um, so we have a bunch of held-out internal benchmarks that we really look at where we know that wasn't represented in the training data at all. There are capabilities that we want the model to have, um, that it doesn't have now, and then we can work on, you know, assessing, you know, how do we make the model better at these kinds of things?

Is it we need different kind of data to train on that's more specialized for this particular kind of task? Do we need, um, you know, a bunch of, uh, you know, architectural improvements or some-

**Swyx** [12:48]
Mm-hmm

**Jeff Dean** [12:48]
... sort of, uh, model capability improvements? You know, what would help make that better?

**Swyx** [12:54]
Is there, is there such an example that you, uh... a benchmark inspired an architectural improvement? Like, uh, I'm just kind of jumping on that because you just...

**Jeff Dean** [13:03]
Uh, I mean, I think some of the long context capabilities-

**Swyx** [13:06]
Yeah

**Jeff Dean** [13:06]
... of the, of the Gemini models that came, I guess, first in 1.5 really were about-

**Swyx** [13:12]
The needle in a haystack

**Jeff Dean** [13:12]
... looking at-

**Swyx** [13:13]
Yeah

**Jeff Dean** [13:13]
... okay, we wanna have, um, you know-

**Swyx** [13:16]
Immediately everyone jumped to like completely green charts of like-

**Jeff Dean** [13:19]
Right

**Swyx** [13:19]
... everyone had ... I was like, "How did everyone crack this at the same time?"

**Jeff Dean** [13:23]
Right. Yeah, yeah, yeah. I mean, I think, um, and once you're sat- I mean, as you say, that needed single needle in a haystack benchmark is really saturated for at least context lengths up to 128K or something.

**Swyx** [13:36]
Yeah.

**Jeff Dean** [13:36]
I think most people don't actually have, you know, much larger than 128K these days, or 256 or something. Um, you know, we're trying to push the frontier of one million or two million context length.

**Swyx** [13:46]
I think Google's still the leader at two million.

**Jeff Dean** [13:47]
Yeah.

**Swyx** [13:47]
Yeah.

**Jeff Dean** [13:48]
Yep, which is good because I think there are a lot of use cases where, you know, putting a thousand pages of text or putting, you know, multiple, you know, hour-long videos in the context and then actually being able to make use of that is useful.

But the, the single needle in a haystack benchmark is sort of saturated. Um, so you really want more complicated, uh, sort of multi-needle or more realistic, take all this content and produce this kind of answer from, uh, uh, a long context that sort of better assesses what it is people really wanna do with long context, which is not just, you know, "Can you tell me the product number-

**Swyx** [14:30]
Mm-hmm

**Jeff Dean** [14:30]
... for this particular thing?"

**Swyx** [14:31]
Yeah. It's retrieval.

**Jeff Dean** [14:32]
Yeah.

**Swyx** [14:32]
It's, it's, uh, retrieval within machine learning. Uh, yeah, it's, it's interesting because, like, I, I think the, the more meta less level I'm trying to operate at here is, uh, you have a benchmark. You're like-

**Jeff Dean** [14:42]
Mm-hmm

**Swyx** [14:42]
... "Okay, I see the architectural thing I need to do in order to go fix that." But, like, should you do it? Because sometimes, you know, that's an inductive bias basically that you're entering.

**Jeff Dean** [14:50]
Mm-hmm.

**Swyx** [14:51]
And so what Jason Wei, who used to work at Google, would say like e- exactly the kind of thing like, yeah, you're gonna win short term. Longer term, I don't know if that's gonna scale.

**Jeff Dean** [15:00]
Yeah.

**Swyx** [15:00]
You might have to undo that.

**Jeff Dean** [15:02]
I mean, I, I, I like to sort of not focus on exactly what solution one should derive, but what capability would you want? And I think we're very convinced that, you know, long context is useful, but it's way too short today, right?

**Swyx** [15:17]
Yeah.

**Jeff Dean** [15:17]
Like, I think what you would really want is, "Can I attend to the internet while I answer my question?"

**Swyx** [15:23]
Oh, God.

**Jeff Dean** [15:23]
Right? But that's not going to be solved by purely scaling the existing solutions, which are quadratic. So a million tokens kind of pushes-

**Swyx** [15:32]
Mm-hmm

**Jeff Dean** [15:32]
... uh, what you can do. You're not gonna do that to a trillion tokens, let alone-

**Swyx** [15:36]
Yeah

**Jeff Dean** [15:36]
... you know, a billion tokens, let alone a trillion. Um, but I think if you could give the illusion that you can attend to trillions of tokens, that would be amazing, and you'd be... find all kinds of uses for that.

You would have, um, attend to the internet. You could attend to the pixels of YouTube and the sort of-

**Swyx** [15:53]
Mm

**Jeff Dean** [15:53]
... deeper representations that we can form for a single video, but across many videos. You know, uh, on a personal Gemini level, you could attend to all of your personal state with your permission, so like your emails, your photos, your-

**Swyx** [16:08]
Yeah

**Jeff Dean** [16:09]
... your docs, your plane tickets you have. Um, I, I think that would be really, really useful. And the question is, how do you get algorithmic improvements and system level improvements that get you to something where you actually can attend to trillions of tokens in some meaningful way?

**Swyx** [16:26]
Yeah. By, by the way, I, I think I, I did some math, and if like, if you spoke all day, every day for eight hours a day, um, you only generate a maximum of like 100K tokens which like very comfortably fits.

**Jeff Dean** [16:39]
Right. But if you then say-

**Swyx** [16:40]
Right.

**Jeff Dean** [16:40]
... "Okay, I wanna be able to, um, understand-

**Swyx** [16:44]
For, for every tokens per day

**Jeff Dean** [16:45]
... everything that people are putting on videos."

**Swyx** [16:46]
Yeah, exactly. Exactly.

**Jeff Dean** [16:46]
Yeah.

**Swyx** [16:46]
Well, and also I think the, the classic example is, um, you start going beyond language into like proteins and, uh, whatever else is extremely information dense.

**Jeff Dean** [16:55]
Yeah.

**Swyx** [16:55]
Uh.

**Jeff Dean** [16:56]
Yeah. I mean, I think one of the things about Gemini's multimodal aspects is we've always wanted it to be multimodal from the start, and so, you know, that sometimes to people means text and images and video, sort of human-like and audio, audio human-like modalities.

But I think it's also really useful to have Gemini know about non-human modalities. So-

**Swyx** [17:21]
Yeah

**Jeff Dean** [17:22]
... like lidar sensor data from-

**Swyx** [17:23]
Yes

**Jeff Dean** [17:24]
... Waymo vehicles, or like robots.

**Swyx** [17:26]
Yeah.

**Jeff Dean** [17:26]
Uh, or, you know, various kinds of health modalities, X-rays and MRIs and imaging and genomics information. Um, and I think there's probably hundreds of modalities of data where you'd like the model to be able to at least be exposed to the fact that this is an interesting modality and has certain meaning in the world.

Uh, where even if you haven't trained on all the lidar data or MRI data, you could have, because maybe that's not, you know, doesn't make sense in terms of trade-offs of, you know, what you include in your main pre-training data mix, at least including a little bit of it is actually quite useful.

**Swyx** [18:01]
Yeah.

**Jeff Dean** [18:01]
'Cause it sort of Uh, tempts the model that this is a thing.

**Swyx** [18:05]
Yeah, yeah. Do, do you believe... I mean, since we're on this topic and, and something I, I just get to ask you all the questions I always wanted to ask- ... which is fantastic. Uh, like, there, are there some king modalities, like modalities that supersede all the other modalities?

So, the, a simple example was vision, um, can on a pixel level encode text, and DeepSeek had, had this, uh-

**Jeff Dean** [18:23]
Mm-hmm

**Swyx** [18:23]
... DeepSeek-OCR paper that did that. Uh, vision has also been shown to maybe incorporate audio, because you can do audio spectrograms, and that's, that's-

**Jeff Dean** [18:31]
Mm

**Swyx** [18:31]
... also like a vision, uh, capable-

**Jeff Dean** [18:33]
Yeah

**Swyx** [18:33]
... thing. Like, so, so maybe vision is just the king modality, and like-

**Jeff Dean** [18:36]
Yeah. I mean- ... vision and motion are quite important things, right? I mean-

**Swyx** [18:40]
Motion, uh, it's like vision every time

**Jeff Dean** [18:42]
... well, video as opposed to static images.

**Swyx** [18:44]
Yeah, vision every time. Yeah

**Jeff Dean** [18:44]
Because, I mean, there's a reason evolution has evolved eyes like 23 independent ways-

**Swyx** [18:49]
Mm

**Jeff Dean** [18:49]
... because it's such a useful capability for sensing the world around you, which is really what we want these models to be able to do, is interpret the things we're seeing or the things we're, we're paying attention to, and then help us in, uh, using that information to, to do things.

**Swyx** [19:06]
Yeah. I, I think motion... Uh, you know, I, I still wanna shout out, I think Gemini, uh, still the only native video understanding model that's out there. Uh, so I use it for YouTube all the time.

### Search & Systems

**Jeff Dean** [19:15]
Uh-huh. Nice.

**Swyx** [19:16]
It's, it's-

**Jeff Dean** [19:16]
Yeah, yeah. I mean, it's actually... I think people kind of d- are not necessarily aware of what the Gemini models can actually do with video. Like, uh-

**Swyx** [19:26]
Tell us

**Jeff Dean** [19:26]
... I have an example I've used in one of my talks. It had like, uh, it was like a YouTube highlight video of 18 memorable sports moments across the last 20 years or something. So it has, like, Michael Jordan hitting some jump shot at the end of the finals and, you know, some soccer, uh, goals and things I've got.

And you can literally just give it the video and say, "Can you please make me a table of what all these different events are, what, when the date is when they happened, and a short description of the event?"

And so you get like now an 18-row table of that information extracted from the video, which is, you know, not something most people think of as- ... like a turn video into SQL-like table.

**Swyx** [20:10]
Yeah. Mm. Has there been any discussion inside of Google of like, you mentioned tending to the whole internet, right? Google, it's almost built because the, a human cannot tend to the whole internet, and you need some sort of ranking to f-

**Jeff Dean** [20:23]
Mm-hmm

**Swyx** [20:24]
... find what you need.

**Jeff Dean** [20:25]
Yep.

**Swyx** [20:25]
That ranking is, like, much different for an LLM, because you, you can expect a person to look at maybe the first five, six links in a Google search-

**Jeff Dean** [20:33]
Mm-hmm

**Swyx** [20:33]
... versus for an LLM, should you expect to have 20 links that are highly relevant? Like, how, how do you internally figure out, you know, how do we build the AI mode that is like maybe like much broader-

**Jeff Dean** [20:44]
Mm-hmm

**Swyx** [20:44]
... search and span versus like the more human one?

**Jeff Dean** [20:47]
Yeah. I mean, I think even pre-language model based works, you know, our ranking systems would be built to start with a giant number of web pages in our index. Many of them are not relevant, so you identify a subset of them that are relevant with very lightweight kinds of methods.

You know, you're now under like 30,000 documents or something.

**Swyx** [21:09]
Mm-hmm.

**Jeff Dean** [21:09]
And then you ha- gradually refine that to apply more and more sophisticated algorithms and more and more sophisticated sort of signals of various kinds in order to get down to ultimately what you show, which is, you know, the final 10 results or, you know, 10 results plus other kinds of-

**Swyx** [21:26]
Mm

**Jeff Dean** [21:26]
... information. And I think an LLM-based system is not gonna be that dissimilar, right? You're gonna attend to trillions of tokens, but you're gonna want to identify, you know, what are the 30,000-ish documents that are, with the, you know, uh, maybe 30 million interesting tokens.

And then how do you go from that into what are the 117 documents I really should be paying attention to in order to carry out the task that the user has asked me to do? Um, and I think, you know, you can imag- you can imagine systems where you have, you know, a lot of, uh, highly parallel processing to identify those initial 30,000 candidates, maybe with very lightweight kinds of models.

Um, then you have some system that sort of helps you narrow down from 30,000 to the 117, uh, with maybe a little bit more sophisticated, um, model, uh, or set of models. And then maybe the final model is the thing that looks at 117 things.

That might be your most capable model. So I think it has to, it's going to be some system like that that is really enables you to give the illusion of attending to trillions of tokens. Um, sort of the way Google Search gives you, you know, not the illusion, but you are searching the internet-

**Swyx** [22:43]
Yeah

**Jeff Dean** [22:43]
... but you're finding, you know, a very small subset of things that are, that are relevant.

**Swyx** [22:48]
Yeah. I, I often tell a lot of people, uh, that are not steeped in like Google Search history that, uh, well, you know, like Bert was like used like basically immediately inside of Google Search. Uh, and that improves results a lot, right?

Like I-

**Jeff Dean** [23:01]
Yeah

**Swyx** [23:01]
... I don't, I don't have any numbers, uh, off the top of my head, but like I'm sure you guy- I, that's obviously the most important numbers to in, to Google.

**Jeff Dean** [23:08]
Yeah. I mean, I, I think going to an LLM-based representation of text and words and so on-

**Swyx** [23:15]
Yeah

**Jeff Dean** [23:15]
... enables you to get out of the explicit hard notion of, of particular words having to be on the page, but really getting at the notion of this topic of this page or this paragraph is highly relevant to this query.

**Swyx** [23:28]
Yeah. I, I don't think people understand how much LLMs have taken over all these very high-

**Jeff Dean** [23:33]
Yeah

**Swyx** [23:33]
... traffics. Very high traffic.

**Jeff Dean** [23:34]
Yeah.

**Swyx** [23:34]
Like it's Google.

**Jeff Dean** [23:36]
Yeah.

**Swyx** [23:36]
Uh, it's YouTube. Uh, YouTube has this like semantics, uh, ID thing-

**Jeff Dean** [23:40]
Mm-hmm

**Swyx** [23:40]
... where it's just like every token or every, uh, item in the vocab is a YouTube video or something-

**Jeff Dean** [23:45]
Right

**Swyx** [23:45]
... it predicts the video w- using a codebook-

**Jeff Dean** [23:47]
Mm-hmm

**Swyx** [23:47]
... which is absurd to me for, for YouTube size. And then, uh, most recently Grok also for, for XAI, which is like... Yeah.

**Jeff Dean** [23:55]
I mean, I'll call out even before LLMs were used extensively in Search, we put a lot of emphasis on softening the notion of what the user actually entered into the query so that if I type-

**Swyx** [24:07]
Yeah. Do you have like a history of like, uh, what's the progression?

**Jeff Dean** [24:09]
Oh, yeah. I mean, I actually gave a talk in, uh, I guess, uh, web search and data mining conference in 2009-

**Swyx** [24:16]
Okay

**Jeff Dean** [24:16]
... uh, where we never actually published any papers about the origins of Google Search, uh, sort of- But we went through sort of four-

**Swyx** [24:23]
I mean, statute of limitations

**Jeff Dean** [24:24]
... five or six generations- ... four or five or six generations of, uh, redesigning of the search and retrieval system, uh, from about 1999 through 2004 or '5. And that talk is really about that evolution. And one of the things that really happened in 2001 was we were sort of working to scale the system in multiple dimensions.

So one is we wanted to make our index bigger so we could retrieve from a larger index, which always helps your quality in general, uh, uh, because if you don't have the page in your index, you're gonna-

**Swyx** [24:57]
Mm

**Jeff Dean** [24:57]
... not do well. Um, and then we also needed to scale our capacity because we were, our traffic was growing quite extensively. Um, and so we had, you know, a sharded system where you have more and more shards as the index grows.

You have, like 30 shards, and then if you want to double the index size, you make 60 shards so that you can bound the latency by which you respond for any particular user query. Um, and then as traffic grows, you add more and more replicas of each of those.

And so we eventually did the math that realized that in a data center where we had, say 60 shards and, um, you know, 20 copies of each shard, we now had 1,200 machines, uh, with disks. And we did the math and we're like, "Hey, one copy of that index would actually fit in memory across 1,200 machines."

**Swyx** [25:45]
Mm-hmm.

**Jeff Dean** [25:45]
So in 2001, we introduced, uh, we put our entire index in memory.

**Swyx** [25:51]
Mm.

**Jeff Dean** [25:51]
And what that enabled from a quality perspective was amazing because before you had to be really careful about, you know, how many different terms you looked at for a query, because every one of them would involve a disk seek on every one of the 60 shards.

And so you, as you make your index bigger, that becomes even more inefficient. But once you have the whole index in memory, it's totally fine to have 50 terms you throw into the query from the user's original three or four word query, because now you can add synonyms like restaurant and restaurants and cafe and, uh, bistro and all-

**Swyx** [26:26]
Mm-hmm

**Jeff Dean** [26:26]
... these things, and you can s- suddenly start, uh, sort of really, uh, getting at the meaning of the word as opposed to the exact semantic form the user typed in. And that was, you know, 2001, very much pre-LLM.

**Swyx** [26:40]
Yeah.

**Jeff Dean** [26:40]
But really it was about softening the, the strict definition of what the user typed in order to get at the meaning.

### System Design

**Swyx** [26:47]
Hmm. What are, like principles that you use to, like, design the systems? Especially when you have... I mean, in 2001, the internet is, like doubling, tripling every year in size.

**Jeff Dean** [26:56]
Yeah.

**Swyx** [26:56]
It's not like a, you know... And I think today you kinda see that with LLMs too, where, like, every year the jumps in size and, like, capabilities are just-

**Jeff Dean** [27:03]
Mm-hmm

**Swyx** [27:04]
... so big. Are there just any, you know, principles that you use to, like, think about this?

**Jeff Dean** [27:08]
Yeah, I mean, I think, uh, you know, first, whenever you're designing a system, you wanna understand what are the sort of design parameters that are gonna be most important in designing that. You know, so, you know, how many queries per second do you need to handle?

How big is the index you need to handle? How much data do you need to keep for every document in the index? How are you gonna look at it when you retrieve things? Um, what happens if traffic were to double or triple?

You know, will that system work well? And I think a good design principle is you're gonna wanna design a system so that the most important characteristics could scale by, like, factors of five or 10, but probably not beyond that.

Because-

**Swyx** [27:50]
Oh

**Jeff Dean** [27:50]
... often what happens is if you design a system for X and something suddenly becomes 100X, that would enable a very different des- point in the design space-

**Swyx** [27:59]
Mm

**Jeff Dean** [27:59]
... that would not make sense at X, but all of a sudden at 100X makes total sense. So, like, going from a disk-based index to a in memory index makes a lot of sense once you have enough traffic, because now you have enough replicas of the sort of state on disk that those machines now actually can hold, uh, you know, a, a full copy of the me- uh, index in memory.

**Swyx** [28:22]
Yeah.

**Jeff Dean** [28:22]
And that all of a sudden enables a completely different design that wouldn't have been practical before.

**Swyx** [28:27]
Yeah.

**Jeff Dean** [28:28]
Um, so I'm, I, I'm a big fan of thinking through designs in your head, just kind of playing with the design space a little before you actually do a lot of writing of code. But, you know, as you said, in the early days of Google, we were, you know, growing the index, uh, quite extensively.

We were growing the update rate of the index.

**Swyx** [28:49]
Mm.

**Jeff Dean** [28:49]
So the update rate actually is the parameter that changed the most, surprisingly. So it used to be once a month.

**Swyx** [28:56]
Yeah.

**Jeff Dean** [28:56]
And then we went to a system that could update any particular page in, like sub one minute.

**Swyx** [29:03]
Okay. Yeah, because this-

**Jeff Dean** [29:03]
Yeah

**Swyx** [29:03]
... is a competitive advantage, right?

**Jeff Dean** [29:05]
Right.

**Swyx** [29:05]
Like obviously-

**Jeff Dean** [29:05]
Because all of a sudden-

**Swyx** [29:06]
... people notice

**Jeff Dean** [29:06]
... news-related queries, you know, if you're-

**Swyx** [29:08]
Yeah

**Jeff Dean** [29:08]
... if you've got last month's news index-

**Swyx** [29:09]
Right

**Jeff Dean** [29:10]
... it's not actually that useful for-

**Swyx** [29:11]
News was a special beast. Was there any... Like, you could have split it onto a separate system.

**Jeff Dean** [29:16]
Well, we did. We launched a Google News product.

**Swyx** [29:17]
Yeah, right.

**Jeff Dean** [29:17]
But you also want news-related queries that people type into the main index to also be sort of updated, so.

**Swyx** [29:23]
Yeah. It's interesting. And then you have to, like cla- classify whether the page is... Y- you have to decide which pages should be updated and what frequency.

**Jeff Dean** [29:30]
Oh, yeah. There's a whole-

**Swyx** [29:31]
It's almost-

**Jeff Dean** [29:31]
... like, uh- ... system behind the scenes that's trying to decide update rates and-

**Swyx** [29:36]
Yeah

**Jeff Dean** [29:36]
... importance of the pages. So even if the update rate seems low, you might still wanna recrawl important pages quite often because, uh, the likelihood they change might be low, but the value of having them-

**Swyx** [29:49]
It's very important

**Jeff Dean** [29:49]
... updated is high.

**Swyx** [29:51]
Yeah. Yeah, yeah. Uh, what, you know, this, uh, you know, mention of latency and, and saving things to disk reminds me of one of your classics, which I have to bring up, which is latency numbers every programmer should know.

**Jeff Dean** [30:01]
Uh-huh. Yep.

**Swyx** [30:02]
Uh, was there a s- was there just a g- just a general story behind that? Did you like sit down and-

**Jeff Dean** [30:07]
Um, I mean- ... this has, like, sort of 8 or 10 different kinds of metrics that are, like, how long does a cache miss take?

**Swyx** [30:12]
Yeah.

**Jeff Dean** [30:12]
How long does a branch mispredict take? How long does a reference to main memory take? How long does a disk seek take?

**Swyx** [30:16]
It's fantastic. Yeah. These are the constants.

**Jeff Dean** [30:17]
How long does it take to send, you know, a packet from the US to the Netherlands or something?

**Swyx** [30:21]
Mm-hmm.

**Jeff Dean** [30:22]
Um, I, I-

**Swyx** [30:23]
Why, why Netherlands, by the way? Or is it, is that because of Chrome?

**Jeff Dean** [30:26]
Uh, we had a data center in the Bay Area.

Um, so I mean, I think this gets to the point of being able to do the back of the envelope calculations. So these are sort of the-

**Swyx** [30:36]
Yeah

**Jeff Dean** [30:36]
... raw ingredients of those, and you can use them to say, "Okay, well, if I need to design a system to do image search and thumbnailing or something of the result page, you know, how would I do that?"

I could precompute the image thumbnails. I could, like, try to thumbnail them on the fly from the larger images. What would that do? How much disk bandwidth then I need? How many disk seeks would I do? Um, and you can sort of actually do thought experiments-

**Swyx** [31:04]
Mm-hmm

**Jeff Dean** [31:04]
... in, you know, 30 seconds or a minute with the sort of, uh, basic, uh, basic numbers at your fingertips. Uh, and then as you sort of build software using higher level libraries, you kinda wanna develop the same intuitions for how long does it take to, you know, look up something in this particular kind of hash table I use, or, you know, how long will it take me to sort a million numbers or something.

**Swyx** [31:27]
Yeah. The, the reason I bring it up actually is actually for, I think, like, two years now, I've been trying to make numbers every AI programmer should know.

**Jeff Dean** [31:34]
Okay. Yeah.

**Swyx** [31:35]
Uh, I don't have a great one, uh, because it's, it's not as, it's not physical constants like you have physical constants in here.

**Jeff Dean** [31:41]
Mm-hmm.

**Swyx** [31:41]
You know, it's, uh, and, uh, but I do think, like, uh... So a, a simple one would be number of parameters to, um, uh, disk size if you, if you need to convert that, uh-

**Jeff Dean** [31:52]
Mm-hmm

**Swyx** [31:52]
... which is a simple byte conversion. That's not, that's nothing interesting. I wonder if you have any, if you want, if you-

**Jeff Dean** [31:57]
Oh, yeah

**Swyx** [31:57]
... if you were to update your-

**Jeff Dean** [31:59]
I mean, I think, uh, it's really good to think about, uh, calculations you're doing in a model, either for training or inference. Um, often a good way to view that is how much, uh, state will you need to bring in from memory, either, like, on-chip SRAM or HBM from the accelerator-

**Swyx** [32:23]
Mm-hmm

**Jeff Dean** [32:23]
... attached, uh, memory, or DRAM or over the network. Um, and then how expensive is that data motion relative to, uh, the cost of, say, an actual multiply in the matrix multiply unit?

**Swyx** [32:38]
Yeah.

**Jeff Dean** [32:38]
And that cost is actually really, really low, right? Because it's, you know, order, you know, uh, depending on your precision, I think it's, like, sub-picoj- one picojoule.

**Swyx** [32:51]
Oh, okay. You measure it by energy.

**Jeff Dean** [32:52]
But yeah.

### Energy & Hardware

**Swyx** [32:52]
Okay.

**Jeff Dean** [32:53]
I mean, it's all gonna be about energy-

**Swyx** [32:55]
Yeah

**Jeff Dean** [32:55]
... and how do you make the most energy efficient system. Um, and then moving data from the SRAM on the other side of the chip, uh, not even off the s- off chip, but on the other side of the same chip can be, you know, 1,000 picojoules.

**Swyx** [33:10]
Oh.

**Jeff Dean** [33:11]
Or-

**Swyx** [33:11]
Yeah

**Jeff Dean** [33:11]
... and so all of a sudden, this is why your accelerators, uh, require batching. Because if you move, like, say, the parameter of a model from SRAM on the, on the chip into the multiplier unit, that's gonna cost you 1,000 picojoules, so you better make use of that, that thing that you moved-

**Swyx** [33:30]
Mm

**Jeff Dean** [33:30]
... many, many times with... So that's where the batch dimension comes in. Because all of a sudden, you know, if you have a batch of 256 or something, that's not so bad. But if you have a batch of one, that's really not good.

**Swyx** [33:41]
Yeah, yeah.

**Jeff Dean** [33:42]
Right? Because then you paid 1,000 picojoules in order to do-

**Swyx** [33:44]
Oh, right. Yeah

**Jeff Dean** [33:45]
... your one picojoule multiply.

**Swyx** [33:47]
I have never heard a energy-based analysis of batching.

**Jeff Dean** [33:51]
Yeah. I mean, that's why people batch, right?

**Swyx** [33:52]
Yeah, yeah, yeah.

**Jeff Dean** [33:53]
But, uh, ideally you'd like to use batch size one, because the latency would be great.

**Swyx** [33:56]
Yeah, the best latency.

**Jeff Dean** [33:57]
But the energy cost and the, the compute cost inefficiency that you get, um, is, is quite large. So-

**Swyx** [34:04]
Yeah. Is there a symmetric like, uh, like, like you did with, uh, you know, uh, with putting everything in memory? Like, you know, I think, uh, obviously Nvidia has caused a lot of waves with, uh, betting very hard on, on SRAM with Groq.

Uh, I, I, I wonder if, like, that's something that you already saw with, with the TPUs, right? Like that, that you had to, uh, to, to serve at your scale, uh, you probably sort of saw that coming. Like, what, what, what hardware, uh, innovations or insights were formed because of what you're seeing there?

**Jeff Dean** [34:34]
Yeah, I mean, I think, you know, TPUs have this nice, uh, sort of regular structure of 2D or 3D meshes with a bunch of chips connected.

**Swyx** [34:43]
Yeah.

**Jeff Dean** [34:43]
And each one of those has HBM attached. Um, I think for serving some kinds of models, uh, you know, you, you pay a lot higher cost and time latency, um, bringing things in from HBM than you do bringing them in from, uh, SRAM on the chip.

So if you have a small enough model, you can actually do model parallelism, spread it out over lots of chips, and you actually get quite good throughput improvements and latency improvements from doing that. And so you're now sort of striping your smallish scale model over, say, 16 or 64 chips.

Uh, but if, if you do that and it all fits in the SRAM, uh, that can be a big win. So yeah, that's not a surprise- ... but it is a good technique.

**Swyx** [35:28]
Yeah.

**Alessio** [35:28]
But, uh, what about the TPU design? Like, how much do you decide where the improvements have to go? So, like, uh, this is, like, a good example of, like, is there a way to bring the 1,000 picojoule down- joules down to 50?

**Jeff Dean** [35:42]
Mm-hmm.

**Alessio** [35:42]
And, like, is it worth designing a new chip to do that? The extreme is, like, when people say, "Oh, you should burn the model on the ASIC," and that's-

**Jeff Dean** [35:49]
Mm-hmm

**Alessio** [35:49]
... kinda like the most extreme thing.

**Jeff Dean** [35:50]
Mm-hmm.

**Alessio** [35:51]
How much of it is it worth doing in hardware when things change so quickly? Like what-

**Jeff Dean** [35:56]
Yeah

**Alessio** [35:56]
... what's the internal discussion?

**Jeff Dean** [35:58]
Yeah, I mean, we, we have a lot of interaction between, say, the TPU chip design architecture team and the sort of higher level modeling, uh, experts. Because we really wanna take advantage of being able to co-design what should future TPUs look like based on where we think the sort of ML research puck is going, uh, in some sense.

Because, uh, you know, as a hardware designer for ML in particular, you're trying to design a chip starting today, and that design might take two years before it even lands in a data center, and then it has to sort of be l- A reasonable lifetime of the chip to take you three, four or five years.

So you're trying to predict two to six years out where what ML computations will people wanna run two to six years out in a very fast-changing field. And so having people with interesting ML research ideas of things we think will start to work in that timeframe or will be more important in that timeframe, uh, really enables us to then get, you know, interesting hardware features put into, you know, TPU N+2, where TPU N is what we have today.

**Swyx** [37:10]
Oh, the cycle time is plus two.

**Jeff Dean** [37:12]
Y- roughly. I mean-

**Swyx** [37:13]
Wow

**Jeff Dean** [37:14]
... because, uh, I mean, sometimes you can squeeze some changes into N+1, but you know, bigger changes are gonna require-

**Swyx** [37:21]
Yeah

**Jeff Dean** [37:21]
... the chip design be earlier-

**Swyx** [37:23]
Mm

**Jeff Dean** [37:23]
... in its lifetime design process. Um, so whenever we can do that, it's generally good. And sometimes you can put in speculative features that maybe won't cost you much chip area, but if it works out, it would make something, you know, 10 times as fast.

And if it doesn't work out, well, you burned a little bit of tiny amount of your chip area on that thing, but it's not that big a deal. Uh, sometimes it's a very big change, and we wanna be pretty sure this is gonna work out, so we'll do, like, lots of careful, uh, ML experimentation to show us, uh, this is actually the, the way we wanna go.

**Swyx** [37:58]
Yeah.

**Alessio** [37:59]
I- is there a reverse of like, we already committed to this chip design, so we cannot take the model architecture that way because it doesn't quite fit?

**Jeff Dean** [38:07]
Yeah, I mean, you, you definitely have things where you're going to adapt what the model architecture looks like so that they're efficient on the chips that you're gonna have for both training and inference of that, of that, uh, uh, generation of model.

So I think it kinda goes both ways. Um, you know, sometimes you can take advantage of, you know, lower precision things-

**Alessio** [38:32]
Mm

**Jeff Dean** [38:32]
... that are coming in a future generation, so you can-- might train it at that lower precision even if the current generation doesn't quite, uh, do that.

**Alessio** [38:40]
Mm-hmm.

**Swyx** [38:41]
Yeah. How low can we go in precision? 'Cause people are saying like ternary is like-

**Jeff Dean** [38:46]
Uh. Yeah, I mean, I'm a big fan of very low precision 'cause I think that gets-- that saves you a tremendous amount of energy, right? 'Cause it's-

**Swyx** [38:53]
Mm-hmm

**Jeff Dean** [38:53]
... picojoules per bit that you're transferring. And-

**Swyx** [38:56]
Yeah

**Jeff Dean** [38:56]
... reducing the number of bits is a really good way to, to reduce that. Um, you know, I think people have gotten a lot of luck, uh, mileage out of having very low bit precision things, but then having scaling factors that apply to a whole bunch of, uh, those, those weights.

**Swyx** [39:13]
Scaling . Okay. Interesting. You-- So low, low precision, but scaled-up weights.

**Jeff Dean** [39:19]
Yeah.

**Swyx** [39:19]
Huh. Yeah, never considered that. Interesting. Uh, w- while we're on this topic, you know, I think there's a lot of, um, uh... Th- this, the concept of precision at all is weird when we're s-sampling, you know?

**Jeff Dean** [39:31]
Mm-hmm.

**Swyx** [39:31]
Uh, if maybe we just-- At the end of this, we're gonna have all these, like, chips that all do, like, very good math, and then we're just gonna throw a random number generator at the start and ... So I mean, I, I...

There's a movement towards, uh, energy-based, uh-

**Jeff Dean** [39:44]
Mm

**Swyx** [39:44]
... models and, and processors.

**Jeff Dean** [39:46]
Yep.

**Swyx** [39:46]
I'm just curious if you've-- Uh, obviously you've thought about it, but like, what's your commentary?

**Jeff Dean** [39:51]
Yeah, I mean, I think there's a bunch of interesting trends. So energy-based models is one. You know, diffusion-based models which don't sort of sequentially decode tokens is another.

**Swyx** [40:00]
Yes.

**Jeff Dean** [40:01]
Um, you know, speculative decoding is a way that you can get sort of an equivalent, very small-

**Swyx** [40:07]
Draft

**Jeff Dean** [40:07]
... batch factor, uh, for... Like, you predict eight tokens out, and that enables you to sort of increase the effective batch size of what you're doing by a factor of eight even-- And then you maybe accept five or six of those tokens, so you get fi- a five X improvement in the amortization of moving weights, uh, into the multipliers to do the prediction for the, the tokens.

So these are all really good techniques, and I think it's really good to look at them from the lens of, uh, energy. Real energy, not energy-based models. Um, and, and also latency and throughput, right? If you look at things from that lens, that sort of guides you to solutions that are gonna be, uh, you know, better from, uh, you know, being able to serve larger models or, you know, equivalent size models more cheaply and with lower latency.

**Swyx** [41:04]
Yeah. Well, yeah, I think, I think I, um... It's appealing intellectually. Uh, haven't seen it, like, really hit in the mainstream, but um, I do think that, uh, there's some poetry in the sense that, uh, you know, we don't have to do, uh, a lot of shenanigans if, like, we fundamentally design it into the hardware.

**Jeff Dean** [41:23]
Yeah. Yeah. I mean, I think there's still a hu- there's also sort of the more exotic things, like analog-based, uh, uh, computing substrates as opposed to digital ones. Uh, I'm-- You know, I think those are super interesting 'cause they can be potentially low power.

**Swyx** [41:38]
Mm.

**Jeff Dean** [41:39]
Uh, but I think you often end up wanting to interface that with digital systems, and you end up losing a lot of the power advantages in the digital to analog and analog to digital conversions-

**Swyx** [41:48]
Mm

**Jeff Dean** [41:48]
... you end up doing, uh, at the sort of boundaries and periphery of that system.

**Swyx** [41:52]
Mm.

**Jeff Dean** [41:53]
Um, I still think there's a tremendous distance we can go from where we are today in terms of energy efficiency with sort of, uh, much better and specialized hardware for the models we care about.

### Open Problems

**Swyx** [42:06]
Yeah.

**Alessio** [42:07]
Um, any other interesting research ideas that you've seen or like maybe things that you cannot pursue at Google that you would be interested in seeing researchers take a stab at? I guess you have a lot of researchers.

**Jeff Dean** [42:19]
Yeah, yeah, we have a lot of researchers.

**Alessio** [42:20]
I guess you have enough, but ...

**Jeff Dean** [42:21]
Our, our research portfolio is pretty broad, I would say. Um, I mean, I think, uh, in terms of research direction, there's a whole bunch of, uh, you know, open problems and how do you make these models reliable and able to do much longer kind of, uh, more complex tasks that have lots of sub-tasks.

How do you orchestrate, you know, uh, maybe one model that's using other models as tools in order to sort of build, uh, things that can accomplish- Uh, you know, much more significant pieces of work, uh, collectively than you would ask a single model to do.

Um, so that's super interesting. How do you get more verifiable, uh, you know, how do you get RL to work for non-verifiable domains?

**Swyx** [43:04]
Mm-hmm.

**Jeff Dean** [43:05]
I think it's a s- pretty interesting open problem, because I think that would broaden out the capabilities of the models, the improvements that you're seeing in both math and coding, uh, if we could apply those to other less verifiable domains because we've come up with RL techniques that actually enable us to do that, uh, effectively.

That would, that would really make the models improve quite a lot, I think.

**Swyx** [43:27]
Hmm.

**Alessio** [43:27]
I'm curious, like when we had Noam Brown on the podcast, he said-

**Jeff Dean** [43:31]
Yeah

**Alessio** [43:31]
... um, they already proved you can do it with deep research.

**Jeff Dean** [43:33]
Mm-hmm.

**Alessio** [43:34]
Um, you kinda have it with AI mode in a way-

**Jeff Dean** [43:37]
Mm-hmm

**Alessio** [43:37]
... it's not verifiable. I'm curious if there's any thread that you think is interesting there. Like what is... Uh, uh, both are like information retrieval-

**Jeff Dean** [43:47]
Yeah

**Alessio** [43:47]
... adjacent.

**Jeff Dean** [43:47]
Yeah.

**Alessio** [43:47]
So I wonder if it's like the retrieval is like the verifiable part that you can score or what are like-

**Jeff Dean** [43:53]
Yeah.

**Alessio** [43:54]
Yeah, how, how would you model that, that problem?

**Jeff Dean** [43:56]
Yeah, I mean, I think there are ways of having other models that can evaluate the results of what a first model did. Maybe in retrieving, can you have another model that says, "Is this things... Are these things you retrieved relevant," or can you rate these 2,000 things you retrieved to assess which ones are the 50 most relevant or something.

Um, I think those kinds of techniques are actually quite effective. Sometimes that can even be the same model just prompted differently to be-

**Alessio** [44:24]
Mm

**Jeff Dean** [44:24]
... a, you know, a critic as opposed to a, uh, actual retrieval system.

**Swyx** [44:28]
Yeah. Um, uh, I, I do think like there, there is that, that weird cliff where like w- it feels like we've done the easy stuff, and then now it's-

**Jeff Dean** [44:37]
Yeah

**Swyx** [44:37]
... it, it, but it always feels like that. Like every year it's like, "Oh, like we know what we know, and the next part is super hard and nobody's figured it out." And, uh, like the-

**Jeff Dean** [44:46]
Yeah

**Swyx** [44:47]
... but why exactly with this RLVR thing where like everyone's talking about, "Well, okay, how do we do the next stage of the non-verifiable stuff?"

**Jeff Dean** [44:54]
Mm-hmm.

**Swyx** [44:54]
And everyone's like, "I don't know." You know, "I'll let judge it."

**Jeff Dean** [44:57]
Yeah. I mean, I feel like the nice thing about this field is there's lots and lots of smart people thinking about creative solutions to some of the-

**Swyx** [45:05]
Yeah

**Jeff Dean** [45:05]
... problems that we all see. Uh, because I think everyone sort of sees that the models, you know, are great at some things, and they fall down around the edges of those things and, and are not as capable as we'd like in those areas.

And then coming up with good techniques and trying those and seeing which ones actually make a difference is sort of what the whole research aspect of this field is, is pushing forward. And I think that's why it's super interesting.

You know, if you think back two years ago, we were struggling with GSM8K problems, right?

**Swyx** [45:34]
Mm-hmm.

**Jeff Dean** [45:34]
Like, you know, Fred has two rabbits. Uh, he gets three more rabbits. How many rabbits does he have? That's a pretty far cry from the kinds of mathematics that the models can-

**Swyx** [45:44]
And now you're doing IMO-

**Jeff Dean** [45:45]
... can solve IMO and-

**Swyx** [45:46]
... yeah, goals

**Jeff Dean** [45:47]
... yeah, and Erdős pr- um, problems and what not, yeah.

**Swyx** [45:48]
In pure language. Yeah.

**Jeff Dean** [45:50]
Yeah, pure language. So that is a really, really amazing jump in capabilities in, you know, a year and a half or something. And I think, um, for other areas, it'd be great if we could make that kind of leap.

Uh, and you know, we don't exactly see how to do it for some, some areas, but we do see it for some other areas, and we're gonna work hard, hard on making that better.

**Swyx** [46:14]
Yeah.

**Alessio** [46:14]
Yeah. Like YouTube thumbnail generation, that would be very helpful.

**Swyx** [46:18]
We need that. That would be AGI.

**Alessio** [46:20]
We need-

**Swyx** [46:20]
For, for as far as content creators go.

**Alessio** [46:22]
YouTube thumb-

**Jeff Dean** [46:22]
I guess I'm not a YouTube creator so I don't care that much about that problem. But I guess, uh, many people do.

**Swyx** [46:28]
It do- uh, yeah, it doesn't, it doesn't matter. People do judge books by their covers, as it turns out.

**Jeff Dean** [46:32]
Oh, got it. Yeah.

**Swyx** [46:33]
Um, uh, just to drill a bit on the IMO goal, um, I'm still not over the fact that a year ago we had alpha proof and, uh, alpha geometry and all those things, and then this year we were like, "Screw that.

We'll just chuck it into Gemini."

**Jeff Dean** [46:47]
Yeah.

**Swyx** [46:47]
What's your reflection? Like I think this, this question about- ... like the merger of like symbolic systems and like, and, and LLMs, uh, was a very much core belief, and then somewhere along the line people just said, "Nope, we'll just all do it in LLM."

**Jeff Dean** [47:03]
Yeah, I mean, I think it makes a lot of sense to me because, you know, humans manipulate symbols, but we probably don't have like a symbolic representation in our heads.

**Swyx** [47:14]
Mm-hmm.

**Jeff Dean** [47:14]
Right? We have some distributed representation that is neural net-like in some way of lots of different neurons and activation patterns firing when we see certain things, and that enables us to reason and plan and, you know, do chains of thought and, you know, roll them back.

"No, that, that approach for solving the problem doesn't seem like it's gonna work. I'm gonna try this one." And you know, in a lot of ways we're emulating what we intuitively think, uh, is happening inside real brains in neural net-based models.

So it never made sense to me to have like completely separate, discrete, uh, symbolic things and then a completely different way of, of, um, you know, thinking about those things.

**Swyx** [48:00]
Interesting.

**Alessio** [48:01]
Yeah. Uh, uh, I mean, uh, it, it, it's... It maybe seems obvious to you, but it wasn't obvious to me a year ago.

**Jeff Dean** [48:06]
Yeah, I mean, I do think like that IMO with, you know, translating to Lean and using Lean, and then the next year, a- and also a specialized geometry model, and then this year switching to a single unified model that is roughly the production model with a little bit more inference budget, uh, is actually, you know, quite good because it shows you that the capabilities of that general model-

**Swyx** [48:31]
Yeah

**Jeff Dean** [48:31]
... have improved dramatically and, and now you don't need the specialized models. This is actually sort of very similar to the 2013 to '16 era of machine learning, right? Like it used to be people would train separate models for lots of different...

each different problem, right? I have-- I wanna recognize street signs and some things, so I train a street sign recognit- recognition model, or I wanna decode speech recognition, I have a speech model, right? I think now the era of unified models that do everything is really upon us, and the question is, how well do those models generalize to new things they've never been asked to do?

**Swyx** [49:09]
Yeah.

**Jeff Dean** [49:09]
And-

**Swyx** [49:09]
Yeah

**Jeff Dean** [49:10]
... they're getting better and better.

**Swyx** [49:11]
And y- y- you don't need domain experts. Like one of my, uh... So I interviewed Yi Tay-

**Jeff Dean** [49:14]
Mm-hmm. Yep

**Swyx** [49:14]
... who was on, who was on that team. Uh, and he was like, "Yeah, I, I don't know how they work. I don't know where the IMO competition was held. I don't know the rules of it. I just train the models."

"I'm good at training models."

**Jeff Dean** [49:25]
Yeah. Yeah.

**Swyx** [49:26]
And it's kind of interesting that, like, people with these, this like universal skill set of just like machine learning-

**Jeff Dean** [49:31]
Mm-hmm

**Swyx** [49:31]
... you just give them data and give them, uh, enough compute, and they can kinda tackle any task, which is-

**Jeff Dean** [49:36]
Yeah. Right

**Swyx** [49:37]
...

**Jeff Dean** [49:38]
And, and-

**Swyx** [49:38]
The bitter lesson, I guess. I don't know.

**Jeff Dean** [49:39]
Yeah. Yeah. I mean, I think, uh, general models, uh, will win out over specialized ones in most cases.

**Swyx** [49:46]
Yeah. Uh, uh, so I wanna push there a bit.

**Jeff Dean** [49:48]
Mm-hmm.

**Swyx** [49:48]
I think there's one hole here, which is like, uh, there's this concept of like, uh, maybe capacity of a model.

**Jeff Dean** [49:54]
Mm-hmm.

**Swyx** [49:54]
Like abstractly, a model can only contain the number of bits that it has.

**Jeff Dean** [49:58]
Mm-hmm.

**Swyx** [49:59]
And, uh, and so it, you know, God knows, like Gemini Pro is like one to 10 trillion parameters. We don't know. But, uh, the Gemma models, for example, right? Like a lot of people want like the open source local models that are like the, the, the...

And, and, uh, they have some knowledge which is not necessary, right? Like they can't know everything.

**Jeff Dean** [50:19]
Yeah.

**Swyx** [50:19]
Like, like you have the luxury of you have the big model, and big models should be able, capable of everything.

**Jeff Dean** [50:25]
Mm-hmm.

**Swyx** [50:25]
But like when, when you're distilling and you're going down to the small models, you know you're actually memorizing things that are not useful.

**Jeff Dean** [50:31]
Yeah.

**Swyx** [50:32]
And so like how do we... I guess, d- do we want to extract that? Can we ext- can we divorce knowledge from reasoning, you know?

**Jeff Dean** [50:39]
Yeah, I mean, I think you do want the model to be most effective at reasoning if it can retrieve things, right?

**Swyx** [50:46]
Yes.

**Jeff Dean** [50:46]
Because having the model devote precious parameter space to remembering obscure facts-

**Swyx** [50:53]
Yeah

**Jeff Dean** [50:53]
... that could be looked up is actually not the best use of that parameter space, right? Like you might prefer something that is more generally useful in more settings than this obscure fact that it has. Um, so I think that's always a tension.

At the same time, you also don't want your model to be kind of completely detached from, you know, knowing stuff about the world, right? Like it's probably useful to know how long the Golden Gate Bridge is, just as a general sense of like how long are bridges, right?

And, uh, it should have that kind of knowledge. It maybe doesn't need to know how long some teeny little bridge in some other more obscure part of the world is. But, uh, it does help it to have a fair bit of world knowledge, and the bigger your model is, the more you can have.

Uh, but I do think combining retrieval with sort of reasoning and making the model really good at doing multiple stages of retrieval and reasoning through the intermediate retrieval results is gonna be a, a pretty effective way of making the model seem much more capable.

'Cause if you think about, say, a personal Gemini.

**Swyx** [52:01]
Yeah.

**Jeff Dean** [52:02]
Right? Like we're not gonna train Gemini on my email probably. We'd rather have a single model that, uh, we can then use and use being able to retrieve from my email as a tool and have the model reason about it and retrieve from my photos or whatever, uh, and then make use of that and have multiple, um, you know, uh, stages of interaction.

**Swyx** [52:24]
Hmm.

### Vertical Models

**Jeff Dean** [52:24]
If that makes sense.

**Alessio** [52:25]
Do you think the vertical models are like a interesting pursuit? Like when people are like, "Oh, we're building the best healthcare LLM. We're building the best law LLM," are those kind of like short-term stopgaps, or?

**Jeff Dean** [52:38]
No. I mean, I think, I think vertical models are interesting. Like you want them to start from a pretty good base model, but then you can sort of... I, I sort of viewing them, view them as enriching the data distribution for that particular vertical domain, for healthcare, say.

Um, we're probably not gonna train, or for, say, robotics.

**Alessio** [52:58]
Mm-hmm.

**Jeff Dean** [52:58]
We're probably not gonna train Gemini on all possible robotics data we- you could train it on, because we want it to have a balanced set of capabilities. Um, so we'll expose it to some robotics data, but if you're trying to build a really, really good robotics model, you're gonna wanna start with that and then train it on more robotics data.

And then maybe that would hurt its multilingual translation capability, but improve its robotics capabilities. And we're always making these kind of, uh, you know, trade-offs in the data mix that we train the base Gemini models on. You know, we'd love to include data from 200 more languages-

**Alessio** [53:36]
Mm-hmm

**Jeff Dean** [53:36]
... uh, and as much data as we have for those languages.

**Swyx** [53:38]
Mm-hmm. Yeah.

**Jeff Dean** [53:40]
But that's gonna displace some other capabilities of the model. It won't be as good at, um, you know, Perl programming. You know, it'll still be good at Python programming 'cause we'll include enough of that, but there's other long tail computer languages or coding capabilities that it may suffer on, or multi- uh, multimodal reasoning capabilities may suffer 'cause we didn't get to expose it to as much data there, but it's really good at multilingual things.

So I, I think some combination of specialized models, maybe more modular models. So it'd be nice-

**Alessio** [54:11]
Mm-hmm

**Jeff Dean** [54:11]
... to have the capability to have those 200 languages, plus this awesome robotics model, plus this awesome healthcare, uh, module that all can be knitted together to work in concert and called upon in different circumstances, right?

**Alessio** [54:26]
Yeah.

**Jeff Dean** [54:26]
Like if I have a health related thing, then it should enable using this health module in conjunction with the main base model to be even better at those kinds of things.

**Alessio** [54:36]
Yeah.

**Swyx** [54:36]
I-

**Alessio** [54:36]
Installable knowledge.

**Jeff Dean** [54:38]
Yeah.

**Alessio** [54:38]
Right? Just download as a, as a package.

**Jeff Dean** [54:40]
And some of that installable stuff can come from retrieval-

**Alessio** [54:43]
Yeah

**Jeff Dean** [54:43]
... but some of it probably should come from-

**Alessio** [54:45]
Just preloaded. Yeah

**Jeff Dean** [54:46]
... training on-

**Alessio** [54:47]
Yeah

**Jeff Dean** [54:47]
... you know, uh, 100 billion tokens or a trillion tokens of health data.

**Alessio** [54:51]
Yeah.

**Swyx** [54:51]
Right.

**Alessio** [54:51]
And for listeners, I think, uh, I will highlight the Gemini 3N paper where they... there was a little bit of that, I think.

**Jeff Dean** [54:56]
Yeah.

**Alessio** [54:57]
Yeah, I guess the question is like-

**Swyx** [54:58]
How many billions of tokens do you need to outpace the frontier model-

**Jeff Dean** [55:04]
Mm-hmm

**Swyx** [55:05]
... improvements? You know, it's like if I have to make this model better at healthcare, and the main Gemini model is still improving-

**Jeff Dean** [55:11]
Mm-hmm

**Swyx** [55:12]
... do I need 50 billion tokens? Can I do it with 100? If I need a trillion healthcare tokens, it's like they're probably not out there that you don't have. You know, I think that's really, like, the challenge.

**Jeff Dean** [55:22]
Well, I mean, I think healthcare is a particularly challenging domain.

**Swyx** [55:25]
Right.

**Jeff Dean** [55:25]
And so there's a lot of healthcare data that, you know, we don't have access to appropriately, but there's a lot of, you know, uh, healthcare organizations that want to train models on their own data that is not public healthcare data.

Uh, not public health, but public healthcare data. Um, so I think there are opportunities there to, say, partner with a large healthcare organization and train models for their use that are gonna be, you know, more bespoke, but probably, uh, might be better than a general model trained on-

**Swyx** [55:58]
Mm-hmm

**Jeff Dean** [55:58]
... say, public data.

**Swyx** [55:58]
Yeah.

**Jeff Dean** [55:59]
Yeah.

**Swyx** [55:59]
Uh, uh, I believe, uh... By the way, also, this is, like, somewhat related to the language conversation. Uh, I think one of your, your favorite examples was you can put a low-resource language into context-

**Jeff Dean** [56:08]
Mm-hmm

**Swyx** [56:08]
... and it just learns in context.

**Jeff Dean** [56:10]
Oh, yeah. I think the example we used was Kalamang, which is- ... truly low resource, 'cause it's only spoken by, I think, 120 people in the world, and there's no-

**Swyx** [56:19]
Wow

**Jeff Dean** [56:19]
... written text.

**Swyx** [56:20]
Uh-huh. Yeah.

**Jeff Dean** [56:21]
So, yeah.

**Swyx** [56:22]
So, so you can just do it that way, just put it in the context.

**Jeff Dean** [56:25]
Yeah. Yeah, but I think-

**Swyx** [56:26]
Put your whole data set in the context, right?

**Jeff Dean** [56:27]
If you, if you take a language like, uh, you know, Somali or something, there is a fair bit of Somali text in the world that, uh... or Ethiopian Amharic or something. Um, you know, we probably are not putting all the data from those languages into the Gemini-based training.

We put some of it. But if you put more of it, you'll improve the capabilities of those models.

**Swyx** [56:50]
Yeah.

**Jeff Dean** [56:50]
So, or of those languages.

**Swyx** [56:52]
Uh, s- yeah, cool. Uh, uh, it's, uh, the... I, I have a side interest in linguistics. I, I, I, I did a, uh, a few classes in, back in college, and I... Part of me, like, if I was a linguist and I could, I have access to all these models, I, I would just be asking really fundamental questions about language itself.

Like, uh, one is... Th- there's one very ex- obvious one, which is Sapir-Whorf. Like, how much does, like, the language that you speak affect your thinking? But then also there are some languages where there's just concepts that are not represented in other languages.

But so- others, many others that are just duplicates, right? Where, uh, there's also an- another paper that people love called the Platonic representation, where, you know, like, the, the, uh, an image of a cup is, uh, if you say learn a model on that, and you, you, you have a lot of text with the word "cup," it eventually maps to, like, roughly the same place-

**Jeff Dean** [57:40]
Mm-hmm

**Swyx** [57:40]
... in latent space. And so, like, that should apply to languages-

**Jeff Dean** [57:43]
Mm

**Swyx** [57:43]
... except where it doesn't, and that's actually, like, very interesting differences in what humanity has discovered as concepts that maybe English doesn't have.

**Jeff Dean** [57:53]
Mm-hmm.

**Swyx** [57:55]
I, I don't know. It's just, like, my, my rant on languages.

**Jeff Dean** [57:58]
Yeah. I mean, w- I, I did some work on a early model that fused together a language-based model where you have, you know, nice word-based representations, and then an image mo- model where you have trained it on Im- ImageNet-like things.

**Swyx** [58:12]
Yes.

**Jeff Dean** [58:13]
And then you fuse together the top layers of the-

**Swyx** [58:15]
This Flamingo?

**Jeff Dean** [58:15]
Uh, no, this is Devise.

**Swyx** [58:17]
Devise.

**Jeff Dean** [58:18]
Uh, uh, the... You do a little bit more training to fuse together those representations. And what you found was that if you give a novel image that is not in any of the categories in the image model it was trained on, the model can often as- assign kind of the right ca- the right label to that image.

Um, so for example, um, I think, uh, telescope and, uh, binoculars were both in the training, uh, categories for the image model, but, um, microscope was not.

**Swyx** [58:51]
Hmm.

**Jeff Dean** [58:51]
And so if you're given an image of a microscope, it actually can come up with something that's, uh, got the word microscope as the label that it assigns, even though it's never actually seen-

**Swyx** [59:00]
Hmm

**Jeff Dean** [59:00]
... an image labeled that.

**Swyx** [59:02]
Oh, that's nice generalization.

**Jeff Dean** [59:03]
So that's kind of cool. Yeah.

**Swyx** [59:04]
Yeah.

**Jeff Dean** [59:05]
Um, so yeah.

**Swyx** [59:08]
Useful. Uh, cool. Uh, I think there, there's more general, like, broad questions, but, like, I guess, what, what do you, uh, wish you were asked more in, in, in general? Like, you know, like, you, you have such a broad scope.

### Early Days

**Swyx** [59:19]
We've covered the hardware. We've covered the, the, the models research, um-

**Jeff Dean** [59:23]
Yeah. I mean, I think, uh, one thing that's kind of interesting is, you know, I, I did a undergrad thesis on neural network, uh, training, uh, uh, parallel neural network training, uh, back in 1990 when I got exposed to, to neural nets, and I always felt kind of they were the right abstraction, but we just needed way more compute than we had then.

**Swyx** [59:43]
Mm-hmm.

**Jeff Dean** [59:43]
So, like, the 32 processors in the department parallel computer, you know, could get you a, a little bit more interesting, um, model, but not, not enough to solve real problems. And so starting in 2008 or '9, you know, the world started to have enough computing power through Moore's Law and, you know, larger interesting data sets to train on to actually, you know, start training neural nets that could tackle real problems that people cared about, speech recognition, vision, and eventually, uh, language.

Um, and so, um, when I started working on neural nets at Google in, in late 2011, um, you know, I really just felt like we should scale up the size of neural networks we can train using, you know, large amounts of parallel computation.

And so I actually, uh, revived some ideas for my undergrad thesis where I'd done both model parallel and data parallel, uh, training, and I compared them.

**Swyx** [1:00:38]
Hmm. Huh.

**Jeff Dean** [1:00:39]
I, I called them something different. They were, like, pattern partitioned and, you know, model partitioned or something.

**Swyx** [1:00:44]
We'll have to... Is it, is it public? Can we go dig it up?

**Jeff Dean** [1:00:46]
Yeah, it's on, it's on the web.

**Swyx** [1:00:47]
Okay.

**Jeff Dean** [1:00:48]
Um-

**Swyx** [1:00:48]
Nice

**Jeff Dean** [1:00:48]
... but, uh, you know, I think combining a lot of those techniques and really just trying to push on scaling things up over the last, you know, 15 years has been, you know, really important, and that means- You know, improvements in the hardware, so, you know, pushing on building specialized hardware like TPUs.

Uh, it also means, you know, pushing on software abstraction layers to let people express ML ideas, uh, effectively. Um, and then also working on things like, uh, say, sparse models. I've, I've felt for a long time that sort of sparsely activated models are a really important thing because you want the models to have a lot of capacity, to our earlier discussion about remembering a lot of stuff.

**Swyx** [1:01:29]
Yeah.

**Jeff Dean** [1:01:30]
But you also want to be super efficient in how you activate your models, so you'd like, you know, trillions of parameters, but activate only, you know, one, 1% or 5% or 10% of that. And, um, that, you know, we did a early, um, paper on this where we really scaled up, um, you know, outrageously large neural networks.

**Swyx** [1:01:53]
That was the title of the paper.

**Jeff Dean** [1:01:54]
Yeah, I think, I think that's Noam's, uh-

**Swyx** [1:01:55]
Yeah

**Jeff Dean** [1:01:55]
... Noam's wording in the title, which is a good catchy title.

**Swyx** [1:01:58]
I mean, in 2017 he was-

**Jeff Dean** [1:01:59]
Yeah

**Swyx** [1:01:59]
... out there talking about 1 trillion parameter models.

**Jeff Dean** [1:02:01]
Yes. Yeah, so I mean- ... that, that, that is really good because that gave you, like, a 10X improvement in, you know, time to quality or compute cost to qual- a given quality level relative to non-sparse models. Um, transformers similarly gave you a 10X to 100X improvement in, you know, uh, compute cost to a given quality level, uh, versus, say, LSTMs at the time.

And all of those things multiply together. Um, so I think all those things really are important to work on. You know, the hardware, the systems infrastructure, the, you know, algorithmic aspects of model architecture, the improving the data, you know, improving the RL recipes.

All these things, uh, are what are stacking together and multiplying together-

**Swyx** [1:02:48]
Yeah

**Jeff Dean** [1:02:48]
... to give us models of 2026 are much more better than models of '25, and are awesomely better than '24 and '23 and '22.

**Swyx** [1:02:59]
And, and a huge, um, hon- honestly, like, organizational challenge. Like, this is like 1,000 people or maybe more. I don't have the number. I think I know, I know when the first Gemini paper came out, it was, like, 1,000 co-authors.

### Gemini Merge

**Jeff Dean** [1:03:08]
Yeah, yeah. We have, uh, 10 pages of co-authors- ... in the, in the checker part.

**Swyx** [1:03:14]
But yeah, it was nice. I mean, you know, people wanna be acknowledged-

**Jeff Dean** [1:03:16]
Yeah

**Swyx** [1:03:16]
... on, like a-

**Jeff Dean** [1:03:16]
No, I, I-

**Swyx** [1:03:16]
... probably a historical paper.

**Jeff Dean** [1:03:18]
Yeah. I mean, I think it's perfectly good to have actually a lot of co-authors, and I do think organizing that number of people so that they're effectively pushing in common directions, that, that all, all their work actually sort of multiplies together in the ultimate output, which is, you know, the next generation of model, is actually pretty tricky.

And we have awesome people, uh, throughout the Gemini team to help orchestrate this. So, you know, myself, Noam, and Oriol are sort of helping steer this. And then we have people thinking about, you know, what does the pre-training, uh, setup look like?

What does the infrastructure look like? What does the post-training recipe look like? And what does the data preparation entails? And, you know, mul- multimodal capabilities and i18n capabilities.

**Swyx** [1:04:04]
Mm.

**Jeff Dean** [1:04:05]
Um, you know, there's a lot of different kinds of areas. Coding capabilities. All these areas are, are super important, and it's really good to have people, uh, paying close attention to those things and then, uh, also paying close attention to all the other things.

**Swyx** [1:04:19]
Yeah. I, I'm told Sergey is, like, very actively back and like-

**Jeff Dean** [1:04:22]
Yep

**Swyx** [1:04:22]
... very much involved-

**Jeff Dean** [1:04:24]
Yeah, yeah. He's, uh-

**Swyx** [1:04:24]
... in the coding stuff.

**Jeff Dean** [1:04:25]
Yep. Yeah, yeah, yeah. We all use the same microkitchen.

**Swyx** [1:04:29]
Yeah. Uh, oh, okay. Like, there's so many of... Jumping off, like... Uh, so by the way, I found out from, uh, the recent, uh... I mean, you've probably told this story a, a few times, but apparently Google Brain was also started in a microkitchen.

**Jeff Dean** [1:04:39]
Yeah, yeah.

**Swyx** [1:04:39]
I actually bumped- It feels like your microkitchens are very important.

**Jeff Dean** [1:04:43]
Yeah, yeah.

**Swyx** [1:04:43]
I don't know if people, like, understand.

**Jeff Dean** [1:04:46]
Yeah. Uh, yeah, I actually bumped into Andrew Ng, who's a Stanford faculty member, and, uh, I knew him from... I'd given talks at Stanford a couple years before, so I sort of knew him. And I'm like, "Oh, what are you doing here?"

He's like, "Oh, I'm not sure yet. I just started, you know, a couple weeks ago. I'm gonna spend one day a week here consulting. Um, I'm not sure what I'm working on, but my students at Stanford are starting to get good results, um, on using, um, neural nets for speech, uh, recognition."

I'm like, "Oh, neural nets. I like neural nets." Like I remembered back to my 1990-

**Swyx** [1:05:17]
You were a good undergrad student

**Jeff Dean** [1:05:17]
... thesis.

**Swyx** [1:05:17]
Yeah.

**Jeff Dean** [1:05:17]
I'm like, "Oh, that sounds interesting. We should train really, really big neural nets." So that was the-

**Swyx** [1:05:22]
Which you say that, and I think that's a very interesting first instinct-

**Jeff Dean** [1:05:26]
Mm-hmm

**Swyx** [1:05:26]
... which is that we should scale this up a lot.

**Jeff Dean** [1:05:28]
Yeah. Well- ... I mean, I felt like Google is, is-- has lots of computational-

**Swyx** [1:05:35]
Yeah

**Jeff Dean** [1:05:35]
... uh, capability. And so if they were seeing good results on, you know, what were effectively single GPU or, uh, models, you know, if we were, uh... We actually didn't have GPUs in our data centers then. We didn't have any accelerators.

We had lots of CPUs. But, you know-

**Swyx** [1:05:53]
Yeah

**Jeff Dean** [1:05:53]
... we could build a software system that would enable you to distribute with both model parallelism and data parallelism across lots of computers, and we ended up training a pretty big model. It was 50X bigger than any previous neural net as far as we could tell.

Um, so it's 2 billion parameters, uh, vision model, uh, trained on 16,000 CPU cores for, like, multiple weeks. Uh, and that's what gave us really good-- It gave us a 70% relative error improvement in ImageNet 22K, which is the 22,000 category thing.

And that's how we really saw, okay, scaling this up actually matters. We didn't write a, you know, a sophisticated scaling analysis, but we had a, a saying. Bigger model, more data, better results.

**Swyx** [1:06:38]
Oh.

**Jeff Dean** [1:06:38]
And that was our-

**Swyx** [1:06:38]
Really the starting scale-

**Jeff Dean** [1:06:39]
... our mantra for, like, six or seven years-

**Swyx** [1:06:41]
Oh, yeah

**Jeff Dean** [1:06:42]
... of scaling, and we w- every time we did that, we saw better results in speech, in language, in, in-

**Swyx** [1:06:47]
Yeah

**Jeff Dean** [1:06:47]
... vision.

**Swyx** [1:06:49]
Uh, speaking of, um, bets, and this might, and this might, you know... I'll preface with, like, this might be a little bit more sensitive topic, but you have, uh, obviously a lot of opinions about this. We had a previous guest, David Luan, who used to work for you, and, uh, he, he kind of, like, blames almost the brain marketplace as, like, the reason that Google didn't invest enough in language models.

And I wonder-

**Jeff Dean** [1:07:10]
Hmm

**Swyx** [1:07:10]
... if that's-

**Alessio** [1:07:11]
... uh, something you would a- you would agree with at the time? Or, uh, is there like a different sort of postmortem?

**Jeff Dean** [1:07:16]
The Brain marketplace for-

**Alessio** [1:07:18]
For-

**Jeff Dean** [1:07:18]
... compute quotas

**Alessio** [1:07:19]
... compute quotas.

**Jeff Dean** [1:07:20]
Yeah

**Alessio** [1:07:20]
Where basically he was like, "Okay, the f- like David worked at OpenAI-"

**Jeff Dean** [1:07:24]
Mm-hmm

**Alessio** [1:07:25]
... its VP Engine, then he worked at Google. He was like, "Fundamentally, OpenAI was willing to go all in, like bet the farm on one thing."

**Jeff Dean** [1:07:30]
Mm-hmm.

**Alessio** [1:07:30]
Whereas Google was more democratic, like everyone had a, had a quota. And I was like, "Okay, like, like if, if you believe in scaling as an important thing, that's a, that's an important-"

**Jeff Dean** [1:07:39]
Mm-hmm

**Alessio** [1:07:39]
... organizational-wide decision to do."

**Jeff Dean** [1:07:42]
Yeah. Uh, yeah, I mean, I think, uh, I would somewhat agree with that. I mean, I think I actually wrote a one-page memo saying we were being stupid by, uh, fragmenting our resources.

**Alessio** [1:07:55]
Uh-huh.

**Jeff Dean** [1:07:56]
Um, so i- in particular at the time, we had, uh, you know, uh, r- efforts within Google research on, uh, and in, and in the Brain team in particular on large language models. We also had efforts on multimodal models, um, in, uh, other parts of Brain and, and Google research.

And then Legacy Deep Mind had, uh, efforts like, um, Chinchilla models and, uh, Flamingo models. Uh, and so really we were fragmenting not only our compute, uh, across those separate efforts, but also our best people and our best ideas, right?

And so I said, "This is just stupid. Why don't we combine things and have one effort to, uh, train-"

**Alessio** [1:08:41]
And this is the merge. Yeah

**Jeff Dean** [1:08:42]
... to train an awesome single unified model that is multimodal from the start that's good at everything. And that was the origin of the Gemini-

**Alessio** [1:08:51]
Yeah

**Jeff Dean** [1:08:52]
... effort. And, uh, my one-page memo worked, which is good.

**Alessio** [1:08:56]
Did you have the name? Because, uh, also for those who don't know, you named Gemini.

**Jeff Dean** [1:08:59]
I did. I did. Yeah. There was, there was another name proposed, and I, I said, "You know, it's sort of like these two organizations really are like, uh, twins-"

**Alessio** [1:09:09]
Twins

**Jeff Dean** [1:09:09]
... in some sense coming together."

**Alessio** [1:09:11]
Yeah.

**Jeff Dean** [1:09:11]
Um, so I kind of liked that. And then there's also the NASA interpretation of, you know-

**Alessio** [1:09:17]
Stars

**Jeff Dean** [1:09:17]
... the early Gemini project-

**Alessio** [1:09:18]
Oh, okay

**Jeff Dean** [1:09:19]
... uh, being, uh, an important thing on your way to, um, you know, the Apollo project. So it seemed like a good name. Twins coming together.

### AI Coding

**Alessio** [1:09:27]
Right. Yeah. Nice. Um, I know we're already running out of time, but I'm curious how you use AI today to code. So I mean, you're probably one of the most prolific engineers in the history of computer science. Um, I was reading on through the article about you and Sanjai's friendship and how-

**Jeff Dean** [1:09:44]
Mm-hmm

**Alessio** [1:09:44]
... you worked together, and you had one quote about, "You need to find someone that you're gonna pair program with, who's compatible with your way of thinking, so that the two of you together are a complementary force."

**Jeff Dean** [1:09:55]
Mm-hmm.

**Alessio** [1:09:55]
And I was thinking about how you think about coding agents in this.

**Jeff Dean** [1:09:58]
Yeah.

**Alessio** [1:09:59]
Like how do you shape a coding agents to be compatible with your way of thinking? Like how, how would you rate the tools today, and like where do you think, so?

**Jeff Dean** [1:10:07]
Yeah. I mean, first I think the coding tools are, you know, getting vastly better compared to where they were a year or two ago, two years ago. So now you can actually rely on them to do more complex things that you as a, as a software engineer want to accomplish, and you can sort of delegate, you know, pretty complex things to these tools.

And I think one really nice aspect about the, uh, interaction between a, a human, uh, software engineer and, uh, a coding model that they're working with is your way of talking to that, uh, coding model actually sort of, uh, dictates how it interacts with you, right?

Like you could ask it, "Please write a bunch of good tests for this." You could ask it, "Please help me brainstorm performance ideas." And your way of doing that is gonna shape how the model responds, what kinds of, uh, problems it tackles, you know, how much do you want the model to go off and do things that are larger and more independent versus interact with it, uh, more-

**Alessio** [1:11:11]
Mm

**Jeff Dean** [1:11:11]
... to make sure that you're shaping the right kinds of, of things. And I think it's not the case that any one style is the right thing for everything, right? Like some kinds of problems you actually want, uh, maybe a more frequent interaction style with the model, and other ones you're just like, "Yeah, please just go write this 'cause I, I know I need this thing.

I can specify it well enough, um, and go off and do it and come back when you're done." And so I do think there's gonna be more of a style of having lots of independent, uh, software agents off doing things on your behalf and figuring out the right sort of human computer interaction model and UI and so on for when should it interrupt you and say, "Hey, I need a little more guidance here," or, "I've done this thing, now what I, now what should I do?"

Um, I think we- we're not at the end all answer to that question, and as the models get better, that, uh, s- set of decisions you put into how the interaction should happen may, may change, right? Like, uh, if you, if you have a team of 50 interns, how would you manage that if they were people?

**Alessio** [1:12:18]
Mm.

**Jeff Dean** [1:12:18]
And, and I think it's not-

**Alessio** [1:12:19]
Do you want 50 interns?

**Jeff Dean** [1:12:21]
You might if they're really good, right?

**Alessio** [1:12:23]
That's a lot of management.

**Jeff Dean** [1:12:24]
But it, but it's a lot of, uh, uh, yeah. I mean, I think that is probably within the realm of possibilities that-

**Alessio** [1:12:32]
Yes, absolutely it is

**Jeff Dean** [1:12:32]
... lots of people could have 50 interns.

**Alessio** [1:12:34]
Yeah.

**Jeff Dean** [1:12:34]
And so how would you actually deal with that as a person, right? Like you would probably want them to form small subteams so you don't have to interact with 50 of them. You could interact with five of, five of those teams, and they're off doing things on your behalf.

But I don't know exactly what the, how this is gonna unfold.

**Alessio** [1:12:53]
Hmm.

**Jeff Dean** [1:12:53]
Yeah.

**Alessio** [1:12:54]
How do you think about bringing people-- Like the pair programming is always helpful to like get net new ideas-

**Jeff Dean** [1:13:00]
Mm-hmm

**Alessio** [1:13:00]
... and the distribution, so to speak. It feels as we have more of these coding agents write the code, it's hard to bring other people into the problem. Say you go to like, you know, you have 50 interns, right?

And then you wanna go to Noam Shazeer, be like, "Hey, Noam, I wanna like-" ... pair on this thing.

**Jeff Dean** [1:13:15]
Mm-hmm.

**Alessio** [1:13:15]
But now there's like this huge amount of work that has been done in parallel-

**Jeff Dean** [1:13:18]
Mm-hmm

**Alessio** [1:13:19]
... that you need to catch him up on.

**Jeff Dean** [1:13:20]
Right.

**Alessio** [1:13:21]
And I'm curious, like if people are gonna be in a way more isolated in their teams, where it's like, okay, there's so much context in these 50 interns that it's just hard for me to like relay everything back to you.

**Jeff Dean** [1:13:33]
Maybe. I mean, on the other hand, like imagine a classical software orga- organization without any AI assisted tools, right? You would have, you know, 50 people doing stuff, and their interaction style is gonna be naturally very hierarchical because, um, you know, these 50 people are gonna be working on this part of the system-

**Alessio** [1:13:55]
Mm-hmm

**Jeff Dean** [1:13:55]
... and not interact that much with these other people over here. But if you have, you know, f- five people each managing 50 virtual agents, you know, they might be able to actually have much higher bandwidth communication among the five people, uh-

**Alessio** [1:14:09]
Mm-hmm. Enough

**Jeff Dean** [1:14:10]
... than you would have among five people who are also trying to coordinate, you know, a 50 person software team each.

**Alessio** [1:14:16]
Yeah.

**Jeff Dean** [1:14:16]
So.

**Alessio** [1:14:16]
How, how, how do you... I'm curious how you change your just working rhythm, you know?

**Jeff Dean** [1:14:22]
Mm-hmm.

**Alessio** [1:14:22]
Like, do you spend more time ahead with people going through specs and design goals? Like...

**Jeff Dean** [1:14:27]
Um, I mean, I do think it's interesting that, you know, whenever people were taught how to write software, they were taught that it's really important to write specifications super clearly, but no one really believed that.

**Alessio** [1:14:40]
Mm-hmm.

**Jeff Dean** [1:14:40]
Like, it was like, "Yeah, whatever. I don't need to do that. I'm gonna-"

**Alessio** [1:14:43]
Really?

**Jeff Dean** [1:14:44]
I don't know. I mean, writing the English-

**Alessio** [1:14:46]
Nobody's gonna read that stuff

**Jeff Dean** [1:14:46]
... the English language specification was never kind of an artifact that was really paid a lot of attention to. I mean, it was important, but it wasn't sort of the thing that drove the actual creative process quite as much as if you specify what software you want the agent to write for you, you'd better be pretty darn careful in how you specify that, because that's gonna dictate the quality of the output, right?

**Alessio** [1:15:11]
Yeah.

**Jeff Dean** [1:15:11]
Like, if you, if you don't cover that it needs to handle this kind of thing, or that this is a super important corner case, or that, you know, you really care about the performance of this part of it, you know, it may, uh, not do what you want.

And the better you get at interacting with these models, and, and I think one of the ways people will get better is they will get really good at crisply specifying things rather than leaving things to ambiguity.

**Alessio** [1:15:38]
Mm-hmm.

**Jeff Dean** [1:15:39]
And that is actually probably not a bad thing. It's not a bad skill to have-

**Alessio** [1:15:42]
Yes

**Jeff Dean** [1:15:43]
... regardless of whether you're a software engineer or a, you know, trying to do some other kind of, uh, task. You know, being able to crisply specify what it is you want, it's gonna be really important.

**Swyx** [1:15:53]
Yeah. My, my joke is, um, you know, good prompting is in- uh, indistinguishable from sufficiently advanced executive communication. Like it's like writing an internal memo. Like-

**Jeff Dean** [1:16:03]
Yeah, yeah

**Swyx** [1:16:04]
... weigh your words very carefully. And also I think very important to be multimodal, right?

**Jeff Dean** [1:16:07]
Mm-hmm.

**Swyx** [1:16:07]
Like I think, uh, one thing that-

**Jeff Dean** [1:16:09]
Yeah

**Swyx** [1:16:09]
... uh, Antigravity from, from Google also did was like just come out the gate very, very strong on multimodal including videos.

**Jeff Dean** [1:16:14]
Mm-hmm.

**Swyx** [1:16:15]
And that's the highest bandwidth communication prompt that you can give the-

**Jeff Dean** [1:16:17]
Right. Yep

**Swyx** [1:16:19]
... the model-

**Alessio** [1:16:19]
Yeah

**Swyx** [1:16:19]
... which is fantastic.

**Jeff Dean** [1:16:20]
Yeah.

**Alessio** [1:16:21]
How, how do you collect things that you often you will have in your mind? So you have those amazing like performance hints-

**Jeff Dean** [1:16:27]
Mm-hmm

**Alessio** [1:16:27]
... thing that you've wrote about how to look for performance improvements. And is there a lot more value in like people writing these like generic things down so that they can then put them back as like potential retrieval artifacts for the model?

Like, or do I have... Like, the edge cases is like a good example, right? It's like-

**Jeff Dean** [1:16:45]
Mm

**Alessio** [1:16:45]
... if you're building systems, you already have in your mind specific edge cases-

**Jeff Dean** [1:16:48]
Mm-hmm

**Alessio** [1:16:48]
... depending on it. But now you have to like every time repeat it.

**Jeff Dean** [1:16:51]
Mm-hmm.

**Alessio** [1:16:51]
Like, are you having people spend a lot more time writing out more generic things to bring back or?

**Jeff Dean** [1:16:57]
Um, I mean, I do think well-written guides of, of how to do good software engineering are gonna be useful because they can be used as input to models or, you know, read by other developers so that their prompts are, you know, more clear about what the, the underlying software system should, should be doing.

Um, you know, I think it may not be that you need to create a custom one for every situation. If you have general guides and put those into, you know, the context of a coding agent, that, that can be helpful.

Like in... You can imagine one for distributed systems. You could say, "Okay, think about failures of these kinds of things, and these are some techniques you can deal with failures." You know, you can have, uh, you know, Paxos like replication or, you know, you can, uh, send the request to two places and tolerate failure because you only need one of them to come back.

You know, a little description of 20 techniques like that in building distributed systems probably would go a long way to having-

**Alessio** [1:18:01]
Mm-hmm

**Jeff Dean** [1:18:01]
... a coding agent be able to sort of cobble up more reliable and robust distributed systems.

**Alessio** [1:18:07]
Yep.

**Swyx** [1:18:08]
Yeah. Wonder when Gemini will be able to build Spanner.

**Jeff Dean** [1:18:12]
Right.

**Swyx** [1:18:13]
Probably already has the code inside, I don't know.

**Alessio** [1:18:17]
Yeah, that, I mean, that's a good example, right? When you have like, you know, the CAP theorem-

**Swyx** [1:18:20]
Mm-hmm

**Alessio** [1:18:20]
... and it's like, well, this is like truth-

**Jeff Dean** [1:18:24]
Mm-hmm

**Alessio** [1:18:24]
... and you cannot break that, and then you build something that broke it. Like, I'm curious, like, models in a way are like-

**Swyx** [1:18:30]
What did he say? He broke it. Did he, did he say he broke CAP theorem? Really? Yeah, okay. All right.

**Jeff Dean** [1:18:35]
I mean...

**Swyx** [1:18:37]
Under local assumptions.

**Jeff Dean** [1:18:38]
Yeah, under some assumptions.

**Swyx** [1:18:39]
Yeah, and they're like, you know-

**Alessio** [1:18:40]
Well, but-

**Swyx** [1:18:40]
... good clocks.

**Alessio** [1:18:41]
Yeah.

**Swyx** [1:18:41]
Yeah, it's like some- sometimes you don't have to like always follow what is known to be true.

**Alessio** [1:18:47]
Right.

**Swyx** [1:18:47]
And I, I think models in a way, like if you tell them something, they like really buy into that.

**Alessio** [1:18:52]
Mm-hmm.

**Swyx** [1:18:52]
You know? Um.

**Alessio** [1:18:53]
Yeah.

**Swyx** [1:18:53]
So yeah, just more thinking than any answer on how to fix it.

**Alessio** [1:18:58]
Yeah.

**Jeff Dean** [1:18:58]
Yeah. My, my, uh, you know, just on this like, like big prompting and, and, uh, iteration, you know, I think that the... Come, coming back to your latency point, um, I always, I always try to... One, one A/B test or experiment or benchmark or research I would like is what is the, uh, performance difference between, let's say, three dumb fast model calls with human alignment, because the human will correct-

**Swyx** [1:19:20]
Human alignment being-

**Jeff Dean** [1:19:21]
Human alignment

**Swyx** [1:19:21]
... the human looks at the first one-

**Jeff Dean** [1:19:22]
Exactly

**Swyx** [1:19:23]
... and produces-

**Jeff Dean** [1:19:23]
Human, yeah

**Swyx** [1:19:23]
... a new prompt for the second one.

**Jeff Dean** [1:19:25]
Correct.

**Swyx** [1:19:25]
Okay.

**Jeff Dean** [1:19:26]
As opposed to like you spec it out

**Swyx** [1:19:28]
You know, spend a long time writing as a pro- a big, big fat prompt, and then you have a very smart model do it.

**Jeff Dean** [1:19:33]
Right.

**Swyx** [1:19:33]
Right? You know, 'cause, uh, really is, is, uh, our lacks in performance, uh, an issue of like, well, you just haven't specified well enough. There's no universe in which I can produce what you want 'cause you just haven't told me-

**Jeff Dean** [1:19:45]
Right. It's under-specified, so I could produce-

**Swyx** [1:19:47]
Right

**Jeff Dean** [1:19:47]
... 10 different things, and only one of them is the thing you wanted.

**Swyx** [1:19:49]
Yeah, and the multi-turn taking-

**Jeff Dean** [1:19:51]
Mm-hmm

**Swyx** [1:19:51]
... with a Flash model is enough.

**Jeff Dean** [1:19:53]
Yeah. Yeah, I'm, I'm a big believer in pushing on latency because I think being able to-

**Swyx** [1:20:00]
Yeah

**Jeff Dean** [1:20:00]
... have really low latency interactions with-

**Swyx** [1:20:03]
Yeah

**Jeff Dean** [1:20:03]
... a system you're using is just much more delightful than something that is, you know, 10 times as slow or 20 times as slow. And I think, you know, in the future, we'll see models that are, and, and underlying software and hardware systems that are 20X lower latency than what we have today, 50X lower latency.

And that's gonna be really, really important for systems that need to do a lot of stuff, uh, between your interactions.

**Swyx** [1:20:28]
Yeah, yeah. There, there's two extremes, right? And then- ... meanwhile you also have Deep Think, which is on-

**Jeff Dean** [1:20:32]
Mm-hmm

**Swyx** [1:20:32]
... all the way on the other side.

**Jeff Dean** [1:20:33]
Right. But you would use Deep Think all the time if it weren't for cost and latency.

**Swyx** [1:20:38]
Cost and latency.

**Jeff Dean** [1:20:38]
Right. If, if you could have that capability in a model because the latency improvement was 20X, uh, in the underlying hardware and system and costs, you know, there's no reason you wouldn't want that.

**Swyx** [1:20:51]
Yeah.

**Jeff Dean** [1:20:53]
But at the same time, then you'd probably have a model that is even better that would take you 20 times longer even on that new hardware.

**Swyx** [1:21:01]
Yeah. Uh, you know, the, there's, uh, the Fredo curve keeps climbing. Um-

**Jeff Dean** [1:21:05]
Yeah.

**Swyx** [1:21:06]
Exactly.

**Jeff Dean** [1:21:07]
Onward and outward.

**Swyx** [1:21:08]
Onward and outward. Yeah, should we ask him for predictions to, to go? I don't know if you have any predictions- ... that you, that you'd like to keep. This isn't... You know, like, uh, one, one way to do this is- ...

### Predictions

**Swyx** [1:21:18]
you have your tests whenever a, a new model comes out-

**Jeff Dean** [1:21:21]
Mm-hmm

**Swyx** [1:21:21]
... that you run. Uh, what's something that y- you're not quite happy with yet that you think will get done soon?

**Jeff Dean** [1:21:29]
Um, let me make two predictions that are n- not quite in that vein.

**Swyx** [1:21:34]
Okay. Right, yeah.

**Jeff Dean** [1:21:34]
So I think a personalized model that knows you and knows all your state and is able to retrieve over all state you have access to, that you opt into, is gonna be incredibly useful compared to a more generic model that doesn't have access to that.

So like, can something attend to everything I've ever seen, uh, every email-

**Swyx** [1:21:55]
Mm-hmm

**Jeff Dean** [1:21:55]
... every photo, every video I've watched? That's gonna be really useful. Uh, I think, uh, more and more specialized hardware is gonna enable much lower latency models and much more capable models for affordable prices, uh, than, say, the current, current status quo.

Uh, that's gonna be also quite important.

**Swyx** [1:22:17]
Yeah. When you say much lower latency, uh, people usually talk in tokens per second. Is that a term that is okay?

**Jeff Dean** [1:22:22]
Mm-hmm.

**Swyx** [1:22:23]
Okay. Uh, you know, we're at le- let's say 100 now.

**Jeff Dean** [1:22:27]
Yeah.

**Swyx** [1:22:27]
We, we can go to 1,000. Is it meaningful to go 10,000?

**Jeff Dean** [1:22:31]
Yes.

**Swyx** [1:22:31]
Is it really? Okay.

**Jeff Dean** [1:22:33]
Absolutely, right.

**Swyx** [1:22:34]
Yeah. Because of chain of thought and all-

**Jeff Dean** [1:22:36]
Chain of thought reasoning

**Swyx** [1:22:37]
... reasoning, yeah.

**Jeff Dean** [1:22:37]
I mean, you could think, you know, uh, many more tokens, you could do many more parallel rollouts, you could generate way more code, uh, and check that the code is correct with, uh-

**Swyx** [1:22:48]
Yeah

**Jeff Dean** [1:22:48]
... chain of thought reasoning. So I think, you know, being able to do that at 10,000 tokens per second would be awesome.

**Swyx** [1:22:53]
Yeah. At, at 10,000 tokens a second, you are no longer reading code. Yeah, like, you will just generate it. You'll... There's-

**Jeff Dean** [1:22:58]
I'm not reading that anyway, so-

**Swyx** [1:22:58]
Well, remember, it may not-

**Alessio** [1:22:59]
Right. Yeah

**Jeff Dean** [1:23:00]
... end up with 10,000 tokens of code.

**Swyx** [1:23:03]
Yeah, reasoning and code. Yeah

**Jeff Dean** [1:23:03]
... it may be 1,000 tokens of code that with 9,000 tokens of reasoning behind it-

**Swyx** [1:23:08]
Yeah

**Jeff Dean** [1:23:08]
... which would actually be-

**Swyx** [1:23:09]
Right

**Jeff Dean** [1:23:09]
... probably much better code to read.

**Swyx** [1:23:11]
Yeah, yeah. Yeah.

**Alessio** [1:23:13]
Yeah. If I had more time, I would have written a shorter letter.

**Jeff Dean** [1:23:15]
Yeah. Yeah, yeah.

**Alessio** [1:23:16]
That's the idea. Um, awesome, Jeff. This was amazing.

**Jeff Dean** [1:23:19]
Cool.

**Alessio** [1:23:19]
Thanks for taking the time.

**Jeff Dean** [1:23:20]
Yeah. Thank you.

**Alessio** [1:23:21]
Such an honor.

**Jeff Dean** [1:23:21]
And it's been, uh, fun. Thanks for having me.

---

This library is powered by PodHood (https://podhood.com), the podcast website platform.
