arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.01727cs.SEcs.AI
收藏

GPT-4能否复现实证软件工程研究?

Can GPT-4 Replicate Empirical Software Engineering Research?

Carnegie Mellon University(卡内基梅隆大学);Microsoft Research(微软研究院)

Jenny T. Liang, Carmen Badea, Christian Bird, Robert DeLine, Denae Ford, Nicole Forsgren, Thomas Zimmermann

AI总结:

本研究探究GPT-4复现实证软件工程研究的能力,通过7篇论文的测试与14名专家的评估,发现其能挖掘正确假设、生成逻辑正确的高层代码,但存在常识假设缺失和底层实现错误的问题。

摘要:

针对生产系统的实证软件工程研究为从业者和研究者都带来了对软件工程过程的更深入理解,但目前仅有一小部分生产系统得到研究,限制了这类研究的影响力。尽管软件工程从业者若能在自有数据上复现相关研究可从中获益,但这本身也存在一系列挑战——开展复现工作需要深入掌握研究方法论,以及软件工程数据中的细微差异。鉴于GPT-4等大语言模型(LLM)在处理软件工程与科学相关任务上展现出潜力,这类模型或可助力复现实证软件工程研究,进而推动该领域研究的普及。\n本文探究了GPT-4在新数据上复现实证软件工程研究的能力。我们围绕7篇实证软件工程论文,研究了该模型挖掘实证软件工程研究方法论中隐含假设的能力,以及为分析流水线规划并生成代码的能力。我们开展了一项有14名具备软件工程研究专业知识的参与者的用户研究,由他们评估GPT-4基于论文生成的假设和分析计划(即模块规格说明列表)。结果发现,GPT-4能够挖掘出正确的假设,但难以生成符合软件工程数据常识的假设。在对生成代码的人工分析中,我们发现:在给定部分方法论的前提下,GPT-4生成的代码具备正确的高层逻辑,但代码存在大量底层实现错误,反映出其软件工程知识的不足。这些发现对利用大语言模型开展软件工程研究,以及软件团队中的从业者数据科学家均具有启示意义。

英文摘要:

Empirical software engineering research on production systems has brought forth a better understanding of the software engineering process for practitioners and researchers alike. However, only a small subset of production systems is studied, limiting the impact of this research. While software engineering practitioners could benefit from replicating research on their own data, this poses its own set of challenges, since performing replications requires a deep understanding of research methodologies and subtle nuances in software engineering data. Given that large language models (LLMs), such as GPT-4, show promise in tackling both software engineering- and science-related tasks, these models could help replicate and thus democratize empirical software engineering research. In this paper, we examine GPT-4's abilities to perform replications of empirical software engineering research on new data. We study their ability to surface assumptions made in empirical software engineering research methodologies, as well as their ability to plan and generate code for analysis pipelines on seven empirical software engineering papers. We perform a user study with 14 participants with software engineering research expertise, who evaluate GPT-4-generated assumptions and analysis plans (i.e., a list of module specifications) from the papers. We find that GPT-4 is able to surface correct assumptions, but struggles to generate ones that apply common knowledge about software engineering data. In a manual analysis of the generated code, we find that the GPT-4-generated code contains correct high-level logic, given a subset of the methodology. However, the code contains many small implementation-level errors, reflecting a lack of software engineering knowledge. Our findings have implications for leveraging LLMs for software engineering research as well as practitioner data scientists in software teams.

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

↑