ShinkaEvolve
ShinkaEvolve is an open-source framework that uses an ensemble of LLMs as mutation operators in a sample-efficient evolutionary search over code.
An ensemble of LLMs, chosen per step by a bandit, rewrites candidate programs that a user-defined evaluator scores, and the best programs become parents for the next generation, with novelty rejection sampling to avoid near-duplicates. Applied to AI itself, it evolved a mixture-of-experts load-balancing loss for LLM training and an agent scaffold that improves LLM performance on AIME math problems.
- LLM ensemble rewrites candidate programs
- Evaluator scores and selects best programs
- Evolved mixture-of-experts load-balancing loss
- Loss improves LLM training
- LLM ensemble rewrites candidate programs
- Evaluator scores and selects best programs
- Evolved mixture-of-experts load-balancing loss
- Loss improves LLM training
Why it is a road to recursion
The same LLM-driven evolution that improved an LLM training loss and an LLM agent scaffold can be aimed at the models and scaffolds that run the search.
Evidence
Sakana reports the evolved MoE load-balancing loss improved on state-of-the-art losses with 5.81% less inefficient token routing and 1.73% higher task performance on average, and generalized to MoEs with 5 times more active parameters.
Related loops
More architecture and optimizer search →- Learned optimizers update other learned optimizers
- Training keeps best performing optimizer parameters
- Better optimizers train each other faster
- repeat
- Designer agents propose language model architectures
- Verifier agents pre-train and evaluate designs
- Verified results feed evolutionary population
- Language models search for better architectures
- repeat
- GPT-4 proposes preference-optimization losses
- Candidate losses fine-tune language models
- Evaluation scores feed back into prompt
- Best loss aligns other LLMs
- repeat