ShinkaEvolve: Towards Open-Ended And Sample-Efficient Program Evolution
Robert Tjarko Lange, Yuki Imajuku, Edoardo Cetin
TL;DR
ShinkaEvolve tackles the sample-inefficiency and reproducibility challenges of LLM-driven open-ended discovery by introducing three synergistic innovations: adaptive parent/inspiration sampling, code novelty rejection sampling, and a bandit-based LLM ensemble. The framework maintains an archive of evaluated programs, utilizes world feedback, and employs online meta-learning to guide mutations. Empirical results across circle packing, AIME, ALE-Bench, and MoE load-balancing losses demonstrate state-of-the-art performance with orders-of-magnitude fewer evaluations and with open-source accessibility under Apache 2.0. Collectively, the work broadens the practical reach of open-ended computational discovery while highlighting avenues for automated task generation and self-guided refinement.
Abstract
We introduce ShinkaEvolve: a new open-source framework leveraging large language models (LLMs) to advance scientific discovery with state-of-the-art performance and unprecedented efficiency. Recent advances in scaling inference time compute of LLMs have enabled significant progress in generalized scientific discovery. These approaches rely on evolutionary agentic harnesses that leverage LLMs as mutation operators to generate candidate solutions. However, current code evolution methods suffer from critical limitations: they are sample inefficient, requiring thousands of samples to identify effective solutions, and remain closed-source, hindering broad adoption and extension. ShinkaEvolve addresses these limitations, introducing three key innovations: a parent sampling technique balancing exploration and exploitation, code novelty rejection-sampling for efficient search space exploration, and a bandit-based LLM ensemble selection strategy. We evaluate ShinkaEvolve across diverse tasks, demonstrating consistent improvements in sample efficiency and solution quality. ShinkaEvolve discovers a new state-of-the-art circle packing solution using only 150 samples, designs high-performing agentic harnesses for AIME mathematical reasoning tasks, identifies improvements to ALE-Bench competitive programming solutions, and discovers novel mixture-of-expert load balancing loss functions that illuminate the space of optimization strategies. Our results demonstrate that ShinkaEvolve achieves broad applicability with exceptional sample efficiency. By providing open-source accessibility and cost-efficiency, this work democratizes open-ended discovery across diverse computational problems.
