arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2307.16364cs.HCcs.AI
收藏

Promptly:使用 Prompt Problems 教导学习者如何有效利用 AI 代码生成器

Promptly: Using Prompt Problems to Teach Learners How to Effectively Utilize AI Code Generators

The University of Auckland(奥克兰大学);Abilene Christian University(阿比林基督教大学);University of Toronto Scarborough(多伦多大学士嘉堡分校);University College Dublin(都柏林大学学院)

Paul Denny, Juho Leinonen, James Prather, Andrew Luxton-Reilly, Thezyrie Amarouche, Brett A. Becker, Brent N. Reeves

AI总结:

本文提出Prompt Problem教学概念及Promptly工具,帮助学生掌握为LLMs编写有效提示词的能力,现场研究表明该工具能锻炼计算思维并受学生广泛好评。

摘要:

大型语言模型(LLMs)凭借其卓越的代码生成能力,已成为计算教育实践中的一项变革性技术。它们使得教育者迫切需要重新思考针对新兴技能组合的教学方法和教学策略。传统的编程学习方法侧重于频繁且反复地练习编写代码。如今,代码生成的便捷性导致学习重点转向阅读、理解和评估 LLM 生成的代码。与这一转变相伴随,一种新的核心技能正在出现——即为代码生成模型构建良好提示词的能力。本文引入了一种名为“Prompt Problem”的新颖教学概念,旨在帮助学生学会如何为 LLMs 构思有效的提示词。Prompt Problem 挑战学生创建自然语言提示词,引导 LLM 为特定问题生成正确的代码。为了支持大规模交付 Prompt Problems,本文还提出了一款名为 Promptly 的新工具,该工具托管了 Prompt Problems 库并自动评估提示词生成的代码。我们报告了一项现场研究的实证结果,该研究中 Promptly 被部署在一年级 Python 编程课程中(n=54)。我们探讨了学生与该工具的交互情况以及他们对 Prompt Problem 概念的看法。我们发现,Promptly 能够锻炼学生的计算思维技能并使其接触新的编程结构,因此受到学生的广泛好评。我们还讨论了未来工作的方向,包括 Prompt Problems 设计的变体,以及研究如何将其整合到课程和教学实践中的必要性。

英文摘要:

With their remarkable ability to generate code, large language models (LLMs) are a transformative technology for computing education practice. They have created an urgent need for educators to rethink pedagogical approaches and teaching strategies for newly emerging skill sets. Traditional approaches to learning programming have focused on frequent and repeated practice at writing code. The ease with which code can now be generated has resulted in a shift in focus towards reading, understanding and evaluating LLM-generated code. In parallel with this shift, a new essential skill is emerging -- the ability to construct good prompts for code-generating models. This paper introduces a novel pedagogical concept known as a `Prompt Problem', designed to help students learn how to craft effective prompts for LLMs. A Prompt Problem challenges a student to create a natural language prompt that leads an LLM to produce the correct code for a specific problem. To support the delivery of Prompt Problems at scale, in this paper we also present a novel tool called Promptly which hosts a repository of Prompt Problems and automates the evaluation of prompt-generated code. We report empirical findings from a field study in which Promptly was deployed in a first-year Python programming course (n=54). We explore student interactions with the tool and their perceptions of the Prompt Problem concept. We found that Promptly was largely well-received by students for its ability to engage their computational thinking skills and expose them to new programming constructs. We also discuss avenues for future work, including variations on the design of Prompt Problems and the need to study their integration into the curriculum and teaching practice.

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

↑