arrow
Return

Enhancing Software Maintainability Through LLM-Assisted Code Refactoring

delete2026-01-01
delete0
PRE
AI
T
Tommaso Fulcini *
R
Riccardo Coppola
F
Flavio Giobergia
A
Amirali Changizi
M
Meelad Dashti
K
Kimia Dorrani
D
Domenico Amalfitano
D
Damiano Distante
F
Filippo Ricca
DOI:10.1007/978-3-032-12089-2_10delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
High code quality, particularly in terms of maintainability, is crucial for ensuring that software remains efficient and adaptable over time, while minimizing long-term maintenance costs. As artificial intelligence continues to evolve, its application in software development offers new opportunities to improve code quality. This study investigates the use of Large Language Models (LLMs) to enhance software maintainability through code refactoring. The results indicate that LLMs can be effectively utilized for this purpose, with effectiveness varying depending on the model and the evaluation metric used. Although the study is based on a limited set of Python projects and specific prompting strategies, it provides a meaningful step toward understanding the broader applicability of LLMs in this context.
Keywords:
LLMs
Code Maintainability
Code Quality
Technical Debt

Journal

P
PRODUCT-FOCUSED SOFTWARE PROCESS IMPROVEMENT, PROFES 2025
IF:
0
Papers:
40
Citations:
0

Organization

P
Polytechnic University of Turin
Scholars:
1.3W
Papers: 1.3W
Citations: 1.3W
U
University of Naples Federico II
Scholars:
4.7W
Papers: 3.6W
Citations: 51
U
university of genoa
Scholars:
3.0W
Papers: 2.2W
Citations: 20
researcher View more organizations
Cited Papers

Cited Papers

Refactoring Programs Using Large Language Models with Few-Shot Examples
err2023-12-04
err0
PREAI
errShirafuji,Atsushi; Oda,Yusuke; Suzuki,Jun; Morishita,Makoto; Watanobe,Yutaka
errShare
errSave
Analysis of the Tools for Static Code Analysis
err2021-03-17
err0
PREAI
errDanilo Nikolic; Darko Stefanovic; Dusanka Dakic; Srdan Sladojevic; Sonja Ristic
errShare
errSave
An exploration of technical debt
err2013-06-01
err303
PREAI
errTom, Edith; Aurum, Aybueke; Vidgen, Richard
errShare
errSave
CORE: Resolving Code Quality Issues using LLMs
err
IF0
err2024-07-12
err0
PREAI
errNalin Wadhwa; Jui Pradhan; Atharv Sonwane; Surya Prakash Sahu; Nagarajan Natarajan; Aditya Kanade; Suresh Parthasarathy; Sriram Rajamani
errShare
errSave
no more