TL;DR
This paper introduces two simple baselines for code evolution that surprisingly match or outperform complex, purpose-built methods across mathematical discovery, agentic scaffold design, and machine learning competitions. The findings highlight that problem formulation and domain knowledge are often more critical than the sophistication of the code evolution pipeline itself, and suggest a need for more rigorous evaluation practices in the field.
What Problem Does This Paper Address?
Code evolution, a technique using large language models (LLMs) to generate and refine computer programs, has shown impressive results in various domains. However, many proposed code evolution pipelines are complex and their performance is often evaluated without rigorous comparison to simpler, baseline methods. This makes it difficult to ascertain whether the added complexity of these pipelines truly contributes to improved performance or if simpler approaches could achieve similar or better results. The authors aim to address this by systematically comparing simple baselines against more sophisticated code evolution systems to understand what truly drives performance and identify shortcomings in current development and evaluation practices.
Methods
The paper introduces two straightforward baselines for code evolution:
- IID Random Sampling (IID RS): This baseline involves prompting an LLM to generate a program to solve a task. After generating a batch of programs, the best one is selected based on its performance (e.g., best bound found, highest accuracy).
- Sequential Conditioned Sampling (SCS): This is a modification of IID RS designed for problems requiring iterative improvements. It generates a set of programs, then uses a subset of the successfully executed programs from the previous generation to condition the generation of new programs. This process is repeated for a few generations, with an option to restart from scratch.
These baselines are compared against more complex code evolution systems like ShinkaEvolve, ADAS, and OpenEvolve across three distinct domains, each with a different constraint: API budget for mathematical bounds, function evaluations for agentic scaffolds, and wall-clock time for machine learning competitions.
Datasets
The paper evaluates its methods on several existing benchmarks and tasks:
- Mathematical Bounds: Nine problems from Novikov et al. (2025), covering analysis, combinatorics, and geometry.
- Agentic Scaffolds: Questions from the AIME math competition.
- Machine Learning Competitions: The MLE bench, a subset of Kaggle competitions.
The authors do not introduce new datasets but rather use existing ones to provide a standardized evaluation framework.
Key Insights and Ideas
- Simplicity Wins (Often): The most striking insight is that simple baselines can match or even outperform highly complex, purpose-built code evolution pipelines. This challenges the assumption that more sophisticated methods are always better.
- Formulation is King: For mathematical bound discovery, the way a problem is formulated and the quality of the search space defined by domain experts are far more critical to performance and efficiency than the code evolution pipeline itself.
- Stochasticity is a Scaffolding Problem: When designing agentic scaffolds, high variance in evaluations due to small datasets leads to suboptimal scaffolds being selected. Hand-designed majority vote scaffolds often perform better than those evolved by complex methods.
- Evaluation Matters: The paper highlights the need for better evaluation methodologies, particularly for agentic scaffolds, to reduce stochasticity and ensure that performance is not due to chance.
- Domain Knowledge is a Double-Edged Sword: While domain knowledge can improve efficiency, it can also bias search methods towards suboptimal solutions if not carefully applied.
Key Results
- Mathematical Bounds: In finding mathematical bounds, both IID RS and SCS baselines matched or exceeded the performance of ShinkaEvolve on a significant number of problems (6/9 for SCS, 4/9 for IID RS) within a $20 budget. Improving the problem formulation led to larger gains than optimizing the search pipeline.
- Agentic Scaffolds: Code evolution methods showed a significant drop in accuracy (~10%) between validation and test sets, while hand-designed majority vote scaffolds only dropped ~5%. Re-evaluating scaffolds revealed that automated methods were often selected based on evaluation stochasticity rather than true performance.
- Machine Learning Competitions: SCS and AIDE performed similarly well, with SCS outperforming AIDE on 6/10 competitions within a limited wall-clock time. This demonstrates that simple baselines can be competitive even under time constraints.
- Cost-Effectiveness: The baselines were found to be significantly faster than ShinkaEvolve (hours vs. ~10 hours per problem) and sample-efficient.
Limitations and Future Work
The authors acknowledge several limitations:
- Cost of Experiments: Running extensive code evolution experiments is expensive, limiting the scope of comparisons and the ability to thoroughly evaluate methods.
- Lack of Standardization: The field lacks standardization in benchmarks and evaluation practices, making fair comparisons difficult. Many pipelines are also designed for specific purposes and are not open-source.
- Meaningfulness of Small Improvements: Quantifying the significance of small improvements in mathematical bounds and ML competitions is challenging.
- Complexity of MLE Bench: While AIDE is a strong baseline for MLE bench, it's still simpler than some other code evolution systems, and the paper acknowledges the existence of more complex, potentially more performant methods.
Future work suggested includes:
- Fair Comparisons: Ensuring methods are compared using identical LLMs, domain knowledge, verifiers, search spaces, and budgets.
- Improved Scaffold Evaluation: Using more robust metrics like probability of improvement/dominance, larger effective test sets, and evaluation cascades to mitigate stochasticity.
- Clarity in Contributions: Clearly distinguishing between proposing a search method and demonstrating a scientific discovery.
- Problem Formulation: Investigating systems that can dynamically change or discover problem formulations.
- Economical Development: Exploring cheaper LLMs, open-source models, and efficient evaluation strategies to make code evolution research more accessible.
Summary updated