CodeEvolve: An open source evolutionary coding agent for algorithm discovery and optimization
By: Henrique Assumpção , Diego Ferreira , Leandro Campos and more
Potential Business Impact:
Computers learn to solve hard problems by evolving code.
In this work, we introduce CodeEvolve, an open-source evolutionary coding agent that unites Large Language Models (LLMs) with genetic algorithms to solve complex computational problems. Our framework adapts powerful evolutionary concepts to the LLM domain, building upon recent methods for generalized scientific discovery. CodeEvolve employs an island-based genetic algorithm to maintain population diversity and increase throughput, introduces a novel inspiration-based crossover mechanism that leverages the LLMs context window to combine features from successful solutions, and implements meta-prompting strategies for dynamic exploration of the solution space. We conduct a rigorous evaluation of CodeEvolve on a subset of the mathematical benchmarks used to evaluate Google DeepMind's closed-source AlphaEvolve. Our findings show that our method surpasses AlphaEvolve's performance on several challenging problems. To foster collaboration and accelerate progress, we release our complete framework as an open-source repository.
Similar Papers
CodeEvolve: An open source evolutionary coding agent for algorithm discovery and optimization
Artificial Intelligence
Helps computers write better code to solve problems.
AlphaEvolve: A coding agent for scientific and algorithmic discovery
Artificial Intelligence
Makes computers invent better computer programs.
Mathematical exploration and discovery at scale
Neural and Evolutionary Computing
AI finds new math solutions, even better ones.