AlphaEvolve: My Implementation and Insights. Can AI self-improve?

John Tan Chong Min May 26, 2025
Video Thumbnail

John Tan Chong Min

View Channel

About

No channel description available.

Video Description

AlphaEvolve is a way to use LLMs to evolve code blocks to help to make them better and score better on pre-defined evaluation functions! It manages to perform better than state-of-the-art on 20% of open mathematics problems, which is pretty amazing! Let's understand the procedure better and see if we can improve upon it. ~~~ Experiments I did using my own version of AlphaEvolve here: https://github.com/tanchongmin/agentjo/blob/main/contrib/Fun_AgentJo_Projects/AlphaEvolve.ipynb Overview - Tries to guess the word john, given the input-output description, eval function description and a hint - Evaluation ranges from ordinal difference between characters of guessed word and ground truth, to absolute score of number of correct letters - LLM actually can perform better with absolute score, as it tells with certainty whether a letter is correct - smooth continuous eval functions may not be the best Hints - Tried with various hints - Easy: "You are to output john" - Medium: "You are to generate and output a 4-letter English word starting with j" - Hard: "You are to generate and output a 4-letter English word" Results - Progress is made for all, solving Easy and Medium in 50 tries (Easy solved in 1 try for either eval, Medium solved in 29 tries for continuous eval, 12 tries for absolute eval) - Hard is difficult as search space is large, and LLMs do not handle letters well. - Also, lack of stochasticity may lead to sampling same solution again as the worse solution may not appear in the prompt - Also, tried with adversarial hints, if hint is outright wrong (e.g. output mary), it does not work. - If hint is wrong but towards solution (output a girl's name), it can work. ~~~ Related Links: Slides: https://github.com/tanchongmin/agentjo/blob/main/paper_reviews/AlphaEvolve.pdf Code: https://github.com/tanchongmin/agentjo/blob/main/contrib/Fun_AgentJo_Projects/AlphaEvolve.ipynb AlphaEvolve paper: https://storage.googleapis.com/deepmind-media/DeepMind.com/Blog/alphaevolve-a-gemini-powered-coding-agent-for-designing-advanced-algorithms/AlphaEvolve.pdf FunSearch paper: https://deepmind.google/discover/blog/funsearch-making-new-discoveries-in-mathematical-sciences-using-large-language-models/ ~~~ 0:00 Introduction 6:25 AlphaEvolve High-level Overview 17:44 Implementation of AlphaEvolve 1:01:44 Motivation of AlphaEvolve 1:06:26 Detailed Steps 1:21:09 Evolving in Different Abstraction Spaces 1:23:45 Prompt Sampling 1:27:25 Discussion 2:10:09 Conclusion ~~~ AI and ML enthusiast. Likes to think about the essences behind breakthroughs of AI and explain it in a simple and relatable way. Also, I am an avid game creator. Discord: https://discord.gg/bzp87AHJy5 LinkedIn: https://www.linkedin.com/in/chong-min-tan-94652288/ Online AI blog: https://delvingintotech.wordpress.com/ Twitter: https://twitter.com/johntanchongmin Try out my games here: https://simmer.io/@chongmin

You May Also Like

AI Enthusiast's Toolkit

AI-recommended products based on this video

Loading...
Google Pixel Buds Pro 2 - Noise Canceling Earbuds - Up to 31 Hour Battery Life with Charging Case - Bluetooth Headphones - Compatible with Android - Hazel

Google Pixel Buds Pro 2 - Noise Canceling Earbuds - Up to 31 Hour Battery Life with Charging Case - Bluetooth Headphones - Compatible with Android - Hazel

(183)
199.99
PrimeFREE delivery Saturday, June 14
400+ bought in past month
Loading...
Deeyaple USB C to Aux, 4FT/1.2M, Type C to 3.5mm Audio Cable Headphone Jack Cable for Car Mobile Phone, iPhone 16 15, iPad Pro, Samsung Galaxy S24 S23 S2010, Google Pixel,Oneplus Grey (1)
Best Seller

Deeyaple USB C to Aux, 4FT/1.2M, Type C to 3.5mm Audio Cable Headphone Jack Cable for Car Mobile Phone, iPhone 16 15, iPad Pro, Samsung Galaxy S24 S23 S2010, Google Pixel,Oneplus Grey (1)

(78)
$6.99
FREE delivery Fri, Sep 5 on your first order
1K+ bought in past month
Loading...
Car Carplay Woven Cable for iPhone 16 15 3.3FT USB A to USB C 3.2 Gen 2 Carplay Adapter Wire for iPhone 16 15 Pro Max, iPad Pro/Air, Samsung Galaxy S25/S24/S23/S22/S21 Google Pixel, Car Charger Cable

Car Carplay Woven Cable for iPhone 16 15 3.3FT USB A to USB C 3.2 Gen 2 Carplay Adapter Wire for iPhone 16 15 Pro Max, iPad Pro/Air, Samsung Galaxy S25/S24/S23/S22/S21 Google Pixel, Car Charger Cable

(213)
$12.99
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month
Loading...
Seasonic Focus V4 GX-1000 (ATX3) - 1000W - 80+ Gold - ATX 3.0 & PCIe 5.1 Ready -Full-Modular -ATX Form Factor -Premium Japanese Capacitor -10 Year Warranty -Nvidia RTX 30/40 Super & AMD GPU Compatible

