Skip to main content
QUICK REVIEW

[论文解读] "It's Weird That it Knows What I Want": Usability and Interactions with Copilot for Novice Programmers

James Prather, Brent N. Reeves|arXiv (Cornell University)|Apr 5, 2023
Software Engineering ResearchComputer Science被引用 21
一句话总结

本研究观察 CS1 学生首次使用 GitHub Copilot,揭示新的互动模式(shepherding 与 drifting)、认知/元认知挑战,以及用户对 AI 代码生成器在初学者编程中的设计指南的认知。

ABSTRACT

Recent developments in deep learning have resulted in code-generation models that produce source code from natural language and code-based prompts with high accuracy. This is likely to have profound effects in the classroom, where novices learning to code can now use free tools to automatically suggest solutions to programming exercises and assignments. However, little is currently known about how novices interact with these tools in practice. We present the first study that observes students at the introductory level using one such code auto-generating tool, Github Copilot, on a typical introductory programming (CS1) assignment. Through observations and interviews we explore student perceptions of the benefits and pitfalls of this technology for learning, present new observed interaction patterns, and discuss cognitive and metacognitive difficulties faced by students. We consider design implications of these findings, specifically in terms of how tools like Copilot can better support and scaffold the novice programming experience.

研究动机与目标

  • 激发对初学者在真实 CS1 任务中使用 AI 代码生成器的动机,并理解学习影响。
  • 考察初学者对 Copilot 在学习中的益处与陷阱的感知。
  • 在首次使用过程中识别互动模式和认知/元认知挑战。
  • 为使用 AI 工具的初学者程序员提供设计含义和支架策略。

提出的方法

  • 在 VS Code 中启用 Copilot 的情境下,对 19 名初学者 CS1 学生解决类似雷区守卫的任务进行的观察性研究。
  • 在 30 分钟会话中使用思考大声述(think-aloud)协议,并辅以任务后访谈。
  • 在观察和访谈中使用反身性主题分析法(Braun & Clarke)进行质性分析。
  • 参与者在此之前没有 Copilot 使用经验,并在会话前接受简短培训。
  • 数据已匿名化,并通过六个分析阶段的迭代编码和主题发展进行分析。
(a) A programmer has entered code up to the cursor (red arrow) at the beginning of line 10 with minimal help from Copilot before this point. The gray italicized code is a Copilot suggestion.
(a) A programmer has entered code up to the cursor (red arrow) at the beginning of line 10 with minimal help from Copilot before this point. The gray italicized code is a Copilot suggestion.

实验结果

研究问题

  • RQ1RQ1:初学者在首次接触 GitHub Copilot 时如何互动?
  • RQ2RQ2:初学者如何感知他们首次使用 GitHub Copilot 的体验?

主要发现

  • Copilot 被认为可以加速代码编写,但对理解生成的代码及可能的过度依赖存在担忧。
  • 出现两种新颖的互动模式:shepherding(慢速接受、适应,并引导 Copilot 朝向解决方案)和 drifting(从一个建议跳转到下一个建议,方向性很弱)。
  • 参与者经常表现出认知和元认知方面的困难,包括困惑、被大段代码分散注意力,以及对 Copilot 的依赖妨碍了问题解决。
  • 初学者有时使用 Copilot 来引导思考(类似橡皮鸭自问自答),并发现前进路径;而另一些则因在错误建议中漂移而经历“调试陷阱”。
  • 积极与消极情绪的相互作用;有些参与者对 Copilot 的能力感到惊讶,而另一些则因侵扰性或不正确的建议而感到沮丧。
  • 研究讨论了更好地支持使用 AI 代码生成器的初学者程序员的设计含义和指南。
(b) The programmer has accepted the suggestion in (a) by pressing tab, advancing the cursor to the end of line 10 (red arrow), just after the code that was suggested. The gray italicized code is the next Copilot suggestion.
(b) The programmer has accepted the suggestion in (a) by pressing tab, advancing the cursor to the end of line 10 (red arrow), just after the code that was suggested. The gray italicized code is the next Copilot suggestion.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。