TL;DR
This paper introduces "premise recovery," the task of automatically identifying hidden dependencies between software architecture decisions. By benchmarking open-weight Large Language Models (LLMs) on a new dataset of 1,060 Architecture Decision Records (ADRs), the authors demonstrate that modern models can uncover "implicit" premises that traditional keyword-based searches miss, significantly improving the reliability of change impact analysis.
What Problem Does This Paper Address?
Software architecture is built on a foundation of interconnected decisions. These are often documented in Architecture Decision Records (ADRs), which capture the context, choice, and consequences of a design move. However, decisions rarely stand alone; a choice made in ADR 9 might presuppose a technology selected in ADR 2.
The problem is that these dependencies (or "premises") are frequently unwritten. When an engineer reverses an old decision, they must manually search for everything it affects. If a dependency isn't explicitly named, it’s easily missed, leading to "stale" architecture where new decisions rest on invalidated foundations. The authors frame the solution as premise recovery: given a target ADR, can an AI find its earlier premises among a sea of candidate records?
Methods
The researchers treated premise recovery as a ranking and classification task. To ensure the models weren't just "cheating" by matching numbers, they masked all ADR identifiers (e.g., changing "ADR 46" to a generic placeholder).
They tested several strategies:
- Input Levels: Providing the model with just titles (T) versus titles plus the first 300 characters of the decision text (TD).
- Reasoning: Testing whether "Chain-of-Thought" reasoning (+R) helped the model connect the dots.
- Models: They evaluated 7 open-weight models (including Qwen, Llama, Gemma, and GLM) against two baselines: a simple lexical word-overlap scorer and BGE-M3 embeddings.
To create a high-quality "gold standard" for evaluation, they used two different LLMs (Claude Opus and Sonnet) as independent annotators, resolving disagreements through human expert review.
Datasets
The authors curated a new corpus specifically for this task:
- The ADR Corpus: 1,060 ADRs collected from 36 open-source GitHub repositories.
- The Evaluation Set: 60 target ADRs with 1,529 candidate premise pairs.
- Implicit vs. Stated: They specifically tagged whether a premise was "stated" (explicitly mentioned in the text) or "implicit" (required logical inference to connect), providing a rigorous test for LLM reasoning.
Key Insights and Ideas
- The "Implicit" Gap: Traditional tools (like word overlap) are reasonably good at finding stated premises but are almost useless for implicit ones. LLMs bridge this gap by understanding the intent and logic behind the decisions.
- Reasoning Boosts Recall: While adding reasoning (+R) didn't always improve the overall F1 score, it significantly boosted the recall of implicit premises. In other words, reasoning helps the model find those "hidden" dependencies it might otherwise overlook.
- Scale Matters (To a Point): Larger models (27B parameters and up) performed significantly better than 7-8B models. However, the best-performing model (GLM-5.3) is a massive mixture-of-experts model, suggesting that sheer capacity helps in complex design reasoning.
- Real-World Stale Decisions: The authors found actual instances in open-source projects where a decision was superseded, but its dependents were never updated—confirming that this isn't just a theoretical problem.
Key Results
The results show a clear victory for LLMs over traditional methods:
- Superior Performance: The best-planned system, Qwen3.8-27B, achieved an F1 score of 0.756, nearly doubling the lexical baseline's 0.466.
- Handling Low Overlap: On premises where the title had almost no word overlap with the target, the lexical baseline failed completely (0.0 recall). In contrast, Qwen3.8-27B maintained a high recall of 0.758.
- Top Performer: The GLM-5.3 model (using decision text and reasoning) reached the highest overall F1 of 0.799.
- Precision: Open models achieved precision between 0.68 and 0.78, suggesting they are accurate enough to be integrated into developer tools to suggest unwritten premises during a redesign.
Limitations and Future Work
- Data Contamination: Since ADRs are public on GitHub, there is a risk that these documents were in the models' training sets. While masking identifiers helps, it doesn't entirely rule out memorization.
- The "Closed List" Constraint: This study gave models a pre-filtered list of candidates from the same repository. A real-world tool would need to perform "retrieval" across a much larger set of documents first.
- Human-in-the-loop: Future work could involve testing these models in live environments to see if they actually help practitioners catch more dependencies during architectural changes.
Summary updated