The alpha, twice a week
That was 5 min.
Get the best new moments in your inbox every Wednesday and Saturday. It's free.
Check your inbox
We sent a link to your address. Click it to finish signing up. Not there in a minute? Look in spam.
or
Latent Space · 5 min · Sep 22, 2026
ERA uses tree search to explore and improve scientific code
John Platt explains how ERA maintains candidate notebooks and uses Upper Confidence Bound to balance promising results with exploration.
The episode’s best minutes
Full analysis- 47:49ERA found a simple model that solved a stuck climate problemPro pick 3 min
- 9:55ERA uses tree search to explore and improve scientific code5 min
- 31:12Scientific AI needs hidden holdouts to guard against overfittingPro pick 3 min
- 5 more moments in the full episode
“It tries to estimate that, and it picks the one with the highest bound, the highest optimistic bound. So in other words, it doesn't always pick the best-performing notebook.”
John Plattat 11:08 · Latent SpaceTakeaways
- ERA keeps candidate notebooks in a tree of experiments.
- Upper Confidence Bound favors potential, not just the current best.
- Too much parallel work limits learning across experiments.
About this segment
John Platt explains how ERA maintains candidate notebooks and uses Upper Confidence Bound to balance promising results with exploration. A shared context lets experiments learn from earlier attempts.
John Platt is a Google Fellow and head of Applied Science at Google Research.
Leads Google Research's Applied Science branch; best known for the SMO algorithm for training support vector machines.

Shawn Wang (swyx), Host · Co-founder, AI Engineer
Wrote “The Rise of the AI Engineer” and founded Smol AI, maker of AI News.

Alessio Fanelli, Host · Founder, Kernel Labs
Partner at Decibel, backing technical founders who build developer tools.
From “🔬 Google's AI Scientist Started as an Attempt to Automate Kaggle — John Platt, Google Fellow”, Sep 22, 2026. Watch the full episode
Thanks. We'll look at and fix what's off.
Transcript
From the transcript Latent Space publishes with the episode.
- 9:58
So what is different about this than just a generally a, a general agentic system that can sort of optimize notebooks? Uh, right now it's a, uh, it's essentially its own in modern 2026 parlance, we actually worked on this in '24 and '25, but in the modern, modern parlance, it's kind of a specialized harness that, uh, runs an algorithm, uh, which in it for ERA was Monte Carlo tree search. So essentially it's keeping, um, hundreds or thousands of possible instances of notebooks, and then it selects one, and I can explain how it selects one, and it decides, "Well, how can I-- What, what can I do?"
- 10:36
Gemini asks itself, "What can I do to make that, uh, notebook be better?" And then it will make a new one and test it and then put it back into the candidate pool. So you can imagine the candidate pool is actually tree structured because it's, um, uh, you know, every candidate possibly has some children. And what you do is you pick based on something called the, uh, uh... It's actually, um, um, a fairly standard algorithm in, uh, from reinforcement learning called Upper Confidence Bound, UCB.
- 11:03
So you essentially pick-- It's an optimistic algorithm, so it tries to estimate, say, what's the, what's the ninety-fifth percentile outcome of mutation? It tries to estimate that, and it picks the one with the highest bound, the highest optimistic bound. So in other words, it doesn't always pick the best-performing notebook. It tries to predict, like, what's the current performance plus two sigma of, of, of its guess. And so it, it's always trying-- So it hunts around. So it's like high recall, basically. High recall.
- 11:31
It's trying to make its bet to-- so that it, it most efficiently tries to make progress- Yeah. -which isn't always greedily doing the best candidate. Sometimes it's the fifth best. Yeah. Um, we're also play-- We've also played around where, where it kind of recombines. It sort of takes, uh, ideas from two candidates and, and smashes them together and, um, uh, tries to make a third candidate out of that.
- 11:54
How does it seed the initial candidate pool? Well, that's the amazing thing is that underneath, Gemini is actually good at writing code. I mean, you just ask it, "Write me a thing," 'cause it-- 'cause you have a, you have a textual description of the problem. It isn't just, "Oh, here's your scoring function start." You say a textual description of the function, and you might give it... In fact, we have under some things, like, "Here are five papers that People tried to solve this problem with, and it's kind of smart.
- 12:22
It actually goes and reads the papers, and will actually take a first stab at code. It might not be great or it might, you know, sometimes it has bugs, and it returns essentially minus infinity, but, um, it will then, uh, try to mutate the code and say, "Oh," it'll try to make it be better. So- Yeah... it's, it's pretty cool. You don't actually have to give it... I mean, you can if you want, give it a, uh, some co- starter code, but you don't have to. How many agents are you spinning up?
- 12:48
I guess maybe not agents, or how many different, um, you know, tree branches are you spinning up at each iteration? Oh, at, at every iteration? Yeah. Well, there's a trade-off. You'd like to do a lot of parallel work, but if you do too much parallel work, you can't learn from previous things. Mm-hmm. So right now we use about, um, uh, the default is, is ten parallel, so you, so you, you try to grow ten leaves at a time. Okay. Um, that seems to be a- about the right, um, trade-off.
- 13:14
When you say you can't learn from previous iterations, that means that the, uh, orchestrator, or is there some sort of, yeah, what, like what's the... That you said that there is some step which is able to like pre-combine or make decisions beyond just like the score. I mean, so yeah, I guess maybe one of the obvious questions is, as a human, when you are doing some sort of ML project, you don't just look at like, oh, there's this one metric that we're trying to optimize.
- 13:39
Oftentimes, there's like orthogonal metrics, uh, sometimes even insights such as like just watching, you know, training curves can sometimes give you intuition about what's going on, or like looking into specific examples. Does it do any sort of introspection like this? Is there, uh- Well, it has, it has the history of... But what I meant why you can't, um, uh, do too many things in parallel is, is if you, if you have ten parallel, uh, searches at once, then one, the, the number one can't actually see what numbers two through ten are doing.
- 14:11
Yeah. So if you do 1,000 at once- Oh... then you're using a huge amount of computation without a lot of cross-learning. Whereas once you finish a little batch, you get the history. It, it, it sort of, obviously you have to prune it so it doesn't blow up the context, but, but you get the history of, of what it was thinking about as it was, uh, kind of writing the code and the results of the code. So, so it- Mm-hmm... it can learn from its previous attempts. Okay. And does it learn across? Oh, yes. Across, yeah. Yes. Essentially, it's essentially it's, it's like one essentially shared context, yes. Yeah.
- 14:43
So it is, it is- Mm-hmm... sort of thinking- Oh, okay... as it goes along. Okay. Oh, it is- It's not, it's not like it's 1,000 different- Mm-hmm... completely independent- Yeah... branches. You're really pushing Gemini's like long context abilities there [chuckles]. That's right. And you have to do, you have to do the right management and stuff. Yeah, yeah, yeah. Okay. Oh, that's, that's cool.