论文标题

Web软件开发电子书中大型语言模型生成的代码解释的经验

Experiences from Using Code Explanations Generated by Large Language Models in a Web Software Development E-Book

论文作者

MacNeil, Stephen, Tran, Andrew, Hellas, Arto, Kim, Joanne, Sarsa, Sami, Denny, Paul, Bernstein, Seth, Leinonen, Juho

论文摘要

自然语言处理的进步导致了能够产生易于理解且明智的书面文本的大型语言模型(LLM)。这些模型的最新版本,例如OpenAI Codex和GPT-3,可以生成代码和代码解释。但是,目前尚不清楚学生是否以及如何参与这种解释。在本文中,我们报告了使用LLMS生成多个代码解释类型的经验,并将其集成到有关Web软件开发的交互式电子书中。我们修改了电子书,以使LLM生成的代码解释可以通过材料中的代码片段旁边的按钮访问,这使我们能够跟踪说明的使用,并要求对其实用程序进行反馈。每个可解释的代码段都可以为学生提供三种不同类型的解释;逐条说明,重要概念列表以及代码的高级摘要。我们的初步结果表明,学生观看了各种解释,并且大多数学生认为代码解释对他们有帮助。但是,学生参与度似乎因代码段的复杂性,说明类型和代码段长度而有所不同。利用我们的经验,我们讨论了将LLMS生成的解释集成到现有计算机科学课堂中的未来方向。

Advances in natural language processing have resulted in large language models (LLMs) that are capable of generating understandable and sensible written text. Recent versions of these models, such as OpenAI Codex and GPT-3, can generate code and code explanations. However, it is unclear whether and how students might engage with such explanations. In this paper, we report on our experiences generating multiple code explanation types using LLMs and integrating them into an interactive e-book on web software development. We modified the e-book to make LLM-generated code explanations accessible through buttons next to code snippets in the materials, which allowed us to track the use of the explanations as well as to ask for feedback on their utility. Three different types of explanations were available for students for each explainable code snippet; a line-by-line explanation, a list of important concepts, and a high-level summary of the code. Our preliminary results show that all varieties of explanations were viewed by students and that the majority of students perceived the code explanations as helpful to them. However, student engagement appeared to vary by code snippet complexity, explanation type, and code snippet length. Drawing on our experiences, we discuss future directions for integrating explanations generated by LLMs into existing computer science classrooms.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源