Refactoring Deep Learning Code: A Study of Practices and Unsatisfied Tool Needs
Siqi Wang, Xing Hu, Bei Wang, Wenxin Yao, Xin Xia, Xinyu Wang

TL;DR
This paper empirically examines code refactoring practices in deep learning projects, revealing unique patterns, practitioners' perspectives, and unmet tool needs, highlighting the importance of tailored refactoring tools for deep learning software.
Contribution
It provides the first detailed analysis of refactoring practices in deep learning code, compares them with traditional software, and surveys practitioners to identify tool gaps and future directions.
Findings
Refactoring operation types differ from traditional software.
Practitioners see refactoring tools as crucial but inadequate.
Current tools do not fully support deep learning code refactoring.
Abstract
With the rapid development of deep learning, the implementation of intricate algorithms and substantial data processing have become standard elements of deep learning projects. As a result, the code has become progressively complex as the software evolves, which is difficult to maintain and understand. Existing studies have investigated the impact of refactoring on software quality within traditional software. However, the insight of code refactoring in the context of deep learning is still unclear. This study endeavors to fill this knowledge gap by empirically examining the current state of code refactoring in deep learning realm, and practitioners' views on refactoring. We first manually analyzed the commit history of five popular and well-maintained deep learning projects (e.g., PyTorch). We mined 4,921 refactoring practices in historical commits and measured how different types and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsArtificial Intelligence in Healthcare and Education
