Evaluating Large Language Models for Detecting Architectural Decision Violations
Not on the map. Why?
Abstract (arXiv)
Architectural Decision Records (ADRs) play a central role in maintaining software architecture quality, yet many decision violations go unnoticed because projects lack both systematic documentation and automated detection mechanisms. Recent advances in Large Language Models (LLMs) open up new possibilities for automating architectural reasoning at scale. We investigated how effectively LLMs can identify decision violations in open-source systems by examining their agreement, accuracy, and inherent limitations. Our study analyzed 980 ADRs across 109 GitHub repositories using a multi-model pipeline in which one LLM primary screens potential decision violations, and three additional LLMs independently validate the reasoning. We assessed agreement, accuracy, precision, and recall, and complemented the quantitative findings with expert evaluation. The models achieved substantial agreement and strong accuracy for explicit, code-inferable decisions. Accuracy falls short for implicit or deployment-oriented decisions that depend on deployment configuration or organizational knowledge. Therefore, LLMs can meaningfully support validation of architectural decision compliance; however, they are not yet replacing human expertise for decisions not focused on code.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 14 of its 37 references that are in the map. First posted on arXiv 7 Feb 2026.
Builds on
14 of 37 references.
References · 14
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2024The Faiss librarycited by 370
- 2024Can LLMs Generate Architectural Design Decisions? -An Exploratory Empirical studycited by 19
- 2025Generative AI for Software Architecture. Applications, Challenges, and Future Directionscited by 15
- 2024Leveraging Large Language Models for Preliminary Security Risk Analysis: A Mission-Critical Case Studycited by 10
- 2024Beyond Words: On Large Language Models Actionability in Mission-Critical Risk Analysiscited by 9
- 2024On Large Language Models in Mission-Critical IT Governance: Are We Ready Yet?cited by 9
- 2025LLMs for Generation of Architectural Components: An Exploratory Empirical Study in the Serverless Worldcited by 8
- 2025DRAFT-ing Architectural Design Decisions using LLMscited by 4
- 2025What Were You Thinking? An LLM-Driven Large-Scale Study of Refactoring Motivations in Open-Source Projectscited by 4
- 2022Survey on Tools and Techniques Detecting Microservice API Patternscited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026SAKE: Software Architectural Knowledge Evaluation Benchmark for Large Language Models
- 2026Can LLMs Extract Architectural Design Decisions from Source Code Commits? - A Preliminary Exploratory Study
- 2026Beyond Correctness: Enhancing Architectural Reasoning in Code LLMs via Scalable Labeling with Agentic Judgment
- 2025Using LLMs in Generating Design Rationale for Software Architecture Decisions
- 2025LLM-as-a-Judge for Software Engineering: Literature Review, Vision, and the Road Ahead ↗
- 2025Enhancing the Accuracy and Comprehensibility in Architectural Tactics Detection via Small Model-Augmented Prompt Engineering ↗
- 2026LLM-based Automated Architecture View Generation: Where Are We Now?
- 2025Are We SOLID Yet? An Empirical Study on Prompting LLMs to Detect Design Principle Violations