paper-with-me

Papers

Using LLMs in Generating Design Rationale for Software Architecture Decisions

2025-04-29 · Xiyu Zhou, Ruiyin Li, Peng Liang, Beiqi Zhang, Mojtaba Shahin, Zengyang Li, Chen Yang

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. Based on the results, we further discussed the pros and cons of the three prompting strategies and the strengths and limitations of the DR generated by LLMs.

📄 PDF Abstract BibTeX arXiv:2504.20781

Code (1)

eric0052/llm4dr 공식 구현

Tasks

Reading Comprehension

Similar Papers 제목 키워드 기반

Assessing LLMs for Front-end Software Architecture Knowledge

2025-02-26 · L. P. Franciscatto Guerra, N. Ernst

Large Language Models (LLMs) have demonstrated significant promise in automating software development tasks, yet their capabilities with respect to software design tasks remains largely unclear. This study investigates t…

Designing LLM-based Multi-Agent Systems for Software Engineering Tasks: Quality Attributes, Design Patterns and Rationale

2025-11-11 · Yangxiao Cai, Ruiyin Li, Peng Liang, Mojtaba Shahin 외 arxiv

As the complexity of Software Engineering (SE) tasks continues to escalate, Multi-Agent Systems (MASs) have emerged as a focal point of research and practice due to their autonomy and scalability. Furthermore, through le…

Code Generation

Calibrating LLMs with Preference Optimization on Thought Trees for Generating Rationale in Science Question Scoring

2024-06-28 · Jiazheng Li, Hainiu Xu, Zhaoyue Sun, Yuxiang Zhou 외

Generating rationales that justify scoring decisions has been a promising way to facilitate explainability in automated scoring systems. However, existing methods do not match the accuracy of classifier-based methods. Pl…

Investigating the Impact of Rationales for LLMs on Natural Language Understanding

2025-10-19 · Wenhang Shi, Shuqing Bian, Yiren Chen, Xinyi Zhang 외 arxiv

Chain-of-thought (CoT) rationales, which provide step-by-step reasoning to derive final answers, benefit LLMs in both inference and training. Incorporating rationales, either by generating them before answering during in…

Natural Language Understanding

Learning to Reason in LLMs by Expectation Maximization

2025-12-23 · Junghyun Lee, Branislav Kveton, Anup Rao, Subhojyoti Mukherjee 외 arxiv

Large language models (LLMs) solve reasoning problems by first generating a rationale and then answering. We formalize reasoning as a latent variable model and derive a reward-based filtered expectation-maximization (FEM…