计算机科学 > 软件工程
[提交于 2025年4月11日 (v1),最后修订于 2026年11月25日 (此版本, v2)]
标题:DRAFT-ing Architectural Design Decisions using LLMs
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Karthik Vaidhyanathan[v1] 2025年4月11日 星期五 02:19:01 UTC (4,134 KB)
[v2] 2026年11月25日 星期三 07:43:40 UTC (961 KB)