arXiv:2609.03721cs.SESep 2026

Manuscript Offprint

arXiv:2609.03721

Can LLMs Extract Architectural Design Decisions from Source Code Commits? - A Preliminary Exploratory Study

Amey Karan, Rudra Dhar, Mohamed Soliman, Karthik Vaidhyanathan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Amey Karan¹, Rudra Dhar¹, Mohamed Soliman², and Karthik Vaidhyanathan¹

¹ International Institute of Information Technology Hyderabad, India {amey.karan, rudra.dhar}@research.iiit.ac.in, karthik.vaidhyanathan@iiit.ac.in

² Paderborn University, Germany mohamed.soliman@uni-paderborn.de

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 zero-shot and few-shot 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 few-shot prompting improves alignment (Gemini BERT-F1: 0.828 → 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.

Keywords: Architectural Design Decisions · Code commits · Large Language Models

1 Introduction

Software architecture can be seen as a set of Architectural Design Decisions (ADDs) that shape a system's structure, behaviour, and evolution [11]. ADDs are at the heart of Architectural Knowledge Management (AKM), but are rarely written down [3,21]. Instead, architectural information is spread across artifacts like issue trackers, mailing lists, blogs, and source code commits [18,20,2,17].

Existing extraction approaches mostly rely on rich textual artifacts such as issue trackers and mailing lists, which are often incomplete or missing, leaving much architectural knowledge unrecovered [21,2]. Source code commits are the

A. Karan et al.

most consistently available artifact of how a system evolves and are known to carry architectural information [18,2]. However, commits primarily describe low-level implementation modifications, whereas ADDs are typically expressed at a higher level of abstraction. Therefore, recovering ADDs from commits requires identifying architecturally significant changes and interpreting their broader design intent and rationale.

Large Language Models (LLMs) work well on code and natural language [8,4,12]. This makes LLMs a promising candidate for extracting architectural knowledge from software repositories. However, it is not clear how well they can recover ADDs from commits, particularly when architectural rationale and context are only implicitly represented.

In this paper, we present a preliminary exploratory study on extracting ADDs from commits using LLMs. We compare zeroshot and fewshot prompting on four LLMs using 30 developer-written ADDs from open-source projects, yielding 60 generated decisions. These are scored using ROUGE-L, BLEU, METEOR, and BERTScore. To complement the metrics, an author also manually reviewed the outputs of the best model (Gemini 3 Pro) along three dimensions – abstraction level, verbosity, and rationale. All models reach a BERT-F1 above 0.81 and few-shot prompting improves alignment, but outputs are often too verbose, include implementation details, and leave out the rationale. We provide a replication package with the dataset, prompts, and scripts³.