Scripts2026年5月24日·1 分钟阅读

OpenEvolve — Open-Source Implementation of AlphaEvolve

An open-source evolutionary code optimization framework inspired by DeepMind's AlphaEvolve, using LLM ensembles to iteratively discover better algorithms and solutions.

Agent 就绪

这个资产可以被 Agent 直接读取和安装

TokRepo 同时提供通用 CLI 命令、安装契约、metadata JSON、按适配器生成的安装计划和原始内容链接,方便 Agent 判断适配度、风险和下一步动作。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
OpenEvolve
通用 CLI 安装命令
npx tokrepo install c741f205-57ad-11f1-9bc6-00163e2b0d79

Introduction

OpenEvolve is an open-source implementation of the evolutionary code optimization approach pioneered by DeepMind's AlphaEvolve. It uses ensembles of LLMs as mutation operators within an evolutionary algorithm to iteratively discover improved code solutions for optimization problems, from sorting algorithms to mathematical conjectures.

What OpenEvolve Does

  • Evolves code solutions using LLM-guided mutations and crossover
  • Maintains a population of candidate programs ranked by fitness
  • Supports multi-objective optimization with Pareto frontiers
  • Runs distributed evaluations across multiple workers
  • Provides structured logging of evolutionary trajectories

Architecture Overview

OpenEvolve implements an island-model evolutionary algorithm where each island maintains a population of code candidates. LLMs serve as intelligent mutation operators, generating variations guided by fitness feedback and the current best solutions. An evaluation harness scores candidates against user-defined fitness functions. The framework supports multiple LLM backends running in parallel to increase mutation diversity.

Self-Hosting & Configuration

  • Install via pip with Python 3.10+
  • Define problems as Python modules with fitness functions
  • Configure LLM providers (OpenAI, Anthropic, local models) in YAML
  • Set population size, mutation rate, and generation count
  • Supports distributed execution via Ray for large-scale searches

Key Features

  • Multi-LLM ensemble mutations for diverse search strategies
  • Automatic prompt engineering based on fitness landscape feedback
  • Checkpoint and resume for long-running evolutionary searches
  • Visualization of fitness trajectories and population diversity
  • Pluggable fitness functions for any domain

Comparison with Similar Tools

  • FunSearch (DeepMind) — closed-source; OpenEvolve replicates the core approach openly
  • EvoTorch — focuses on neural network evolution; OpenEvolve evolves code artifacts
  • LLM-based code generation — single-shot; OpenEvolve iteratively refines over generations
  • Genetic programming (DEAP) — syntax-tree mutations; OpenEvolve uses semantic LLM mutations

FAQ

Q: What kinds of problems can OpenEvolve solve? A: Any problem expressible as a Python program with a measurable fitness metric: algorithms, heuristics, math proofs, configuration optimization.

Q: How many LLM calls does a typical run require? A: Depends on population size and generations. A small run (pop=20, gen=50) uses roughly 1000 LLM calls. Larger searches scale linearly.

Q: Can I use local models instead of API providers? A: Yes. OpenEvolve supports any OpenAI-compatible endpoint, including Ollama, vLLM, and LM Studio.

Q: Is the approach guaranteed to find optimal solutions? A: No. Like all evolutionary methods, it finds good-enough solutions. Longer runs and larger populations improve results but don't guarantee optimality.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产