EvoScale: Evolutionary Test-Time Scaling for Software Engineering

Guangtao Zeng, Maohao Shen, Delin Chen, Zhenting Qi, Subhro Das, Dan Gutfreund, David Daniel Cox, Gregory W. Wornell, Wei Lu, Zhang-Wei Hong, Chuang GanOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

EvoScale is a new framework that allows "small" language models (under 100B parameters) to match or exceed the performance of giants like GPT-4o and Claude 3.5 on complex software engineering tasks. By treating code generation as an iterative evolutionary process and using Reinforcement Learning (RL) to teach models to "self-evolve," EvoScale achieves state-of-the-art results on SWE-Bench-Verified with 10x fewer samples than previous methods.

What Problem Does This Paper Address?

While Large Language Models (LLMs) excel at solving isolated coding puzzles (like HumanEval), they struggle with real-world Software Engineering (SWE) tasks, such as fixing bugs in massive GitHub repositories. On the SWE-Bench benchmark, even top-tier models often fail to resolve more than 20-30% of issues without extensive help.

The current industry "fix" is test-time scaling: generating hundreds or thousands of potential patches and using a verifier (like unit tests or a reward model) to pick the best one. However, for small models, the "correct" solution is often a "needle in a haystack"—you might need to sample 500 times to find one working patch. This is computationally expensive, slow, and inefficient. The authors ask: Can we make small models smarter at test time so they find the right answer in 50 samples instead of 500?

Methods

The authors introduce Evolutionary Test-Time Scaling (EvoScale), which moves away from independent sampling toward an iterative refinement process.

  1. Patch Generation as Evolution: Instead of generating $N$ patches at once, the model generates a small batch, selects the best ones, and then generates the next batch conditioned on those previous attempts. This effectively "mutates" the best previous ideas to find even better ones.
  2. Two-Stage Supervised Fine-Tuning (SFT):
    • Stage 1 (Classical SFT): The model learns to solve issues normally.
  3. Stage 2 (Mutation SFT): The model is specifically trained to take a "candidate patch" (which might be wrong) and a bug description, then produce a refined, corrected version.
  4. Self-Evolution via RL: To avoid the cost of running a heavy "verifier" or reward model at every single step of the evolution, the authors use Reinforcement Learning (REINFORCE++) with potential-based reward shaping. They train the model to maximize the improvement in score between iterations. This "internalizes" the reward model, allowing the model to self-refine its code without external guidance during the middle steps of inference.

Datasets

  • Training: The authors curated a high-quality dataset of 29,404 instances sourced from SWE-Fixer and SWE-Gym, filtered for quality and deduplicated.
  • Evaluation: The primary benchmark is SWE-Bench-Verified, a subset of GitHub issues manually verified by humans to be solvable and well-specified.
  • Reward Modeling: They used a separate dataset of ~1,900 unique instances to train a binary classifier that acts as a code-editing reward model.

Key Insights and Ideas

  • The "Needle" is there, but hidden: Small models (like the 32B used here) actually can generate correct solutions, but their probability of doing so in a single shot is very low. EvoScale shifts the model's output distribution toward that "long tail" of correct solutions.
  • Internalizing the Gradient: By training on the difference between a new patch and an old one ($R(x, y) - R(x, y')$), the model learns a "self-improvement" objective. It stops just guessing and starts "climbing" the reward landscape.
  • Temperature is a Feature, not a Bug: The authors found that higher sampling temperatures (e.g., 1.2) work better for evolution. Higher "heat" encourages the mutation operator to explore more diverse fixes, preventing the model from getting stuck in a "local optimum" of a slightly-wrong patch.
  • Efficiency over Scale: EvoScale proves that compute spent on iterative refinement is far more valuable than compute spent on brute-force sampling.

Key Results

The authors evaluated EvoScale-32B (based on Qwen2.5-Coder-32B) and found:

  • Greedy Performance: It achieved 35.8% accuracy on SWE-Bench-Verified, outperforming all other small-scale models and even some "Large" models using standard scaffolds.
  • Sample Efficiency: With only 50 samples (Best@50), EvoScale reached 41.6% accuracy.
  • The 10x Speedup: To reach that same ~41% accuracy, the previous state-of-the-art (Llama3-SWE-RL-70B) required 500 samples. EvoScale matched it with 10x less inference-time compute and a model half the size.
  • Agentic Potential: When plugged into an "agentic" workflow (where the model can run shells and search files), EvoScale reduced the number of interaction steps needed to solve a problem over time.

Limitations and Future Work

  • Agentless Focus: The main results focus on a "pipeline-based" (agentless) setup. While the authors show it works in agentic settings in the appendix, more work is needed to fully integrate evolutionary scaling into complex, multi-step agent loops.
  • Context Window Constraints: The method relies on feeding previous attempts back into the prompt. For very large files or many iterations, this could hit context window limits, though the authors mitigate this by only keeping the most recent/best patches.
  • Local vs. Global Optimization: The current RL objective optimizes for "the next best step." Future work could explore optimizing the entire "evolutionary trajectory" to ensure the model doesn't just improve locally but reaches the global "correct" solution more reliably.

This paper is currently under review for ICLR 2026.

Summary updated

BibTeX
@misc{zeng2026evoscale,
  author = {Guangtao Zeng and Maohao Shen and Delin Chen and Zhenting Qi and Subhro Das and Dan Gutfreund and David Daniel Cox and Gregory W. Wornell and Wei Lu and Zhang-Wei Hong and Chuang Gan},
  title = {{EvoScale: Evolutionary Test-Time Scaling for Software Engineering}},
  year = {2026},
  url = {https://openreview.net/forum?id=mYBxVXB28s},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure