AlphaEvolve: Using LLMs to solve Scientific and Engineering Challenges | AlphaEvolve explained
Skills:
LLM Engineering90%Fine-tuning LLMs80%Advanced Prompting80%Prompt Systems Engineering80%Research Methods70%
Key Takeaways
AlphaEvolve utilizes large language models and evolutionary strategies to discover new algorithms and optimize real-world systems, leveraging tools like MAP Elites and island-based population methods to balance exploration and exploitation. The system can optimize for multiple goals at once, such as speed and accuracy, and has been applied to various scientific and engineering challenges, including code generation and infrastructure optimization.
Full Transcript
[Music] What if you could take a rough idea for solving a problem and instead of solving it yourself, you just let an AI evolve the solution over time? That's exactly what Google Deep Minds Alpha Evolve does. In this video, we're diving into the system that blends code generation, evolutionary strategies, and LLM to discover brand new algorithms and optimize realworld infrastructure. Grab a cup of coffee because in this AI coffee break, we'll explain how Alpha Evolve works. Alpha Evolve starts with a basic code base and improves it automatically. It uses large language models to suggest small edits and tests how well those edits perform using userprovided evaluation code. The best candidates are used to further do edits on. Over time, Alpha Evolve evolves code that solves problems far beyond what a human or even a single LLM could create from scratch. In more detail, at the heart of Alpha Evolve is an evolutionary loop. The user provides three things. First, a starting program. This can be very basic or even wrong. important is that this program should be structured well enough to run even if it's just a skeleton with placeholder logic and functions that return constants. Second, the user must provide the evaluation code, a function that gives numerical scores to how well a program performs. Third, the user provides markers to flag which parts of the code Ali Vuloveve is allowed to change. And that was the human work. Then the user can lean back and make the GPUs go br to find some cool solution for the problem they just described. Alpha Evolve starts by using the provided user code and wrap prompts around it for an ensemble of LLMs like Gemini Flash for fast diverse ideas and Gemini Pro for more thoughtful highquality suggestions. Each LLM proposes diffs small edits to the code. These edited programs are run and scored with the user provided evaluation function and the best performing programs are added to a growing database of ideas. Then new prompts are built from those winners and the loop continues with generating a prompt now with the best prior program in the prompt and so on. But wait, I said that the best performing programs appear in the prompts for building the next program. But to choose the best program is not always ideal. The authors complicate things with fancy strategies like map elites or islandbased population models. Because here's the problem. If you only chase the top scoring last solutions, you risk getting stuck in a local optimum where an evolutionary niche turns out to be a dead end or not the most optimal and you'd miss out on very different and potentially better ones simply because the system didn't explore widely enough. That's where MAP Elites comes in. Instead of starting from a single solution and gradually improve it, you begin with a wide range of random solutions and over time you keep the best performing ones across different behavior niches. These are your elites. New solutions are then generated by building on a random subset of such diverse elites. So evolution happens from many strong and different starting points which helps cover a broader landscape of possibilities. Islandbased population methods take a different angle. Here the idea is to keep evolution isolated for a while to allow each subpopul or island to specialize without interference. Each island explores its own path in parallel. Occasionally one island might receive a solution from another, like borrowing an idea from a distant lab. This cross-pollination introduces fresh perspectives and can help a stuck island escape local optima by importing innovations discovered elsewhere. Together, these strategies help Alpha Evolve balance exploitation, so improving on good ideas with exploration, trying new ones. And that's critical when you're searching for genuinely new algorithms because breakthroughs often come from the unexpected. So all of this put together gives a process which doesn't just blindly mutate code. Alpha Evolve remembers what worked in the past and builds smarter prompts that inspire better solutions. It can even optimize for multiple goals at once like speed and accuracy or evolve entire code bases, not just isolated functions. Results speak for themselves. In one of its most striking achievements, Alpha Evolve discovered a new way to multiply 4* 4 complex valued matrices using only 48 scalar multiplications. This beats the famous Strassen algorithm, a method that hadn't been improved for over half a century. The authors also took the effort to formulate in code over 50 open mathematical problems and let Alpha Evolve tackle them. In 75% of cases, it matched the best known solutions. But in 20% of them, it went beyond state-of-the-art, solving problems like the minimum overlap and kissing numbers in 11 dimensions. And don't ask me what happens to the rest 5%. This paper doesn't say it. And in the engineering world, Alpha Evolved helped optimize Google's own infrastructure. It improved scheduling in data centers, made TPU circuit design more efficient, and also interesting is that it could speed up the LLM underlying Alpha Evolve. It sped up attention in transformer models underlying LLMs and even cut training time for Gemini itself by 1%. Which does not sound like much because let's imagine that Gemini trained over 3 months. Then that would almost save 22 hours. But here's how I interpret these results. The problems tackled by Alpha Evolve were already highly optimized to begin with if Alpha Fold couldn't surpass existing solutions by much. But the other way to look at it, and this is the exciting part, it's that there's still so much room for LLMs and the Alpha Evolve system to improve because who knows how much code must be touched to speed up Gemini's training beyond 1%. And that's what makes this exciting. It's not just about writing code. It's about discovering new knowledge. But before we start worrying that AI will steal all the science jobs, there's an important catch. A five evolve only works when results can be automatically measured. If a task relies on human judgment, nuanced interpretation, or real world experimentation, this system cannot help, at least not yet. And let's not forget, Alpha Evolve doesn't find or formulate problems on its own. It still needs a human to define the challenge, highlight what's interesting, design the code scaffolding, and write the evaluation function. And in that sense, the scientist isn't being replaced, they're being augmented. Now, if Alpha Evolve sounds familiar, it's because it builds on a previous project from Deep Mind called Fun Search, which we talked about in a past video. That system also used LLM and evolutionary search to solve math problems, but it was much more limited. The idea and logic for fun search is the same one that you see here for Alpha Evolve. But fun search could only evolve a single Python function, typically around 10 to 20 lines of code. Alpha Evolve, by contrast, can edit entire code bases across any programming language. Fun search relied on small language models and had to generate millions of samples to get results. Alpha Evolve is far more efficient. It uses not small but state-of-the-art language models and only needs a thousand of samples and not millions to find solutions. Fun search could only optimize one metric at a time, Alpha Evolve can juggle multiple objectives like accuracy, speed, and simplicity all at once. And while Fun Search needed very fast evaluations, things seconds per program, Alpha Evolve runs in parallel on accelerators and can afford hours of compute per evaluation if needed. In short, Alpha Evolve continues what punarch started and scales it up massively in power, scope, and generality. And that was it for today's AI coffee break. Thanks for watching. Please give it a like, leave your thoughts in the comments, and don't forget to subscribe for our upcoming deep dives into AI research. Also, check out our merch store if you want to have some cool mugs or hoodies. Links in the description. See you next time, and until then, keep evolving. Okay, bye. [Music]
Original Description
AlphaEvolve does not just write code, but it evolves it into better and better solutions, all on its own. In this video, we explain AlphaEvolve, DeepMind’s latest coding agent that uses large language models and evolutionary strategies to discover new algorithms and optimize real-world systems. From improving matrix multiplication to cutting training time for large models, AlphaEvolve shows what happens when AI becomes a tool in research.
AI Coffee Break Merch! 🛍️ https://aicoffeebreak.creator-spring.com/
📃 Alexander Novikov, Ngân Vu, Marvin Eisenberger, Emilien Dupont, Po-Sen Huang, Adam Zsolt Wagner, Sergey Shirobokov et al. "AlphaEvolve: A coding agent for scientific and algorithmic discovery." Google DeepMind (2025). https://storage.googleapis.com/deepmind-media/DeepMind.com/Blog/alphaevolve-a-gemini-powered-coding-agent-for-designing-advanced-algorithms/AlphaEvolve.pdf
Outline:
00:00 AlphaEvolve explained
00:34 In a nutshell
01:01 AlphaEvolve in detail
02:33 Evolutionary strategies: MAP-Elites
03:35 Island population models
04:42 Results
05:58 Discussion
07:08 Connection to FunSearch
Thanks to our Patrons who support us in Tier 2, 3, 4: 🙏
Dres. Trost GbR, Siltax, Vignesh Valliappan, Michael, Sunny Dhiana, Andy Ma
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
🔥 Optionally, pay us a coffee to help with our Coffee Bean production! ☕
Patreon: https://www.patreon.com/AICoffeeBreak
Ko-fi: https://ko-fi.com/aicoffeebreak
Join this channel as a Bean Member to get access to perks:
https://www.youtube.com/channel/UCobqgqE4i5Kf7wrxRxhToQA/join
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
🔗 Links:
AICoffeeBreakQuiz: https://www.youtube.com/c/AICoffeeBreak/community
Twitter / X: https://twitter.com/AICoffeeBreak
LinkedIn: https://www.linkedin.com/in/letitia-parcalabescu/
Threads: https://www.threads.net/@ai.coffee.break
Bluesky: https://bsky.app/profile/aicoffeebreak.bsky.social
Reddit: https://www.reddit.com/r/AICoffeeBreak/
YouTube: https://www.youtube.com/AICoffeeBreak
Substack: https://aicoff
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from AI Coffee Break with Letitia · AI Coffee Break with Letitia · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
AI Coffee Break - Channel Trailer
AI Coffee Break with Letitia
How to check if a neural network has learned a specific phenomenon?
AI Coffee Break with Letitia
A brief history of the Transformer architecture in NLP
AI Coffee Break with Letitia
Our paper at CVPR 2020 - MUL Workshop and ACL 2020 - ALVR Workshop
AI Coffee Break with Letitia
The Transformer neural network architecture EXPLAINED. “Attention is all you need”
AI Coffee Break with Letitia
Transformer combining Vision and Language? ViLBERT - NLP meets Computer Vision
AI Coffee Break with Letitia
Pre-training of BERT-based Transformer architectures explained – language and vision!
AI Coffee Break with Letitia
GPT-3 explained with examples. Possibilities, and implications.
AI Coffee Break with Letitia
Adversarial Machine Learning explained! | With examples.
AI Coffee Break with Letitia
BERTology meets Biology | Solving biological problems with Transformers
AI Coffee Break with Letitia
Can a neural network tell if an image is mirrored? – Visual Chirality
AI Coffee Break with Letitia
The ultimate intro to Graph Neural Networks. Maybe.
AI Coffee Break with Letitia
Can language models understand? Bender and Koller argument.
AI Coffee Break with Letitia
GANs explained | Generative Adversarial Networks video with showcase!
AI Coffee Break with Letitia
What nobody tells you about MULTIMODAL Machine Learning! 🙊 THE definition.
AI Coffee Break with Letitia
Multimodal Machine Learning models do not work. Here is why. Part 1/2 – The SYMPTOMS
AI Coffee Break with Letitia
Why Multimodal Machine Learning models do not work. Part 2/2 – The CAUSES
AI Coffee Break with Letitia
An image is worth 16x16 words: ViT | Vision Transformer explained
AI Coffee Break with Letitia
AI understanding language!? A roadmap to natural language understanding.
AI Coffee Break with Letitia
"What Can We Do to Improve Peer Review in NLP?" 👀
AI Coffee Break with Letitia
The curse of dimensionality. Or is it a blessing?
AI Coffee Break with Letitia
PCA explained with intuition, a little math and code
AI Coffee Break with Letitia
Data-efficient Image Transformers EXPLAINED! Facebook AI's DeiT paper
AI Coffee Break with Letitia
OpenAI's DALL-E explained. How GPT-3 creates images from descriptions.
AI Coffee Break with Letitia
Leaking training data from GPT-2. How is this possible?
AI Coffee Break with Letitia
OpenAI’s CLIP explained! | Examples, links to code and pretrained model
AI Coffee Break with Letitia
Transformers can do both images and text. Here is why.
AI Coffee Break with Letitia
UMAP explained | The best dimensionality reduction?
AI Coffee Break with Letitia
NVIDIA Jarvis (now NVIDIA Riva) meets Ms. Coffee Bean
AI Coffee Break with Letitia
Transformer in Transformer: Paper explained and visualized | TNT
AI Coffee Break with Letitia
[RANT] Adversarial attack on OpenAI’s CLIP? Are we the fools or the foolers?
AI Coffee Break with Letitia
Pattern Exploiting Training explained! | PET, iPET, ADAPET
AI Coffee Break with Letitia
Deep Learning for Symbolic Mathematics!? | Paper EXPLAINED
AI Coffee Break with Letitia
FNet: Mixing Tokens with Fourier Transforms – Paper Explained
AI Coffee Break with Letitia
Are Pre-trained Convolutions Better than Pre-trained Transformers? – Paper Explained
AI Coffee Break with Letitia
"Please Commit More Blatant Academic Fraud" – A fellow PhD student's response.
AI Coffee Break with Letitia
Scaling Vision Transformers? How much data can a transformer get? #Shorts
AI Coffee Break with Letitia
How cross-modal are vision and language models really? 👀 Seeing past words. [Own work]
AI Coffee Break with Letitia
Charformer: Fast Character Transformers via Gradient-based Subword Tokenization +Tokenizer explained
AI Coffee Break with Letitia
Positional embeddings in transformers EXPLAINED | Demystifying positional encodings.
AI Coffee Break with Letitia
Adding vs. concatenating positional embeddings & Learned positional encodings
AI Coffee Break with Letitia
Self-Attention with Relative Position Representations – Paper explained
AI Coffee Break with Letitia
Saddle points vs. local minima in high dimensional spaces | ❓ #AICoffeeBreakQuiz #Shorts
AI Coffee Break with Letitia
What is the model identifiability problem? | Explained in 60 seconds! | ❓ #AICoffeeBreakQuiz #Shorts
AI Coffee Break with Letitia
Data leakage during data preparation? | Using AntiPatterns to avoid MLOps Mistakes
AI Coffee Break with Letitia
Is today's AI smarter than YOU? #Shorts
AI Coffee Break with Letitia
Convolution vs Cross-Correlation. How most CNNs do not compute convolutions. | ❓ #Shorts
AI Coffee Break with Letitia
Why do we care about cross-correlations vs convolutions | ❓ #AICoffeeBreakQuiz #Shorts
AI Coffee Break with Letitia
The convolution is not shift invariant. | Invariance vs Equivariance | ❓ #AICoffeeBreakQuiz #Shorts
AI Coffee Break with Letitia
How to increase the receptive field in CNNs? | #AICoffeeBreakQuiz #Shorts
AI Coffee Break with Letitia
What is tokenization and how does it work? Tokenizers explained.
AI Coffee Break with Letitia
Foundation Models | On the opportunities and risks of calling pre-trained models “Foundation Models”
AI Coffee Break with Letitia
How modern search engines work – Vector databases explained! | Weaviate open-source
AI Coffee Break with Letitia
Eyes tell all: How to tell that an AI generated a face?
AI Coffee Break with Letitia
Swin Transformer paper animated and explained
AI Coffee Break with Letitia
Data BAD | What Will it Take to Fix Benchmarking for NLU?
AI Coffee Break with Letitia
SimVLM explained | What the paper doesn’t tell you
AI Coffee Break with Letitia
Generalization – Interpolation – Extrapolation in Machine Learning: Which is it now!?
AI Coffee Break with Letitia
Do Transformers process sequences of FIXED or of VARIABLE length? | #AICoffeeBreakQuiz
AI Coffee Break with Letitia
The efficiency misnomer | Size does not matter | What does the number of parameters mean in a model?
AI Coffee Break with Letitia
More on: LLM Engineering
View skill →Related Reads
📰
📰
📰
📰
Kimi K3 and the Coming Collision
Medium · LLM
OpenAI makes ChatGPT Health available to all U.S. users
TechCrunch AI
I built an AI-first bank statement converter. The one rule that stopped it lying to me.
Dev.to AI
Building trade assistant: How Jefferies optimized front office trading operations with AI
AWS Machine Learning
Chapters (8)
AlphaEvolve explained
0:34
In a nutshell
1:01
AlphaEvolve in detail
2:33
Evolutionary strategies: MAP-Elites
3:35
Island population models
4:42
Results
5:58
Discussion
7:08
Connection to FunSearch
🎓
Tutor Explanation
DeepCamp AI