Abstract
Recursive self-improvement in AI coding agents often fails due to the "Metaproductivity–Performance Mismatch," where current benchmark scores do not accurately predict an agent's potential for future improvement. We introduce the Huxley-Gödel Machine (HGM), a framework that utilizes Clade-Metaproductivity (CMP) to identify and cultivate high-potential agent lineages. HGM achieves human-level performance on software engineering benchmarks while significantly reducing computational overhead compared to existing state-of-the-art methods.
Introduction
The quest for a "Gödel Machine"—a system capable of optimal self-improvement—has long been a theoretical goal in AI. Practical implementations, however, struggle with selecting which code modifications to pursue. Traditional greedy strategies select the highest-performing agent at each step, often leading to evolutionary "dead ends." The Huxley-Gödel Machine (HGM) addresses this by shifting the selection criterion from immediate performance to "metaproductivity"—the capacity of an agent to produce even better descendants.
The Metaproductivity–Performance Mismatch
Current self-improving agents typically expand a tree of code modifications and retain the version that scores highest on a benchmark. However, empirical evidence suggests that a high-scoring agent today might lack the architectural flexibility needed for further growth. Conversely, a slightly lower-scoring agent might possess a superior design that enables a lineage of much more powerful successors. Identifying this latent "metaproductivity" is the core challenge HGM solves.
Methodology: The Huxley-Gödel Machine
HGM draws inspiration from evolutionary biology and Schmidhuber’s theoretical Gödel Machine. It introduces two key innovations:
- Clade-Metaproductivity (CMP): Rather than evaluating a single agent, HGM evaluates its "clade"—the entire lineage of its descendants. CMP aggregates the performance of children and grandchildren to estimate the evolutionary potential of a modification.
- Asynchronous Decoupling and Thompson Sampling: HGM uses Thompson Sampling to navigate the modification tree, balancing exploration of new ideas with exploitation of high-CMP lineages. By decoupling code expansion from evaluation, HGM allows for massive parallelization and early termination of unpromising branches.
Experimental Evaluation
HGM was tested across several rigorous benchmarks, including SWE-bench Verified, SWE-bench Lite, and Polyglot.
Key Results
- Human-Level Performance: Paired with GPT-5, the HGM-optimized agent achieved a 57% success rate on SWE-bench Lite, matching top human-engineered systems.
- Efficiency: HGM reached its peak performance 2.38x faster than the previous state-of-the-art (DGM) in terms of CPU hours. On some benchmarks, efficiency gains reached up to 6.86x.
- Metric Validity: As shown in the data, CMP correlates significantly more strongly with long-term success than raw performance scores.
Discussion and Conclusion
HGM demonstrates that genuine software engineering principles can be discovered through automated evolution. Agents evolved on smaller models (e.g., GPT-5-mini) maintained their superior design when transferred to larger models, suggesting the discovery of generalizable logic rather than dataset-specific over-fitting. Future work will explore using LLMs to predict CMP directly and expanding the scope of modifications to include neural weights and data selection.
Summary updated