SWE-Flow: Synthesizing Software Engineering Data in a Test-Driven Manner

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Zhang, Lei, Yang, Jiaxi, Yang, Min, Yang, Jian, Chen, Mouxiang, Zhang, Jiajun, Cui, Zeyu, Hui, Binyuan, Lin, Junyang
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913889056194560
author Zhang, Lei
Yang, Jiaxi
Yang, Min
Yang, Jian
Chen, Mouxiang
Zhang, Jiajun
Cui, Zeyu
Hui, Binyuan
Lin, Junyang
author_facet Zhang, Lei
Yang, Jiaxi
Yang, Min
Yang, Jian
Chen, Mouxiang
Zhang, Jiajun
Cui, Zeyu
Hui, Binyuan
Lin, Junyang
contents We introduce **SWE-Flow**, a novel data synthesis framework grounded in Test-Driven Development (TDD). Unlike existing software engineering data that rely on human-submitted issues, **SWE-Flow** automatically infers incremental development steps directly from unit tests, which inherently encapsulate high-level requirements. The core of **SWE-Flow** is the construction of a Runtime Dependency Graph (RDG), which precisely captures function interactions, enabling the generation of a structured, step-by-step *development schedule*. At each step, **SWE-Flow** produces a partial codebase, the corresponding unit tests, and the necessary code modifications, resulting in fully verifiable TDD tasks. With this approach, we generated 16,061 training instances and 2,020 test instances from real-world GitHub projects, creating the **SWE-Flow-Eval** benchmark. Our experiments show that fine-tuning open model on this dataset significantly improves performance in TDD-based coding. To facilitate further research, we release all code, datasets, models, and Docker images at [Github](https://github.com/Hambaobao/SWE-Flow).
format Preprint
id arxiv_https___arxiv_org_abs_2506_09003
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SWE-Flow: Synthesizing Software Engineering Data in a Test-Driven Manner
Zhang, Lei
Yang, Jiaxi
Yang, Min
Yang, Jian
Chen, Mouxiang
Zhang, Jiajun
Cui, Zeyu
Hui, Binyuan
Lin, Junyang
Computation and Language
We introduce **SWE-Flow**, a novel data synthesis framework grounded in Test-Driven Development (TDD). Unlike existing software engineering data that rely on human-submitted issues, **SWE-Flow** automatically infers incremental development steps directly from unit tests, which inherently encapsulate high-level requirements. The core of **SWE-Flow** is the construction of a Runtime Dependency Graph (RDG), which precisely captures function interactions, enabling the generation of a structured, step-by-step *development schedule*. At each step, **SWE-Flow** produces a partial codebase, the corresponding unit tests, and the necessary code modifications, resulting in fully verifiable TDD tasks. With this approach, we generated 16,061 training instances and 2,020 test instances from real-world GitHub projects, creating the **SWE-Flow-Eval** benchmark. Our experiments show that fine-tuning open model on this dataset significantly improves performance in TDD-based coding. To facilitate further research, we release all code, datasets, models, and Docker images at [Github](https://github.com/Hambaobao/SWE-Flow).
title SWE-Flow: Synthesizing Software Engineering Data in a Test-Driven Manner
topic Computation and Language
url https://arxiv.org/abs/2506.09003