arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.23073cs.SEcs.AI
收藏

LLM能否检测微服务基础设施模式的实例?

Can an LLM Detect Instances of Microservice Infrastructure Patterns?

Department of Computer Science, Utah Valley University(计算机科学系,犹他谷大学)

Carlos Eduardo Duarte, Neil B. Harrison, Filipe Figueiredo Correia, Ademar Aguiar, Pavlína Gonçalves

AI总结:

本文通过MicroPAD工具评估LLM检测建筑模式的能力,发现其在多语言和多类型 artifact 中的表现因模式普及度和独特性而异。

摘要:

建筑模式广泛存在于各种软件制品中。由于模式种类繁多及其实现方式多样,当前工具在检测这些模式时面临挑战,尤其是它们通常只支持单种语言的检测。大型语言模型(LLM)因其在广泛软件制品和知识上的训练,可能克服现有方法的局限性。然而,其真实效果及影响性能的因素尚未彻底研究。为此,我们开发了MicroPAD工具,利用GPT 5 nano识别任何语言的软件制品中的建筑模式。我们使用MicroPAD评估LLM检测建筑模式实例的能力,特别是与微服务相关的基础设施模式。为此,我们选取了GitHub仓库并联系其顶级贡献者,创建了一个包含190个仓库的人工标注数据集。结果表明,MicroPAD能够跨多种语言和制品类型检测模式实例。检测性能因模式而异(F1得分从0.09到0.70),具体与模式的普及度和其在制品中表现的独特性相关。我们还发现,与可识别主导制品相关的模式更易被检测到。这些发现是否适用于其他LLM和工具仍需进一步研究。

英文摘要:

Architectural patterns are frequently found in various software artifacts. The wide variety of patterns and their implementations makes detection challenging with current tools, especially since they often only support detecting patterns in artifacts written in a single language. Large Language Models (LLMs), trained on a diverse range of software artifacts and knowledge, might overcome the limitations of existing approaches. However, their true effectiveness and the factors influencing their performance have not yet been thoroughly examined. To better understand this, we developed MicroPAD. This tool utilizes GPT 5 nano to identify architectural patterns in software artifacts written in any language, based on natural-language pattern descriptions. We used MicroPAD to evaluate an LLM's ability to detect instances of architectural patterns, particularly infrastructure-related microservice patterns. To accomplish this, we selected a set of GitHub repositories and contacted their top contributors to create a new, human-annotated dataset of 190 repositories containing microservice architectural patterns. The results show that MicroPAD was capable of detecting pattern instances across multiple languages and artifact types. The detection performance varied across patterns (F1 scores ranging from 0.09 to 0.70), specifically in relation to their prevalence and the distinctiveness of the artifacts through which they manifest. We also found that patterns associated with recognizable, dominant artifacts were detected more reliably. Whether these findings generalize to other LLMs and tools is a promising direction for future research.

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

↑