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

Markdown copy of https://realalpha.app/v/F_1oDPWxpFQ/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

Jeff Dean says frontier models, efficient Flash models and the systems connecting them must improve together to make AI capable and widely usable.

- Show: Latent Space
- Hosts: [Shawn Wang (swyx)](https://realalpha.app/people/swyx/) & [Alessio Fanelli](https://realalpha.app/people/alessio-fanelli/)
- Guest: [Jeff Dean](https://realalpha.app/builders/jeff-dean/) is Chief AI Scientist at Google.
- Published: Feb 12, 2026
- Length: 1 h 24 m

## The best minutes

- [3:46](https://realalpha.app/v/F_1oDPWxpFQ/?t=226) [Distillation can make Flash outperform the previous Pro](https://realalpha.app/s/distillation-can-make-flash-outperform-the-previous-pro/) (3 min)
- [24:02](https://realalpha.app/v/F_1oDPWxpFQ/?t=1442) [Putting Google’s search index in memory changed query quality](https://realalpha.app/s/putting-googles-search-index-in-memory-changed-query-quality/) (3 min)
- [31:53](https://realalpha.app/v/F_1oDPWxpFQ/?t=1913) [Data movement explains why accelerators need batching](https://realalpha.app/s/data-movement-explains-why-accelerators-need-batching/) (2 min)

## Also worth watching

- [1:06:51](https://realalpha.app/v/F_1oDPWxpFQ/?t=4011) [A memo proposed unifying Google's AI teams](https://realalpha.app/s/a-memo-proposed-unifying-googles-ai-teams/) (3 min)
- [59:20](https://realalpha.app/v/F_1oDPWxpFQ/?t=3560) [Sparse models cut compute cost at a given quality](https://realalpha.app/s/sparse-models-cut-compute-cost-at-a-given-quality/) (4 min)
- [35:21](https://realalpha.app/v/F_1oDPWxpFQ/?t=2121) [TPU design requires predicting ML workloads years ahead](https://realalpha.app/s/tpu-design-requires-predicting-ml-workloads-years-ahead/) (4 min)
- [12:53](https://realalpha.app/v/F_1oDPWxpFQ/?t=773) [Long context needs more than larger attention windows](https://realalpha.app/s/long-context-needs-more-than-larger-attention-windows/) (4 min)
- [26:56](https://realalpha.app/v/F_1oDPWxpFQ/?t=1616) [Design for 5–10× growth, then rethink at 100×](https://realalpha.app/s/design-for-5-10-growth-then-rethink-at-100/) (3 min)

Skip the multimodal examples, the unified-versus-vertical model discussion, and the coding-agent and prompting conversation.

## Full analysis: Jeff Dean says about 50 models inspired distillation

- Distillation began with maybe 50 image models that performed well together but were impractical to serve.
- Dean says Flash has matched or substantially beaten the previous generation’s Pro, not every task.
- For buyers, test whether lower latency and cost fit real workloads.

Its 6 sections, what it means for you and what to watch are on [the page](https://realalpha.app/v/F_1oDPWxpFQ/#analysis), free with an account:

- [6:42](https://realalpha.app/v/F_1oDPWxpFQ/?t=402) Distillation turns frontier capability into a serving option
- [2:19](https://realalpha.app/v/F_1oDPWxpFQ/?t=139) Flash economics reward lower latency and affordability
- [15:25](https://realalpha.app/v/F_1oDPWxpFQ/?t=925) Long context still needs retrieval and ranking
- [32:27](https://realalpha.app/v/F_1oDPWxpFQ/?t=1947) Data movement makes batching an energy tradeoff
- [36:18](https://realalpha.app/v/F_1oDPWxpFQ/?t=2178) Hardware bets require years of model forecasts
- [1:15:01](https://realalpha.app/v/F_1oDPWxpFQ/?t=4501) Coding agents reward clearer specifications

## Summary

Jeff Dean is chief AI scientist at Google and a driving force behind Gemini. His work spans neural-network scaling, sparse models, search systems and TPU co-design.

Dean argues that frontier models and smaller, faster models serve different needs, with distillation helping Flash models inherit capabilities from larger ones. He says energy use, latency and hardware-software co-design will shape how far AI systems can scale, including systems that make it practical to use information across very long contexts. He sees unified models working alongside retrieval and specialized modules, rather than relying on memorized knowledge alone. He also argues that coding agents make clear specifications and deliberate human-agent interaction more important.

### Minute by minute

- [0:20](https://realalpha.app/v/F_1oDPWxpFQ/?t=20) **Frontier and Flash need each other.** Dean says frontier models reveal new capabilities, while affordable, lower-latency models serve broader use cases. He sees them as complementary because the frontier model can teach smaller models through distillation. He traces distillation to compressing ensembles of image specialists into a model practical to serve.
- [7:35](https://realalpha.app/v/F_1oDPWxpFQ/?t=455) **Lower latency broadens model use.** Dean says Flash's cost and latency make it useful across Gmail, YouTube and Search, and that low latency matters as people ask models to handle longer jobs such as building software packages. He says public benchmarks lose value as scores approach saturation, so Google uses held-out evaluations and more realistic long-context tasks; single-needle tests are insufficient as context targets reach 1 million or 2 million tokens.
- [14:59](https://realalpha.app/v/F_1oDPWxpFQ/?t=899) **Long context needs new systems.** Dean says quadratic attention makes it impractical to reach a trillion tokens by simply scaling current approaches, but better algorithms and systems could create the effect of attending to that much information. He sees possible uses in searching the internet, personal data and video, as well as modalities such as lidar, X-rays, MRI and genomics.
- [20:40](https://realalpha.app/v/F_1oDPWxpFQ/?t=1240) **Search uses staged retrieval.** Dean describes Google Search as a sequence of stages: lightweight retrieval narrows the index before more sophisticated signals rank the results. He says an LLM system could use a similar cascade. He recalls that moving Google's index into memory in 2001 made it more practical to expand queries with synonyms and match meaning rather than exact wording.
- [26:56](https://realalpha.app/v/F_1oDPWxpFQ/?t=1616) **Design for changing scale.** Dean says system design starts by identifying critical variables such as query rate, index size and update rate, then asking whether the system can scale by factors of five or ten. He recounts moving Google index updates from monthly to under a minute and recommends back-of-the-envelope latency calculations to explore design choices.
- [31:53](https://realalpha.app/v/F_1oDPWxpFQ/?t=1913) **Data movement drives batching.** Dean contrasts a multiply costing less than 1 picojoule with moving data across a chip costing about 1,000 picojoules. He says batching lets a system reuse model parameters after moving them; a batch of 256 can amortize that cost, while batch size one is inefficient.
- [35:28](https://realalpha.app/v/F_1oDPWxpFQ/?t=2128) **Hardware and models co-design.** Dean says TPU design must anticipate ML workloads two to six years ahead because chip development takes time and chips remain in service for years. He says lower precision can reduce energy use and speculative decoding can amortize weight movement. He also notes that analog computing may lose some power advantages at digital conversion boundaries.
- [42:17](https://realalpha.app/v/F_1oDPWxpFQ/?t=2537) **Reliability remains an open problem.** Dean identifies reliable, long-running tasks and orchestration of models using other models as open problems. He says extending reinforcement learning beyond verifiable areas such as math and coding could broaden model capabilities. For retrieval, he suggests using another model—or the same model prompted as a critic—to assess relevance.
- [46:26](https://realalpha.app/v/F_1oDPWxpFQ/?t=2786) **General models need retrieval and modules.** Dean argues that unified neural models can handle work once split among symbolic or task-specific systems; he points to a general model solving IMO problems with more inference budget. He says models should retain useful world knowledge but retrieve obscure facts rather than spend parameters memorizing them. He sees vertical models as useful extensions of a base model, while noting that specialized data can trade off other capabilities.
- [55:56](https://realalpha.app/v/F_1oDPWxpFQ/?t=3356) **Language and vision share representations.** Dean discusses using context to work with Calamong, which the hosts describe as spoken by 120 people and having no written text; he says adding more Somali or Amharic data could improve those language capabilities. He also describes an image-text model that labeled a microscope image despite not training on microscope labels, drawing on related labels such as telescope and binoculars.
- [59:20](https://realalpha.app/v/F_1oDPWxpFQ/?t=3560) **Scaling compounds across the stack.** Dean says his 1990 thesis explored parallel neural-network training, and that he later revived model- and data-parallel ideas at Google. He recalls training a 2-billion-parameter vision model on 16,000 CPU cores for multiple weeks. He says sparse models can hold trillions of parameters while activating only 1%, 5% or 10%, and cites a 10x improvement in time-to-quality or compute cost over non-sparse models.
- [1:07:13](https://realalpha.app/v/F_1oDPWxpFQ/?t=4033) **Unifying teams led to Gemini.** Dean says Google was splitting compute, researchers and ideas among Brain, Google Research and DeepMind efforts. In a one-page memo, he argued for combining them into a single effort to build a multimodal model, which became Gemini. He says he chose the name to evoke the organizations as twins and the NASA program.
- [1:09:27](https://realalpha.app/v/F_1oDPWxpFQ/?t=4167) **Agents reward clear direction.** Dean says coding agents can handle complex tasks, but users should decide when to interact closely and when to delegate. He expects people to manage agent teams through smaller groups. He says output quality depends on clear specifications and that reusable engineering guides can help agents build more reliable systems.
- [1:19:48](https://realalpha.app/v/F_1oDPWxpFQ/?t=4788) **Faster and personal models are next.** Dean predicts opt-in personal models that can retrieve across email, photos and other personal data will be useful compared with generic models without that access. He expects specialized hardware to bring lower latency and lower costs, and says 10,000 tokens per second could support more reasoning and parallel rollouts. He also predicts systems with 20x or 50x lower latency than today's.

## Transcript

Latent Space, hosted by Shawn Wang (swyx) and Alessio Fanelli, with Jeff Dean.

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

[0:04](https://realalpha.app/v/F_1oDPWxpFQ/?t=4) Hey, everyone. Welcome to the Latent Space podcast. This is Alessio, founder of Kernel Labs, and I'm joined by Swix, editor of Latent Space. Hello, hello. We're here in the studio with Jeff Dean, chief AI scientist of Google. Welcome. Thanks for having me. It's a bit surreal to have you in the studio. I've watched so many of your talks, and obviously your career has been super legendary. So, I mean, congrats. I think the first thing must be said, congrats on owning the Pareto Frontier. Thank you. Thank you. Pareto Frontiers are good. It's good to be out there. Yeah. I mean, I think it's a combination of both. You have to own the Pareto Frontier.

[0:40](https://realalpha.app/v/F_1oDPWxpFQ/?t=40) You have to have like frontier capability, but also efficiency and then offer that range of models that people like to use. And, you know, some part of this was started because of your hardware work. Some part of that is your model work. And I'm sure there's lots of secret sauce that you guys have worked on accumulatively. But it's really impressive to see it all come together in this sliddily advancing frontier. 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. And all of those really combine to help make UNOS able to make highly capable large models as well as software techniques to get those large model capabilities into much smaller, lighter weight models that are much more cost-effective and lower latency, but still quite capable for their size.

[1:32](https://realalpha.app/v/F_1oDPWxpFQ/?t=92) How much pressure do you have on having the lower bound of the private frontier too? I think the new labs are always trying to push the top performance frontier because they need to raise more money and all of that, and you guys have billions of users. And I think initially, when you work on the CPU, you were thinking about, you know, if everybody that use Google, we use the voice model for like three minutes a day, they were 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?

[2:03](https://realalpha.app/v/F_1oDPWxpFQ/?t=123) Yeah, I mean, I think we always want to 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 or last six months ago version. At the same time, you know, we know those are going to be really useful for a bunch of use cases, but they're going to be 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 want to do is always have kind of a highly capable sort of affordable model that enables a whole bunch of, you know, lower latency use cases.

[2:45](https://realalpha.app/v/F_1oDPWxpFQ/?t=165) People can use them for agentic coding much more readily and then have the high end, you know, frontier model that is really useful for, you know, deep reasoning, you know, solving really complicated math problems, those kinds of things. and 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 size model yeah i mean you and jeffrey and ten came out with distillation in 2014 don't forget oreo vineyards as well yeah a long time ago like yeah i'm curious how you think about the cycle of these ideas even like you know sparse models and uh you know how do you reevaluate them how do you think about in the next generational model what is worth revisiting like a 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 yeah i mean i think

[3:53](https://realalpha.app/v/F_1oDPWxpFQ/?t=233) distillation was originally motivated because we were seeing that we had a very large image data set at the time, you know. 100 million images that we could train on with, you know, 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 going to be really good at sort of mammals, and this one's going to 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 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.

[4:37](https://realalpha.app/v/F_1oDPWxpFQ/?t=277) But that's not a very practical thing 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 and then squish it into something that actually fits in a form factor that you can actually serve. And that's not that different from what we're doing today. 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. Yeah. A part of me also wonders if distillation also has a story with the RL revolution.

[5:17](https://realalpha.app/v/F_1oDPWxpFQ/?t=317) So let me maybe try to articulate what I mean by that, which is RL basically spikes models in a certain part of the distribution. And then you have to sort of, well, you can spike models, but usually sometimes it might be lossy in other areas. And it's kind of like an uneven technique, but you can probably distill it back. And I think that the sort of general dream is to be able to advance capabilities without regressing on anything else. And I think that whole capability merging without loss, I feel like some part of that should be a distillation process, but I can't quite articulate it. I haven't seen much papers about it.

[6:01](https://realalpha.app/v/F_1oDPWxpFQ/?t=361) Yeah, I mean, 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 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 the much larger model in order to sort of coax the right behavior out of the smaller model that you wouldn't otherwise get with just the hard labels. And so I think that's what we've observed is you can get very close to your largest model performance with distillation approaches. And that seems to be a nice sweet spot for a lot of people

[6:42](https://realalpha.app/v/F_1oDPWxpFQ/?t=402) **Jeff Dean:** Because it enables us to kind of, for multiple Gemini generations now, we've been able to make the sort of Flash version of the next generation as good or even substantially better than the previous generation's Pro.

[6:57](https://realalpha.app/v/F_1oDPWxpFQ/?t=417) And I think we're going to keep trying to do that because that seems like a good trend to follow. Dare I ask? So the original map was Flash Pro and Ultra. Are you just sitting on Ultra and distilling from that? Is that like the mother load? 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, it's an important set of capabilities to have. And also inference time scaling can also be a useful thing to improve the capabilities of the model.

[7:35](https://realalpha.app/v/F_1oDPWxpFQ/?t=455) Yeah. Yeah, cool. Yeah, and obviously I think the economy of flash is what's led to the total dominance. I think the latest number is like 50 trillion tokens. I don't know. I mean, obviously, it's changing every day. Yeah, yeah. But, you know, by market share. Hopefully up. No, I mean, there's no, I mean, just the economics wise, like, because Flash is so economical, like, you can use it for everything. Like, it's in Gmail now. In YouTube, it's in everything. We're using it more in our search products, AI mode, AI overviews. Oh my god, FlashParse AI mode. Oh my god, yeah. I didn't even think about that.

[8:10](https://realalpha.app/v/F_1oDPWxpFQ/?t=490) I mean, I think one of the things that is quite nice about the Flash model is not only is it more affordable, it's also lower latency. And I think latency is actually a pretty important characteristic for these models, because we're going to want models to do much more complicated things that are going to 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 going to ask now not just write me a for loop but like write me 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 yeah you know obviously our hardware platforms enable a bunch of interesting aspects of our, you know, serving stack as well, like TPUs.

[8:59](https://realalpha.app/v/F_1oDPWxpFQ/?t=539) The interconnect between chips on the TPUs is actually quite high performance and quite amenable to, for example, long context kind of attention operations, you know, having sparse models with lots of experts. These kinds of things really matter a lot in terms of how do you make them servable at scale. yeah does it feel like there's some breaking point for like the proto flash distillation kind of like one generation delayed i almost think about almost like the capability asymptote in certain tasks like the pro model today is a saturated some sort of task so next generation that same task will be saturated at the flash price point 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 a lot of the population will be okay with the flash model i'm curious how you think about that i mean i think that's true if your distribution of what people are asking people the models to do is stationary right 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

[10:16](https://realalpha.app/v/F_1oDPWxpFQ/?t=616) 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 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 of coding but of you know now you know can you analyze all the, you know, renewable energy deployments in the world and give me a report on solar 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 going to want more capable models to push the frontier in the absence 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 particular areas in order to sort of make the next generation even better.

[11:11](https://realalpha.app/v/F_1oDPWxpFQ/?t=671) 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 99 instead of 97. Like, how do you have to keep pushing the team internally to it or like, this is what we're building towards? 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 like to think of the best kinds of benchmarks are ones where the initial scores are like 10 to 20 or 30% maybe, but not higher.

[11:50](https://realalpha.app/v/F_1oDPWxpFQ/?t=710) And then you can sort of work on improving that capability for whatever it is the benchmark is trying to assess and get it up to like 80, 90%. whatever. I think once it hits kind of 95% or something, you get very diminishing returns from really focusing on that benchmark because it's sort of, 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 in your training data. 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, their capabilities that we want the model to have that it doesn't have now and then we can work on assessing how do we make the model better at these kinds of things.

[12:38](https://realalpha.app/v/F_1oDPWxpFQ/?t=758) Is it we need different kind of data to train on that's more specialized for this particular kind of task? Do we need a bunch of architectural improvements or some sort of model capability improvements? What would help make that better? Is there such an example that a benchmark inspired an architectural improvement? I'm just kind of jumping on that because you just... I mean, I think some of the long context capabilities of the Gemini models that came, I guess, first in 1.5 really were about looking at, okay, we want to have... Immediately, everyone jumped to completely green charts. I was like, how did everyone crack this at the same time?

[13:22](https://realalpha.app/v/F_1oDPWxpFQ/?t=802) Right, yeah, yeah, yeah. I mean, I think, and once you're set, I mean, as you say, that single needle in a haystack benchmark is really saturated for at least context lengths up to 128K or something. I think most people don't actually have, you know, much larger than 128K these days or 256 or something. You know, we're trying to push the frontier of 1 million or 2 million context lengths. I think Google's still the leader, 2 million. Yeah, 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.

[14:00](https://realalpha.app/v/F_1oDPWxpFQ/?t=840) 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 a long context that sort of better assesses what it is people really want to do with long context which is not just you know can you tell me the product number for this particular thing yeah it's retrieval it's it's uh retrieval within machine learning uh yeah it's it's interesting because like i think that the more meta level i'm trying to operate at here is uh you have a benchmark you're like 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 in and it's what jason way who used to work at google would say like exactly kind of thing like yeah you're going to win short term longer term i don't know if that's going to scale you might have to undo that i mean i i like to sort of not focus on exactly what solution we should drive but what capability would you want and i think we're very convinced that

[15:12](https://realalpha.app/v/F_1oDPWxpFQ/?t=912) **Jeff Dean:** you know long context is useful but it's way too short today right yeah like i think what you would really want is can i attend to the internet while i answer my question okay right but that's not

[15:25](https://realalpha.app/v/F_1oDPWxpFQ/?t=925) going to be solved by purely scaling the existing solutions which are quadratic so a million tokens kind of pushes uh what you can do you're not going to do that to a trillion tokens let alone 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 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 deeper representations that we can form for a single video but across many videos you know uh A personal Gemini level, you could attend to all of your personal state with your permission.

[16:05](https://realalpha.app/v/F_1oDPWxpFQ/?t=965) So like your emails, your photos, your docs, your plane tickets you have. 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? yeah but by the way i think 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 right but if you then say okay i want to be able to um understand everything people are putting on videos well also i think that the classic example is um you start going beyond language into like proteins and whatever else is extremely information dense yeah 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 like lidar sensor data from yes waymo vehicles or like robots uh or you know various kinds of health modalities x-rays and mris

[17:31](https://realalpha.app/v/F_1oDPWxpFQ/?t=1051) 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 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 it 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 yeah because it sort of uh tempts the model that this is a thing yeah do you believe i mean since we're on this topic and something i I just get to ask you all the questions I always wanted to ask, which is fantastic.

[18:11](https://realalpha.app/v/F_1oDPWxpFQ/?t=1091) Like, are there some king modalities, like modalities that supersede all the other modalities? So a simple example was vision can, on a pixel level, encode text. And DeepSea had this DeepSea CR paper that did that. Vision has also been shown to maybe incorporate audio because you can do audio spectrograms. And that's also like a vision capable thing. So maybe vision is just the king modality. Yeah, I mean, vision and motion are quite important things, right? Motion. Well, like video as opposed to static images. Because, I mean, there's a reason evolution has evolved eyes like 23 independent ways, 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 paying attention to and then help us in using that information to do things.

[19:05](https://realalpha.app/v/F_1oDPWxpFQ/?t=1145) yeah i think motion uh you know i still want to 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 nice yeah yeah i mean it's actually i think people kind of are not necessarily aware of what the gemini models can actually do with video like uh 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 like that 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 turned video into SQL-like table.

[20:11](https://realalpha.app/v/F_1oDPWxpFQ/?t=1211) Has there been any discussion inside of Google of like, you mentioned tending to the whole internet, right? Google, it's almost built because a human cannot tend to the whole internet and you need some sort of ranking to find what you need. That ranking is like much different for an LLM Because you can expect a person to look at maybe the first five, six links in a Google search versus for an LLM, should you expect to have 20 links that are highly relevant? Like, how do you internally figure out, you know, how do we build the AI mode that is like maybe like much broader search and span versus like the more human one?

[20:47](https://realalpha.app/v/F_1oDPWxpFQ/?t=1247) Yeah, I mean, I think even pre-language model based work, 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're down to like 30,000 documents or something. And then you gradually refine that to apply more and more sophisticated algorithms and more and more sophisticated signals of various kinds in order to get down to ultimately what you show, which is the final 10 results or 10 results plus other kinds of information. And I think an LLM-based system is not going to be that dissimilar, right?

[21:32](https://realalpha.app/v/F_1oDPWxpFQ/?t=1292) You're going to tend to trillions of tokens, but you're going to want to identify, you know, what are the 30,000-ish documents with the, you know, 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 tasks that the user has asked me to do? And I think, you know, you can imagine systems where you have, you know, a lot of highly parallel processing to identify those initial 30,000 candidates, maybe with very lightweight kinds of models. Then you have some system that sort of helps you narrow down from 30,000 to the 117 with maybe a little bit more sophisticated model or set of models.

[22:22](https://realalpha.app/v/F_1oDPWxpFQ/?t=1342) 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. Sort of the way Google search gives you, you know, not the illusion, but you are searching the Internet. But you're finding, you know, a very small subset of things that are that are relevant. yeah 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 don't i don't have any numbers off the top of my head but like i'm sure you guys that's obviously the most important numbers to google yeah i mean i think going to an llm based representation of text and words and so on enables you to get out of the explicit, hard notion 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.

[23:28](https://realalpha.app/v/F_1oDPWxpFQ/?t=1408) Yeah. I don't think people understand how much LLMs have taken over all these very high traffic systems. Very high traffic. Yeah. Like, it's Google. Yeah. It's YouTube. YouTube has this, like, semantics IDE thing, where it's just, like, every token or every item in the vocab is a YouTube video or something that predicts the video. using a code book which is absurd to me for youtube size and then most recently grok also for for xai which is like yeah 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.

[24:06](https://realalpha.app/v/F_1oDPWxpFQ/?t=1446) Do you have a history of what's the progression? Oh, yeah. I mean, I actually gave a talk in, I guess, a web search and data mining conference in 2009. Okay. Where we never actually published any papers about the origins of Google search. sort of but we went through sort of four or five or six generations four or five or six generations of redesigning of the search and retrieval system from about 1999 through 2004 or five 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 because if you don't have the page in your index you're gonna 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. And then as traffic grows, you add more and more replicas

[25:24](https://realalpha.app/v/F_1oDPWxpFQ/?t=1524) 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 20 copies of each shard, we now had 1,200 machines 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.

[25:44](https://realalpha.app/v/F_1oDPWxpFQ/?t=1544) **Jeff Dean:** so in 2001 we introduced uh we put our entire index in memory and what that enabled from a quality perspective was amazing because before you had to be really careful about you know how

[25:57](https://realalpha.app/v/F_1oDPWxpFQ/?t=1557) 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 bistro and all these things. And you can suddenly start sort of really 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 but really it was about softening the the strict definition of what the user typed in order to get at the meaning 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 it's not like a you know and i think today you kind of see that with llms too where like every year the jumps in size and like capabilities are just so big are there just any you know principles that you use to like think about this yeah i mean i think uh you know first whenever you're designing a system you want to

[27:13](https://realalpha.app/v/F_1oDPWxpFQ/?t=1633) understand what are the sort of design parameters that are going to 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 going to look at it when you retrieve things um what happens if traffic were to double or triple

[27:35](https://realalpha.app/v/F_1oDPWxpFQ/?t=1655) **Jeff Dean:** you know will that system work well and i think a good design principle is you're going to want to design a system so that the most important characteristics could scale by like factors of five or ten but probably not beyond that because often what happens is if you design a system for

[27:52](https://realalpha.app/v/F_1oDPWxpFQ/?t=1672) x and something suddenly becomes a hundred x that would enable a very different point in the design space that would not make sense. but all of a sudden 100x makes total sense. So going from a disk-spaced index to an 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 a full copy of the index in memory. And that all of a sudden enables a completely different design that wouldn't have been practical before. yeah um so i'm 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 growing the index uh quite extensively we were growing the update rate of the index so the update rate actually is the parameter that changed the most surprisingly so it used to be once a month yeah and then we went to a system that could update any particular page in like sub one minute okay yeah because this is a competitive advantage right because all of a sudden news related queries you know if you're if you've got last month's news

[29:08](https://realalpha.app/v/F_1oDPWxpFQ/?t=1748) index it's not actually that useful for news is a special beast was there any like you could have split it onto a separate system well we did we launched a google news product but you also want news related queries that people type into the main index to also be sort of updated so yeah it's interesting and then you have to like classify whether the page is you have to decide which pages should be updated at what oh yeah there's a whole like uh system behind the scenes that's trying to decide update rates and importance of the pages so even if the update rate seems low you might still want to recrawl important pages quite often because the likelihood they change might be low, but the value of having them updated is high.

[29:50](https://realalpha.app/v/F_1oDPWxpFQ/?t=1790) Yeah, yeah. You know, this mention of latency and saving things to this reminds me of one of your classics, which I have to bring up, which is latency numbers every programmer should know. Was there just a general story behind that? I mean, this has like sort of eight or ten different kinds of metrics that are like, how long does a cache miss take? How long does a branch mispredict take? How long does a reference domain memory take? How long does it take to send a packet from the US to the Netherlands or something? Why in the Netherlands, by the way? Or is that because of Chrome? We had a data center in the Netherlands.

[30:29](https://realalpha.app/v/F_1oDPWxpFQ/?t=1829) 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 raw ingredients of those. And you can use them to say, OK, 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 pre-compute 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 would I need? How many disk seeks would I do? And you can sort of actually do thought experiments in, you know, 30 seconds or a minute with the sort of basic uh basic numbers at your fingertips and then as you sort of build software using higher level libraries you kind of want to 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 yeah 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 okay yeah I don't have a great one because it's not physical constants like you have physical constants in here.

[31:42](https://realalpha.app/v/F_1oDPWxpFQ/?t=1902) But I do think a simple one would be number of parameters to disk size if you need to convert that, which is a simple byte conversion. That's nothing interesting. I wonder if you have any, if you were to update your… 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 attached, uh, memory or DRAM or over the network. And then how expensive is that data motion relative to the cost of, say, an actual multiply in the matrix multiply unit?

[32:37](https://realalpha.app/v/F_1oDPWxpFQ/?t=1957) And that cost is actually really, really low, right? Because it's, you know, order, you know, depending on your precision, I think it's like sub-1 picodoule. Oh, okay, you measure it by energy. Yeah, yeah, yeah. I mean, it's all going to be about energy and how do you make the most energy efficient system. And then moving data from the SRAM on the other side of the chip, not even off the off chip, but on the other side of the same chip can be, you know, a thousand picajoules. Oh, yeah. And so all of a sudden, this is why your accelerators require batching. Because if you move, say, the parameter of a model from SRAM on the chip into the multiplier unit, that's going to cost you 1,000 picotools.

[33:26](https://realalpha.app/v/F_1oDPWxpFQ/?t=2006) So you better make use of that thing that you moved many, many times. So that's where the batch dimension comes in. Because all of a sudden, 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. because then you paid a thousand picajoules in order to do your one picajoule multiply. I have never heard an energy-based analysis of batching. Yeah. I mean, that's why people batch, right? Ideally, you'd like to use batch size one because the latency would be great. But the energy cost and the compute cost inefficiency that you get is quite large.

[34:04](https://realalpha.app/v/F_1oDPWxpFQ/?t=2044) Is there a similar trick like you did with putting everything in memory? I think obviously NVIDIA has caused a lot of waves with betting very hard on SRAM with GROC. I wonder if that's something that you already saw with the TPUs, right? That you had to serve at your scale. You probably sort of saw that coming. What hardware innovations or insights were formed because of what you're seeing there? Yeah, I mean, I think, you know, TPUs have this nice sort of regular structure of 2D or 3d meshes with a bunch of chips connected 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 sram on the chip so if you have a small enough model you can actually do model parallels and 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 you do that and it all fits in sram uh that can be a big win so yeah that's not a surprise but it is a good technique yeah what about the tpu design like how much do you decide where the improvements have to go so

[35:34](https://realalpha.app/v/F_1oDPWxpFQ/?t=2134) like this is like a good example of like is there a way to bring the thousand picajoules down to 50 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 kind of like the most extreme thing how much of it is it worth doing in hardware when things change so quickly like what's the internal discussion yeah i mean we we have a lot of interaction action. Between, say, the TPU chip design architecture team and the sort of higher level modeling experts, because you really want to 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 in some sense.

[36:18](https://realalpha.app/v/F_1oDPWxpFQ/?t=2178) Because, 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 a reasonable lifetime of the chip to take you three, four, or five years.

[36:37](https://realalpha.app/v/F_1oDPWxpFQ/?t=2197) **Jeff Dean:** So you're trying to predict two to six years out what ML computations will people want to run two to six years out in a very fast-changing field.

[36:47](https://realalpha.app/v/F_1oDPWxpFQ/?t=2207) And so having people with interesting ML research ideas of things we think will start to work in that time frame or will be more important in that time frame really enables us to then get, you know, interesting hardware features put into, you know, TPU N plus two, where TPU N is what we have today. Oh, the cycle time is plus two. Roughly. Wow. Because, I mean, sometimes you can squeeze some changes into N plus one, but, you know, bigger changes are going to require the chip design be earlier in its lifetime design process. 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.

[37:33](https://realalpha.app/v/F_1oDPWxpFQ/?t=2253) 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. Sometimes it's a very big change and we want to be pretty sure this is going to work out. So we'll do like lots of careful ML experimentation to show us this is actually the way we want to go. Yeah. 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? Yeah, I mean, 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 going to have for both training and inference of that generation of model.

[38:23](https://realalpha.app/v/F_1oDPWxpFQ/?t=2303) So I think it kind of goes both ways. Sometimes you can take advantage of lower precision things that are coming in a future generation, so you might train it at that lower precision even if the current generation doesn't quite do that. yeah how low can we go in precision because people are saying like ternary is like uh yeah i mean i'm a big fan of very low precision because i think that gets that saves you a tremendous amount of energy right because it's picajoules per bit that you're transferring and 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 okay interesting you so low low precision but scaled up weights yeah huh yeah never considered that interesting uh while we're on this topic you know i think there's a lot of um uh this is the concept of precision at all is weird when we're sampling you know uh 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 going to throw a random number generator at the start and so i mean there's a movement towards uh energy-based uh models and processors

[39:45](https://realalpha.app/v/F_1oDPWxpFQ/?t=2385) yeah i'm just curious if you've obviously you've thought about it but like what's your commentary yeah i mean i think there's a bunch of interesting trends though energy-based models is one you know diffusion-based models which don't sort of sequentially decode tokens is another Yes. You know, speculative decoding is a way that you can get sort of an equivalent, very small batch factor 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. And then you maybe accept five or six of those tokens, so you get a 5x improvement in the amortization of moving weights into the multipliers to do the prediction for the tokens.

[40:30](https://realalpha.app/v/F_1oDPWxpFQ/?t=2430) So these are all really good techniques, and I think it's really good to look at them from the lens of energy, real energy, not energy-based models, and also latency and throughput, right? If you look at things from that lens, that sort of guides you to solutions that are going to be, you know, better from, you know, being able to serve larger models or, you know, equivalent size models more cheaply and with lower latency. yeah well i think i think i um it's appealing intellectually uh haven't seen it like really hit 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 a lot of shenanigans if like we fundamentally design it into the hardware yeah yeah i mean i think there's still a 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 because they can be potentially low power 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 you end up doing at the sort of boundaries and periphery of that system i still think there's a tremendous distance we can go

[41:56](https://realalpha.app/v/F_1oDPWxpFQ/?t=2516) from where we are today in terms of energy efficiency with sort of much better and specialized hardware for the models we care about. Yeah. 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 step at? I guess you have a lot of researchers. Yeah, we have a lot of researchers. I guess you have enough. Our recent portfolio is pretty broad, I would say. I mean, I think in terms of research directions, there's a whole bunch of open problems in how do you make these models reliable and able to do much longer, kind of more complex tasks that have lots of subtasks.

[42:40](https://realalpha.app/v/F_1oDPWxpFQ/?t=2560) How do you orchestrate maybe one model that's using other models as tools in order to sort of build things that can accomplish 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 i think it's a 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 i'm curious like when we had no one brown on the podcast he said um they already proved you can do it with deep research um you kind of have it with ai mode in a way it's not verifiable i'm curious if there's any thread that you think is interesting there like what is it both are like information retrieval adjacent so i wonder if it's like the retrieval is like the verifiable part that you can score or what are like yeah yeah how would you model that that problem

[43:55](https://realalpha.app/v/F_1oDPWxpFQ/?t=2635) 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, 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? I think those kinds of techniques are actually quite effective. Sometimes that can even be the same model, just prompted differently to be a critic as opposed to an actual retrieval system. yeah um i do think like there is that that weird cliff where like it feels like we've done the easy stuff and then now it's but it always feels like that every year it's like oh like we know we know and the next part is super hard and nobody's figured it out and uh like that exactly with this rl vr thing where like everyone's talking about well okay how do we do the next stage of the non-verifiable stuff and everyone's like i don't know you know i'll judge 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 you know problems that we all see 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

[45:14](https://realalpha.app/v/F_1oDPWxpFQ/?t=2714) 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 gsm 8k problems right like you know fred has two rabbits 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 And now you're doing IMO. IMO and Erdos problems. Pure language, yeah.

[45:49](https://realalpha.app/v/F_1oDPWxpFQ/?t=2749) Yeah, pure language. So that is a really, really amazing jump in capabilities in a year and a half or something. And I think for other areas, it'd be great if we could make that kind of leap. And we don't exactly see how to do it for some areas, but we do see it for some other areas, and we're going to work hard on making that better. Yeah, like YouTube thumbnail generation. That would be very helpful. We need that. That would be AGI. We need that. That would be. As far as content creators go. I guess I'm not a YouTube creator, so I don't care that much about that problem, but I guess many people do.

[46:28](https://realalpha.app/v/F_1oDPWxpFQ/?t=2788) Yeah, it doesn't matter. People do judge books by their covers, as it turns out. Just to draw a bit on the IMO goal, I'm still not over the fact that a year ago, we had alpha proof and alpha geometry and all those things. And then this year, we were like screw that we'll just chuck it into gemini yeah what's your reflection like i think this this question about like the merger of like symbolic systems and like and and lms was a very much core belief and then somewhere along the line people just said nope we'll just all do it in the lm 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 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 now that that approach for solving the problem doesn't seem like it's going to work i'm going to 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

[47:44](https://realalpha.app/v/F_1oDPWxpFQ/?t=2864) 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 you know thinking about those things Interesting. Yeah. I mean, it maybe seems obvious to you, but it wasn't obvious to me a year ago. Yeah. I mean, I do think that IMO with translating to Lean and using Lean, and then the next year, 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 is actually quite good because it shows you that the capabilities of that general model have improved dramatically and now you don't need these specialized models.

[48:34](https://realalpha.app/v/F_1oDPWxpFQ/?t=2914) 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 want to recognize street signs in something, so I train a street sign recognition model or I want to 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. And they're getting better and better. And you don't need domain experts.

[49:12](https://realalpha.app/v/F_1oDPWxpFQ/?t=2952) So I interviewed Itay, who was on that team. And he was like, yeah, 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 do the training models. Yeah. and it's kind of interesting that like people with these this like universal skill set of just like machine learning you just give them data and give them enough compute and they can kind of tackle any task which is yeah right a bit of lesson i guess i don't know yeah yeah i mean i think uh general models uh will win out over specialized ones in most cases so i want to push there a bit i think there's one hole here which is like uh there's this concept of like uh maybe capacity of a model like abstractly a model can only contain the number of bits that it has and uh and so it you know god knows like gemini pro is like one to ten 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 that that and and uh they have some knowledge which is not necessary right like they can't know everything like like you have the luxury of you have the big model and big model should be able to capable of everything but like when when you're distilling

[50:26](https://realalpha.app/v/F_1oDPWxpFQ/?t=3026) and you're going down to the small models you know you're actually memorizing things that are not useful yeah and so like how do we i guess do we want to extract that can we can we divorce knowledge from reasoning you know yeah i mean i think you do want the model to be most effective at reasoning if it can retrieve things right because having the model devote precious parameter space to remembering obscure facts yeah 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 attention 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.

[51:40](https://realalpha.app/v/F_1oDPWxpFQ/?t=3100) 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 going to be a pretty effective way of making the model seem much more capable. Because if you think about, say, a personal... Gemini. We're not going to train Gemini on my email, probably. We'd rather have a single model that 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, and then make use of that and have multiple stages of interaction. That makes sense. Do you think the vertical models are an interesting pursue 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 stop gaps or 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 sort of viewing them view them as enriching the data distribution for that particular vertical domain for healthcare, say, we're probably not going to train or for say robotics, we're probably not going to train Gemini on all possible robotics data we you could train it on because we want it

[53:04](https://realalpha.app/v/F_1oDPWxpFQ/?t=3184) to have a balanced set of capabilities. So we'll expose it to some robotics data. But if you're trying to build a really, really good robotics model, you're going to want to 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 and as much data as we have for those languages yeah but that's going to displace some other capabilities of the model it won't be as good at um you know pearl programming you know it'll still be good at python programming because We'll include enough of that, but there's other long tail computer languages or coding capabilities that it may suffer on or multimodal reasoning capabilities may suffer because we didn't get to expose it to as much data there, but it's really good at multilingual things.

[54:04](https://realalpha.app/v/F_1oDPWxpFQ/?t=3244) So I think some combination of specialized models, maybe more modular models. So it'd be nice to have the capability to have those 200 languages plus this awesome robotics model plus this awesome healthcare module that all can be knitted together to work in concert and called upon in different circumstances right 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 yeah installable knowledge yeah just download as a and some of that installable stuff can come from retrieval yeah but some of it probably should come from training on you know uh 100 billion tokens or a trillion tokens of health data yeah and for listeners i think uh i will highlight the gemma 3n paper where they there was a little bit of that i think yeah yeah i guess the question is like how many billions of tokens do you need to outpace the frontier model improvements you know it's like if i have to make this model better health care and the main gemini model is still improving do i need 50 billion tokens can i do it with hundred if i need a trillion healthcare tokens it's like they're probably not out there that

[55:19](https://realalpha.app/v/F_1oDPWxpFQ/?t=3319) you don't have you know i think that's really like the well i mean i think healthcare is a particularly challenging domain 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 going to be you know more bespoke but probably uh might be better than a general model trained on say public data I believe If, uh, by the way, this is like somewhat related to the language conversation.

[56:03](https://realalpha.app/v/F_1oDPWxpFQ/?t=3363) Uh, I think one of your, your favorite examples was you can put a low resource language in the context and it just learns in context. Oh yeah. I think the example we used was Calamong, which is truly low resource because it's only spoken by, I think 120 people in the world and there's no written text. So, yeah. So you can just do it that way. Just put it in the context. Yeah. Yeah. But I think your whole data set in the context, right? If you take a language like Somali or something, there is a fair bit of Somali text in the world or Ethiopian Amharic or something. We probably are not putting all the data from those languages into the Gemini-based training.

[56:43](https://realalpha.app/v/F_1oDPWxpFQ/?t=3403) We put some of it, but if you put more of it, you'll improve the capabilities of those models or of those languages. Yeah, cool. So I have a side interest in linguistics. I did a few classes back in college, and part of me, if I was a linguist and I could have access to all these models, I would just be asking really fundamental questions about language itself. There's one very obvious one, which is Sapir Wharf. How much does the language that you speak affect your thinking? But then also, there's some languages where there's just concepts that are not represented in other languages, but many others that are just duplicates, right?

[57:23](https://realalpha.app/v/F_1oDPWxpFQ/?t=3443) Where there's also another paper that people love called the Platonic Representation where an image of a cup is, if you learn a model on that and you have a lot of text with the word cup, it eventually maps to it like roughly the same place in latent space. And so that should apply to languages except where it doesn't. And that's actually very interesting differences in what humanity has discovered as concepts that maybe English doesn't have. i don't know it's just like my my rant on languages yeah i mean i i did some work on a early model that fused together a language-based model with you have you know nice word-based representations and then an image model where you have trained it on image net like things yes and then you fuse together the top layers of go uh no this is device device 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 assign kind of the right cat the right label to that image so for example i think telescope and binoculars were both in the training categories for the image model but um microscope was not and so if you're given an image of a microscope it actually can come up

[58:53](https://realalpha.app/v/F_1oDPWxpFQ/?t=3533) with something that's uh got the word microscope as the label that it designs even though it's never actually seen an image labeled that oh that's nice yeah um so yeah useful uh cool i think there's more general like broad questions but like i guess what what do you uh wish you were asked more in in general like you know you have such a broad scope we've covered the hardware we've covered the the models research 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 parallel neural network training uh back in 1990 when i got exposed 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 so like the 32 processors in the department parallel computer, you know, could get you a little bit more interesting model, but not enough to solve real problems.

[59:52](https://realalpha.app/v/F_1oDPWxpFQ/?t=3592) And so starting in 2008 or 2009, 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 language. And so when I started working on neural nets at Google in late 2011, 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 revived some ideas from my undergrad thesis where I'd done both model parallel and data parallel training and I compared them.

[1:00:38](https://realalpha.app/v/F_1oDPWxpFQ/?t=3638) I called them something different. It was like pattern partitioned and model partitioned or something. Is it public? Yeah, it's on the web. Okay, nice. But I think combining a lot of those techniques and really just trying to push on scaling things up over the last 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. It also means, you know, pushing on software abstraction layers to let people express ML ideas effectively. And then also working on things like, say, sparse models.

[1:01:19](https://realalpha.app/v/F_1oDPWxpFQ/?t=3679) 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. But you also want to be super efficient in how you activate your models. So you'd like trillions of parameters, but activate only 1% or 5% or 10% of that. And we did an early paper on this where we really scaled up outrageously large neural networks. That was the title of the paper. I think that's Gnome's wording in the title, which is a good catchy title. I mean, in 2017, he was out there talking about one trillion parameter models.

[1:02:01](https://realalpha.app/v/F_1oDPWxpFQ/?t=3721) Yeah.

[1:02:01](https://realalpha.app/v/F_1oDPWxpFQ/?t=3721) **Jeff Dean:** So that is really good because that gave you like a 10x improvement in time to quality or compute cost to a given quality level relative to non-sparse models.

[1:02:15](https://realalpha.app/v/F_1oDPWxpFQ/?t=3735) Transformers similarly gave you a 10x to 100x improvement in compute cost to a given quality level. versus, say, LSTMs at the time. And all of those things multiply together. So I think all those things really are important to work on. You know, the hardware, the systems infrastructure, the algorithmic aspects of model architecture, improving the data, improving the RL recipes, all these things are what are stacking together and multiplying together to give us models of 2026 are much better than models of 25 and are awesomely better than 24 and 23 and 22. And a huge, honestly, like organizational challenge.

[1:03:01](https://realalpha.app/v/F_1oDPWxpFQ/?t=3781) Like, this is like a thousand people or maybe more. I know when the first Jeff Knight paper came out, it was like a thousand co-authors. Yeah, yeah, we have 10 pages of co-authors in the tech report. It was nice. I mean, you know, people want to be acknowledged on probably a historical paper. 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 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 ariel are sort of helping steer this and then we have people thinking about you know what is the pre-training uh setup look like what does the infrastructure look like what is the post-training recipe look like and what is the data preparation and evals and you know Modal capabilities and I-18N capabilities, you know, there's a lot of different kinds of areas, coding capabilities, all these areas are super important and it's really good to have people paying close attention to those things and then also paying close attention to all the other things.

[1:04:18](https://realalpha.app/v/F_1oDPWxpFQ/?t=3858) Yeah, I'm told Sergei is like very actively back and very much involved in coding stuff. Yep, yeah, yeah, yeah, we all use the same micro kitchen. yeah uh oh okay like there's so many jumping off points uh so by the way i found out from the recent uh i mean you've probably told this story a few times but apparently google brain was also started in a micro kitchen yeah yeah it was like your micro kitchens are very important yeah i don't know if people like understand yeah uh yeah i actually bumped into andrew ing 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 going to 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 uh neural nets for speech uh recognition i'm like oh neural nets i like neural nets like i remembered back to my 1990 thesis yeah i'm like oh that sounds interesting we should train really really big neural nets so that was the which you say that and like that's a very interesting first instinct which is that we should scale this up a lot yeah well i mean i felt like

[1:05:31](https://realalpha.app/v/F_1oDPWxpFQ/?t=3931) google is is has lots of computational uh capability and so if they were seeing good results on you know what were effectively single gpu or 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 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 two billion parameters uh vision model uh trained on 16 000 cpu cores for like multiple weeks and that's what gave us really good it gave us a 70 relative error improvement in image net 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 saying bigger model more data better results and that was our mantra for like six or seven years of scaling and we every time we did that we saw better results in speech in language in vision uh speaking of um bets and this might in this you know i'll preface with like this might

[1:06:53](https://realalpha.app/v/F_1oDPWxpFQ/?t=4013) be a little bit more sensitive topic but you have obviously a lot of opinions about this we had a previous guest david juan who used to work for you and uh he kind of like blames almost the brain marketplace as like the reason that google didn't invest enough in language models and i I wonder if that's something you would agree with at the time or is there like a different sort of post-mortem? The brain marketplace for compute quotas. Compute quotas. Yeah. Where basically he was like, okay, like David worked at OpenAI as VP Engine and then he worked at Google. He was like, fundamentally, OpenAI was willing to go all in, like that's the farm on one thing, whereas Google was more democratic.

[1:07:32](https://realalpha.app/v/F_1oDPWxpFQ/?t=4052) Like everyone had a quota. And I was like, okay, like if you believe in scaling as an important thing, That's an important organizational-wide decision to do. Yeah. Yeah, I mean, I think I would somewhat agree with that.

[1:07:46](https://realalpha.app/v/F_1oDPWxpFQ/?t=4066) **Jeff Dean:** I mean, I think I actually wrote a one-page memo saying we were being stupid by fragmenting our resources.

[1:07:55](https://realalpha.app/v/F_1oDPWxpFQ/?t=4075) So in particular, at the time, we had... You know, efforts within Google research on, and in the brain team in particular, on large language models. We also had efforts on multimodal models in other parts of brain and Google research. And then Legacy DeepMind had efforts like chinchilla models and flamingo models. and so really we were fragmenting not only our compute 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 train to train an awesome single unified model that is multi-modal from the start that's good at everything and that was the origin of the Gemini effort And my one-page memo worked, which is good.

[1:08:55](https://realalpha.app/v/F_1oDPWxpFQ/?t=4135) Did you have the name? Because also for those who don't know, you named Gemini. I did. There was another name proposed. And I said, you know, it's sort of like these two organizations really are like twins in some sense coming together. So I kind of like that. And then there's also the NASA interpretation of, you know, the early Gemini project being an important thing on your way to, you know, the Apollo project. So it seemed like a good name. Twins coming together. Yeah, nice. 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.

[1:09:38](https://realalpha.app/v/F_1oDPWxpFQ/?t=4178) But I was reading through the article about you and Sanjay's friendship and how you work together. And you have one quote about you need to find someone that you're going to pair program with who's compatible with your way of thinking so that the two of you together are a complementary force. And I was thinking about how you think about coding agents in this. Like, how do you shape a coding agent to be compatible with your way of thinking? Like, how would you rate the tools today? Like, where should things go? Yeah. Yeah. I mean, first, I think the coding tools are, you know, getting vastly better compared to where they were a year or two years ago.

[1:10:14](https://realalpha.app/v/F_1oDPWxpFQ/?t=4214) So now you can actually rely on them to do more complex things that you 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 interaction between a human software engineer and a coding model that they're working with is your way of talking to that coding model actually sort of 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 going to shape how the model responds, what kinds of 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 more to make sure that you're shaping the right kinds of things.

[1:11:13](https://realalpha.app/v/F_1oDPWxpFQ/?t=4273) 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 maybe a more frequent interaction style with a model and other ones you're just like yeah please just go write this because I know I need this thing I can specify it well enough and go off and do it and come back when you're done and so I do think there's going to be more of a style of having lots of independent 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 should I do?

[1:11:56](https://realalpha.app/v/F_1oDPWxpFQ/?t=4316) I think we're not at the end all answer to that question. And as the models get better, that set of decisions you put into how the interaction should happen may change, right? Like, if you have a team of 50 interns, how would you manage that if they were people? And I think it's not... Do you want 50 interns? You might if they're really good, right? It's a lot of management. But it's a lot of, yeah, I mean, I think that is probably within the realm of possibilities that lots of people could have 50 interns. And so how would you actually deal with that as a person, right? You would probably want them to form small sub teams so you don't have to interact with 50 of them.

[1:12:43](https://realalpha.app/v/F_1oDPWxpFQ/?t=4363) You could interact with five of those teams and they're off doing things on your behalf. But I don't know exactly how this is going to unfold. how do you think about bringing people like the pair programming is always helpful to like get net new ideas in 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 intents right and then you want to go to nom shazir be like hey no i want to like pair on this thing but now there's like this huge amount of work that has been done in parallel that you need to catch him up on right and i'm curious like if people are going to 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 maybe i mean on the other hand like imagine a classical software organization without any ai assisted tools right you would have you know 50 people doing stuff and their interaction style is going to be naturally very hierarchical because you know these 50 people are going to be working on this part of the system and not interact that

[1:13:56](https://realalpha.app/v/F_1oDPWxpFQ/?t=4436) much with these other people over here but if you have you know 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 then you would have among five people who are also trying to coordinate you know a 50 person software team each so how do i'm curious how you change your just working rhythm you know like you spend more time ahead with people going through specs and design goals like 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 like it was like yeah whatever i don't need to do that i'm gonna really i don't know i mean writing 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 of how you specify that because that's going to dictate the quality of the output right like if

[1:15:11](https://realalpha.app/v/F_1oDPWxpFQ/?t=4511) 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 not do what you want. And the better you get at interacting with these models, 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. And that is actually probably not a bad thing. it's not a bad skill to have 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 going to be really important yeah my joke is um you know good prompting is in uh indistinguishable from sufficiently advanced executive community It's like writing an internal memo, weigh your words very carefully. And also, I think very important to be multimodal, right? I think one thing that anti-gravity from Google also did was just come out of the gate very, very strong multimodal, including videos. And that's the highest bandwidth communication prompt that you can give to the model, which is fantastic.

[1:16:19](https://realalpha.app/v/F_1oDPWxpFQ/?t=4579) yeah how do you collect things that you often you will have in your mind so you have those amazing like performance hints thing that you've heard 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 if you're building systems you already have in your mind specific edge cases depending on it but now you have to like every time repeat it like are you having people spend a lot more time writing out more generic things to bring back or um i mean i do think well-written guides of of how to do good software engineering are going to 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 underlying software system should be doing. 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 can be helpful. You can imagine one for distributed systems. You could say, okay,

[1:17:37](https://realalpha.app/v/F_1oDPWxpFQ/?t=4657) 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 a coding agent be able to sort of cobble up more reliable and robust distributed systems yeah yeah wonder when gemini will be able to build spanner right probably already has the code inside you know yeah that i mean that's a good example right when you have like you know the cap theorem and it's like well this is like truth and you cannot break that and then you build something that broke it like i'm curious like models in a way are like would he say he broke it did you say you broke cap theorem really yeah okay all right i mean under local assumptions yeah under some yeah and they're like you know good clocks yeah it's like sometimes you don't have to like always follow what is known to be true and i think models in a way like if you tell them something they're like really buy into that you know um yeah so yeah just more thinking than

[1:18:55](https://realalpha.app/v/F_1oDPWxpFQ/?t=4735) any answer on how to fix it. Yeah. Just on this big prompting and iteration, I think that coming back to your latency point, I always try to, one A-B test or experiment or benchmark or research I would like is what is the performance difference between let's say three dumb fast model calls with human alignment because the human will correct. Human alignment being the human looks at the first one and produces a new prompt for the second one. Correct. As opposed to, like, you spec it up, you know, you spend a long time writing a big fat prompt, and then you have a very smart model do it. Right. Right.

[1:19:33](https://realalpha.app/v/F_1oDPWxpFQ/?t=4773) You know, because really is our lacks in performance an issue of, like, well, you just haven't specified well enough. There's no universe in which I can produce what you want because you just haven't told me. Right. It's underspecified, so I can produce 10 different things, and only one of them is the thing you wanted. Yeah. And the multi-turn taking with a flash model is enough. Yeah. yeah i'm i'm a big believer in pushing on latency because i think being able to have really low latency interactions with 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 going to be really really important for systems that need to do a lot of stuff uh between your interactions yeah yeah there's two extremes And then meanwhile, you also have DeepThink, which is all the way on the other side.

[1:20:33](https://realalpha.app/v/F_1oDPWxpFQ/?t=4833) Right. But you would use DeepThink all the time if it weren't for cost and latency, right? If you could have that capability in a model because the latency improvement was 20x in the underlying hardware and system and costs, there's no reason you wouldn't want that. Yeah. 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 yeah uh you know that there's uh the frito curve keeps climbing um yeah onward and outward onward yeah should we ask him for predictions to to go i don't know if you have any predictions that you like to keep you know like uh one way to do this is you have your tests whenever a new model comes out that you run uh what's something that you're not quite happy with yet that you think will get done soon um let me make two predictions that are not quite in that vein yeah 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 going to 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 every email every photo every video i've watched that's going to be really useful uh i think

[1:22:01](https://realalpha.app/v/F_1oDPWxpFQ/?t=4921) more and more specialized hardware is going to enable much lower latency models and much more capable models for affordable prices uh than say the current current status quo that's going to be also quite important yeah when you say much lower latency uh people usually talk in tokens per second is that a term that is okay okay uh you know we're at let's say 100 now yeah we can go to the thousands is it meaningful to go 10 thousands yes really okay absolutely right yeah because of chain of thought and chain of thought reasoning 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 chain of thought reasoning so i think you know being able to do that at 10 000 tokens per second would be awesome yeah at 10 000 tokens per second you are no longer reading code like you will just generate it you'll i'm not reading well remember it may not it may not end up with 10 000 tokens of code yeah it may be a thousand tokens of code that with 9 000 tokens of reasoning behind it yeah which should actually be probably much better code to read yeah yeah yeah if i had more time i would have written a short letter yeah yeah yeah um awesome jeff

[1:23:17](https://realalpha.app/v/F_1oDPWxpFQ/?t=4997) this was amazing thanks for taking the time thank you it's been fun thanks for having me
