PROFES 2025
Mon 1 - Wed 3 December 2025 Salerno , Italy

Refactoring is an important part of software development and maintenance. The scalability and maintainability of software systems are based on effective code refactoring. However, this process is still labor intensive, as it requires programmers to analyze the codebases in detail to avoid introducing new defects. In this paper, we take a step forward in automating the refactoring process of Haskell code by utilizing a large language model (LLM)-based multi-agent system. The objective of this research is to evaluate the effectiveness of LLM-based agents in performing structured and semantically accurate refactoring of Haskell code. Our proposed multi-agent system is based on specialized agents with distinct roles, including code analysis, refactoring execution, verification, and debugging. To test the effectiveness of the multi-agent system, we conducted evaluations using different open-source Haskell codebases. The results of the experiments show that the proposed LLM-based multi-agent system achieved an average reduction of 11.03% in code complexity, a 22.46% improvement in overall code quality, and a 13.27% increase in performance efficiency. Furthermore, memory allocation was optimized by up to 14.57%. These results highlight the capability of the LLM-based multi-agent system to manage refactoring tasks targeted toward functional programming paradigms. Our findings suggest that integrating LLM-based multi-agent systems into the refactoring of functional programming languages can enhance maintainability and support automated development workflows. The source code of our proposed system and the metrics results are publicly available on GitHub (https://github.com/GPT-Laboratory/Intelligent-Haskell-Code-Refactoring)

Tue 2 Dec

Displayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change

09:30 - 11:00
Technical Debt and RefactoringShort Papers and Posters / Research Papers at Sala degli Affreschi (Fresco Room)
Chair(s): Sousuke Amasaki Nanzan University
09:30
15m
Talk
Enhancing Python Code Maintainability through Large Language Model-Based Approaches
Research Papers
Karthik Shivashankar University of Oslo, Antonio Martini University of Oslo, Norway
09:45
15m
Talk
Enhancing Software Maintainability through LLM-Assisted Code Refactoring
Research Papers
Tommaso Fulcini Politecnico di Torino, Riccardo Coppola Politecnico di Torino, Flavio Giobergia Politecnico di Torino, Amirali Changizi Politecnico di Torino, Meelad Dashti Politecnico di Torino, Kimia Dorrani Politecnico di Torino, Domenico Amalfitano University of Naples Federico II, Damiano Distante UnitelmaSapienza University of Rome, Filippo Ricca DIBRIS, Università di Genova
10:00
15m
Talk
Temporal Evolution of Architectural Complexity and Technical Debt in Microservices: An Exploratory Case Study
Research Papers
Bhuwan Paudel Blekinge Institute of Technology, Javier Gonzalez-Huerta Blekinge Institute of Technology, Ehsan Zabardast Nordea / Blekinge Institute of Technology
10:15
15m
Talk
Detecting Technical Debt in Source Code Changes using Large Language Models
Research Papers
Merve Astekin SINTEF, Arda Goknil SINTEF Digital, Sagar Sen , Simeon Tverdal SINTEF Digital, Phu Nguyen SINTEF
10:30
7m
Talk
LLM-based Multi-Agent System for Intelligent Refactoring of Haskell Code
Short Papers and Posters
Shahbaz Siddeeq Tampere University, Muhammad Waseem Faculty of Information Technology and Communication Sciences, Tampere University, 33014 Tampere, Finland, Zeeshan Rasheed Tampere University, Md Mahade Hasan Tampere University, Jussi Rasku Tampere University, Mika Saari Tampere University, Henri Terho Eficode Oy, Kalle Mäkelä Eficode Oy, Kai-Kristian Kemell Tampere University, Pekka Abrahamsson Tampere University
10:37
7m
Talk
Architecture Degradation at Scale: Challenges and Insights from Practice
Short Papers and Posters
Ehsan Zabardast Nordea / Blekinge Institute of Technology, Bhuwan Paudel Blekinge Institute of Technology, Javier Gonzalez-Huerta Blekinge Institute of Technology
DOI Authorizer link File Attached
10:44
7m
Talk
How Well Small Language Models Can Be Adapted for Software Maintenance and Refactoring Tasks
Short Papers and Posters
Gabija Asvydyte University of Groningen, Sushant Kumar Pandey University of Groningen, The Netherlands, Sivajeet Chand Technical University of Munich