arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.07091cs.SE
收藏

探索小型语言模型在软件架构中的推理深度:一项面向软件工程2.0的多维评估框架

Exploring the Reasoning Depth of Small Language Models in Software Architecture: A Multidimensional Evaluation Framework Towards Software Engineering 2.0

Faculty of Computer Science and Engineering Ho Chi Minh City University of Technology (HCMUT), VNU-HCM(胡志明市理工大学计算机科学与工程系);The Business School RMIT University(皇家墨尔本理工大学商学院)

Ha Vo, Nhut Tran, Khang Vo, Phat T. Tran-Truong, Son Ha

AI总结:

本研究通过多维评估框架评估小型语言模型在软件架构中的推理深度,发现参数阈值影响推理能力,揭示了中等大小模型在短上下文下的校准机制及语义多样性与幻觉的相关性。

摘要:

在"软件工程2.0"时代,智能代理与人类工程师协作的背景下,生成式AI正从代码生成扩展到软件架构(SA)。尽管大型语言模型(LLMs)展现出卓越的能力,但计算成本和数据隐私问题促使人们关注参数少于70亿的小型语言模型(SLMs)。然而,这些资源受限模型的推理限制仍待探索。本研究在架构决策记录生成任务上基准测试了10种最先进的SLMs,引入了一个多维框架评估技术合规性和语义多样性。实证结果揭示了显著的推理差距:超过30亿参数阈值的模型展现出稳健的零样本能力,而低于20亿参数的模型在微调后表现出最强的BERTScore提升,尽管合规性改进并不保证。与上下文饱和的假设相反,少样本提示在短上下文窗口的选定中等大小模型中充当了高效的校准机制。此外,现成的小型模型中较高的语义多样性往往与幻觉而非 productive 探索相关。这些发现为部署可持续的本地托管架构助手建立了严格的基准。

英文摘要:

In the era of "Software Engineering 2.0" (SE 2.0), where intelligent agents collaborate with human engineers, Generative AI is advancing beyond code generation into Software Architecture (SA). While Large Language Models (LLMs) demonstrate superior capabilities, computational costs and data privacy concerns drive interest in Small Language Models (SLMs) with fewer than 7 billion parameters. However, the reasoning limits of these resource-constrained models remain unexplored. This study benchmarks 10 state-of-the-art SLMs on Architectural Decision Records generation, introducing a multi-dimensional framework evaluating Technical Compliance and Semantic Diversity. Our empirical results reveal a significant reasoning gap: models above the 3B-parameter threshold demonstrate robust zero-shot capabilities, while sub-2B models show the strongest BERTScore gains from Fine-Tuning, though compliance improvements are not guaranteed. Contrary to assumptions regarding context saturation, Few-Shot prompting serves as a highly effective calibration mechanism for select mid-sized models with short context windows. Furthermore, high semantic diversity in off-the-shelf small models often correlates with hallucination rather than productive exploration. These findings establish a rigorous baseline for deploying sustainable, locally hosted architectural assistants.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