Using LLMs in Generating Design Rationale for Software Architecture Decisions
Xiyu Zhou, Ruiyin Li, Peng Liang, Beiqi Zhang, Mojtaba Shahin, Zengyang Li, Chen Yang
Wuhan University · RMIT University
Key points
From the paper's conclusion- Design Rationale (DR) for software architecture decisions refers to the reasoning underlying architectural choices, which provides valuable insights into the different phases of the architecting process throughout software development.
Abstract
Design Rationale (DR) for software architecture decisions refers to the reasoning underlying architectural choices, which provides valuable insights into the different phases of the architecting process throughout software development. However, in practice, DR is often inadequately documented due to a lack of motivation and effort from developers. With the recent advancements in Large Language Models (LLMs), their capabilities in text comprehension, reasoning, and generation may enable the generation and recovery of DR for architecture decisions. In this study, we evaluated the performance of LLMs in generating DR for architecture decisions. First, we collected 50 Stack Overflow (SO) posts, 25 GitHub issues, and 25 GitHub discussions related to architecture decisions to construct a dataset of 100 architecture-related problems. Then, we selected five LLMs to generate DR for the architecture decisions with three prompting strategies, including zero-shot, chain of thought (CoT), and LLM-based agents. With the DR provided by human experts as ground truth, the Precision of LLM-generated DR with the three prompting strategies ranges from 0.267 to 0.278, Recall from 0.627 to 0.715, and F1-score from 0.351 to 0.389. Besides, 64.45–69.42% of the arguments of DR not mentioned by human experts are also helpful, 4.12–4.87% of the arguments have uncertain correctness, and 1.59–3.24% of the arguments are potentially misleading. To further understand the trustworthiness and applicability of LLM-generated DR in practice, we conducted semi-structured interviews with six practitioners. Based on the experimental and interview results, we discussed the pros and cons of the three prompting strategies, the strengths and limitations of LLM-generated DR, and the implications for the practical use of LLM-generated DR.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Can LLMs Extract Architectural Design Decisions from Source Code Commits? - A Preliminary Exploratory StudyarXiv · 2026
- Premise Recovery in Software Design: What Does This Decision Rest On?arXiv · 2026
- Requirements Engineering with Generative AI: A Systematic Literature Review of Using AI Agents for Requirements Engineering AutomationAutomation · 2026
- The Code of Theseus: Can Agents Rebuild Software from Recovered Design Documents?arXiv · 2026
- From noisy feedback to evidence-aware issue specifications: an agent-governed retrieval-augmented generation approachAutomated Software Engineering · 2026
- TraceDev: A Traceability-Driven Multi-agent Framework for Requirement-to-Code DevelopmentProceedings of the ACM on Software Engineering · 2026