ThetaEvolve: Test-time Learning on Open Problems

Yiping Wang, Shao-Rong Su, Zhiyuan Zeng, Eva Xu, Liliang Ren, Xinyu Yang, Zeyi Huang, Xuehai He, Luyao Ma, Baolin Peng, Hao Cheng, Pengcheng He, Weizhu Chen, Shuohang Wang, Simon Shaolei Du, yelong shen

Recent breakthroughs in mathematical discovery have been driven by "evolutionary" systems like AlphaEvolve, which use Large Language Models (LLMs) to iteratively modify code and optimize mathematical bounds. However, these systems have historically relied on massive, closed-source frontier models operating purely through inference.

ThetaEvolve introduces an open-source framework that shifts this paradigm. By integrating test-time Reinforcement Learning (RL), ThetaEvolve enables small, open-source models (like the 8B parameter DeepSeek-R1-Distill-Qwen3) to internalize evolutionary strategies. Remarkably, this approach allows a single small model to surpass the best-known bounds previously set by ensembles of giant frontier models like GPT-4 and Gemini.

The Bottlenecks of Current Evolutionary Systems

While systems like AlphaEvolve have shown promise in solving open optimization problems (e.g., packing circles into a square), they suffer from three major drawbacks:

  1. Closed and Computationally Heavy: They rely on expensive ensembles of proprietary, frontier-class models.
  2. Pure Inference: They operate as "inference-only" loops. The model follows a prompt-based search but never updates its weights to internalize the strategies that lead to success.
  3. Scaling Inefficiencies: They typically use sequential sampling, failing to leverage modern high-throughput inference engines, which makes the search for new bounds agonizingly slow.

The ThetaEvolve Framework

ThetaEvolve simplifies and extends the evolutionary pipeline to efficiently scale both in-context learning and RL at test time. Key innovations include:

  • Test-Time Reinforcement Learning: Unlike previous systems, ThetaEvolve uses Group Relative Policy Optimization (GRPO) to update the model's weights during the search process. This allows the model to learn and internalize successful "search-on-the-edge" behaviors.
  • Dynamic Program Database: The system maintains a large database (up to 10,000 programs) that acts as a memory of the best and most diverse strategies found so far, ensuring the model always operates at the frontier of its current capability.
  • High-Throughput Batch Sampling: To maximize efficiency, the system samples a batch of parent programs and generates multiple child programs in parallel, leveraging engines like vLLM or SGLang.
  • Early Checks & Lazy Penalties: To prevent the model from wasting compute on stagnant or broken code, ThetaEvolve applies "lazy penalties" for outputs that fail basic compilation checks or do not meaningfully change the code.
  • Adaptive Reward Shaping: For tasks where objective scores fall within a very narrow range, the framework implements a reward-shaping function to provide a clearer, more stable training signal to the RL algorithm.

Evaluation and Key Results

The researchers evaluated ThetaEvolve on five challenging open mathematical optimization problems: CirclePacking-T, First Autocorrelation Inequality (FACI), Second Autocorrelation Inequality (SACI), Third Autocorrelation Inequality (TACI), and HadamardMatrix.

1. New Best-Known Bounds

ThetaEvolve successfully achieved new best-known bounds for Circle Packing (2.63598308) and the First Autocorrelation Inequality (1.503133). This marks the first time a small, open-source model has achieved state-of-the-art results on these open problems.

2. Massive Efficiency Gains

The framework is highly optimized. The ThetaEvolve pipeline is roughly 12x faster than the previous open-source baseline (OpenEvolve), completing 400 inference steps in 5.4 hours versus 63.6 hours on the same hardware. Furthermore, the specific circle-packing program discovered by ThetaEvolve takes only 3 seconds to find the optimal solution, compared to 75 seconds for the program found by the ShinkaEvolve ensemble.

3. Learning to Evolve

Perhaps the most significant finding is that the model genuinely learns. Across all tasks and models, the RL-trained versions consistently outperformed inference-only baselines. A checkpoint trained via RL on one task (like Circle Packing) demonstrated significantly faster progress and better final performance when transferred to entirely different, unseen tasks.

Limitations and Future Directions

While ThetaEvolve represents a major step forward, the authors note a few limitations. First, the success of RL on certain tasks is sensitive to the manual tuning of reward-shaping parameters; automating this tuning is a critical next step. Second, when initialized with extremely strong, near-SOTA solutions, the model sometimes struggles to explore aggressive modifications, occasionally getting stuck in local optima.

Despite these challenges, the observed task transferability suggests a highly promising future direction: scaling this approach into a general "post-training recipe" to instill evolutionary and discovery capabilities across a wide breadth of scientific domains.

Summary updated

BibTeX
@inproceedings{wang2026thetaevolve,
  author = {Yiping Wang and Shao-Rong Su and Zhiyuan Zeng and Eva Xu and Liliang Ren and Xinyu Yang and Zeyi Huang and Xuehai He and Luyao Ma and Baolin Peng and Hao Cheng and Pengcheng He and Weizhu Chen and Shuohang Wang and Simon Shaolei Du and yelong shen},
  title = {{ThetaEvolve: Test-time Learning on Open Problems}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=XHP568OuIl},
}
Figure