A Survey of Deep Learning Based Software Refactoring
Refactoring is a critical activity in software engineering used to improve software quality and maintainability. Increasingly, deep learning (DL) techniques are being applied to software refactoring to overcome the limitations of traditional, manually designed heuristics. However, there is a lack of comprehensive surveys and structured taxonomies characterizing these deep learning-based approaches. To fill this gap, we present a survey that categorizes deep learning-based software refactoring into five core tasks: code smell detection, refactoring recommendation, refactoring implementation, refactoring mining, and refactoring impact analysis. Our analysis reveals an imbalance in research distribution. The field is concentrated on the early decision-making stages, with code smell detection (43.84%) and refactoring recommendation (32.88%) comprising more than three-quarters of the literature. Conversely, refactoring implementation (12.33%) and mining (8.22%) show emergent tracking, while refactoring impact analysis remains under-explored (2.74%). Beyond this taxonomy, the survey highlights critical gaps, including a notable absence of research on quality assurance for DL-based refactoring and minimal attention given to class- and variable-level operations. Finally, we map out open challenges and future directions to guide researchers toward building more comprehensive, end-to-end automated refactoring pipelines.
Authors
- Bridget Nyirongo (ORCID: https://orcid.org/0000-0003-0139-2344)
- Yanjie Jiang (ORCID: https://orcid.org/0000-0001-6404-9143)
- Hui Liu (ORCID: https://orcid.org/0000-0002-1793-0015)
- He Jiang (ORCID: https://orcid.org/0000-0001-8674-4948)
Institutions
- Beijing Institute of Technology (CN)
- Tianjin University of Technology (CN)
- Tianjin University (CN)
- Dalian University of Technology (CN)
Publication Details
- Journal
- ACM Computing Surveys
- Published
- 2026-12-02
- DOI
- https://doi.org/10.1145/3849693
- Citations
- 23
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 15.58
Funders
- National Natural Science Foundation of China