A Survey of Deep Learning Based Software Refactoring

IF 30.4 1区 计算机科学 Q1 COMPUTER SCIENCE, THEORY & METHODS
Bridget Nyirongo, Yanjie Jiang, He Jiang, Hui Liu
{"title":"A Survey of Deep Learning Based Software Refactoring","authors":"Bridget Nyirongo, Yanjie Jiang, He Jiang, Hui Liu","doi":"10.1145/3849693","DOIUrl":null,"url":null,"abstract":"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 ( <jats:inline-formula content-type=\"math/tex\"> <jats:tex-math notation=\"TeX\" version=\"MathJaX\">\\(43.84\\% \\)</jats:tex-math> </jats:inline-formula> ) and refactoring recommendation ( <jats:inline-formula content-type=\"math/tex\"> <jats:tex-math notation=\"TeX\" version=\"MathJaX\">\\(32.88\\% \\)</jats:tex-math> </jats:inline-formula> ) comprising more than three-quarters of the literature. Conversely, refactoring implementation ( <jats:inline-formula content-type=\"math/tex\"> <jats:tex-math notation=\"TeX\" version=\"MathJaX\">\\(12.33\\% \\)</jats:tex-math> </jats:inline-formula> ) and mining ( <jats:inline-formula content-type=\"math/tex\"> <jats:tex-math notation=\"TeX\" version=\"MathJaX\">\\(8.22\\% \\)</jats:tex-math> </jats:inline-formula> ) show emergent tracking, while refactoring impact analysis remains under-explored ( <jats:inline-formula content-type=\"math/tex\"> <jats:tex-math notation=\"TeX\" version=\"MathJaX\">\\(2.74\\% \\)</jats:tex-math> </jats:inline-formula> ). 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.","PeriodicalId":50926,"journal":{"name":"ACM Computing Surveys","volume":"16 1","pages":""},"PeriodicalIF":30.4000,"publicationDate":"2026-10-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM Computing Surveys","FirstCategoryId":"94","ListUrlMain":"https://doi.org/10.1145/3849693","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
引用次数: 0

Abstract

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.
基于深度学习的软件重构研究综述
重构是软件工程中用于提高软件质量和可维护性的关键活动。越来越多地,深度学习(DL)技术被应用于软件重构,以克服传统的、手动设计的启发式的局限性。然而,缺乏全面的调查和结构化的分类来描述这些基于深度学习的方法。为了填补这一空白,我们提出了一项调查,将基于深度学习的软件重构分为五个核心任务:代码气味检测、重构推荐、重构实现、重构挖掘和重构影响分析。我们的分析揭示了研究分布的不平衡。该领域集中在早期决策阶段,代码气味检测(\(43.84\% \))和重构建议(\(32.88\% \))占文献的四分之三以上。相反,重构实现(\(12.33\% \))和挖掘(\(8.22\% \))显示了紧急跟踪,而重构影响分析仍未得到充分研究(\(2.74\% \))。除了这个分类之外,调查还强调了关键的差距,包括明显缺乏对基于dl的重构的质量保证的研究,以及对类和变量级操作的关注很少。最后,我们描绘了开放的挑战和未来的方向,以指导研究人员构建更全面的端到端自动化重构管道。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
ACM Computing Surveys
ACM Computing Surveys 工程技术-计算机:理论方法
CiteScore
33.20
自引率
0.60%
发文量
372
审稿时长
12 months
期刊介绍: ACM Computing Surveys is an academic journal that focuses on publishing surveys and tutorials on various areas of computing research and practice. The journal aims to provide comprehensive and easily understandable articles that guide readers through the literature and help them understand topics outside their specialties. In terms of impact, CSUR has a high reputation with a 2022 Impact Factor of 16.6. It is ranked 3rd out of 111 journals in the field of Computer Science Theory & Methods. ACM Computing Surveys is indexed and abstracted in various services, including AI2 Semantic Scholar, Baidu, Clarivate/ISI: JCR, CNKI, DeepDyve, DTU, EBSCO: EDS/HOST, and IET Inspec, among others.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书