WEBVTT

1
00:00:00.180 --> 00:00:11.460
[gentle music] Hey everyone, welcome to the Latent Space Podcast. This is Alessio, founder of Kernel Labs, and I'm joined by Swyx, editor of Latent Space. Hello, hello.

2
00:00:11.520 --> 00:00:18.400
We're here in the studio with Jeff Dean, chief AI scientist at Google. Welcome. Thanks for having me. [laughs] It's a bit surreal to have you in the studio.

3
00:00:18.440 --> 00:00:26.160
I've, I've watched so many of your talks, uh, and obviously, uh, y- your career has been super legendary. So, uh, I mean, congrats.

4
00:00:26.240 --> 00:00:33.880
I, I think the, the first thing that must be said, congrats on owning the Pareto frontier. [laughs] Thank you. Thank you. Pareto frontiers are good. Yeah. And it's good to be out there.

5
00:00:34.680 --> 00:00:47.760
Yeah, I mean, I, I think it's a combination of both, uh, your-- You have to own the Pareto frontier, you have to have, like, frontier f- capability, but also efficiency, and then offer that range of models that people like to use.

6
00:00:47.960 --> 00:00:48.220
Mm-hmm.

7
00:00:48.320 --> 00:01:00.320
Uh, and y- you know, s- some part of this was started because of your hardware work, some part of that is your model work, and, uh, you know, I'm sure there's lots of secret sauce that you guys, uh, have worked on, uh, cumulatively.

8
00:01:00.420 --> 00:01:05.680
But like, it's, it's really impressive to see it all come together in, like, this steadily advancing frontier. Yeah, yeah.

9
00:01:05.720 --> 00:01:11.260
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. Yeah.

10
00:01:11.360 --> 00:01:31.020
And, uh, you know, all of those really combine to help make you and us be able to make highly capable large models, as well as, you know, software techniques to get those large model capabilities into much smaller, lighter weight models that are, you know, much more cost effective and lower latency, but still, you know, quite capable for their size.

11
00:01:31.180 --> 00:01:42.020
So... Yeah. How, how much pressure do you have on, like, having the lower bound of the Pareto frontier too? I think, like, the new labs are always trying to push the top performance frontier- Mm-hmm...

12
00:01:42.080 --> 00:01:46.360
because they need to raise more money and all of that, and you guys have billions of users.

13
00:01:46.420 --> 00:01:56.340
And I think initially when you worked on the TPU, you were thinking about, you know, if everybody that used Google will use the voice model for, like, three minutes a day, they were like, "You need to double your CPU number."

14
00:01:56.400 --> 00:02:03.640
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?

15
00:02:04.080 --> 00:02:16.720
Yeah, I mean, I think we always wanna have models that are at the frontier or pushing the frontier because I think that's where you see what capabilities now exist that didn't exist at the sort of slightly less capable last year's version- Mm-hmm...

16
00:02:16.760 --> 00:02:18.200
or last six months ago version.

17
00:02:18.920 --> 00:02:32.540
Um, at the same time, you know, we know there's, those are gonna be really useful for a bunch of use cases, but they're gonna be, uh, a bit slower and a bit more expensive than people might like for a bunch of other broader use cases.

18
00:02:32.580 --> 00:02:45.220
So I think what we wanna do is always have, um, kind of a highly capable, uh, sort of, uh, affordable model that enables a whole bunch of, you know, lower latency use cases.

19
00:02:45.280 --> 00:02:56.840
People can use them for agentic coding much more readily. Um, and then have the, the high-end, you know, frontier model that is really useful for, um, you know, uh, deep reasoning- Mm-hmm...

20
00:02:56.960 --> 00:03:06.420
you know, solving really complicated math problems, those kinds of things. And, you know, it's not that one or the other is useful. They're both useful. So I think we like to do both.

21
00:03:06.460 --> 00:03:18.100
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.

22
00:03:18.240 --> 00:03:27.960
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. And I mean, you and Jeffrey Hinton came out with distillation in 2014.

23
00:03:28.320 --> 00:03:36.200
Like, uh- Don't forget Oriol Vinyals as well. Yeah, yeah. Yeah, yeah. A, a long time ago. Like- Yeah... I, I'm curious how you think about the cycle of these ideas.

24
00:03:36.360 --> 00:03:44.380
Even like, you know, sparse models and, uh, you know- Mm-hmm... how, how do you reevaluate them? How do you think about in the next generational model, what is worth revisiting?

25
00:03:44.560 --> 00:03:52.520
Like, uh, yeah, they're just kind of like, uh... 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.

26
00:03:52.560 --> 00:04:05.120
I mean, I, I think distillation was originally motivated because we were seeing that we had a very large image data set at the time, you know, 300 million images that we could train on with, you know, I, I forget, like 20,000 categories or something.

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

28
00:04:16.040 --> 00:04:29.900
and this one's gonna be really good at sort of indoor room scenes or whatever. And you can cluster those categories and train on an enriched stream of data after you do pre-training on, on a much broader set of images.

29
00:04:30.360 --> 00:04:40.480
You get much better performance if you then treat that whole set of maybe 50 models you've trained as a large ensemble. Um, but that's not a very practical thing- Mm-hmm... to serve, right?

30
00:04:40.520 --> 00:04:54.840
So distillation really came about from the idea of, okay, what if we want to actually serve that and train all these independent sort of expert models, um, and then squish it into something that actually fits in a form factor that you can actually serve.

31
00:04:55.360 --> 00:04:58.360
And that's, you know, not that different from what we're doing today.

32
00:04:58.400 --> 00:05:10.240
You know, often today we're instead of having an ensemble of 50 models, we're having a much larger scale model that we then distill into a much smaller scale model. Hmm. Yeah.

33
00:05:10.320 --> 00:05:23.240
Uh, a part of me also wonders if distillation also has a story with the RL, um, revolution. So what-- Let me, let me maybe try to articulate what I mean by that. Uh, which is you can...

34
00:05:23.300 --> 00:05:36.680
Uh, RL basically spikes models in a certain, uh, part of the distribution, and then you have to sort of-- Well, you can spike models, but usually sometimes you, you, it might, it might be lossy in other areas, and it's kind of like an uneven technique.

35
00:05:36.720 --> 00:05:49.300
But you can probably distill it back, uh, and you can s- uh... I think the, the sort of general, um, dream is to be able to advance capabilities without regressing on anything else. Right.

36
00:05:49.340 --> 00:05:59.900
And I think, like, that, that whole capability merging without loss, uh, uh, I feel like it's, it, like, you know, some part of that should be a distillation process, but I can't quite articulate it.

37
00:05:59.940 --> 00:06:01.680
I haven't seen much papers about it. Mm-hmm.

38
00:06:02.352 --> 00:06:21.832
Yeah, I mean, I, I, I tend to think of one of the key advantages of distillation is that you can have a much smaller model and you can have a very large, uh, you know, training data set, and you can get utility out of making many passes over that data set because you're now getting the logits from a much larger model in order to sort of- Yeah...

39
00:06:21.932 --> 00:06:27.912
sort of coax the right behavior out of the smaller model, uh, that you don't-- wouldn't otherwise get with just the hard labels. Yeah.

40
00:06:27.912 --> 00:06:39.492
Uh, and so, um, you know, I think that's what we've observed is you can get, you know, clo- very close to your largest model performance with distillation approaches. Yeah.

41
00:06:39.512 --> 00:06:50.352
And that, that seems to be, you know, a nice sweet spot for a lot of people because it enables us to kind of, uh, for multiple Gemini generations now, we've been able to make the sort of- Flash...

42
00:06:50.412 --> 00:07:01.292
Flash version of the next generation b- as good or even substantially better than the previous generation's Pro. And I think we're gonna keep trying to do that, 'cause that seems like a good, uh, trend to follow.

43
00:07:01.292 --> 00:07:11.232
[laughs] Um, dare I ask, uh, so there was, it was-- the original map was Flash, Pro, and Ultra. Mm-hmm. Uh, is Ult- are you just sitting on Ultra and distilling from that? Is that like the model load?

44
00:07:11.232 --> 00:07:18.392
[laughs] Uh, I mean, we have a lot of different kinds of models. Some are internal ones that are not necessarily meant to be released or served.

45
00:07:18.872 --> 00:07:27.652
Some are, you know, our Pro scale model, and we can distill from that as well into our Flash scale model. So I think, you know, uh, it's, uh, it's an important

46
00:07:28.632 --> 00:07:37.212
set of capabilities to have, and also inference time scaling can also be a useful thing- Yeah... to improve the capabilities of the model then. Yeah. Yeah, cool.

47
00:07:37.432 --> 00:07:45.532
Yeah, and it-- a-a-obviously, I think the e-economy of Flash is what has led to the total dominance. I think, like, the, the latest number is like fifty trillion, uh, tokens. I, I don't know.

48
00:07:45.592 --> 00:07:52.532
I mean, obviously it's changing every day. Yeah, yeah. But, uh, you know, by market share- Hopefully, hopefully up. [laughs] No, I mean, there's no...

49
00:07:53.032 --> 00:08:02.052
I mean, just economics-wise, like, uh, because Flash is so economical, like you can use it for everything. Like, it's in Gmail now, it's in YouTube. Like it's in- Yeah... it's in everything.

50
00:08:02.092 --> 00:08:09.992
We're using it more in our search products of our AI mode- AI mode... AI mode overviews. Oh my God. Yeah. Flash models AI mode. Oh my God, yeah. That's, yeah, I didn't even think about that.

51
00:08:10.112 --> 00:08:18.112
[laughs] Um, I mean, I think one of the things that is, uh, quite nice about the Flash model is not only is it more affordable, it's also a lower latency.

52
00:08:18.372 --> 00:08:33.552
And I think latency is actually a pretty important characteristic for these models because we're gonna want models to do much more complicated things that are gonna involve, you know, generating many more tokens from when you ask the model to do something until it actually finishes what you ask it to do.

53
00:08:33.652 --> 00:08:41.012
'Cause you're gonna ask now not just write me a for loop, but like write me a, a whole software package to do X or Y or Z.

54
00:08:41.772 --> 00:08:50.952
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.

55
00:08:50.992 --> 00:09:13.412
You know, obviously our hardware platforms enable a bunch of interesting aspects of our, you know, serving stack as well, like TPUs, uh, the interconnect between chips on the TPUs, uh, is actually quite, quite high performance and quite amenable to, for example, long context kind of attention operations, you know, having sparse models with lots of experts.

56
00:09:13.492 --> 00:09:20.472
Um, these kinds of things really, really matter a lot in terms of how do you make them, uh, servable at scale. Yeah.

57
00:09:21.132 --> 00:09:32.512
Does it feel like there's some breaking point for like the proto Flash distillation, kinda like one generation delayed? I, I almost think about almost like the capability asymptote in certain tasks.

58
00:09:32.912 --> 00:09:42.212
Like the Pro model today is as saturated as some sort of task. Mm-hmm. So next generation, that same task will be saturated at the Flash price point. Mm-hmm.

59
00:09:42.232 --> 00:09:50.392
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.

60
00:09:50.892 --> 00:09:59.652
And how do you make it economical to like keep pushing the Pro frontier when- Mm-hmm... a lot of the population will be okay with the Flash model? I'm curious how you think about that.

61
00:09:59.892 --> 00:10:06.272
I mean, I think that's true if your distribution of what people are asking people or the models to do is stationary, right? Mm-hmm.

62
00:10:06.292 --> 00:10:15.992
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.

