论文

LLM能否从代码提交中提取架构设计决策

Can LLMs Extract Architectural Design Decisions from Source Code Commits? - A Preliminary Exploratory Study

精选理由

研究测试了四种大模型从代码提交中提取架构设计决策的能力,发现虽有一定效果但仍有改进空间。

研究使用Gemini 3 Pro、DeepSeek R1、Kimi K2和Qwen3四种大模型,从30个开源项目的开发者提交中提取架构设计决策(ADD)。

正文

所有模型的BERT-F1分数均超过0.81,少样本提示使Gemini的BERT-F1从0.

828提升至0.847。

但生成的ADD通常过长、过于关注实现细节,且缺乏决策背后的理由。

原文 · arXiv: DeepSeek

Can LLMs Extract Architectural Design Decisions from Source Code Commits? - A Preliminary Exploratory Study

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.

产业坐标与信源核验

本条情报归属 AITOP「论文」核心追踪栏目。涉及核心实体与技术议题包括:LLM、架构设计决策、代码提交、Gemini 3 Pro,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始信息发布自一手权威信源「arXiv: DeepSeek」(Tier-1 一手发布),具备高确定性参考价值。截至目前,全网已有 2 家独立信源对该事件进行交叉印证与跟进报道(含 Julien Chaumond 等),属于近期高关注度行业信号。

  • Julien Chaumond09-05 08:00原文
发现摘要或翻译有误? 告诉我们