arrow
Return

Automated Software Architecture Design Recovery from Source Code Using LLMs

delete2026-01-01
delete0
PRE
AI
D
Domenico Amalfitano
M
Marco De Luca *
T
Tiziano Santilli
P
Patrizio Pelliccione
A
Anna Rita Fasolino
DOI:10.1007/978-3-032-02138-0_5delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Recent advancements in Large Language Models (LLMs) offer promising opportunities for automating software architecture recovery (SAR). In this study, we assess the effectiveness of state-of-the-art general-purpose LLMs when used as off-the-shelf tools by practitioners seeking architectural insights from source code. We evaluate four models across three key tasks: (i) identifying implementation-level class diagrams, (ii) identifying architectural and design patterns, and (iii) identifying architectural styles. The experiment adopts a realistic usage setting, combining prompt engineering with a Self-Reflection mechanism to simulate how users iteratively refine queries. Results show that LLMs can support SAR activities, particularly in identifying structural and stylistic elements, but they struggle with complex abstractions such as class relationships and fine-grained design patterns. In addition to performance evaluation, we analyze the types of errors made by the models and assess the impact of Self-Reflection in refining their outputs, offering deeper insights into LLM behavior and highlighting implications for future research and practice.
Keywords:
Software Architecture
Large Language Models
Architecture Recovery
Prompt Engineering

Journal

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

Organization

U
University of Naples Federico II
Scholars:
4.7W
Papers: 3.6W
Citations: 51
G
gran sasso science institute (gssi)
Scholars:
2.8K
Papers: 1.2K
Citations: 5