63
00:10:16.052 --> 00:10:25.812
Like I used to try our models a year ago for some sort of coding task, and it was okay at some simpler things, but wouldn't do-- work very well for more complicated things.

64
00:10:26.392 --> 00:10:33.412
And since then, we've improved dramatically on the more co- on the more complicated coding tasks, and now I'll ask it to do much more complicated things.

65
00:10:33.432 --> 00:10:44.792
And I think that's true not just for coding, but of, you know, now, you know, can you analyze all the, you know, renewable energy, uh, deployments in the world and give me a report on solar- [laughs] Yeah...

66
00:10:44.792 --> 00:10:50.792
panel deployment or whatever. That's a very complicated, you know, more complicated task than people would have asked a year ago.

67
00:10:51.492 --> 00:11:04.932
And so you are gonna want more capable models to push the frontier in the sense of what people ask the models to do, and that also then gives us insight into, okay, where does the... where do things break down?

68
00:11:04.992 --> 00:11:15.312
How can we improve the model in these, these particular areas, uh, in order to sort of, um, make the next generation even better? Yeah. Are there any benchmarks or like test sets they use internally?

69
00:11:15.372 --> 00:11:21.712
Because it's almost like the same benchmarks get reported every time, and it's like, all right, it's like ninety-nine instead of ninety-seven. Like- Yeah...

70
00:11:21.732 --> 00:11:25.972
how, how do you have to keep pushing the team internally to it or like this is what we're building towards?

71
00:11:26.352 --> 00:11:40.692
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.

72
00:11:41.192 --> 00:11:47.532
You know, I, I, I like to think of the best kinds of benchmarks are ones where the initial scores are like ten to- Right...

73
00:11:47.612 --> 00:12:00.712
twenty or thirty percent maybe, but not higher, and then you can sort of work on improving that capability for, uh, whatever it is that the benchmark is trying to assess and get it up to like eighty, ninety percent, whatever.

74
00:12:01.192 --> 00:12:05.252
I, I think once it hits kind of ninety-five percent or something, you get very diminishing- Right...

75
00:12:05.312 --> 00:12:18.780
returns from really focusing on that benchmark 'cause it's sort of- I- it's either the case that you've now achieved that capability, or there's also the issue of leakage in public data or very related kind of data being, being in your training data.

76
00:12:19.140 --> 00:12:30.040
Um, so we have a bunch of held-out internal benchmarks that we really look at where we know that wasn't represented in the training data at all. There are capabilities that we want the model to have, um,

77
00:12:31.100 --> 00:12:38.040
that it doesn't have now, and then we can work on, you know, assessing, you know, how do we make the model better at these kinds of things?

78
00:12:38.120 --> 00:12:48.180
Is it we need different kind of data to train on that's more specialized for this particular kind of task? Do we need, um, you know, a bunch of, uh, you know, architectural improvements or some- Mm-hmm...

79
00:12:48.220 --> 00:12:58.960
sort of, uh, model capability improvements? You know, what would help make that better? Is there, is there such an example that you've, uh, a benchmark inspired an architectural improvement?

80
00:12:59.260 --> 00:13:06.160
Like, uh, I'm just kind of jumping on that because you just... Uh, I mean, I think some of the long context capabilities- Yeah...

81
00:13:06.260 --> 00:13:12.980
of the, of the Gemini models that came, I guess, first in 1.5 really were about- The needle in a haystack... looking at- Yeah...

82
00:13:13.040 --> 00:13:23.320
okay, we wanna have, um, you know- Immediately everyone jumped to, like, completely green charts of like- Right... everyone had [laughs] I was like, "How did everyone crack this at the same time?" [laughs] Right.

83
00:13:23.560 --> 00:13:35.560
Yeah, yeah. I mean, I think, um, and once you're sat- I mean, as you say, that needed single needle in a haystack benchmark is really saturated for at least context lengths up to 128K or something. Yeah.

84
00:13:35.600 --> 00:13:45.660
I think most people don't actually have, you know, much larger than 128K these days, or 256 or something. Um, you know, we're trying to push the frontier of one million or two million context length.

85
00:13:45.700 --> 00:13:47.380
I think Google's still the leader at two million. Yeah.

86
00:13:47.400 --> 00:14:00.400
Yep, which is good because I think there are a lot of use cases where, you know, putting a thousand pages of text or putting, you know, multiple, you know, hour-long videos in the context, and then actually being able to make use of that is useful.

87
00:14:01.020 --> 00:14:06.560
But the, the single needle in a haystack benchmark is sort of saturated.

88
00:14:07.320 --> 00:14:29.800
Um, so you really want more complicated, uh, sort of multi-needle or more realistic, take all this content and produce this kind of answer from, uh, uh, a long context that sort of better assesses what it is people really wanna do with long context, which is not just, you know, can you tell me the product number- Mm-hmm...

89
00:14:30.060 --> 00:14:34.740
for this particular thing. Yeah. It's retrieval. It's, it's- Yeah... uh, retrieval within machine learning.

90
00:14:35.180 --> 00:14:41.780
Uh, yeah, it's, it's interesting because, like, I, I think the, the more meta less level I'm trying to operate at here is, uh, you have a benchmark.

91
00:14:41.880 --> 00:14:50.580
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. Mm-hmm.

92
00:14:50.640 --> 00:14:59.640
And it's what Jason Wei, who used to work at Google, would say. Like, e-exactly the kind of thing like, yeah, you're gonna win short term. Longer term, I don't know if that's gonna scale. Right.

93
00:14:59.660 --> 00:15:09.000
You might have to undo that. [laughs] I mean, I, I, I like to sort of not focus on exactly what solution one should derive, but what capability would you want?

94
00:15:09.040 --> 00:15:22.640
And I think we're very convinced that, 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?

95
00:15:22.700 --> 00:15:33.380
Oh, God. Right? [laughs] But that's not going to be solved by purely scaling the existing solutions, which are quadratic. So a million tokens kind of pushes- Mm-hmm... uh, what you can do.

96
00:15:33.420 --> 00:15:37.560
You're not gonna do that to a trillion tokens, let alone- Mm... you know, a billion tokens, let alone a trillion.

97
00:15:38.240 --> 00:15:48.820
Um, but I think if you could give the illusion that you can attend to trillions of tokens, that would be amazing, and you'd be-- find all kinds of uses for that. You would have, um, attend to the internet.

98
00:15:49.060 --> 00:15:58.680
You could attend to the pixels of YouTube and the sort of- Mm... deeper representations that we can form for a single video, but across many videos.

99
00:15:59.120 --> 00:16:11.080
You know, uh, on a personal Gemini level, you could attend to all of your personal state with your permission, so like your emails, your photos, your- Yeah... your docs, your plane tickets you have.

100
00:16:11.700 --> 00:16:15.760
Um, I, I think that would be really, really useful. And the question is, how do you

101
00:16:16.700 --> 00:16:26.500
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.

102
00:16:26.800 --> 00:16:37.940
By the way, I, I think I, I did some math, and if, like, if you spoke all day, every day for eight hours a day, um, you only generate a maximum of like 100K tokens [laughs] which, like, very comfortably fits.

103
00:16:38.000 --> 00:16:46.460
[laughs] Right. But if you then say- Right... "Okay, I wanna be able to, um, understand-" For, for every 10 tokens per day... everything people are putting on videos." Yeah, exactly. Exactly.

104
00:16:46.500 --> 00:16:56.140
Well, and also, I think the, the classic example is, um, you start going beyond language into, like, proteins and, uh, whatever else is extremely information dense. Yeah. Uh, yeah.

105
00:16:56.200 --> 00:17:08.780
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

106
00:17:09.960 --> 00:17:23.600
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- Yeah... like lidar sensor data from- Yes...

107
00:17:23.760 --> 00:17:33.480
Waymo vehicles or, like, robots. Yeah. Uh, or, you know, various kinds of health modalities, X-rays and MRIs and imaging and genomics information.

108
00:17:34.080 --> 00:17:44.420
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.

109
00:17:45.040 --> 00:17:58.180
Uh, where even if you haven't trained on all the lidar data or MRI data, you could have because maybe that's not, you know, doesn't make sense in terms of trade-offs of, you know, what you include in your main pre-training data mix.

110
00:17:58.220 --> 00:18:06.372
At least including a little bit of it is actually quite useful- Yeah... 'cause it sort of Uh, tempt the model that this is a thing. Yeah, yeah. Do, do you believe...

111
00:18:06.412 --> 00:18:10.932
I mean, since we're on this topic and, and something I, I just get to ask you all the questions I always wanted to ask, which is fantastic.

112
00:18:11.332 --> 00:18:15.452
Uh, like, there, are there some king modalities, like modalities that supersede all the other modalities?

113
00:18:15.652 --> 00:18:24.132
So the, a simple example was vision, um, can on a pixel level encode text, and DeepSeek had this, had this, uh- Mm-hmm... DeepSeek- Mm-hmm... CR paper that did that.

114
00:18:24.652 --> 00:18:33.272
Uh, vision has also been shown to maybe incorporate audio, because you can do audio spectrograms, and that's, that's- Mm-hmm... also like a vision, uh- Yeah... capable thing.

115
00:18:33.352 --> 00:18:42.032
Like, so, so maybe vision is just the king modality and, like- Yeah. I mean- [laughs]... vision and motion are quite important things, right? I mean- Motion, uh, is like vision over time...

116
00:18:42.052 --> 00:18:49.012
well, like video as opposed to static images. Yeah, vision over time. Yeah Because, I mean, there's a reason evolution has evolved eyes like 23 independent ways- Mm-hmm...

117
00:18:49.072 --> 00:19:04.952
because it's such a useful capability for sensing the world around you, which is really what we want these models to be able to do, is interpret the things we're seeing or the things we're, we're paying attention to, and then help us in, uh, using that information to, to do things.

118
00:19:05.532 --> 00:19:15.672
Yeah. I, I think motion... Uh, you know, I, I still want to shout out, I think Gemini, uh, still the only native video understanding model that's out there. [laughs] Uh, so I use it for YouTube all the time. Uh-huh.

119
00:19:15.692 --> 00:19:26.312
Nice. You can see- Yeah, yeah. I mean, it's actually... I think people kind of d- are not necessarily aware of what the Gemini models can actually do with video. Like, uh- Tell us...

120
00:19:26.512 --> 00:19:37.252
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.

121
00:19:37.692 --> 00:19:43.812
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 we've got.

122
00:19:43.852 --> 00:19:55.952
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?"

123
00:19:56.652 --> 00:20:11.572
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- [laughs]... like a turn video into SQL-like table. [laughs] Yeah. Mm-hmm.

124
00:20:11.652 --> 00:20:16.832
Has there been any discussion inside of Google of like, you mentioned tending to the whole internet, right?

125
00:20:17.592 --> 00:20:24.732
Google, it's almost built because the, a human cannot tend to the whole internet, and you need some sort of ranking to f- Mm-hmm... find what you need. Yep.

126
00:20:25.432 --> 00:20:33.112
That ranking is, like, much different for an LLM, because y- you can expect a person to look at maybe the first five, six links in a Google search- Mm-hmm...

127
00:20:33.272 --> 00:20:44.292
versus for an LLM should you expect to have 20 links that are highly relevant. Like, how, how do you internally figure out, you know, how do we build the AI mode that is, like, maybe, like, much broader- Mm-hmm...

128
00:20:44.472 --> 00:20:57.632
search and span versus, like, the more human one? Yeah. I mean, I think even pre-language model-based works, you know, our ranking systems would be built to start with a giant number of web pages in our index.

