• Home
  • Search
  • Refactoring Deep Learning Code: a Study of Practices and Unsatisfied Tool Needs
  • https://doi.org/10.1109/icsme64153.2025.00013Copy DOI Icon

Refactoring Deep Learning Code: a Study of Practices and Unsatisfied Tool Needs

  • Sep 7, 2025
  • Siqi Wang +5 more
Show More
  • Abstract
  • Literature Map
  • References
  • Similar Papers
Abstract

With the rapid development of deep learning, the implementation of intricate algorithms and substantial data processing has become a standard element 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 non-deep learning software. However, the insights of code refactoring in the context of deep learning are still unclear. This study endeavors to fill this knowledge gap by empirically examining the current state of code refactoring in the deep learning realm and practitioners' views on refactoring tools. We first manually analyze the commit history of five popular and well-maintained deep learning projects (e.g., PyTorch). We mine <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\mathbf{4, 4 0 1}$</tex> refactoring practices in <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\mathbf{2, 4 4 5}$</tex> historical commits and measure how different types and elements of refactoring operations are distributed. We then survey 159 practitioners about their views of code refactoring in deep learning projects and their expectations of current refactoring tools. The survey result shows that refactoring research and the development of related tools in the field of deep learning are crucial for improving project maintainability and code quality, and that current refactoring tools do not adequately meet the needs of practitioners. Lastly, we provide our perspective on the future advancement of refactoring tools and offer suggestions for developers' development practices.

Similar Papers
  • Conference Article
  • Citations23

Code Quality Improvement for All: Automated Refactoring for Scratch

  • Oct 01, 2019
  • Peeratham Techapalokul +1
  • Conference Article
  • Citations322

A comprehensive study on deep learning bug characteristics

  • Aug 12, 2019
  • Md Johirul Islam +3
  • Conference Article
  • Citations3

Refactoring Generics in JAVA: A Case Study on Extract Method

  • Mar 01, 2010
  • RaúL Marticorena +3
  • PDF
  • Research Article
  • Citations4

Review of Algorithms, Frameworks and Implementation of Deep Machine Learning Algorithms

  • Oct 05, 2022
  • Journal of Computing and Natural Science
  • Ivan Leonid
  • Conference Article
  • Citations13

Design Smells in Deep Learning Programs: An Empirical Study

  • Sep 01, 2021
  • Amin Nikanjam +1
  • PDF
  • Dissertation
  • Citations3

Automated Static Analysis Tools: A Multidimensional view on Software Quality Evolution

  • Jan 01, 2022
  • Alexander Trautsch
  • Conference Article
  • Citations18

Easier Said than Done: An Empirical Investigation of Software Design and Quality in Open Source Software Development

  • Jan 01, 2009
  • Caryn A Conley +1
  • Conference Instance
  • Citations11

Proceedings of the 4th Workshop on Refactoring Tools

  • May 22, 2011
  • Conference Article
  • Citations1

The 2nd workshop on refactoring tools (WRT'08)

  • Oct 19, 2008
  • Danny Dig +2
  • PDF
  • Research Article
  • Citations9

DVNE-DRL: dynamic virtual network embedding algorithm based on deep reinforcement learning.

  • Nov 13, 2023
  • Scientific Reports
  • Xiancui Xiao
  • PDF
  • Research Article
  • Citations7

Autonomous fetal morphology scan: deep learning + clustering merger – the second pair of eyes behind the doctor

  • Apr 19, 2024
  • BMC Medical Informatics and Decision Making
  • Smaranda Belciug
  • Research Article
  • Citations34

Deep learning algorithms for the early detection of breast cancer: A comparative study with traditional machine learning

  • Jan 01, 2023
  • Informatics in Medicine Unlocked
  • Rolando Gonzales Martinez +1
  • Conference Article

ERD-CQC : Enhanced Rule and Dependency Code Quality Check for Java

  • Jul 24, 2024
  • Yi Hou +8
  • Single Report

Code Quality Risk Assessment (CQRA) for Mission Software

  • Dec 01, 2025
  • David Mccomas
  • Research Article

Design and Implementation of a Collaborative Filtering Algorithm Based on Deep Learning and Matrix Factorization

  • Apr 20, 2026
  • ICST Transactions on Scalable Information Systems
  • Meiyu Fang +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.