Training and evaluating frontier coding agents is bottlenecked by the finite supply and high curation cost of real-world software engineering (SWE) issues. Researchers from Shanghai Jiao Tong University introduce SWE-at-Scale, which reverse-engineers historical bug fixes into mechanistic bug-induction supervision and transfers those learned failure patterns to novel code contexts. SWE-at-Scale robustly synthesizes up to 200 distinct, realistic executable bug types from a single file context.

Key Takeaways

  • ✓Fix-to-bug mechanistic inversion: reverse-engineers historical bug fixes into grounded bug-induction supervision
  • ✓Scales to 200 distinct bugs per file: transfers learned failure patterns to new code contexts with robust diversity up to 200 generations per file
  • ✓Open-source SWE synthesis engine: turns finite historical commits into an abundant supply of verifiable RLVR training tasks
SWE-at-Scale: Reverse-Engineering Historical Bug Fixes to Exponentially Synthesize Verifiable Software Engineering Tasks
🖼️Official Media
Click to view high-res
🧭

Turn your technical choice into a development budget

Compare 40 dev plans & simulate token costs vs $20/mo subscriptions

🔬

In-Depth Technical Analysis

Background and the Problem

As coding agents advance rapidly, both reinforcement learning with verifiable rewards (RLVR) and rigorous benchmarking demand a massive, diverse supply of executable software engineering (SWE) tasks. However, real-world tasks are bottlenecked by the natural rate of GitHub issue reporting and expensive manual Docker curation, while existing synthetic methods rely on naive heuristic prompting that fails to capture the complex mechanics of authentic software failures.

Architecture and How It Works

To exponentially scale realistic task synthesis, researchers from Shanghai Jiao Tong University introduced SWE-at-Scale:

  1. Mechanistic Fix-to-Bug Inversion: Built on the insight that historical bug-fix commits encapsulate deep mechanistic knowledge of how real bugs form, SWE-at-Scale inverts real-world repair patches to transform repair supervision into grounded bug-induction supervision;
  2. Cross-Context Bug Pattern Transfer: Transfers learned failure typologies to novel code contexts and repositories, repeatedly sampling diverse, executable bug instances paired with verifiable test suites.

Benchmarks and Measured Results

Extensive empirical evaluations demonstrate superior task realism and scaling behavior:

  • Robust Diversity up to 200 Generations per File: Generates distinct, non-repetitive bug typologies from a single code context, with bug diversity scaling robustly up to 200 generations per file;
  • Higher Challenge for Frontier Coding Agents: Poses substantially greater difficulty and diagnostic realism to state-of-the-art coding agents than heuristic bug-injection baselines.

Getting Started for Developers

The synthesis framework is open-sourced at https://github.com/cslsolow/SWE-at-scale:

  • Scale Private RLVR Code Datasets: Run SWE-at-Scale over internal git commit histories to turn finite historical bug fixes into thousands of executable debugging environments for training repository-specialized coding agents.
Action HubReady to adopt this in production?

Benchmark side-by-side against alternatives, or calculate monthly token cost vs subscription break-even.

Up NextPreciseCoder: Augmenting Unit-Test RL with Localized Semantic Rewards Cuts Code Edits from 7–15 Lines to 3 and Boosts GPT-5.6 Sol Precision
Read Now→