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

在软件设计中使用LLMs:GitHub和实践者调查的实证研究

Using LLMs in Software Design: An Empirical Study of GitHub and A Practitioner Survey

School of Computer Science, Wuhan University(武汉大学计算机学院);School of Computer Science, Central China Normal University(中央财经大学计算机学院);School of Computing Technologies, RMIT University(皇家墨尔本理工大学计算技术学院);M3S Research Unit, University of Oulu(奥卢大学M3S研究单位);School of Computer Science, Nanjing University of Science(南京理工大学计算机学院)

Yifei Wang, Ruiyin Li, Peng Liang, Yangxiao Cai, Zengyang Li, Mojtaba Shahin, Arif Ali Khan, Qiong Feng

AI总结:

本文通过实证研究和调查,探讨开发者如何利用LLM进行软件设计,发现LLM在架构设计、数据模型设计等方面的应用,揭示其优势与局限性。

摘要:

近年来,大型语言模型(LLMs)在软件工程任务中的进展显示出广泛潜力,包括软件设计,这一领域传统上被视为高度依赖人类专业知识和判断。然而,关于LLMs在软件设计中的使用及其相关利弊的研究较少。本文旨在通过实证研究填补这一空白,调查软件开发者在软件设计背景下如何使用LLMs。我们进行了一项混合方法研究,结合对291个开发者与ChatGPT在GitHub上的对话的挖掘研究,以及65名软件实践者的调查。研究发现,ChatGPT支持九种不同的设计任务,包括架构设计、数据模型设计和设计模式的使用。我们进一步描述了开发者与ChatGPT的互动,表明开发者主要使用ChatGPT进行知识获取和设计相关的代码生成,大多数任务位于详细设计层面。研究识别了七个关键优势,如更好的技术选择和早期检测设计缺陷。同时揭示了六个局限性,包括生成过于冗长且难以阅读的输出、生成不可执行或错误的代码,以及对上下文的依赖导致幻觉结果。这些发现提供了当前LLM在软件设计中的证据基础,从开源和实践者角度揭示了感知优势与局限性的张力,为未来研究和有效整合LLM到软件设计实践中的技术与工具开发奠定了基础。

英文摘要:

Recent advancements in Large Language Models (LLMs) have demonstrated significant potential across software engineering tasks, including software design, an area traditionally regarded as highly dependent on human expertise and judgment. However, limited research has examined how LLMs are used in software design, aswell as the associated benefits and drawbacks. This paper addresses this gap by empirically investigating how software developers use LLMs in software design. We conducted a mixed-methods study, combining a mining study of 291 developer-ChatGPT conversations shared on GitHub with a survey of 65 software practitioners. From the mined conversations, we identified nine categories of design tasks supported by ChatGPT, including architecture design, data model design, and the use of design patterns.We further characterize developer-ChatGPT interactions, showing that developers in the mined conversations primarily use ChatGPT for knowledge acquisition and designrelated code generation, with most tasks situated at the detailed design level. The survey participants reported seven key benefits, such as better technology selection and early detection of design flaws, and six limitations, including lengthy outputs, inexecutable or incorrect code, and dependence on project context. These findings provide an evidence-based characterization of current LLM use in software design from both open-source and practitioner perspectives.

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

↑