129
00:20:57.912 --> 00:21:08.952
Many of them are not relevant, so you identify a subset of them that are relevant with very lightweight kinds of methods. You know, you're now under, like, 30,000 documents or something. Mm-hmm.

130
00:21:08.992 --> 00:21:26.172
And then you ha- gradually refine that to apply more and more sophisticated algorithms and more and more sophisticated sort of signals of various kinds in order to get down to ultimately what you show, which is, you know, the final 10 results or, you know, 10 results plus other kinds of- Mm-hmm...

131
00:21:26.212 --> 00:21:32.132
information. And I think an LLM-based system is not gonna be that dissimilar, right?

132
00:21:32.192 --> 00:21:45.072
You're gonna attend to trillions of tokens, but you're gonna want to identify, you know, what are the 30,000-ish documents that are with the, you know, uh, maybe 30 million interesting tokens.

133
00:21:45.772 --> 00:21:57.272
And then how do you go from that into what are the 117 documents I really should be paying attention to in order to carry out the task that the user has asked me to do. Um, and I think,

134
00:21:58.532 --> 00:22:10.452
you know, you can ima- you can imagine systems where you have, you know, a lot of, uh, highly parallel processing to identify those initial 30,000 candidates, maybe with very lightweight kinds of models.

135
00:22:11.032 --> 00:22:28.172
Um, then you have some system that sort of helps you narrow down from 30,000 to the 117, uh, with maybe a little bit more sophisticated, um, model, uh, or a set of models, and then maybe the final model is the thing that looks at 117 things that might be your most capable model.

136
00:22:28.552 --> 00:22:36.932
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.

137
00:22:37.552 --> 00:22:47.872
Um, sort of the way Google Search gives you, you know, not the illusion, but you are searching the internet- Yeah... but you're finding, you know, a very small subset of things that are, that are relevant. Yeah.

138
00:22:47.932 --> 00:22:50.732
I, I often tell a lot of people, uh, that

139
00:22:51.652 --> 00:23:00.772
are not steeped in, like, Google Search history that, uh, well, you know, like BERT was, like, used, like, basically immediately [laughs] inside of Google Search, uh, and that improves results a lot, right?

140
00:23:00.812 --> 00:23:08.292
Like I- Yeah... I don't, I don't have any numbers, uh, off the top, top of my head, but, like, I'm sure you guy- I- that's obviously the most important numbers to in- to Google. Yeah.

141
00:23:08.332 --> 00:23:15.252
I mean, I, I think going to an LLM-based representation of text and words and so on- Yeah...

142
00:23:15.312 --> 00:23:28.572
enables you to get out of the explicit hard notion of, of particular words having to be on the page, but really getting at the notion of this topic of this page or this paragraph is highly relevant to this query. Yeah.

143
00:23:28.652 --> 00:23:37.092
I, I don't think people understand how much LLMs have taken over all these very high traffic sy- Yeah... very high traffic. Yeah. Like, [laughs] it's Google. Yeah. Uh, it's YouTube.

144
00:23:37.192 --> 00:23:45.332
Uh, YouTube has this, like, semantics, uh, ID thing- Mm-hmm... where just, like, every token or every, uh, item in the vocab is a YouTube video or something- Right...

145
00:23:45.432 --> 00:23:54.832
it predicts the video w- using a code book, which is absurd to me for, for YouTube's size. And then, uh, most recently Grok also for, for xAI, which is like... Yeah.

146
00:23:55.212 --> 00:24:07.092
I mean, I'll call out even before LLMs were used extensively in Search, we put a lot of emphasis on softening the notion of what the user actually entered into the query so that if I- Yeah.

147
00:24:07.112 --> 00:24:16.152
Do you have, like, a history of, like, what's the progression? Oh, yeah. I mean, I actually gave a talk in, uh, I guess, uh, web search and data mining conference in 2009- Okay...

148
00:24:16.272 --> 00:24:24.384
uh, where we never actually published any papers about the origins of Google Search, uh, sort of- But we went through sort of four- I mean, statute of limitations [laughs]...

149
00:24:24.384 --> 00:24:37.064
five or six generations, four or five or six generations of, uh, redesigning of the search and retrieval system, uh, from about 1999 through 2004 or '5. And that talk is really about that evolution.

150
00:24:37.104 --> 00:24:47.004
And one of the things that really happened in 2001 was we were sort of working to scale the system in multiple dimensions.

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

152
00:24:57.464 --> 00:25:05.364
not do well. [laughs] Um, and then we also needed to scale our capacity because we were-- our traffic was growing quite extensively.

153
00:25:05.964 --> 00:25:11.084
Um, and so we had, you know, a sharded system where you have more and more shards as the index grows. You have, like,

154
00:25:12.224 --> 00:25:21.444
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.

155
00:25:22.164 --> 00:25:25.504
Um, and then as traffic grows, you add more and more replicas of each of those.

156
00:25:26.263 --> 00:25:38.704
And so we eventually did the math that realized that in a data center where we had, say, 60 shards and, um, you know, 20 copies of each shard, we now had 1,200 machines, uh, with disks.

157
00:25:39.384 --> 00:25:50.864
And we did the math and we're like, "Hey, one copy of that index would actually fit in memory across 1,200 machines." Mm-hmm. So in 2001, we introduced, uh, we put our entire index in memory. Mm.

158
00:25:50.944 --> 00:26:05.564
And what that enabled from a quality perspective was amazing because before you had to be really careful about, you know, how many different terms you looked at for a query because every one of them would involve a disk seek on every one of the 60 shards.

159
00:26:06.024 --> 00:26:10.344
And so you, as you make your index bigger, that becomes even more inefficient.

160
00:26:11.324 --> 00:26:25.744
But once you have the whole index in memory, it's totally fine to have 50 terms you throw into the query from the user's original three or four-word query, because now you can add synonyms like restaurant and restaurants and cafe and, uh, bistro and all- Mm...

161
00:26:25.764 --> 00:26:39.944
these things, and you can suddenly start, uh, sort of really, uh, getting at the meaning of the word as opposed to the exact semantic form the user typed in. And that was, you know, 2001, very much pre-LLM. Yeah.

162
00:26:39.944 --> 00:26:52.144
But really it was about softening the, the strict definition of what the user typed in order to get at the meaning. Hmm. What are, like, principles that you use to, like, design the systems? Especially when you have...

163
00:26:52.184 --> 00:26:57.544
I mean, in 2001 the internet is, like, doubling, tripling every year in size. Yeah. It's not like a, you know...

164
00:26:57.584 --> 00:27:03.764
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- Mm-hmm... so big.

165
00:27:04.364 --> 00:27:09.764
Are there just any, you know, principles that you use to, like, think about this? Yeah. I mean, I think, uh,

166
00:27:11.064 --> 00:27:19.404
you know, first, whenever you're designing a system, you wanna understand what are the sort of design parameters that are gonna be most important in designing that.

167
00:27:19.444 --> 00:27:27.184
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?

168
00:27:28.624 --> 00:27:37.604
How are you gonna look at it when you retrieve things? Um, what happens if traffic were to double or triple? You know, will that system work well?

169
00:27:37.864 --> 00:27:50.144
And I think a good design principle is you're gonna wanna design a system so that the most important characteristics could scale by, like, factors of 5 or 10, but probably not beyond that. Because- Oh...

170
00:27:50.264 --> 00:27:59.264
often what happens is if you design a system for X and something suddenly becomes 100X, that would enable a very different des- point in the design space- Mm...

171
00:27:59.284 --> 00:28:03.204
that would not make sense at X, but all of a sudden at 100X makes total sense.

172
00:28:03.264 --> 00:28:21.224
So, like, going from a disk-based index to a in-memory index makes a lot of sense once you have enough traffic because now you have enough replicas of the sort of state on disk that those machines now actually can hold, uh, you know, a, a full copy of a me- uh, index in memory.

173
00:28:21.504 --> 00:28:26.984
Yeah. And that all of a sudden enables a completely different design that wouldn't have been practical before. Yeah.

174
00:28:27.684 --> 00:28:38.784
Um, so I'm, I-I'm a big fan of thinking through designs in your head, just kind of playing with the design space a little before you actually do a lot of writing of code.

175
00:28:38.844 --> 00:28:49.204
But, you know, as you said, in the early days of Google, we were, you, growing the index, uh, quite extensively. We were growing the update rate of the index. Yeah.

176
00:28:49.244 --> 00:29:02.824
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.

177
00:29:02.884 --> 00:29:07.764
Yeah, because this- Yeah... is a competitive advantage, right? Right. Because all of a sudden- Like, obviously people notice... news-related queries, you know, if you're- Yeah...

178
00:29:07.804 --> 00:29:16.084
if you've got last month's news index- Right... it's not actually that useful for- News was a special beast. Was there any... Like, you could have split it onto a separate system. Well, we did.

179
00:29:16.124 --> 00:29:24.484
We launched a Google News product. Yeah. [laughs] 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.

180
00:29:24.664 --> 00:29:32.844
And then you have to, like, cla- classify whether the page is... Y- you have to decide which pages should be updated and what frequency. Oh, yeah. There's a whole- It's almost-... like, uh, system- [laughs]...

181
00:29:32.864 --> 00:29:37.044
behind the scenes that's trying to decide update rates and- Yeah... importance of the pages.

182
00:29:37.084 --> 00:29:50.504
So even if the update rate seems low, you might still wanna recrawl important pages quite often because, uh, the likelihood they change might be low, but the value of having them- It's very important... updated is high.

183
00:29:50.584 --> 00:30:00.744
Yeah. Yeah. Uh, well, you know, this, uh, you know, mention of latency and, and saving things to disk reminds me of one of your classics, which I have to bring up, which is latency numbers every programmer should know.

184
00:30:01.004 --> 00:30:06.944
Uh-huh. Yep. Uh, was there a s- was it just a g- just a general story behind that? Did you like sit it down? Um, I mean- [laughs]...

185
00:30:07.124 --> 00:30:15.244
this has like sort of 8 or 10 different kinds of metrics that are, like, how long does a cache miss take? Yeah. How long does branch miss predict take? How long does a reference to main memory take?

186
00:30:15.284 --> 00:30:23.824
How long does a disk- It's fantastic. Yeah. These are constants How long does it take to send, you know, a packet from the US to the Netherlands or something? Mm-hmm. Um, I think- Why, why Netherlands, by the way?

187
00:30:23.944 --> 00:30:34.812
Or is it, is that because of Chrome? Uh, we had a data center in the building. Yeah. [laughs] Um, so I mean, I think this gets to the point of being able to do the back of the envelope calculations.

188
00:30:34.872 --> 00:30:42.372
So these are sort of the- Yeah... raw ingredients of those, and you can use them to say, "Okay, well, if I need to design a system to do

189
00:30:43.332 --> 00:30:55.672
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.

190
00:30:56.192 --> 00:31:04.392
What would that do? How much disk bandwidth then I need? How many disk seeks would I do?" Um, and you can sort of actually do thought experiments- Mm-hmm...

191
00:31:04.392 --> 00:31:10.152
in, you know, 30 seconds or a minute with the sort of, uh, basic, uh, basic numbers at your fingertips.

192
00:31:10.812 --> 00:31:26.592
Uh, and then as you sort of build software using higher level libraries, you kinda wanna develop the same intuitions for how long does it take to, you know, look up something in this particular kind of hash table I use, or, you know, how long will it take me to sort a million numbers or something.

193
00:31:26.872 --> 00:31:34.792
Yeah. The, the reason I bring it up actually is actually for, I think, like two years now, I've been trying to make numbers every AI programmer should know. Okay. Yeah.

