# AlphaEvolve expands search from templates to full programs

Markdown copy of https://realalpha.app/s/alphaevolve-expands-search-from-templates-to-full-programs/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

- Speaker: [Pushmeet Kohli](https://realalpha.app/builders/pushmeet-kohli/) · Pushmeet Kohli is a leads AI for Science at DeepMind. · Leads DeepMind's AI for Science unit behind AlphaFold, the Nobel-winning protein structure model, and AlphaEvolve.
- Host: [Sonya Huang](https://realalpha.app/people/sonya-huang/) · Partner, Sequoia Capital · Works with OpenAI and Anthropic; co-wrote Sequoia's essay on generative AI.
- Host: [Pat Grady](https://realalpha.app/people/pat-grady/) · Co-steward, Sequoia Capital · Joined Sequoia in 2007; backed Snowflake, Zoom, ServiceNow and OpenAI.
- Show: Training Data
- Episode: [DeepMind's Pushmeet Kohli on AI's Scientific Revolution](https://realalpha.app/v/6J7d4_yvqcg/), Jul 15, 2025
- Moment: 2:19 to 9:16 of the episode (7 min), playing on https://realalpha.app/s/alphaevolve-expands-search-from-templates-to-full-programs/; the episode from there: https://realalpha.app/v/6J7d4_yvqcg/?t=139

## Quote

> “With Alpha Evolve, we have **removed that restriction**.”
> — [Pushmeet Kohli](https://realalpha.app/builders/pushmeet-kohli/) at [5:13](https://realalpha.app/v/6J7d4_yvqcg/?t=313) · Training Data

## Takeaways

1. FunSearch needed researchers to supply an algorithm template.
2. AlphaEvolve searches whole algorithms rather than a few lines of code.
3. It can work across languages when proposals can be evaluated.

## About this segment

FunSearch needed a researcher to supply a template; AlphaEvolve searches whole programs and can use fewer evaluations. That broadens the problems it can tackle across code languages.

From “DeepMind's Pushmeet Kohli on AI's Scientific Revolution”, Jul 15, 2025. [Watch the full episode](https://realalpha.app/v/6J7d4_yvqcg/)

## Transcript

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

[2:23](https://realalpha.app/v/6J7d4_yvqcg/?t=143) You use the words when coupled with a harness. Can you tell us more about that harness? Yeah. So if you now go back to AI models, like the history of AI for science is very long. We have a number of different models that have tried to do scientific discovery. Like one of the key models in this category is AlphaFold, right, which is the prototypical example of what can be achieved by AI in science.

[2:56](https://realalpha.app/v/6J7d4_yvqcg/?t=176) We released AlphaFold 2 at the end of 2021, and it won the Nobel Prize last year. So the impact of AI in science is very well understood. Now, the question is whether LLMs and foundational models, how can they impact science? Around two years back, we had an agent called FundSearch in which we took an LLM and we coupled it with an evaluator. And the evaluator allowed the LLM to figure out when it was making new conjectures on sort of or coming up with new ideas to solve problems, whether they were hallucinations or whether they were brilliant insights.

[3:45](https://realalpha.app/v/6J7d4_yvqcg/?t=225) So essentially, in this particular case, hallucinations were great because those some of those hallucinations were, in fact, brilliant new insights that nobody had thought about. So this is where the harness comes in. You have this evaluation function and essentially a search protocol associated with the LLM that together is able to come up with completely new discoveries that are really impactful.

[4:14](https://realalpha.app/v/6J7d4_yvqcg/?t=254) You mentioned FunSearch. Could you say a word on the difference between the results you all accomplished with FunSearch versus AlphaEvolve? Yeah, so FunSearch was our first instantiation of taking a large diagram model and trying to see if it can discover new algorithms. The models at that time were weaker, right? And the type of search that we were trying to do, we had not sort of explored things much further.

[4:44](https://realalpha.app/v/6J7d4_yvqcg/?t=284) So what we asked the LLM to do was essentially try to complete a small function and see if it can do that much better. And surprisingly, it was able to discover completely new algorithms that mathematicians had been trying to study for a long time. But the limitation was that the mathematician or the researcher had to give a template in which the algorithm should be found. With Alpha Evolve, we have removed that restriction.

[5:22](https://realalpha.app/v/6J7d4_yvqcg/?t=322) Alpha Evolve is not just sort of searching for a few lines. It's basically looking at whole algorithms themselves, right? Very, very large pieces of code and sort of optimizing them over a long period of time. And secondly, FunSearch, our original sort of model, used a lot of function evaluations to discover, to make these new discoveries. AlphaEvolve can work with many fewer function calls. And it can basically, by looking at fewer proposals, it can discover new algorithms much more quickly.

[5:59](https://realalpha.app/v/6J7d4_yvqcg/?t=359) Can you tell us about the role that the evolving Gemini models play in the capabilities of AlphaEvolve? And I think I saw in your blog post, you have both Gemini Flash and Pro involved in the harness. What is each responsible for? Yeah, so I think, see, we have been evaluating, as Gemini improves with the various sort of generations, it is becoming much, much better at its understanding of code. Now, if you have a proposal generator which can understand code much more effectively, then it generates proposals which are not only syntactically correct, they are also semantically trying to solve the task, and then you are sampling what are the different ways in which the task can be solved.

[6:49](https://realalpha.app/v/6J7d4_yvqcg/?t=409) So as the baseline model, Gemini's abilities to perform coding improve, our sample effectiveness in searching for the right solution on these very hard maths and computational problem becomes much better. So if you want to search in a large space, there are two sort of elements. One is the speed of how you can generate these proposals and then the speed at which you can evaluate those proposals, right?

[7:26](https://realalpha.app/v/6J7d4_yvqcg/?t=446) Like, so first, how quickly can you say, can you give me a new sort of candidate algorithm? And then secondly, how quickly can you evaluate whether the algorithm is any good or not? And both things are really important. And the fact that you have these variants of Gemini, like Gemini Flash, which can do that very efficiently and very quickly, this is really important. I know Alpha Evolve is more of a broad domain model than some of its predecessors.

[7:55](https://realalpha.app/v/6J7d4_yvqcg/?t=475) How broad is it? What's in scope? What's out of scope? Yeah, so Alpha Evolve is more of a broad domain model than some of its predecessors. Evolve essentially allows you to search not only in terms of the size of what you can search over, right? You can now discover whole new algorithms, but it also is extremely general in its ability of thinking about algorithms in various different languages. So not only can it sort of search in C++, but it can also do it in Python.

[8:28](https://realalpha.app/v/6J7d4_yvqcg/?t=508) It can also sort of do in Verilog, which is what the language is for describing chips, right, in chip design. So the generality of Alpha Evolve is in its ability to search for these large algorithmic spaces, but also in different syntactic and semantic representations, right? It's not restricted to a particular language like Python, but it can sort of do that search across many different types of languages and many different types of tasks.

[9:03](https://realalpha.app/v/6J7d4_yvqcg/?t=543) The only expectation it has is that you have a function evaluator, that you can quickly evaluate whatever proposal there is and say how good it is.
