NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ShinkaEvolve: Towards Open-Ended and Sample-Efficient Program Evolution

Robert Tjarko Lange, Yuki Imajuku, Edoardo Cetin

TL;DR

ShinkaEvolve is a novel framework from Sakana AI that dramatically improves the efficiency of LLM-driven program evolution. By combining smart parent selection, code novelty filtering, and a dynamic "bandit" strategy to select the best mutation models, it discovers state-of-the-art solutions—such as a new record for the classic circle-packing problem—using orders of magnitude fewer samples than previous methods.

The Bottleneck in Automated Discovery

The recent wave of "AI Scientists" leverages Large Language Models (LLMs) to iteratively write, test, and refine code to solve complex optimization and algorithmic problems. However, these systems are notoriously "sample inefficient." They often need to generate and evaluate thousands of candidate programs to find a single breakthrough, making automated discovery slow, expensive, and computationally wasteful.

The authors identify three main bottlenecks hindering current systems:

  1. Naive Selection: Picking which program to "mutate" next is often done randomly or too greedily, leading to local optima.
  2. Redundancy: Systems waste valuable compute evaluating code that is functionally identical to what they’ve already tried.
  3. Model Stagnation: Relying on a single LLM limits the "creative" search space and diversity of proposed solutions.

The ShinkaEvolve Framework

ShinkaEvolve (from the Japanese shinka, meaning evolution or innovation) introduces a synergistic trio of algorithmic improvements to overcome these bottlenecks.

ShinkaEvolve Framework Overview
  • Weighted Parent Sampling: Instead of just picking the "best" program (which leads to local optima) or a random one, ShinkaEvolve uses a weighted strategy. It favors programs with high fitness scores but also prioritizes those that haven't produced many "offspring" yet. This ensures the search continuously explores new territory while exploiting known good solutions.
  • Code Novelty Rejection-Sampling: To avoid wasting compute on duplicate ideas, the system embeds the code of every new proposal into a vector space. If a new program is too similar to an existing one (e.g., cosine similarity > 0.95), it is either rejected outright or sent to an "LLM-as-a-judge" to determine if the subtle change is actually meaningful.
  • Bandit-Based LLM Ensembling: Discovery tasks often require different "styles" of reasoning. ShinkaEvolve uses an ensemble of models (e.g., GPT-4, Claude 3.5, Gemini 1.5) and employs a UCB1 bandit algorithm to dynamically shift more "budget" to whichever model is currently producing the most successful mutations.
  • Meta-Scratchpad: Every few generations, a meta-agent analyzes the archive of successful programs to summarize high-level design principles, which are then fed back into the mutation prompts as guidance.

Evaluated Domains

The authors rigorously evaluated ShinkaEvolve across four distinct and difficult domains:

  1. Circle Packing: A classic geometry optimization task (placing 26 circles in a unit square to maximize the sum of radii).
  2. AIME 2024: Mathematical reasoning problems from the American Invitational Mathematics Examination.
  3. ALE-Bench LITE: A benchmark of 10 competitive programming problems from AtCoder.
  4. MoE Training: A real-world engineering task involving the discovery of new load-balancing loss functions for Mixture-of-Experts (MoE) language models.

Key Insights and Results

The framework demonstrated that "test-time compute" is most effective when guided by diversity-preserving heuristics.

Comparison of Methods on Circle Packing
  • Record-Breaking Efficiency in Circle Packing: ShinkaEvolve found a new state-of-the-art solution (sum of radii ≈ 2.63598) in just 150 evaluations. For context, prior frameworks like AlphaEvolve required thousands of iterations to reach similar quality.
  • The "Goldilocks" Zone of Selection: The paper demonstrates that "Hill Climbing" (always picking the best) plateaus quickly, while random search is too slow. Their weighted sampling provides a steady improvement curve by perfectly balancing exploitation and exploration.
  • Filtering is as Important as Generating: One of the biggest takeaways is the impact of the novelty filter. By simply refusing to run redundant code, the system achieves massive performance gains without needing a "smarter" underlying model.
  • Real-World Engineering Impact: The system discovered a new load-balancing loss function (a "normalized complement to routing entropy") that improved downstream task performance and perplexity when training a 2.7B parameter MoE model. Furthermore, on the ahc039 task from ALE-Bench, the evolved solution would have placed 2nd on the global AtCoder leaderboard.

Limitations and Future Work

Despite its massive leaps in efficiency, ShinkaEvolve still has some hurdles to clear:

  • Human-in-the-loop Objectives: The framework still requires a human to define the "fitness function" (the goal and the code to evaluate it). It cannot yet decide what is worth discovering on its own.
  • API Dependency: The system relies heavily on proprietary LLM APIs, which can be expensive and subject to changes in model behavior over time.
  • Open-Endedness: The authors suggest that the next frontier is "true open-endedness," where the system generates its own objectives and tasks, moving closer to a fully autonomous scientific researcher.

The authors have open-sourced the code at github.com/SakanaAI/ShinkaEvolve.

Summary updated

BibTeX
@inproceedings{lange2026shinkaevolve,
  author = {Robert Tjarko Lange and Yuki Imajuku and Edoardo Cetin},
  title = {{ShinkaEvolve: Towards Open-Ended and Sample-Efficient Program Evolution}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=lKEdGCoDNC},
}
Figure