TL;DR
Scale-SWE introduces an automated, sandboxed multi-agent workflow that transforms millions of raw GitHub pull requests into a massive, high-quality training dataset for coding agents. By generating 100,000 verified real-world software engineering instances across 5,200 repositories, it establishes the largest and most diverse dataset of its kind. Fine-tuning a 30-billion-parameter model on trajectories distilled from this data yields a 64% resolve rate on SWE-bench Verified, outperforming models more than twice its size.
What Problem Does This Paper Address?
While Large Language Models (LLMs) excel at isolated code generation, real-world software engineering (SWE) is far more complex. It requires navigating massive codebases, configuring fragile runtime environments, managing dependencies, and writing robust test suites.
Training AI agents to master these end-to-end software tasks is severely bottlenecked by data scarcity. Existing datasets are either manually curated (making them impossible to scale), heavily synthetic (making them unrealistic and biased toward simple logic errors), or restricted to a tiny handful of repositories. Scale-SWE bridges this gap by automating the entire pipeline of environment setup, unit-test generation, and problem description synthesis directly from raw GitHub history.
Methods
The authors developed a sandboxed multi-agent system that coordinates three specialized autonomous agents to turn raw pull requests (PRs) into fully executable software engineering tasks:
- Environment Builder Agent (EBA): Dynamically builds isolated Docker execution environments. Instead of relying on rigid, static installation rules, it interactively explores the repository, reads configuration files (like
setup.pyorREADME.md), and resolves dependency conflicts using real-time terminal feedback. - Unit-test Creator Agent (UCA): Operates inside the isolated sandbox to generate robust Fail-to-Pass (F2P) and Pass-to-Pass (P2P) test cases. It uses an interactive execute-analyze-refine loop to ensure the tests accurately capture the PR's intent.
- Problem Statement Writer Agent (PSWA): Powered by Gemini 3 Pro, this agent synthesizes clean, human-like issue descriptions. Crucially, it uses both the PR metadata and the generated unit tests to ensure semantic alignment while strictly stripping out any implementation "spoilers" or solution leakage.
To prevent agents from cheating during evaluation, the pipeline includes an anti-hack sanitization script that purges future git commit histories, remote references, and internal logs from the environment.
Finally, the authors used DeepSeek-V3.2 to distill 71,498 high-quality problem-solving trajectories from a subset of 25,000 instances, which were then used to fine-tune the Qwen3-30B-A3B-Instruct model into the Scale-SWE-Agent.
Datasets
- Scale-SWE-Data: The newly introduced dataset containing 100,000 verified, real-world SWE instances extracted from 6 million pull requests across 5,200 diverse repositories.
- SWE-bench Verified: A human-curated benchmark of 500 real-world Python issues used exclusively for evaluation.
The paper contrasts Scale-SWE-Data against several existing benchmarks, including SWE-Gym, SWE-smith, R2E-Gym, and SWE-Mirror, highlighting its massive leap in repository diversity and trajectory scale.
Key Insights and Ideas
- Real-World Diversity Beats Pure Scale: Purely synthetic datasets (like SWE-smith) suffer from a heavy bias toward simple "Logic Errors." Because Scale-SWE mines real-world software evolution, it captures a highly balanced distribution across ten distinct bug categories, including complex API mismatches, state synchronization issues, and security flaws.
- Intelligent Environment Reuse: Building a dedicated Docker container for every single PR is computationally impossible at scale. Scale-SWE solves this by building full environments for a maximum of 10 sampled PRs per repository, and then executing adjacent PRs in the "nearest" compatible environment based on timeline proximity. This dramatically boosts environment reuse without sacrificing data validity.
- Tests Ground the Narrative: Relying solely on raw PR descriptions often results in vague problem statements or solution leakage. By feeding the generated unit tests directly into the problem statement writer, the system ensures that the final issue description is accurate and actionable for an external solver, mimicking how human developers report bugs.
Key Results
- State-of-the-Art Open-Source Performance: The Scale-SWE-Agent achieved a remarkable 64.0% resolve rate on SWE-bench Verified.
- This represents a nearly three-fold absolute improvement over its base model, Qwen3-30B-A3B-Instruct, which sat at 22.0%.
- It significantly outperforms much larger models, including SWE-Fixer-72B (32.8%) and Llama3-SWE-RL (70B parameters, 41.0%), as well as the previous open-source leader, KAT-Dev-32B (62.4%).
- Data Quality Validation: In controlled Supervised Fine-Tuning (SFT) experiments using identical training pipelines, models trained on Scale-SWE data (64.0%) comfortably beat those trained on SWE-Gym (54.8%) and the massive synthetic dataset SWE-smith (54.6%), proving that high-fidelity real data is inherently more effective than synthetic alternatives.
Limitations and Future Work
The primary limitation acknowledged by the authors is language coverage: the entire Scale-SWE pipeline and dataset are currently restricted to Python codebases.
For future work, the authors plan to expand the multi-agent workflow to support other major programming languages—specifically Java, C, C++, and Rust—to foster the development of truly language-agnostic software engineering agents. They also aim to continue scaling up the volume of the training data.
Summary updated