Premise Recovery in Software Design: What Does This Decision Rest On?
Authors: Priyabanta Sandulua, Islam Mesabaha, Sebastian J. Vollmer
Organizations: German Research Center for Artificial Intelligence (DFKI), Trippstadter Straße 122, 67663 Kaiserslautern, Germany · University of Kaiserslautern-Landau (RPTU), Gottlieb-Daimler-Straße 47, 67663 Kaiserslautern, Germany
Design decisions shape software architecture, and writing them down preserves the reasons behind it. Architecture decision records (ADRs) capture them, each with its context, choice, and consequences. A decision can depend on earlier ones: reversing one of them would force its review. We call these its premises. Yet ADRs do not always name their premises. When a decision is reversed, engineers supersede its ADR and search by hand for what it affects. That search can miss ADRs resting on an unnamed premise. We frame this as premise recovery: given an ADR with identifiers masked, find its premises among earlier records. We collect 1,060 ADRs from 36 repositories and label 1,529 candidate pairs for 60 target ADRs. Two LLM annotators agree at \k{appa} = 0.859. An independent human annotator, blind to their labels, agrees with the stated/implicit tag on 30 of 32 premises (\k{appa} = 0.875). We compare 7 open-weight models with 2 baselines that use no LLM. Qwen3.8-27B reaches F1 0.756, against 0.466 for word overlap; 2 models added post hoc score similarly. On the 11 premises whose titles barely overlap the target, it finds 0.758, while word overlap finds none. Reasoning raises its recall of implicit premises but not its F1. Word overlap with as many predictions gains 69% as much. We find only 2 to 3 stale dependents, though we searched for unlinked ones in only 30 of 66 supersessions. Open models could thus suggest unwritten premises when a decision is reversed, with precision between 0.68 and 0.78.
Figures & tables
Fig. 1: Premise recovery. Inputs: a target ADR D with identifiers masked and a closed list of earlier ADRs. An LLM sees titles (T) or titles and decision text (TD), with optional reasoning. It returns the premises of D , stated or implicit. Example from alphagov/content-publisher (ADR 9). Use case: reversing a premise P flags its dependents for review (Section 5.4 ).
Fig. 2: (a) Main labels split by title overlap with the masked target (no stated/implicit tag); colour: model size, marker: strategy (legend below); lexical is the lower grey cross; x-axis starts at 0.45. (b) Lex.: the lexical scorer predicts, per target, as many top-scoring candidates as the LLM did; Pred counts all pairs, including the 19 disagreement and 5 late-cited pairs. Means over seeds.
Model
Str.
P
R
F1 (SD) [95% CI]
Res. range
R lo
R st
R im
Pred
Lexical
–
0.491
0.443
0.466 [0.326, 0.589]
0.400–0.508
0.000
0.571
0.125
0.92
bge-m3
–
0.429
0.443
0.435 [0.322, 0.541]
0.378–0.478
0.091
0.548
0.125
1.05
Qwen2.5-7B
T
0.471
0.475
0.473 (0.025) [0.379, 0.571]
0.410–0.495
0.212
0.563
0.333
1.03
Qwen2.5-7B
TD
0.257
0.563
0.350 (0.039) [0.242, 0.500]
0.319–0.398
0.273
0.690
0.312
2.27
Llama-3.1-8B
T
0.150
0.656
0.243 (0.020) [0.165, 0.347]
0.230–0.276
0.636
0.698
0.583
4.51
Llama-3.1-8B
TD
0.091
0.749
0.163 (0.035) [0.102, 0.263]
0.157–0.195
0.636
0.770
0.750
8.52
Table 1: Premise recovery on 60 targets (1,529 pairs; 61 gold premises; 19 disagreement and 5 late-cited pairs excluded; Gemma4-26B T, T+R in text). Str.: T titles, TD + decision text, +R reasoning. Means and SD over 3 seeds; CI: 2-level bootstrap. Res. range: F1 with the 19 disagreement pairs all against or all for it. R lo , R st , R im : recall on 11 low-overlap, 42 stated, and 16 implicit premises. Pred: predictions per target (gold 1.02).
ID
Comparison (A vs. B)
Metric
Δ [95% CI]
p
pHolm
c1
Qwen3.8-27B: TD vs. T
F1
+0.050 [ −0.027 , +0.127 ]
0.215
0.645
c2
Qwen3.8-27B: TD+R vs. TD
F1
−0.006 [ −0.081 , +0.076 ]
0.898
0.898
c3
Qwen3.8-27B: T+R vs. T
F1
−0.040 [ −0.132 , +0.040 ]
0.324
0.648
c4
Qwen3.8-27B T vs. Qwen3-8B T
F1
+0.120 [ +0.004 , +0.247 ]
0.043
0.215
c5
Qwen3.8-27B TD vs. bge-m3
F1
+0.321 [ +0.214 , +0.425 ]
< 0.001
0.005
c6
Qwen3-8B T vs. bge-m3
F1
+0.151 [ +0.061 , +0.246 ]
0.001
0.008
Table 2: Paired comparisons, main labels. Δ = A − B; CI and p : 2,000 bootstrap resamples; pHolm over c1–c9 (set after a pilot); p1 is post hoc.
System
Silver
Strict
Main
Adjud.
Lenient
No-pred.
Linked
No link
Lexical
0.528
0.446
0.466
0.431
0.457
0.455
0.515
0.133
Qwen3-8B T
0.563
0.560
0.586
0.566
0.568
0.558
0.704
0.254
Qwen3.8-27B TD
0.563
0.695
0.756
0.719
0.759
0.741
0.788
0.614
Gemma4-26B TD+R
0.623
0.755
0.796
0.740
0.748
0.782
0.825
0.676
GLM-5.3 TD+R
0.568
0.745
0.799
0.749
0.777
0.787
0.834
0.675
Table 3: F1 on 5 label sets and on main labels for 40 targets with a silver premise (Linked) and 20 without (No link). Silver: 46 rule-based links; Strict, Lenient: 19 disagreement pairs as non-premises, as premises; Main: consensus minus them; Adjud.: author’s resolution (9 premises); No-pred.: Main minus 4 superseded predecessors.
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.
Amey Karan, Rudra Dhar, Mohamed Soliman +1
International Institute of Information Technology Hyderabad, India · Paderborn University, Germany
Architectural Knowledge Management (AKM) is crucial for software development and Architectural Decision Records (ADR), an important artifact of AKM, provide a structured approach to capture Architectural Design Decisions (ADD). However, their adoption is limited due to the manual effort involved and insufficient tool support. Prior work shows that LLMs can support ADD generation, though basic prompting yields suboptimal results. This paper explores how LLMs can support architects in two complementary tasks: generating ADDs from Decision Contexts, and generating complete ADRs from titles. We propose Domain-specific Retrieval Augmented Few-shot Tuning (DRAFT), a novel approach that integrates Retrieval Augmented Few-shot Generation with Fine-tuning to generate. DRAFT operates in two phases: an offline phase that fine-tunes a model using retrieval-augmented prompts derived from historical ADRs, and an online phase that generates decisions or complete ADRs by combining retrieved examples with the fine-tuned model. Evaluated on 4344 ADRs across multiple LLMs using standard NLP metrics, DRAFT consistently produces outputs better aligned with real-world ADRs. A human evaluation with the authors and external architects, however, shows no uniformly preferred approach. DRAFT also maintains practical efficiency, reduces dependence- dence on proprietary models, and addresses organizational concerns around privacy, resource constraints, and inference costs.
Large Language Models (LLMs) are increasingly used as assistants across the software development lifecycle, yet their ability to reason about software architecture remains largely unmeasured. Architectural decision-making depends on quality attribute trade-offs, design patterns, and system-level constraints, none of which are exercised by benchmarks that target syntactic or algorithmic tasks. We introduce SAKE (Software Architectural Knowledge Evaluation), a standardized and reproducible benchmark for assessing software architectural knowledge in LLMs. SAKE comprises 2154 expert-curated multiple-choice questions, each with four options, stratified across eight architectural categories and four context-length levels. We evaluate 11 proprietary and open-weight models in zero-shot and five-shot settings. Overall accuracy is high, but performance varies markedly across categories, revealing competency gaps in areas central to professional practice. SAKE, its evaluation scripts, and all results are released as open source to give the community a baseline for tracking architectural reasoning in LLMs.
Tiziano Santilli, Francesco Daghero, Mayhar Tourchi Moghaddam