Can LLMs Extract Architectural Design Decisions from Source Code Commits? - A Preliminary Exploratory Study
Amey Karan, Rudra Dhar, Mohamed Soliman, Karthik Vaidhyanathan
Key points
From the paper's conclusion- We score outputs with ROUGE-L, BLEU, METEOR, and BERTScore, and one author manually reviews the Gemini outputs.
Abstract
Context: Architectural Design Decisions (ADDs) capture the rationale behind the structure and evolution of software systems but are rarely documented explicitly, and are often hidden inside source code commits. Recovering them is important for Architectural Knowledge Management (AKM). Problem: Extracting ADDs from commits is challenging due to their implicit and unstructured nature. Large Language Models (LLMs) have shown strong capabilities in understanding code and text, yet their effectiveness for this task remains underexplored. Study: We present a preliminary study using four LLMs (Gemini 3 Pro, DeepSeek R1, Kimi K2, Qwen3) with zeroshot and fewshot prompting on 30 developer-written ADDs from open-source projects. We score outputs with ROUGE-L, BLEU, METEOR, and BERTScore, and one author manually reviews the Gemini outputs. Results: All models reach a BERT-F1 above 0.81, and fewshot prompting improves alignment (Gemini BERT-F1: 0.828 to 0.847). However, the generated ADDs are often too long, implementation-focused, and miss the rationale behind the decision. This highlights opportunities for architecture-aware LLM systems and automated AKM.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Using LLMs in Generating Design Rationale for Software Architecture DecisionsACM Transactions on Software Engineering and Methodology · 2025
- The Code of Theseus: Can Agents Rebuild Software from Recovered Design Documents?arXiv · 2026
- LLM-as-a-Judge for Software Engineering: Literature Review, Vision, and the Road AheadACM Transactions on Software Engineering and Methodology · 2026
- How Much Static Structure Do Code Agents Need? A Study of Deterministic AnchoringProceedings of the ACM on software engineering. · 2026
- Requirements Engineering with Generative AI: A Systematic Literature Review of Using AI Agents for Requirements Engineering AutomationAutomation · 2026
- Premise Recovery in Software Design: What Does This Decision Rest On?arXiv · 2026