arrow
Return

Exploring Architectural Smells Detection Through LLMs

delete2026-01-01
delete0
PRE
AI
C
Claudio Tessa
M
Matteo Bochicchio *
F
Francesca Arcelli Fontana
DOI:10.1007/978-3-032-02138-0_6delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Architectural smells (AS) are design flaws in software systems that, if left unaddressed, can negatively impact maintainability and system evolution. This preliminary study investigates the use of Large Language Models (LLM) for detecting and explaining an AS called Hub-like Dependency (HL), a critical smell type characterized by components with numerous incoming and outgoing dependencies. The research leverages Google's Gemini 1.5 Pro, comparing its performance to Arcan, a specialized AS detection tool. The study analyzes 135 AS across 39 open-source Java projects, including 100 Hub-like Dependency smells with varying severity levels and 35 non-Hub-like Dependency smells. Results show that the LLM achieves 100% recall but varying precision, with more detailed prompts improving detection performance from 64% to 82% for lower-severity smells. However, the model's ability to generate human-understandable explanations remains limited, with only 49% of the generated explanations rated as satisfactory. These findings highlight both the potential and current limitations of one specific LLM in HL smell detection, suggesting the importance of prompt design in enhancing its capabilities.
Keywords:
Architectural Smells detection
LLM
Hub-like Dependency smell
Architectural Smells explainability

Journal

S
SOFTWARE ARCHITECTURE, ECSA 2025
IF:
0
Papers:
27
Citations:
0

Organization

U
university of milano-bicocca
Scholars:
2.0W
Papers: 1.5W
Citations: 22