AI
New Framework Helps LLMs Generate Better Software Architecture Records Automatically
Researchers propose DRAFT, a technique combining retrieval and fine-tuning to assist architects in creating architectural decision records with greater accuracy and less manual effort.
Software teams struggle to document their architectural choices comprehensively, leaving organizations vulnerable to knowledge loss when team members depart. Architectural Decision Records (ADRs)—structured documents capturing the reasoning behind design choices—address this gap, yet many teams skip the practice due to the time-intensive manual documentation process.
Researchers at arXiv have proposed DRAFT (Domain-specific Retrieval Augmented Few-shot Tuning), a novel approach that harnesses large language models to streamline ADR creation while reducing reliance on proprietary AI services and protecting organizational privacy.
How DRAFT Works#
The technique operates through two distinct phases. First, an offline preparation stage fine-tunes an LLM using examples mined from an organization's existing ADR repository, with retrieval mechanisms surfacing the most contextually relevant historical records. Second, an online generation phase combines those learned patterns with real-time retrieved examples to produce either standalone architectural decisions or complete ADRs from minimal prompts like a title.
This two-stage design balances efficiency with effectiveness—teams train once on their own records, then generate new documentation rapidly without repeatedly querying external AI services.
Validation and Results#
The research team evaluated DRAFT across approximately 4,300 ADRs spanning multiple language models. By standard natural language processing metrics, DRAFT consistently outperformed basic prompting techniques, generating outputs that align more closely with actual organizational ADRs. Human architects reviewing the results, however, reported no single uniformly superior method—suggesting that contextual factors and individual preferences shape which approach works best in practice.
Notably, DRAFT maintains practical efficiency, lowers computational overhead, and sidesteps concerns about data privacy and proprietary model dependency that plague teams reliant on commercial AI platforms.
Why It Matters#
As organizations increasingly recognize architectural knowledge as a strategic asset, tooling that reduces the friction of documentation could drive adoption of ADRs beyond early adopters. By anchoring LLM assistance in an organization's own design history, DRAFT offers a pathway toward personalized, cost-effective, and privacy-preserving knowledge capture.

