SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugs

Minh V. T. Pham, Huy N. Phan, Hoang N. Phan, Cuong Le Chi, Tien N. Nguyen +1 more
4/20/2025
cs.SEcs.AI

No official code found. Best implementation: FSoft-AI4Code/SWE-Synth (20 stars, last commit 2025-04-22).

Abstract

Large language models (LLMs) are transforming automated program repair (APR) through agent-based approaches that localize bugs, generate patches, and verify fixes. However, the lack of high-quality, scalable training datasets, especially those with verifiable outputs and intermediate reasoning traces-limits progress, particularly for open-source models. In this work, we present SWE-Synth, a framework for synthesizing realistic, verifiable, and process-aware bug-fix datasets at the repository level. SWE-Synth leverages LLM agents to simulate debugging workflows, producing not only bug-fix pairs but also test cases and structured repair trajectories. Compared to manually curated datasets, our method scales with minimal human effort while preserving contextual richness and correctness. Experiments show that models trained on SWE-Synth outperform those trained on real-world datasets by 2.3% on SWE-Bench Lite. Our results highlight the potential of synthetic, agent-generated data to advance the state of the art in APR and software engineering automation.

View on arXivView PDF

Code Implementations(1)

[ICSE 2026] [ACM SIGSOFT Distinguished Paper Award] SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugs

201CSS, ShellApr 22, 20251 years ago
ai4codesynthetic-bug-dataset

Similar Papers

Cite this paper

@article{pham2025swesynth,
  title  = {SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugs},
  author = {Minh V. T. Pham and Huy N. Phan and Hoang N. Phan and Cuong Le Chi and Tien N. Nguyen and Nghi D. Q. Bui},
  year   = {2025},
  eprint = {2504.14757},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.14757v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.14757.svg)](https://codeofpaper.com/paper/2504.14757)

Discussion