194
00:31:34.892 --> 00:31:44.612
Uh, I don't have a great one, uh, because it's, it's not as... It's not physical constants like you have physical constants in here. Mm-hmm. You know, it's, uh, i- and, uh... But I do think like, uh...

195
00:31:44.652 --> 00:31:54.912
So a, a simple one would be number of parameters to, um, uh, disk size if you, if you need to convert that- Mm-hmm... uh, which is a simple byte conversion. That's not, that's nothing interesting.

196
00:31:55.112 --> 00:32:03.492
I wonder if you have any, if you want, if you- Oh, yeah. I w-... if you were to update your- I mean, I think, uh, it's really good to think about, uh,

197
00:32:04.772 --> 00:32:14.812
calculations you're doing in a model, either for training or inference. Um, often a good way to view that is how much,

198
00:32:15.752 --> 00:32:26.612
uh, state will you need to bring in from memory, either like on-chip SRAM or HBM from the accelerator- Mm-hmm... attached, uh, memory or DRAM or over the network.

199
00:32:27.272 --> 00:32:40.592
Um, and then how expensive is that data motion relative to, uh, the cost of, say, an actual multiply in the matrix multiply unit? Yeah. And that cost is actually really, really low, right?

200
00:32:40.752 --> 00:32:52.272
Because it's, you know, order, you know, uh, depending on your precision, I think it's like sub-pico j- one picojoule. Oh, okay, you measure it by energy. But, yeah, yeah. Okay.

201
00:32:52.812 --> 00:32:56.632
I mean, it's all gonna be about energy and how do you- Yeah... make the most energy efficient system.

202
00:32:57.432 --> 00:33:11.252
Um, and then moving data from the SRAM on the other side of the chip, uh, not even off the s- off chip, but on the other side of the same chip can be, you know, a thousand picojoules. Oh. Or- Yeah...

203
00:33:11.392 --> 00:33:17.232
and so all of a sudden, this is why your accelerators, uh, require batching.

204
00:33:17.392 --> 00:33:30.032
Because if you move, like say, the parameter of a model from SRAM on the, on the chip into the multiplier unit, that's gonna cost you a thousand picojoules, so you better make use of that, that thing that you moved- Mm...

205
00:33:30.032 --> 00:33:37.952
many, many times with... So that's where the batch dimension comes in, because all of a sudden, you know, if you have a batch of 256 or something, that's not so bad.

206
00:33:38.472 --> 00:33:46.512
But if you have a batch of one, that's really not good. Yeah, yeah. Right? Because then you paid 1,000 picojoules in order to do- Oh, wow. Yeah... your one picojoule multiply.

207
00:33:46.592 --> 00:33:56.432
I have never heard a energy-based analysis of batching. [laughs] Yeah. I mean, that's why people batch, right? Yeah, yeah. Yeah. But ideally you'd like to use batch size one because the latency would be great.

208
00:33:56.432 --> 00:34:04.372
Yeah, the best latency. But the energy cost and the, the compute cost inefficiency that you get, um, is, is quite large. So... Yeah.

209
00:34:04.912 --> 00:34:09.392
Is there a symmetric like, uh, like, like you did with, uh, you know, of, of putting everything in memory?

210
00:34:09.432 --> 00:34:19.972
Like, you know, I think, uh, obviously Nvidia has caused a lot of waves with, uh, betting very hard on, on SRAM with Groq. Uh, I, I, I wonder if, like, that's something that you already saw with, with the TPUs, right?

211
00:34:20.032 --> 00:34:33.432
Like that, that you had to, uh, to, to serve at your scale, uh, you probably sort of saw that coming. Like what, what, what hardware, uh, innovations or insights were formed because of what you're seeing there?

212
00:34:34.332 --> 00:34:45.151
Yeah, I mean, I think, you know, TPUs have this nice, uh, sort of regular structure of 2D or 3D meshes with a bunch of chips connected. Yeah. And each one of those has HBM attached.

213
00:34:45.831 --> 00:35:00.312
Um, I think for serving some kinds of models, uh, you know, you, you pay a lot higher cost and time latency, um, bringing things in from HBM than you do bringing them in from, uh, SRAM on the chip.

214
00:35:00.992 --> 00:35:12.152
So if you have a small enough model, you can actually do model parallelism, spread it out over lots of chips, and you actually get quite good throughput improvements and latency improvements from doing that.

215
00:35:12.512 --> 00:35:25.752
And so you're now sort of striping your smallish scale model over, say, 16 or 64 chips. Uh, but if, if you do that and it all fits in the SRAM, uh, that can be a big win. So yeah, that's not a surprise- [laughs]...

216
00:35:25.772 --> 00:35:34.332
but it is a good technique. Yeah. But, uh, what about the TPU design? Like, how much do you decide where the improvements have to go?

217
00:35:34.472 --> 00:35:44.912
So like it, this is, like, a good example of like, is there a way to bring the 1,000 picojoule dow- joules down to 50? Mm-hmm. And like, is it worth designing a new chip to do that?

218
00:35:44.952 --> 00:35:50.072
The extreme is like when people say, "Oh, you should burn the model on the ASIC," and that's- Mm-hmm... kinda like the most extreme thing. Mm-hmm.

219
00:35:50.992 --> 00:35:57.292
How much of it is it worth doing in hardware when things change so quickly? Like what- Yeah... what's the internal discussion?

220
00:35:57.832 --> 00:36:18.412
Yeah, I mean, we, we have a lot of interaction between, say, the TPU chip design architecture team and the sort of higher level modeling, uh, experts because you really wanna take advantage of being able to co-design what should future TPUs look like based on where we think the sort of ML research puck is going, uh, in some sense.

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

222
00:36:37.692 --> 00:36:53.132
So you're trying to predict two to six years out where what ML computations will people wanna run two to six years out in a very fast-changing field. And so having people with interesting ML research ideas

223
00:36:54.332 --> 00:37:10.372
of things we think will start to work in that timeframe or will be more important in that timeframe, uh, really enables us to then get, you know, interesting hardware features put into, you know, TPU N plus two, where TPU N is what we have today.

224
00:37:10.492 --> 00:37:21.352
Oh, the cycle time is plus two. Y- roughly. I mean- Wow... because, uh, I mean, sometimes you can squeeze some changes into N plus one, but you know, bigger changes are gonna require- Yeah...

225
00:37:21.572 --> 00:37:29.692
the chip design be earlier- Mm-hmm... in its lifetime design process. Um, so whenever we can do that, it's generally good.

226
00:37:29.732 --> 00:37:37.772
And sometimes you can put in speculative features that maybe won't cost you much chip area, but if it works out, it would make something, you know, 10 times as fast.

227
00:37:38.152 --> 00:37:44.612
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.

228
00:37:45.152 --> 00:37:58.072
Uh, sometimes it's a very big change, and we wanna be pretty sure this is gonna work out, so we'll do, like, lots of careful, uh, ML experimentation to show us, uh, this is actually the, the way we wanna go. Yeah.

229
00:37:58.372 --> 00:38:06.392
I- is there a reverse of like we already committed to this chip design, so we cannot take the model architecture that way because it doesn't quite fit?

230
00:38:07.332 --> 00:38:13.692
Yeah, I mean, you, you definitely have things where you're going to adapt what the model architecture looks like

231
00:38:14.652 --> 00:38:26.292
so that they're efficient on the chips that you're gonna have for both training and inference of that, of that, uh, uh, generation of a model. So I think it kinda goes both ways.

232
00:38:26.872 --> 00:38:31.912
Um, you know, sometimes you can take advantage of, you know, lower precision things- Mm-hmm...

233
00:38:31.932 --> 00:38:43.031
that are coming in a future generation, so you can-- might train it at that lower precision even if the current generation doesn't quite, uh, do that. Mm-hmm. Yeah. How low can we go in precision?

234
00:38:43.832 --> 00:38:52.472
'Cause people are saying- [laughs]... like ternary is like useful. [laughs] Uh, yeah. I mean, I'm a big fan of very low precision 'cause I think that gets-- that saves you a tremendous amount of energy, right?

235
00:38:52.512 --> 00:38:59.352
'Cause it's- Mm-hmm... picojoules per bit that you're transferring. And- Yeah... reducing the number of bits is a really good way to, to reduce that.

236
00:38:59.932 --> 00:39:12.352
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.

237
00:39:13.272 --> 00:39:22.152
Scaling [mumbles]. Okay. Interesting. You-- so low, low precision, but scaled up weights. Yeah. Huh. Yeah, never considered that. Interesting.

238
00:39:22.412 --> 00:39:30.972
Uh, wh- wh- while we're on this topic, you know, I think there's a lot of, um, uh, y- th- this is the concept of precision at all is weird when we're s-sampling, you know? Mm-hmm.

239
00:39:31.052 --> 00:39:39.612
Uh, if maybe we just-- at the end of this, we're gonna have all these, like, chips that all do, like, very good math, and then we're just gonna throw a random number generator at the start and [laughs] work.

240
00:39:39.652 --> 00:39:49.652
So I mean, I, I-- there's a movement towards, uh, energy-based, uh- Mm-hmm... models and, and pro-processors. Yep. I'm just curious if you've-- uh, obviously, you've thought about it, but, like, what's your commentary?

241
00:39:50.632 --> 00:40:00.072
Yeah, I mean, I think there's a bunch of interesting trends, so energy-based models is one. You know, diffusion-based models which don't sort of sequentially decode tokens is another. Yes.

242
00:40:00.612 --> 00:40:07.152
Um, you know, speculative decoding is a way that you can get sort of an equivalent, very small- Draft...

243
00:40:07.192 --> 00:40:30.672
batch factor, uh, for-- like you predict eight tokens out, and that enables you to sort of increase the effective batch size of what you're doing by a factor of eight even-- And then you maybe accept five or six of those tokens, so you get fi- a five x improvement in the amortization of moving weights, uh, into the multipliers to do the prediction for the, the tokens.

244
00:40:30.732 --> 00:40:46.452
So these are all really good techniques, and I think it's really good to look at them from the lens of, uh, energy, [laughs] real energy, not energy-based models, um, and, and also latency and throughput, right?

245
00:40:46.812 --> 00:40:58.992
If you look at things from that lens, that sort of guides you to solutions that are gonna be, uh, you know, better from, uh, you know, being able to serve larger models or, you know,

246
00:41:00.192 --> 00:41:09.012
equivalent size models more cheaply and with lower latency. Yeah. Well, yeah, I think, I think I, um... It's appealing intellectually.

247
00:41:09.092 --> 00:41:22.132
Uh, haven't seen it, like, really hit in the mainstream, but, um, I do think that, uh, there's some poetry in the sense that, uh, you know, we don't have to do, uh, a lot of shenanigans if, like, we fundamentally design it into the hardware.

248
00:41:22.132 --> 00:41:33.352
[laughs] Yeah, yeah. I mean, I think there's still a hu- there's also sort of the more exotic things like analog-based, uh, uh, computing substrates as opposed to digital ones.

249
00:41:33.912 --> 00:41:38.632
Uh, I'm-- You know, I think those are super interesting 'cause they can be potentially low power. Mm-hmm.

250
00:41:38.712 --> 00:41:47.992
Uh, but I think you often end up wanting to interface that with digital systems, and you end up losing a lot of the power advantages in the digital to analog and analog to digital conversions- Mm-hmm...

251
00:41:48.012 --> 00:41:52.372
you end up doing, uh, at the sort of boundaries and periphery of that system. Mm-hmm.

