arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.04785cs.SE
收藏

从开发者结对到 AI 副驾驶:知识迁移的比较研究

From Developer Pairs to AI Copilots: A Comparative Study on Knowledge Transfer

Alisa Welter, Niklas Schneider, Tobias Dick, Kallistos Weis, Christof Tinnes, Marvin Wyrich, Sven Apel

AI总结:

本文通过实证研究比较人-人结对与人-AI(GitHub Copilot)场景下的知识迁移,发现两者成功迁移频率相近且主题重叠,但开发者对 AI 建议审视更少,同时 AI 能提醒开发者易忽略的代码细节。

摘要:

知识迁移是人类协作的基础,因此在软件工程中十分常见,结对编程便是一个典型实例。随着 AI 编码助手的兴起,开发者如今不仅与人类伙伴合作,而且如一些人所言,也在与 AI 结对程序员协作。尽管已有研究证实人类结对编程过程中会发生知识迁移,但其在 AI 编码助手场景下的有效性仍不明确。为分析人-人及人-AI 两种环境中的知识迁移,我们开展了一项实证研究:开发者结对在不使用 AI 支持的情况下完成一项编程任务,而另一组独立开发者则使用 AI 编码助手 GitHub Copilot 完成同一任务。我们扩展了现有的知识迁移框架,并采用半自动化评估流程来评估两种环境下知识迁移事件的差异。我们发现,两种环境中成功知识迁移事件的出现频率相近,且涉及的主题类别存在重叠。我们的两项关键发现是:开发者倾向于以比对待人类结对编程伙伴建议更少的审视来接受 GitHub Copilot 的建议;但同时,GitHub Copilot 也能巧妙地提醒开发者注意那些他们可能忽略的重要代码细节。

英文摘要:

Knowledge transfer is fundamental to human collaboration and is therefore common in software engineering. Pair programming is a prominent instance. With the rise of AI coding assistants, developers now not only work with human partners but also, as some claim, with AI pair programmers. Although studies confirm knowledge transfer during human pair programming, its effectiveness with AI coding assistants remains uncertain. To analyze knowledge transfer in both human-human and human-AI settings, we conducted an empirical study where developer pairs solved a programming task without AI support, while a separate group of individual developers completed the same task using the AI coding assistant GitHub Copilot. We extended an existing knowledge transfer framework and employed a semi-automated evaluation pipeline to assess differences in knowledge transfer episodes across both settings. We found a similar frequency of successful knowledge transfer episodes and overlapping topical categories across both settings. Two of our key findings are that developers tend to accept GitHub Copilot's suggestions with less scrutiny than those from human pair programming partners, but also that GitHub Copilot can subtly remind developers of important code details they might otherwise overlook.

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

↑