Seasonic Focus V4 GX-1000 (ATX3) - 1000W - 80+ Gold - ATX 3.0 & PCIe 5.1 Ready -Full-Modular -ATX Form Factor -Premium Japanese Capacitor -10 Year Warranty -Nvidia RTX 30/40 Super & AMD GPU Compatible

(22)
$423.35
FREE delivery Oct 8 - 10
Loading...
Toddler Kitchen Tower, Learning Standing Tower, 4-in-1 Kitchen Black Wooden Stool Helper with Chalkboard Montessori and Waldorf Helper for Kids in Kitchen

Toddler Kitchen Tower, Learning Standing Tower, 4-in-1 Kitchen Black Wooden Stool Helper with Chalkboard Montessori and Waldorf Helper for Kids in Kitchen

(12)
$89.99
FREE delivery Sat, Jun 28
50+ bought in past month
Loading...
Shower Steamers Aromatherapy 8 Pack Gifts for Women & Men Bath Bombs, Organic Eucalyptus & Menthol Essential Oil,Birthday Gifts for Wife & Husband Spa Relaxing, Travel Essentials Aromatherapy

Shower Steamers Aromatherapy 8 Pack Gifts for Women & Men Bath Bombs, Organic Eucalyptus & Menthol Essential Oil,Birthday Gifts for Wife & Husband Spa Relaxing, Travel Essentials Aromatherapy

(54)
$13.99
FREE delivery Thu, Sep 11 on your first order
100+ bought in past month
Loading...
Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code

Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code

(382)
$94.95
PrimeFREE delivery Sat, Jun 14
Loading...
BASESAILOR iPhone 16 15 Pro Max Charger Cord,USB to USB C Cable 6.6FT/2Pack,Type C Charging Power Cord for Apple iPad 10,Samsung Galaxy AI S25 S24 S23 S22 S20 Plus Ultra Flip,A52 A53 A54,Google Pixel

BASESAILOR iPhone 16 15 Pro Max Charger Cord,USB to USB C Cable 6.6FT/2Pack,Type C Charging Power Cord for Apple iPad 10,Samsung Galaxy AI S25 S24 S23 S22 S20 Plus Ultra Flip,A52 A53 A54,Google Pixel

(29,760)
$12.59
FREE delivery Sat, Jun 14 on your first order
500+ bought in past month
Loading...
soundcore by Anker P20i True Wireless Earbuds, 10mm Drivers with Big Bass, Bluetooth 5.3, 30H Long Playtime, IPX5 Water-Resistant, 2 Mics for AI Clear Calls, 22 Preset EQs, Customization via App

soundcore by Anker P20i True Wireless Earbuds, 10mm Drivers with Big Bass, Bluetooth 5.3, 30H Long Playtime, IPX5 Water-Resistant, 2 Mics for AI Clear Calls, 22 Preset EQs, Customization via App

(61,759)
$29.99
FREE delivery Sat, Jun 14 on your first order
4K+ bought in past month
Loading...
Environet Hydroponic Growing Kit, Self-Watering Mason Jar Herb Garden Starter Kit Indoor, Windowsill Herb Garden, Grow Your Own Herbs from Organic Seeds (Basil)

Environet Hydroponic Growing Kit, Self-Watering Mason Jar Herb Garden Starter Kit Indoor, Windowsill Herb Garden, Grow Your Own Herbs from Organic Seeds (Basil)

(786)
$69.15$33.51
FREE delivery Jun 13 - 17
Loading...
Herb Garden Planter Indoor Kit 21Pcs Kitchen Herb Garden Starter Kit Growing Kit Including Wooden Box Burlap Pots Soil Discs Gardening Tools Unique Easter Birthday Christmas Gift Ideas for Women Mom

Herb Garden Planter Indoor Kit 21Pcs Kitchen Herb Garden Starter Kit Growing Kit Including Wooden Box Burlap Pots Soil Discs Gardening Tools Unique Easter Birthday Christmas Gift Ideas for Women Mom

(0)
$30.99
FREE delivery Jun 19 - Jul 3
Loading...
Bonsai Starter Kit – 1x Bonsai Tree | Complete Indoor Starter Kit for Growing Plants with Bonsai Seeds, Tools & Planters – Gardening Gifts for Women & Men
Best Seller

Bonsai Starter Kit – 1x Bonsai Tree | Complete Indoor Starter Kit for Growing Plants with Bonsai Seeds, Tools & Planters – Gardening Gifts for Women & Men

(243)
$19.99
FREE delivery Sat, Jun 14 on your first order
300+ bought in past month
Loading...
Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code

Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code

(382)
$94.95
PrimeFREE delivery Sat, Jun 14
Loading...
SAIKATI Smart Watch for Men Women Bluetooth Call, 1.85" HD Touch Screen AI Voice Smartwatch, Fitness Tracker with Sleep/Heart Rate Monitor, 100+ Sports Modes, IP68 Waterproof, Compatible with Android & iOS

SAIKATI Smart Watch for Men Women Bluetooth Call, 1.85" HD Touch Screen AI Voice Smartwatch, Fitness Tracker with Sleep/Heart Rate Monitor, 100+ Sports Modes, IP68 Waterproof, Compatible with Android & iOS

(787)
$49.99
FREE delivery Thu, Sep 4
1K+ bought in past month