Darwin Gödel Machine: A Self-Improving AI for Code Evolution

Jun 9, 2025
Researchers from Sakana AI, the University of British Columbia, and the Vector Institute have introduced the Darwin Gödel Machine, a self-modifying AI system designed to autonomously evolve its code using foundation models and real-world benchmarks.

Sakana AI, in collaboration with the University of British Columbia and the Vector Institute, has introduced the Darwin Gödel Machine (DGM), a novel AI system capable of self-improvement through code evolution. Unlike traditional AI systems that remain static post-deployment, DGM continuously modifies its own code, guided by performance metrics from coding benchmarks such as SWE-bench and Polyglot.

The DGM employs frozen foundation models to facilitate code execution and generation, beginning with a base coding agent that iteratively modifies itself to produce new variants. These variants are evaluated and retained if they demonstrate successful compilation and self-improvement, mimicking biological evolution by preserving diversity and enabling breakthroughs from previously suboptimal designs.

In testing, DGM improved its performance on SWE-bench from 20.0% to 50.0% and on Polyglot from 14.2% to 30.7%. These results underscore DGM's ability to autonomously refine its architecture and reasoning strategies without human intervention, outperforming hand-tuned systems in multiple scenarios.

The Darwin Gödel Machine represents a practical reinterpretation of the Gödel Machine concept, shifting from logical proof to evidence-driven iteration. While still computationally intensive, it offers a scalable path toward open-ended AI evolution, potentially expanding beyond code generation to broader domains in the future.

We hope you enjoyed this article

Consider subscribing to one of our newsletters like Daily AI Brief or AI Programming Weekly.

Also, consider following us on social media:

Free newsletter

AI Programming Weekly

Weekly news about AI tools for software engineers, AI enabled IDE's and much more.

Industry analysis

2025 Global Business Services Agenda: Gen AI Takes Center Stage

The Hackett Group

This industry analysis by The Hackett Group explores the transformative impact of generative artificial intelligence (Gen AI) on global business services (GBS) in 2025. The study highlights the shift from exploration to acceleration of Gen AI initiatives, with 89% of executives advancing these projects to improve customer satisfaction, innovate products, and reduce costs. The report also discusses the challenges and strategies for successful Gen AI adoption, emphasizing the need for a technology-enabled operating model and the importance of reskilling the workforce.

Read more
Free, six days a week

Daily AI Brief: the AI news that matters, in your inbox.