在Web软件开发电子书中使用由大语言模型生成的代码解释的经验
Experiences from Using Code Explanations Generated by Large Language Models in a Web Software Development E-Book
摘要:
自然语言处理的进步已经产生了大语言模型(LLM),其能够生成可理解且合理的书面文本。这些模型的最新版本,如OpenAI Codex和GPT-3,可以生成代码和代码解释。然而,目前还不清楚学生是否以及如何参与这些解释。在本文中,我们报告了我们的经验,使用LLM生成多种代码解释类型,并将它们集成到一个交互式的电子书上的Web软件开发。我们修改了电子书,使LLM生成的代码解释可以通过材料中代码片段旁边的按钮访问,这使我们能够跟踪解释的使用情况,并要求对其实用性提供反馈。对于每个可解释的代码片段,学生可以使用三种不同类型的解释;逐行解释,重要概念列表和代码的高级摘要。我们的初步研究结果表明,所有品种的解释被学生和大多数的学生认为代码解释对他们有帮助。然而,学生的参与度似乎因代码段复杂性、解释类型和代码段长度而异。借鉴我们的经验,我们讨论了未来的方向整合LLM产生的解释到现有的计算机科学教室。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。