mlsanityData to 14 Oct 2026

Using LLMs in Generating Design Rationale for Software Architecture Decisions

arXiv 2504.20781 ↗First posted 29 Apr 2025cs.SE cs.AIcited by 4

Not on the map. Why?

Abstract (arXiv)

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. Additionally, 64.45% to 69.42% of the arguments of DR not mentioned by human experts are also helpful, 4.12% to 4.87% of the arguments have uncertain correctness, and 1.59% to 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.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 26 of its 71 references that are in the map. First posted on arXiv 29 Apr 2025.

Builds on

26 of 71 references.

References · 26

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
  3. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
  4. 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 431
  5. 2024Leak, Cheat, Repeat: Data Contamination and Evaluation Malpractices in Closed-Source LLMscited by 229
  6. 2023Using an LLM to Help With Code Understandingcited by 228
  7. 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 178
  8. 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 140
  9. 2023Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectivescited by 48
  10. 2023Is Stack Overflow Obsolete? An Empirical Study of the Characteristics of ChatGPT Answers to Stack Overflow Questionscited by 42
  11. 2024Agent Design Pattern Catalogue: A Collection of Architectural Patterns for Foundation Model based Agentscited by 35
  12. 2024CodeAgent: Autonomous Communicative Agents for Code Reviewcited by 34
14 more
  1. 2024MARE: Multi-Agents Collaboration Framework for Requirements Engineeringcited by 28
  2. 2017Measuring Personalization of Web Searchcited by 20
  3. 2024Can LLMs Generate Architectural Design Decisions? -An Exploratory Empirical studycited by 19
  4. 2023How Effective are Large Language Models in Generating Software Specifications?cited by 12
  5. 2023Evaluating Diverse Large Language Models for Automatic and General Bug Reproductioncited by 12
  6. 2024Leveraging Large Language Models for Enhancing the Understandability of Generated Unit Testscited by 11
  7. 2024Using Large Language Models for Commit Message Generation: A Preliminary Studycited by 10
  8. 2020Recommending Stack Overflow Posts for Fixing Runtime Exceptions using Failure Scenario Matchingcited by 9
  9. 2025Do Code LLMs Understand Design Patterns?cited by 9
  10. 2023Addressing Compiler Errors: Stack Overflow or Large Language Models?cited by 5
  11. 2025DRAFT-ing Architectural Design Decisions using LLMscited by 4
  12. 2023Characterizing Architecture Related Posts and Their Usefulness in Stack Overflowcited by 2
  13. 2023Evaluating Privacy Questions From Stack Overflow: Can ChatGPT Compete?cited by 2
  14. 2024S3LLM: Large-Scale Scientific Software Understanding with LLMs using Source, Metadata, and Documentcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026LLM-based Automated Architecture View Generation: Where Are We Now?
  2. 2026Evaluating Large Language Models for Detecting Architectural Decision Violations
  3. 2025LLM-as-a-Judge for Software Engineering: Literature Review, Vision, and the Road Ahead ↗
  4. 2026SAKE: Software Architectural Knowledge Evaluation Benchmark for Large Language Models
  5. 2025WIP: Leveraging LLMs for Enforcing Design Principles in Student Code: Analysis of Prompting Strategies and RAG ↗
  6. 2026From What to How: Bridging User Requirements with Software Development Using Large Language Models
  7. 2025Beyond Code Generation: LLM-supported Exploration of the Program Design Space
  8. 2026Cognitive Biases in LLM-Assisted Software Development