252
00:41:52.752 --> 00:42:05.992
Um, I still think there's a tremendous distance we can go from where we are today in terms of energy efficiency with sort of, uh, much better and specialized hardware for the models we care about. Yeah.

253
00:42:07.252 --> 00:42:18.452
Um, any other interesting research ideas that you've seen or, like, maybe things that you cannot pursue at Google that you would be interested in seeing researchers take a stab at? I guess you have a lot of researchers.

254
00:42:18.452 --> 00:42:26.232
[laughs] Yeah, yeah, we have a lot of researchers. I guess you have enough, like- Our, our research portfolio- [laughs]... is pretty broad, I would say. Um, I mean, I think, uh,

255
00:42:27.372 --> 00:42:40.512
in terms of research direction, there's a whole bunch of, uh, you know, open problems and how do you make these models reliable and able to do much longer kind of, uh, more complex tasks that have lots of subtasks.

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

257
00:42:56.588 --> 00:43:04.508
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? Mm-hmm.

258
00:43:04.548 --> 00:43:13.968
I think it's a s- pretty interesting open problem, because I think that would broaden out the capabilities of the models, the improvements that you're seeing in both math and coding.

259
00:43:14.668 --> 00:43:22.028
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,

260
00:43:23.068 --> 00:43:33.468
that would, that would really make the models improve quite a lot, I think. Hmm. I'm curious, like when we had Noah Brown on the podcast, he said, um, they already proved you can do it with deep research. Mm-hmm.

261
00:43:33.568 --> 00:43:46.688
Um, you kind of have it with AI mode in a way- Mm-hmm... it's not verifiable. I'm curious if there's any thread that you think is interesting there. Like what is... It, it, both are like information retrieval- Yeah...

262
00:43:46.828 --> 00:43:55.548
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, how would you model that, that problem?

263
00:43:56.388 --> 00:44:07.688
Yeah, I mean, I think there are ways of having other models that can evaluate the results of what a first model did. Maybe in retrieving, can you have another model that says, "Is this things...

264
00:44:08.068 --> 00:44:17.788
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.

265
00:44:18.468 --> 00:44:28.088
Um, I think those kinds of techniques are actually quite effective. Sometimes that can even be the same model just prompted differently to be- Mm... a, you know, a critic as opposed to a, uh, actual retrieval system.

266
00:44:28.448 --> 00:44:38.468
Yeah. Um, uh, I do think like there, there is that, that weird cliff where like w- it feels like we've done the easy stuff, and then now it's- Yeah... it, it, but it always feels like that.

267
00:44:38.488 --> 00:44:46.528
[clears throat] Like every year it's like, "Oh, like we know what we know, and the next part is super hard and nobody's figured it out." And, uh, [laughs] like the- Yeah...

268
00:44:46.548 --> 00:44:56.528
but why exactly with this RLVR thing where like everyone's talking about, "Well, okay, how do we do the next stage of the non-verifiable stuff?" Mm-hmm. And everyone's like, "I don't know." You know, "I only judge it."

269
00:44:56.528 --> 00:45:06.208
[laughs] Yeah. I mean, I feel like the nice thing about this field is there's lots and lots of smart people thinking about creative solutions to some of the, you know- Yeah... problems that we all see.

270
00:45:07.008 --> 00:45:17.408
Uh, because I think everyone sort of sees that the models, you know, are great at some things, and they fall down around the edges of those things and, and are not as capable as we'd like in those areas. And then

271
00:45:18.568 --> 00:45:26.788
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.

272
00:45:26.888 --> 00:45:37.968
And I think that's why it's super interesting. You know, if you think back two years ago, we were struggling with GSM8K problems, right? Mm-hmm. Like, you know, Fred has two rabbits. Uh, he gets three more rabbits.

273
00:45:38.028 --> 00:45:47.048
How many rabbits does he have? [laughs] That's a pretty far cry from the kinds of mathematics that the models can- And now you're doing IMO-... can solve. IMO and-... yeah, goals...

274
00:45:47.048 --> 00:46:00.188
yeah, and Erdos pro- In pure language... problems online, yeah. Yeah. Yeah, pure language. So that is a really, really amazing jump in capabilities in, you know, a year and a half or something. And I think, um,

275
00:46:01.828 --> 00:46:04.848
for other areas, it'd be great if we could make that kind of leap.

276
00:46:05.448 --> 00:46:14.308
Uh, and you know, we don't exactly see how to do it for some, some areas, but we do see it for some other areas, and we're gonna work hard, hard on making that better. Yeah. Yeah.

277
00:46:14.728 --> 00:46:22.368
Like YouTube thumbnail generation, that would be very helpful. We need that. That would be AGI. We need that. [laughs] For, for as far as content creators go. That would be... YouTube thumbs. Yeah.

278
00:46:22.428 --> 00:46:29.928
I guess I'm not a YouTube creator, [laughs] so I don't care that much about that problem. [laughs] But I guess, uh, many people do. It do- uh, yeah, it doesn't, it doesn't matter.

279
00:46:30.008 --> 00:46:32.448
People do judge books by their covers, as it turns out. Okay. Yeah.

280
00:46:32.548 --> 00:46:44.108
Um, uh, just to drill a bit on the IMO goal, um, I'm still not over the fact that a year ago we had alpha proof and alpha geometry and all those things, and then this year we were like, "Screw that.

281
00:46:44.348 --> 00:46:50.648
We'll just chuck it into Gemini." [laughs] Yeah. What's your reflection? Like I think this, this question about- [clears throat]...

282
00:46:50.688 --> 00:47:01.588
like the merger of like symbolic systems and like, and, and LLMs, uh, was a very much core belief, and then somewhere along the line people just said, "Nope, we'll just all do it in the LLM."

283
00:47:03.088 --> 00:47:14.148
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? Mm-hmm.

284
00:47:14.168 --> 00:47:31.688
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.

285
00:47:31.708 --> 00:47:35.688
"No, that, that approach for solving the problem doesn't seem like it's gonna work. I'm gonna try this one."

286
00:47:36.408 --> 00:47:49.828
And you know, in a lot of ways, we're emulating what we intuitively think, uh, is happening inside real brains in neural net-based models. So it never made sense to me to have like completely separate,

287
00:47:50.888 --> 00:48:03.208
discrete, uh, symbolic things and then a completely different way of, of, um, you know, thinking about those things. Interesting. Yeah. Uh, uh, I mean, uh, it, it, it's...

288
00:48:03.488 --> 00:48:05.788
It maybe seems obvious to you, but it wasn't obvious to me a year ago.

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

290
00:48:31.328 --> 00:48:41.520
have improved dramatically and, and now you don't need the specialized models. This is actually sort of very similar to the 2013 to '16 era of machine learning, right?

291
00:48:41.580 --> 00:48:46.200
Like it used to be people would train separate models for lots of different, each different problem, right?

292
00:48:46.320 --> 00:48:57.060
I have-- I wanna recognize street signs and some things, so I train a street sign recognit- recognition model, or I wanna, you know, decode speech recognition, I have a speech model, right?

293
00:48:57.240 --> 00:49:09.560
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? Yeah. And- Yeah...

294
00:49:09.580 --> 00:49:15.800
they're getting better and better. And you, and you don't need domain experts. Like one of my, uh... So I interviewed Yi Tay- Mm-hmm... who was on, who was on that team- Yep...

295
00:49:15.880 --> 00:49:25.620
uh, and he was like, "Yeah, I, I don't know how they work. I don't know where the IMO competition was held. I don't know the rules of it. I just train the models." [laughs] "I'm good at training models." [laughs] Yeah.

296
00:49:25.780 --> 00:49:30.960
Yeah. And it's kind of interesting that like people with these, this like universal skill set of just like machine learning- Mm-hmm...

297
00:49:31.100 --> 00:49:39.420
you just give them data and give them, uh, enough compute, and they can kinda tackle any task, which is- Yeah, right [laughs]... and, and the bitter lesson, I guess. I don't know. Yeah, yeah.

298
00:49:39.480 --> 00:49:47.700
I mean, I think, uh, general models, uh, will win out over specialized ones in most cases. Yeah. Uh, uh, so I wanna push there a bit. Mm-hmm.

299
00:49:47.740 --> 00:49:59.260
I think there's one hole here, which is like, uh, there's this concept of like, uh, maybe capacity of a model. Yeah. Like abstractly, a model can only contain the number of bits that it has. Mm-hmm. And, uh, and so

300
00:50:00.200 --> 00:50:08.660
it, you know, God knows like Gemini Pro is like one to 10 trillion parameters. We don't know. But, uh, the Gemma models, for example, right?

301
00:50:08.700 --> 00:50:19.080
Like a lot of people want like the open source local models that are like the, the, that... And, and, uh, they have some knowledge which is not necessary, right? Like they can't know everything. Like- Yeah...

302
00:50:19.100 --> 00:50:24.840
like you have the luxury of you have the big model, and big model should be able, capable of everything. Mm-hmm.

303
00:50:24.940 --> 00:50:34.860
But like when, when you're distilling and you're going down to the small models, you know you're actually memorizing things that are not useful. Yeah. And so like how do we, I guess, do, do we want to extract that?

304
00:50:34.940 --> 00:50:46.180
Can we ex- 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? Yes.

305
00:50:46.200 --> 00:50:56.980
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?

306
00:50:57.040 --> 00:51:07.100
Like you might prefer something that is more generally useful in more settings than this obscure fact that it has. Um, so I think that's always a tension.

307
00:51:07.160 --> 00:51:15.840
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?

308
00:51:15.880 --> 00:51:26.380
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? [laughs] And, uh, it should have that kind of knowledge.

309
00:51:26.640 --> 00:51:32.860
It maybe doesn't need to know how long some teeny little bridge in some other more obscure part of the world is.

310
00:51:33.500 --> 00:51:45.280
But, uh, it does help it to have a fair bit of world knowledge, and the bigger your model is, the more you can have. Uh, but I do think combining retrieval with sort of reasoning and making the model

311
00:51:46.300 --> 00:51:58.120
really good at doing multiple stages of retrieval and reasoning through the intermediate retrieval results is gonna be a, a pretty effective way of making the model seem much more capable.

312
00:51:58.300 --> 00:52:05.440
'Cause if you think about, say, a personal Gemini. Yeah. Right? Like we're not gonna train Gemini on my email probably.

313
00:52:05.620 --> 00:52:23.020
We'd rather have a single model that, uh, we can then use and use being able to retrieve from my email as a tool and have the model reason about it and retrieve from my photos or whatever, uh, and then make use of that and have multiple, um, you know, uh, stages of interaction.

314
00:52:23.920 --> 00:52:33.740
Hmm. That makes sense. Do you think the vertical models are like a interesting pursuit? Like when people are like, "Oh, we're building the best healthcare LLM. We're building the best law LLM."

315
00:52:34.400 --> 00:52:40.680
Are those kind of like short-term stop gaps, or? No. I mean, I think, I think vertical models are interesting.

316
00:52:40.800 --> 00:52:52.880
Like you want them to start from a pretty good base model, but then you can sort of-- I, I sort of viewing them, view them as enriching the data distribution for that particular vertical domain.

317
00:52:52.940 --> 00:52:58.400
For healthcare, say, um, we're probably not gonna train, or for, say, robotics.

318
00:52:58.440 --> 00:53:06.720
We're probably not gonna train Gemini on all possible robotics data we-- you could train it on, because we want it to have a balanced set of capabilities.

