arXiv:2610.20193cs.SEOct 2026

Manuscript Offprint

arXiv:2610.20193

SWE-Stream: Scaling Executable Training Data for SWE Agents via Progressive Construction and Elastic Streaming

Chengyang Liu, Wen Yang, Shifeng Chen, Delai Qiu, Ji Yang, Junnan Zhu, Yining Wang, Shengping Liu

Abstract

Software engineering agents have advanced rapidly, but scaling their training remains constrained by the limited availability of high-quality executable tasks. Development histories contain valuable signals for constructing such tasks, yet they often require substantial reconstruction due to incomplete environments, missing tests, and inconsistent artifacts. We present SWE-Stream, a system for scaling executable SWE training data through progressive construction and elastic streaming execution. SWE-Stream progressively validates and refines task candidates, reusing existing artifacts when possible and applying targeted completion only when necessary. An elastic scheduler asynchronously coordinates construction stages under shared resource constraints, adapting execution budgets based on observed workload demands. Using development histories from 10,728 repositories across six programming languages, SWE-Stream constructs 80,874 validated tasks and collects 118,688 successful trajectories. Fine-tuning Qwen3-30B-A3B-Thinking-2507 on these trajectories achieves resolve rates of 69.0%, 49.3%, and 45.42% on SWE-bench Verified, Multilingual, and Pro, respectively. In a controlled comparison with approximately matched training budgets, SWE-Stream achieves a 45.6% resolve rate on SWE-bench Verified, outperforming three existing data sources. Moreover, its streaming construction strategy improves efficiency, delivering 1.45× the accepted-task throughput of batch construction and accepting 13.2% more tasks than fixed-limit streaming.

1 Introduction

Software engineering agents solve repository-level tasks by modifying code, executing tests, and iteratively refining their solutions through feedback (Jimenez et al., 2024; Yang et al., 2024; Wang et al., 2025b). Training these agents requires executable tasks that combine a meaningful problem description, a reproducible environment, a reference change, and validation tests capable of distinguishing correct repairs (Pan et al., 2025). Development histories provide a natural source of such supervision, but they are rarely ready for training: dependencies may become incompatible, tests may provide insufficient coverage, and descriptions, patches, and validation artifacts may not consistently reflect the same intended behavior.

Existing efforts address this challenge from different perspectives, including synthesizing faults in controlled environments (Yang et al., 2025b), enriching commit-based tasks with generated artifacts (Jain et al., 2025), and automating large-scale environment and task construction (Zhao et al., 2026). These approaches expand the supply of executable SWE data, yet heterogeneous development histories still require candidate-specific reconstruction, completion, and validation. Candidates become ready for subsequent stages at different times, so cohort-wide stage barriers delay those that could otherwise advance. Their resource demands also vary, making uniform per-task limits poorly suited to some workloads. These challenges motivate a system that selectively completes and validates artifacts, advances ready candidates asynchronously, and adjusts resource limits to observed demand.

We introduce SWE-Stream, a system that scales executable SWE data construction through two complementary designs: progressive task construction and elastic streaming execution. From repository and PR screening through construction, it reuses available artifacts and uses stage outcomes to guide candidate advancement, targeted completion or remediation, and rejection. Meanwhile, its streaming scheduler asynchronously dispatches ready stages across candidates under a shared resource budget, allowing computation to adapt to

†^{\dagger}Corresponding author: Delai Qiu qiudelai@unisound.com.

Figure

Figure 1: Overview of SWE-Stream. Top: progressive construction with validation and targeted rework. Bottom: asynchronous execution with pressure-based admission, adaptive resource limits, and OOM recovery.

heterogeneous repository workloads.

From 203,905 initial pull-request candidates, we obtain 80,874 accepted tasks from 10,728 repositories spanning six programming languages. The resulting dataset supports both large-scale trajectory collection and supervised fine-tuning. Experiments show that training on SWE-Stream improves software engineering agent performance, achieving 69.0%, 49.3%, and 45.42% resolve rates on SWE-bench Verified, Multilingual, and Pro, respectively. Under a controlled comparison with approximately matched training tokens, SWE-Stream achieves the strongest SWE-bench Verified performance among four data sources. Furthermore, the proposed streaming construction strategy improves data generation efficiency, reaching higher accepted-task throughput and producing more validated tasks under the same pool.

Our contributions are as follows:

• We introduce SWE-Stream, a scalable system for constructing executable SWE training data that combines progressive construction with elastic streaming execution: from screening through construction, stage outcomes decide whether each candidate advances, receives targeted remediation, or is rejected.

• We construct a multilingual collection of 80,874 validated SWE tasks from real development histories across six programming languages.

• We demonstrate that SWE-Stream improves both training utility and construction efficiency, enabling stronger SWE agent performance with more efficient data generation.