arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.10759cs.HCcs.AI
收藏

与提示问题的交互:一种利用大型语言模型教授编程的新方法

Interactions with Prompt Problems: A New Way to Teach Programming with Large Language Models

Abilene Christian University(阿比林基督大学);The University of Auckland(奥克兰大学);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Temple University(天普大学);University College Dublin(都柏林大学学院)

James Prather, Paul Denny, Juho Leinonen, David H. Smith, Brent N. Reeves, Stephen MacNeil, Brett A. Becker, Andrew Luxton-Reilly, Thezyrie Amarouche, Bailey Kimmel

AI总结:

本文提出利用提示问题教授编程的新方法,让学生将可视化问题转化为提示供大型语言模型生成代码,并分析了该工具的设计与学生学习交互。

摘要:

大型语言模型(LLMs)已经颠覆了计算教育中数十年的教学法。学生以前通过编写许多小问题来学习编程,较少强调代码阅读和理解。最近的研究表明,由大型语言模型驱动的免费代码生成工具可以轻松解决用自然语言呈现的入门级编程问题。在本文中,我们提出了一种利用提示问题(Prompt Problems)教授编程的新方法。学生以可视化方式接收一个问题,该问题表明输入应如何转换为输出,并且必须将其转化为提示,供大型语言模型解读。当学生提示所生成的代码能够通过所有测试用例时,该问题即被视为正确。在本文中,我们介绍了该工具的设计,讨论了学生在学习过程中与它的交互,并对这一新型编程问题以及集成大型语言模型的设计工具提供了见解。

英文摘要:

Large Language Models (LLMs) have upended decades of pedagogy in computing education. Students previously learned to code through \textit{writing} many small problems with less emphasis on code reading and comprehension. Recent research has shown that free code generation tools powered by LLMs can solve introductory programming problems presented in natural language with ease. In this paper, we propose a new way to teach programming with Prompt Problems. Students receive a problem visually, indicating how input should be transformed to output, and must translate that to a prompt for an LLM to decipher. The problem is considered correct when the code that is generated by the student prompt can pass all test cases. In this paper we present the design of this tool, discuss student interactions with it as they learn, and provide insights into this new class of programming problems as well as the design tools that integrate LLMs.

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

↑