319
00:53:07.400 --> 00:53:17.120
Um, so we'll expose it to some robotics data, but if you're trying to build a really, really good robotics model, you're gonna wanna start with that and then train it on more robotics data.

320
00:53:17.720 --> 00:53:24.000
And then maybe that would hurt its multilingual translation capability, but improve its robotics capabilities.

321
00:53:24.240 --> 00:53:35.980
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- Mm-hmm...

322
00:53:36.300 --> 00:53:46.380
uh, and as much data as we have for those languages. Mm-hmm. Yeah. But that's gonna displace some other capabilities of the model. It won't be as good at, um, you know, Perl programming.

323
00:53:46.800 --> 00:54:04.520
You know, it'll still be good at Python programming 'cause we'll include enough of that, but there's other long tail computer languages or coding capabilities that it may suffer on, or multi, uh, multimodal reasoning capabilities may suffer 'cause we didn't get to expose it to as much data there, but it's really good at multilingual things.

324
00:54:04.560 --> 00:54:10.640
So I, I think some combination of specialized models, maybe more modular models.

325
00:54:10.680 --> 00:54:26.160
So it'd be nice to have the capability to have those 200 languages, plus this awesome robotics model, plus this awesome healthcare, uh, module that all can be knitted together to work in concert and called upon in different circumstances, right?

326
00:54:26.200 --> 00:54:37.880
Yeah. 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. In- installable knowledge. Yeah.

327
00:54:37.900 --> 00:54:45.620
[clears throat] Right? Just download as a, as a package. And some of that installable stuff can come from retrieval- Yeah... but some of it probably should come from- It's preloaded. Yeah...

328
00:54:45.680 --> 00:54:51.300
training on, you know, uh- A hundred billion tokens or a trillion tokens of health data. Yeah. Right.

329
00:54:51.300 --> 00:54:56.220
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.

330
00:54:56.840 --> 00:55:05.460
Yeah, I guess the question is, like, how many billions of tokens do you need to outpace the frontier model- Mm-hmm... improvements?

331
00:55:05.500 --> 00:55:15.260
You know, it's like if I have to make this model better at healthcare, and the main Gemini model is still improving- Mm-hmm... do I need 50 billion tokens? Can I do it with a hundred?

332
00:55:15.280 --> 00:55:22.400
[laughs] If I need a trillion healthcare tokens, it's like they're probably not out there that you don't have. You know, I think that's really, like, the challenge.

333
00:55:22.400 --> 00:55:25.120
Well, I mean, I think healthcare is a particularly challenging domain. Right.

334
00:55:25.160 --> 00:55:37.820
And so there's a lot of healthcare data that, you know, we don't have access to appropriately, but there's a lot of, you know, uh, healthcare organizations that want to train models on their own data that is not public healthcare data.

335
00:55:38.600 --> 00:55:41.300
Uh, not public health, but public healthcare data.

336
00:55:41.320 --> 00:55:57.620
[laughs] Um, so I think there are opportunities there to, say, partner with a large healthcare organization and train models for their use that are gonna be, you know, more bespoke, but probably, uh, might be better than a general model trained on- Mm-hmm...

337
00:55:57.660 --> 00:56:03.440
say, public data. Yeah. Yeah. I, I, I believe, uh... By the way, also, this is, like, somewhat related to the language conversation.

338
00:56:03.840 --> 00:56:10.380
Uh, I think one of your, your favorite examples was you can put a low-resource language in the context- Mm-hmm... and it just learns [laughs] in context. Oh, yeah.

339
00:56:10.520 --> 00:56:22.240
[laughs] I think the example we used was Kalamang- [laughs]... which is truly low resource 'cause it's only spoken by, I think, 120 people in the world, and there's no- Wow... written text. Uh-huh. Yeah. So yeah.

340
00:56:22.280 --> 00:56:27.060
So you can just do it that way, just put it in the context. [laughs] Yeah. Yeah, but I think- Put your whole data set in the context, right?

341
00:56:27.080 --> 00:56:37.620
If you, if you take a language like, uh, you know, Somali or something, there is a fair bit of Somali text in the world that, uh... or E- Ethiopian Amharic or something. Um,

342
00:56:38.720 --> 00:56:49.920
you know, we probably are not putting all the data from those languages into the Gemini-based training. We put some of it, but if you put more of it, you'll improve the capabilities of those models. Yeah.

343
00:56:49.980 --> 00:56:59.060
So, or of those languages. Uh, s- yeah, cool. Uh, i- i- it's, uh, the-- I, I have a side interest in linguistics.

344
00:56:59.240 --> 00:57:09.580
I, I, I, I did a, uh, a few classes in, back in college and, like, uh, part of me, like, if I was a linguist and I could, uh, have access to all these models, I, I would just be asking really fundamental questions about language itself.

345
00:57:09.620 --> 00:57:16.680
Like, uh, one is... Th- there's one very ex- obvious one, which is Sapir-Whorf, like how much does, like, the language that you speak affect your thinking?

346
00:57:17.100 --> 00:57:23.860
But then also there are some languages where there's just concepts that are not represented in other languages, but so- others, many others that are just duplicates, right?

347
00:57:23.940 --> 00:57:29.940
Where, uh, there's also another paper that people love called "The Platonic Representation" where, you know, like, the, the...

348
00:57:30.120 --> 00:57:40.140
an image of a cup is, uh, if you say learn a model on that, and you, you, you have a lot of text with the word "cup," it eventually maps to, like, roughly the same place- Mm-hmm... in latent space.

349
00:57:40.500 --> 00:57:53.200
And so, like, that should apply to languages- Hmm... except where it doesn't, and that's actually, like, very interesting differences in what humanity has discovered as concepts that maybe English doesn't have. Mm-hmm.

350
00:57:54.560 --> 00:57:58.480
[laughs] I, I don't know. It's just, like, my, my rant on languages. Yeah.

351
00:57:58.560 --> 00:58:12.080
I mean, w- I, I did some work on a early model that fused together a language-based model where you have, you know, nice word-based representations, and then an image mo- model where you have trained it on Im- ImageNet-like things.

352
00:58:12.140 --> 00:58:19.380
Yes. And then you fuse together the top layers of- With Flamingo? Uh, no, this is Devise. Devise. Uh, uh, the--

353
00:58:20.620 --> 00:58:36.700
You do a little bit more training to fuse together those representations, and what you found was that if you give a novel image that is not in any of the categories in the image model it was trained on, the model can often as- assign kind of the right ca- the right label to that image.

354
00:58:37.320 --> 00:58:51.200
Um, so for example, um, I think, uh, telescope and, uh, binoculars were both in the training, uh, categories for the image model, but, um, microscope was not. Hmm.

355
00:58:51.460 --> 00:59:00.260
And so if you're given an image of a microscope, it actually can come up with something that's, uh, got the word "microscope" as the label that it assigns, even though it's never actually seen- Hmm...

356
00:59:00.380 --> 00:59:08.860
an image labeled that. Oh, that's nice neural solution. That's kind of cool. Yeah. Yeah. Um, so yeah. [laughs] Useful. Uh, cool.

357
00:59:08.920 --> 00:59:19.080
Uh, I think there, there's more general, like, broad questions, but, like, I guess, what, what do you, uh, wish you were asked more in, in general? Like, you know, like, you, you have such a broad scope.

358
00:59:19.300 --> 00:59:23.840
We've covered the hardware. We've covered the, the, the models research, um- Yeah. I mean, I think, uh,

359
00:59:25.500 --> 00:59:42.360
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, 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.

360
00:59:42.620 --> 00:59:54.900
Hmm. So, like, the 32 processors in the department parallel computer, you know, could get you a, a little bit more interesting, um, model, but not, not enough to solve real problems. And so starting in 2008 or '9,

361
00:59:55.800 --> 01:00:12.060
you know, the world started to have enough computing power through Moore's law and, you know, larger interesting data sets to train on to actually, you know, start training neural nets that could tackle real problems that people cared about, speech recognition, vision, and eventually, uh, language.

362
01:00:12.800 --> 01:00:13.000
Um,

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

364
01:00:27.840 --> 01:00:40.300
And so I actually, uh, revived some ideas from my undergrad thesis [laughs] where I'd done both model parallel and data parallel, uh, training, and I compared them. Hmm. Huh. Um, I, I called them something different.

365
01:00:40.360 --> 01:00:48.240
It was like pattern partitioned and, you know, model partitioned or something. We'll have to-- Is it, is it public? Can we go dig it up? Yeah, yeah. It's on, it's on the web. Okay. Um- Nice...

366
01:00:48.280 --> 01:00:58.668
but, uh- You know, I think combining a lot of those techniques and really just trying to push on scaling things up over the last, you know, 15 years has been, you know, really important, and that means,

367
01:00:59.648 --> 01:01:05.188
you know, improvements in the hardware. So, you know, pushing on building specialized hardware like GPUs.

368
01:01:05.808 --> 01:01:18.908
Uh, it also means, you know, pushing on software abstraction layers to let people express ML ideas, uh, effectively. Um, and then also working on things like, uh, say, sparse models.

369
01:01:19.028 --> 01:01:29.488
I've, I've felt for a long time that sort of sparsely activated models are a really important thing because you want the models to have a lot of capacity, to our earlier discussion about remembering a lot of stuff. Yeah.

370
01:01:30.008 --> 01:01:41.728
But you also want to be super efficient in how you activate your models. So you'd like, you know, trillions of parameters, but activate only, you know, one, 1% or 5% or 10% of that.

371
01:01:42.388 --> 01:01:53.467
And, um, that, you know, we did a early, um, paper on this where we really scaled up, um, you know, outrageously large neural networks. That was the title of the paper.

372
01:01:53.488 --> 01:02:01.268
[laughs] Yeah, I think, I think that's Noam's, [laughs] uh- Yeah... Noam's wording in the title, which is a good catchy title. I mean, in 2017 he was- Yeah... out there talking about 1 trillion parameter models. Yes.

373
01:02:02.188 --> 01:02:14.288
Yeah. So, I mean- [laughs]... that, that, that is really good because that gave you like a 10X improvement in, you know, time to quality or compute cost to qual- a given quality level relative to non-sparse models.

374
01:02:14.848 --> 01:02:27.468
Um, transformers similarly gave you a 10X to 100X improvement in, you know, uh, compute cost to a given quality level, uh, versus say LSTMs at the time. And all of those things multiply together.

375
01:02:28.328 --> 01:02:32.908
Um, so I think all those things really are important to work on.

376
01:02:32.968 --> 01:02:43.188
You know, the hardware, the systems infrastructure, the, you know, algorithmic aspects of model architecture, the improving the data, you know, improving the RL recipes.

377
01:02:43.268 --> 01:02:58.007
All these things, uh, are what are stacking together and multiplying together- Yeah... to give us models of 2026 are much more better than models of '25, and are awesomely better than '24 and '23 and '22.

378
01:02:58.567 --> 01:03:04.808
And, and the huge, uh, hon- honestly, like organizational challenge. Like, this is like 1,000 people or maybe more. I haven't seen the idea.

379
01:03:04.848 --> 01:03:14.148
Like, I know, I know when the first Gemini people came out, it was like 1,000 of co-authors. [laughs] Yeah, yeah. We have, uh, 10 pages of co-authors in the- [laughs]... in the checker part. But yeah, it was nice.

380
01:03:14.208 --> 01:03:22.008
I mean, you know, people wanna be acknowledged on like a- Yeah. No, I-... 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

381
01:03:22.968 --> 01:03:38.708
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.

