Introduction
Large Language Models (LLMs) have demonstrated remarkable proficiency in standardized coding benchmarks, yet they often struggle with the complexities of real-world software engineering (SWE) tasks, such as resolving GitHub issues across multi-file codebases. While test-time scaling—generating numerous candidate solutions to find a correct one—is a common strategy, it is often computationally inefficient for SWE tasks where correct solutions are rare. This paper introduces Evolutionary Test-Time Scaling (EvoScale), a method that enables models to iteratively refine and "self-evolve" their own code patches. The resulting model, Satori-SWE-32B, matches the performance of much larger models on SWE-Bench using a fraction of the inference compute.
Methodology: Evolutionary Test-Time Scaling (EvoScale)
EvoScale treats code generation as an iterative evolutionary process rather than a single-shot lottery. Instead of generating hundreds of independent samples, the inference budget is amortized over multiple iterations.
As illustrated in the process above, the model generates a small batch of patches, selects the best candidates, and feeds them back into the prompt as conditioning examples. The model then generates a new batch conditioned on these prior attempts, effectively "mutating" them toward a better solution. This approach is supported by two key training innovations:
- Mutation SFT (Supervised Fine-Tuning): Standard models are typically trained to map an issue directly to a perfect patch. EvoScale models are explicitly trained on "mutation data"—a mix of high- and low-scoring prior patches—teaching them how to recognize and correct flaws in mediocre code.
- RL for Self-Evolution: Using Reinforcement Learning (RL) with potential-based reward shaping, the model learns the direction of improvement. This allows the model to monotonically improve its own outputs over time without requiring an external verifier or unit-test sandbox during the iterative loops.
Key Insights and Training
The authors curated a training set of 29,404 high-quality instances from SWE-Fixer and SWE-Gym. Evaluation was conducted on SWE-Bench Verified, a rigorous subset of real-world Python GitHub issues.
Research highlights include the necessity of explicit mutation training; standard SFT models generally fail to improve upon previous patches when prompted. Furthermore, the authors found that using a high sampling temperature (e.g., 1.2) during mutation steps improves performance by creating a more diverse pool of "genetic material" for the model to synthesize into a final solution.
Results and Performance
Satori-SWE-32B achieves state-of-the-art efficiency. Under standard greedy decoding, it reaches 35.8% accuracy on SWE-Bench Verified. When utilizing the EvoScale pipeline with just 50 samples (Best@50), the model reaches 41.6% accuracy.
As shown in the scaling analysis, Mutation SFT demonstrates a clear advantage in resolving instances as the number of accumulative samples increases, whereas classical SFT methods tend to plateau or decline. Satori-SWE-32B matches the performance of the Llama3-SWE-RL-70B model while requiring 10x fewer samples (Best@50 vs Best@500) and utilizing a model half the size. Additionally, because self-evolution does not require constant unit-test validation, it is approximately 6x faster than traditional test-time scaling methods.
Limitations and Future Work
The current Satori-SWE framework is "agentless," meaning it relies on an external retriever to identify target files before the model edits them. It does not yet support "agentic" workflows where the model actively explores a codebase or interacts with a live terminal. Future work will focus on extending EvoScale to these more dynamic, long-trajectory environments.
Summary updated