382
01:03:38.748 --> 01:03:48.428
And we have awesome people, uh, throughout the Gemini team to help orchestrate this. So, you know, myself, Noam, and Oriol are sort of helping steer this.

383
01:03:48.468 --> 01:03:56.988
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 does the post-training recipe look like?

384
01:03:57.028 --> 01:04:08.128
And what does the data preparation entails? And, you know, mul- multimodal capabilities and I18n capabilities. Mm. Um, you know, there's a lot of different kinds of areas. Coding capabilities.

385
01:04:08.208 --> 01:04:19.148
All these areas are, are super important, and it's really good to have people, uh, paying close attention to those things, and then, uh, also paying close attention to all the other things. Yeah.

386
01:04:19.208 --> 01:04:30.488
I, I'm told Sergey is like very actively back and like- Yep... very much involved- Yeah, yeah. He's, uh-... in the coding stuff. Yep. Yeah, yeah, yeah. We all use the same microkitchen. [laughs] Yeah. Uh, oh, okay.

387
01:04:30.528 --> 01:04:38.488
Like there's so many jumping off points. Uh, so by the way, I found out from, uh, the recent, uh... I mean, you've probably told this story a few times, but apparently Google Brain was also started in a microkitchen.

388
01:04:39.048 --> 01:04:45.988
Yeah, yeah. I actually bumped- [laughs]... just like your microkitchens are very important. Yeah, yeah. I don't know if people, like, understand. [laughs] Yeah.

389
01:04:46.088 --> 01:04:55.528
Uh, yeah, I actually bumped into Andrew Ng, who's a Stanford faculty member, and, uh, I knew him from-- I'd given talks at Stanford a couple years before, so I sort of knew him.

390
01:04:55.568 --> 01:05:02.528
And I'm like, "Oh, what are you doing here?" He's like, "Oh, I'm not sure yet. I just started, you know, a couple weeks ago. I'm gonna spend one day a week here consulting.

391
01:05:03.188 --> 01:05:14.528
Um, I'm not sure what I'm working on, but my students at Stanford are starting to get good results, um, on using, um, neural nets for speech, uh, recognition." I'm like, "Oh, neural nets. I like neural nets."

392
01:05:14.608 --> 01:05:20.868
Like I remembered back to my 1990 thesis. You were a grad student, yeah. I'm like, "Oh, that sounds interesting. We should train really, really big neural nets."

393
01:05:21.488 --> 01:05:30.148
So that was the- Which you say that, and I think that's a very interesting first instinct- Mm-hmm... which is that we should scale this up a lot. [laughs] Yeah. Well- [laughs]... I mean, I felt like

394
01:05:31.728 --> 01:05:36.448
Google is, is-- has lots of computational- Yeah... uh, capability.

395
01:05:36.548 --> 01:05:49.548
And so if they were seeing good results on, you know, what were effectively single GPU or, uh, models, you know, if we were-- uh, we actually didn't have GPUs in our data centers then. We didn't have any accelerators.

396
01:05:49.908 --> 01:05:52.588
We had lots of CPUs. But, you know- Mm...

397
01:05:52.588 --> 01:06:01.888
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.

398
01:06:01.928 --> 01:06:13.928
It was 50X bigger than any previous neural net as far as we could tell. Um, so it's 2 billion parameters, uh, vision model, uh, trained on 16,000 CPU cores for like multiple weeks.

399
01:06:14.848 --> 01:06:29.028
Uh, and that's what gave us really good-- it gave us a 70% relative error improvement in ImageNet 22K, which is the 22,000 category thing. And that's how we really saw, okay, scaling this up actually matters.

400
01:06:29.168 --> 01:06:39.428
We didn't write a, you know, a sophisticated scaling analysis, but we had a, a saying. [laughs] Bigger model, more data, better results. [laughs] Yeah. And that was our- Really the starting mantra...

401
01:06:39.448 --> 01:06:51.188
our mantra for like six or seven years- Yeah... of scaling, and we w- every time we did that, we saw better results in speech, in language, in, in- Yeah... vision. Uh, speaking of, um- Bets.

402
01:06:51.228 --> 01:06:57.508
And this might, and this might, you know, I'll preface with like this might be a little bit more sensitive topic, but you have, uh, obviously a lot of opinions about this.

403
01:06:57.748 --> 01:07:09.368
We had a previous guest, David Wan, who used to work for you, and, uh, he, he kind of like blames almost the Brain Marketplace as like the reason that Google didn't invest enough in language models. Hmm.

404
01:07:09.388 --> 01:07:19.568
And I wonder if that's, uh, something you would a- [chuckles] you would agree with at the time, or, uh, is there like a different sort of postmortem? The Brain Marketplace for- For-... compute quotas. Compute quotas.

405
01:07:19.628 --> 01:07:25.988
Yeah. Where basically he was like, "Okay," the f- like David worked at OpenAI- Mm-hmm... at CV Engine, then he worked at Google.

406
01:07:26.208 --> 01:07:33.708
He was like, "Fundamentally, OpenAI was willing to go all in, like bet the farm on one thing." Mm-hmm. Whereas Google was more democratic, like everyone had a, had a quota.

407
01:07:34.028 --> 01:07:42.188
And I was like, "Okay," like, like if, if you believe in scaling as an important thing, that's a, that's an important- Mm-hmm... organizational-wide decision to do. Yeah.

408
01:07:42.748 --> 01:07:55.628
Uh, yeah, I mean, I think, uh, I would somewhat agree with that. I mean, I think I actually wrote a one-page memo saying we were being stupid by, uh, fragmenting our resources. Uh-huh.

409
01:07:55.728 --> 01:08:08.388
Um, so i- in particular at the time, we had, uh, you know, uh, r- efforts within Google research on, uh, and in, and in the Brain team in particular, on large language models.

410
01:08:08.448 --> 01:08:23.568
We also had efforts on multimodal models, um, in, uh, other parts of Brain and, and Google Research. And then Legacy DeepMind had, uh, efforts like, um, Chinchilla models and, uh, Flamingo models.

411
01:08:24.148 --> 01:08:36.968
Uh, and so really we were fragmenting not only our compute, uh, across those separate efforts, but also our best people and our best ideas, right? And so I said, "This is just stupid.

412
01:08:37.568 --> 01:08:48.268
Why don't we combine things and have one effort to, uh, train- Yeah, this is the merge. Yeah... to train an awesome single unified model that is multimodal from the start that's good at everything."

413
01:08:48.868 --> 01:08:59.868
And that was the origin of the Gemini- Yeah... uh, effort. And, um, my one-page memo worked, which is good. Um- Did you have the name? Because, uh, also for those who don't know, you named Gemini. I did. I did.

414
01:08:59.868 --> 01:09:11.168
[laughs] Yeah, yeah. There was, there was another name proposed and I, I said, "You know, it's sort of like these two organizations really are like, uh, twins- Twins. Mm. "... in some sense coming together." Yeah.

415
01:09:11.288 --> 01:09:24.128
Um, so I kind of liked that, and then there's also the NASA interpretation of, you know- Stars... the early Gemini project- Oh, okay... uh, being, uh, an important thing on your way to, um, you know, the Apollo project.

416
01:09:24.348 --> 01:09:34.128
So it seemed like a good name. Twins coming together. Right. Yeah. Nice. Um, I know we're already running out of time, but I'm curious how you use AI today to code.

417
01:09:34.348 --> 01:09:44.408
So I mean, you're probably one of the most prolific engineers in the history of computer science. Um, I was reading on, through the article about you and Sanjay's friendship and how- Mm-hmm...

418
01:09:44.488 --> 01:09:54.988
you worked together, and you had one quote about you need to find someone that you're gonna pair program with who's compatible with your way of thinking so that the two of you together are a complementary force. Mm-hmm.

419
01:09:55.288 --> 01:10:03.048
And I was thinking about how you think about coding agents in this. Yeah. Like, how do you shape a coding agents to be compatible with your way of thinking?

420
01:10:03.108 --> 01:10:07.128
Like how, how would you rate the tools today, and like where do you think, uh- Yeah.

421
01:10:07.348 --> 01:10:14.248
I mean, first I think the coding tools are, you know, getting vastly better compared to where they were a year or two ago- two years ago.

422
01:10:14.828 --> 01:10:26.508
So now you can actually rely on them to do more complex things that you as a, as a software engineer want to accomplish, and you can sort of delegate, you know, pretty complex things to these tools.

423
01:10:27.028 --> 01:10:36.488
And I think one really nice aspect about the, uh, interaction between a, a human, uh, software engineer and, uh,

424
01:10:37.408 --> 01:10:49.388
a coding model that they're working with is your way of talking to that, uh, coding model actually sort of, uh, dictates how it interacts with you, right?

425
01:10:49.508 --> 01:10:57.188
Like you could ask it, "Please write a bunch of good tests for this." You could ask it, "Please help me brainstorm performance ideas."

426
01:10:57.588 --> 01:11:09.567
And your way of doing that is gonna shape how the model responds, what kinds of, uh, problems it tackles, you know, how much do you want the model to go off and do things that are larger and more independent versus interact with it,

427
01:11:10.567 --> 01:11:19.628
uh, more- Mm... to make sure that you're shaping the right kinds of, of things. And I think it's not the case that any one style is the right thing for everything, right?

428
01:11:19.668 --> 01:11:29.888
Like some kinds of problems you actually want, uh, maybe a more frequent interaction style with the model, and other ones you're just like, "Yeah, please just go write this 'cause I, I know I need this thing.

429
01:11:30.028 --> 01:11:35.008
I can specify it well enough," um, and go off and do it, and come back when you're done.

430
01:11:35.248 --> 01:11:55.668
And so I do think there's gonna be more of a style of having lots of independent, uh, software agents off doing things on your behalf, and figuring out the right sort of human computer interaction model and UI and so on for when should it interrupt you and say, "Hey, I need a little more guidance here," or, "I've done this thing, now what, now what should I do?"

431
01:11:56.268 --> 01:12:09.208
Um, I think we- we're not at the end all answer to that question, and as the models get better, that, uh, s- set of decisions you put into how the interaction should happen may, may change, right?

432
01:12:09.248 --> 01:12:22.828
Like, uh, if you, if you have a team of 50 interns, how would you manage that if they were people? Mm. And, and I think it's not- Do you want 50 interns? [laughs] You might if they're really good, right?

433
01:12:23.508 --> 01:12:33.728
That's a lot of management. [laughs] But it, but it's a lot of, uh, uh, yeah, I mean, I think that is probably within the realm of possibilities that- Yes, it absolutely is... lots of people could have 50 interns. Yeah.

434
01:12:34.408 --> 01:12:43.508
And so how would you actually deal with that as a person, right? Like you would probably want them to form small subteams so you don't have to interact with 50 of them.

435
01:12:43.548 --> 01:12:55.636
You could interact with five of, five of those teams, and they're off doing things on your behalf. But I don't know exactly what the, how this is gonna unfold. Hmm. Yeah. H-how do you think about bringing people...

436
01:12:55.756 --> 01:13:01.456
Like, the pair programming is always helpful to, like, get net new ideas- Mm-hmm... in the distribution, so to speak.

437
01:13:02.136 --> 01:13:09.996
It feels as we have more of these coding agents write the code, it's hard to bring other people into the problem. Say you go to, like, you know, you have 50 interns, right?

438
01:13:10.336 --> 01:13:18.496
And then you wanna go to Noam Shazeer, be like, "Hey, Noam, I wanna, like, pair on this thing." Mm-hmm. But now there's, like, this huge amount of work that has been done in parallel- Mm-hmm...

439
01:13:18.576 --> 01:13:21.576
that you need to catch him up on. Right. And I'm curious, like,

440
01:13:22.616 --> 01:13:34.096
if people are gonna be in a way more isolated in their teams, where it's like, "Okay, there's so much context in these 50 interns that it's just hard for me to, like, relay everything back to you." Maybe.

441
01:13:34.156 --> 01:13:41.716
I mean, on the other hand, like, imagine a classical software org-organization without any AI-assisted tools, right?

442
01:13:41.796 --> 01:13:57.756
You would have, you know, 50 people doing stuff, and their interaction style is gonna be naturally very hierarchical because, um, you know, these 50 people are gonna be working on this part of the system and not interact that much with these other people over here.

443
01:13:58.276 --> 01:14:09.556
But if you have, you know, f-five people each managing 50 virtual agents, you know, they might be able to actually have much higher bandwidth communication among the five people, uh- Mm-hmm...

444
01:14:09.616 --> 01:14:21.656
than you would have among five people who are also trying to coordinate, you know, a 50-person software team each. Yeah. So. How, h-how do you... I'm curious how you change your just working rhythm, you know? Mm-hmm.

445
01:14:21.696 --> 01:14:26.136
Like, do you spend more time ahead with people going through specs and design goals? Like...

446
01:14:27.016 --> 01:14:39.896
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.

447
01:14:39.936 --> 01:14:45.976
Like, it was like, "Yeah, whatever. I don't need to do that. I'm gonna-" [laughs] Really? [laughs] I don't know. I mean, writing the English- Nobody's gonna read it...

448
01:14:46.116 --> 01:14:52.536
the English language specification was never kind of an artifact that was really paid a lot of attention to.

449
01:14:52.836 --> 01:15:00.116
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

450
01:15:01.516 --> 01:15:11.256
specify what software you want the agent to write for you, you'd better be pretty darn careful in how you specify that, because that's gonna dictate the quality of the output, right? Yeah.

451
01:15:11.276 --> 01:15:24.916
Like, if you, if you don't cover that it needs to handle this kind of thing or that this is a super important corner case or that, you know, you really care about the performance of this part of it, you know, it may, uh, not do what you want.

452
01:15:24.996 --> 01:15:37.996
And the better you get at interacting with these models, and, and I think one of the ways people will get better is they will get really good at crisply specifying things rather than leaving things to ambiguity. Mm-hmm.

453
01:15:38.676 --> 01:15:48.356
And that is actually probably not a bad thing. It's not a bad skill to have- Yes... regardless of whether you're a software engineer or a, you know, trying to do some other kind of, uh, task.

454
01:15:48.656 --> 01:15:52.656
You know, being able to crisply specify what it is you want is gonna be really important. Yeah.

455
01:15:52.796 --> 01:16:03.816
My, my joke is, um, you know, good prompting is in- uh, indistinguishable from sufficiently advanced executive communication. Like, [laughs] it's like writing an internal memo or like- Yeah, yeah...

456
01:16:03.876 --> 01:16:08.756
weigh your words very carefully. And also I think very important to be multimodal, right? Mm-hmm. I think, uh, one thing that- Yeah...

457
01:16:08.756 --> 01:16:18.356
uh, Antigravity from, from Google also did was, like, just come out the gate very, very strong on multimodal, including videos. Mm-hmm. And that's the highest bandwidth communication prompt that you can give the- Right.

458
01:16:18.396 --> 01:16:26.876
Yep... the model- Yeah... which is fantastic. Yeah. How, how do you collect things that you often you will have in your mind? So you have those amazing, like, performance hints- Mm-hmm...

459
01:16:26.916 --> 01:16:29.576
thing that you wrote about how to look for performance improvements. And

460
01:16:31.016 --> 01:16:42.356
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...

461
01:16:42.396 --> 01:16:48.516
Like, the edge cases is, like, a good example, right? It's like- Mm-hmm... if you're building systems, you already have in your mind specific edge cases- Mm-hmm... depending on it.

462
01:16:48.556 --> 01:16:59.136
But now you have to, like, every time repeat it. Mm-hmm. 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

463
01:17:00.636 --> 01:17:18.016
well-written guides of, of how to do good software engineering are gonna be useful because they can be used as input to models or, you know, read by other developers so that their prompts are, you know, more clear about what the, the underlying software system should, should be doing.

464
01:17:18.736 --> 01:17:34.876
Um, you know, I think it may not be that you need to create a custom one for every situation. If you have general guides and put those into, you know, the context of a coding agent, that, that can be helpful. Like in...

465
01:17:35.196 --> 01:17:42.016
You can imagine one for distributed systems. You could say, "Okay, think about failures of these kinds of things, and these are some techniques you can deal with failures."

466
01:17:42.656 --> 01:17:53.256
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.

467
01:17:53.956 --> 01:18:01.056
You know, a little description of 20 techniques like that in- Mm-hmm... building distributed systems probably would go a long way to having- Mm-hmm...

468
01:18:01.156 --> 01:18:14.576
a coding agent be able to sort of cobble up more reliable and robust distributed systems. Yep. Yeah. Wonder when Gemini will be able to build Spanner. Right. [laughs] Probably already has the code inside, you know.

469
01:18:14.876 --> 01:18:23.636
[laughs] Yeah. That, I mean, that's a good example, right? When you have, like, you know, the CAP theorem- Mm-hmm... and it's like, well, this is, like, truth- Mm-hmm...

470
01:18:23.716 --> 01:18:34.196
and you cannot break that, and then you build something that broke it. [laughs] Like, I'm curious, like, models in a way are like- What'd he say he broke it? Did he, did he say he broke CAP theorem? Really? Yeah, okay.

471
01:18:34.236 --> 01:18:41.336
All right. I mean... [laughs] Under local assumptions. Yeah, under some assumptions. Yeah. And they're like, you know- Well, they-... good clocks. [laughs] Yeah. Yeah.

472
01:18:41.376 --> 01:18:52.336
It's like some-sometimes you don't have to, like, always follow what is known to be true. Right. And I, I think models in a way, like, if you tell them something, they'll, like, really buy into that. Mm-hmm. You know?

473
01:18:52.456 --> 01:18:58.092
Um- Yeah... so yeah, just more Thinking than any answer on how to fix it [laughs] Yeah.

474
01:18:58.352 --> 01:19:07.512
My, my, uh, you know, just on this like s- like big prompting and, and, uh, iteration, you know, I think that com- coming back to your latency point, um, I always, I always try to...

475
01:19:07.852 --> 01:19:21.072
One, one A/B test or experiment or benchmark or research I would like is what is the, uh, performance difference between, let's say, three dumb fast model calls with human alignment, because a human will correct- Human alignment being- Human prompt...

476
01:19:21.152 --> 01:19:25.352
the human looks at the first one- Exactly... and produces- Human-... a new prompt- Yeah... for the second one to go. Correct. Okay.

477
01:19:25.752 --> 01:19:33.572
As opposed to like you spec it out, you know, spend a long time writing a s- a pro- a big, big fat prompt, and then you have a very smart model do it. Right. Right?

478
01:19:33.612 --> 01:19:40.772
You know, 'cause, uh, really is, is, uh, our lags in performance, uh, an issue of like, well, you just haven't specified well enough.

479
01:19:40.812 --> 01:19:49.032
There's no universe in which I can produce what you want 'cause you just haven't told me yet. Right. It's under-specified, so I could produce- Right... 10 different things, and only one of them is the thing you wanted.

480
01:19:49.172 --> 01:20:00.252
Yeah, and the multi-turn taking with a flash model is enough. Yeah. [laughs] Yeah. I'm, I'm a big believer in pushing on latency, because I think being able- Yeah...

481
01:20:00.252 --> 01:20:08.812
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.

482
01:20:08.832 --> 01:20:19.412
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.

483
01:20:20.252 --> 01:20:29.652
And that's gonna be really, really important for systems that need to do a lot of stuff, uh, between your interactions. Yeah. Yeah. There, there's two extremes, right?

484
01:20:29.832 --> 01:20:38.012
And then, and then meanwhile, you also have Deep Think, which is on- Mm-hmm... all the way on the other side. [laughs] Right. But you would use Deep Think all the time if it weren't for cost and latency.

485
01:20:38.092 --> 01:20:49.892
Cost and latency. Right? If, if you could have that capability in a model because the latency improvement was 20X, uh, in the underlying hardware and system and costs, you know, there's no reason you wouldn't want that.

486
01:20:50.532 --> 01:21:04.472
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, the- there's, uh, the Fredo curve keeps climbing. Um-

487
01:21:05.472 --> 01:21:14.992
Yeah. Exactly. Onward and outward. Onward and outward. [laughs] Yeah. Should we ask him for predictions to, to go? I don't know if you have any- [laughs]... predictions that you, that you like to keep. This...

488
01:21:15.092 --> 01:21:21.632
And, you know, like, uh, one, one way to do this is you have your tests whenever a, a new model comes out- Mm-hmm... that you run.

489
01:21:21.732 --> 01:21:34.952
Uh, what's something that y- you're not quite happy with yet that you think will get done soon? Um, let me make two predictions that are n- not quite- Okay... in that vein. Right. Yeah. So I think

490
01:21:36.112 --> 01:21:49.392
a personalized model that knows you and knows all your state and is able to retrieve over all state you have access to, that you opt into, is gonna be incredibly useful compared to a more generic model that doesn't have access to that.

491
01:21:50.192 --> 01:22:01.192
So like, can something attend to everything I've ever seen, uh, every email- Mm-hmm... every photo, every video I've watched? That's gonna be really useful. Uh, I think, uh,

492
01:22:02.512 --> 01:22:16.372
more and more specialized hardware is gonna enable much lower latency models and much more capable models for affordable prices, uh, than, say, the current, current status quo. Uh, that's gonna be also quite important.

493
01:22:16.832 --> 01:22:28.412
Yeah. When you say much lower latency, uh, people usually talk in tokens per second. Is that a term that is okay? Mm-hmm. Okay. Uh, you know, we're at le- let's say 100 now. Yeah. We, we can go to 1,000.

494
01:22:29.132 --> 01:22:36.952
Is it meaningful to go 10,000? Yes. Is it really? Okay. Absolutely. Right? Yeah. Because of chain-of-thought and all these reasoning- Chain-of-thought reasoning... yeah.

495
01:22:36.992 --> 01:22:48.612
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- Yeah... chain-of-thought reasoning.

496
01:22:49.012 --> 01:22:56.932
So I think, you know, being able to do that at 10,000 tokens per second would be awesome. Yeah. At, at 10,000 tokens per second, you are no longer reading code. Yeah, like you will just generate it.

497
01:22:56.952 --> 01:23:02.972
You'll- I'm not reading it- There's no- Well, remember-... writing it, so... it may not, it may not- Yeah... end up with 10,000 tokens of code. Yeah, reasoning and code.

498
01:23:02.992 --> 01:23:12.651
It may be 1,000 tokens of code that with 9,000 tokens of reasoning behind it- Yeah... which would actually be- Right... probably much better code to read. [laughs] Yeah, yeah. Yeah. Yeah.

499
01:23:12.711 --> 01:23:21.872
If I had more time, I would have written a shorter letter. Yeah. Yeah, yeah. Um, awesome, Jeff. This was amazing. Cool. Thanks for taking the time. Yeah. Thank you. Such an honor. It's been, it's been, uh, fun.

500
01:23:21.912 --> 01:23:30.872
Thanks for having me. [upbeat music]
