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

大语言模型(GPT)努力回答关于代码的多项选择题

Large Language Models (GPT) Struggle to Answer Multiple-Choice Questions about Code

Carnegie Mellon University(卡内基梅隆大学)

Jaromir Savelka, Arav Agarwal, Christopher Bogart, Majd Sakr

摘要:

我们分析了三个生成式预训练Transformer(GPT)模型在回答多项选择题(MCQ)评估时的有效性,这些评估通常涉及中学后入门和中级编程课程的简短代码片段。这项新兴技术激起了无数关于其潜在用途的讨论(例如,练习生成、代码解释)以及编程教育中的误用(例如,作弊)。然而,GPT模型的能力及其在教育环境中推理和/或分析代码的局限性尚未得到充分探讨。我们评估了OpenAI的几个GPT模型对三门Python课程(530个问题)的形成性和总结性MCQ评估。我们发现,包含代码片段的MCQ的回答不如仅包含自然语言的MCQ那么成功。虽然要求在代码中填充空白或完成关于片段的自然语言语句的问题被相当成功地处理,但是要求关于代码的分析和/或推理的MCQ(例如,关于片段的什么是真/假,或者它的输出是什么)看起来是最具挑战性的。这些研究结果可以被教育工作者用来调整他们的教学实践和评估编程课程,使GPT成为学习者的一个有价值的助手,而不是在学习过程中的混乱和/或潜在的障碍。

英文摘要:

We analyzed effectiveness of three generative pre-trained transformer (GPT) models in answering multiple-choice question (MCQ) assessments, often involving short snippets of code, from introductory and intermediate programming courses at the postsecondary level. This emerging technology stirs countless discussions of its potential uses (e.g., exercise generation, code explanation) as well as misuses in programming education (e.g., cheating). However, the capabilities of GPT models and their limitations to reason about and/or analyze code in educational settings have been under-explored. We evaluated several OpenAI's GPT models on formative and summative MCQ assessments from three Python courses (530 questions). We found that MCQs containing code snippets are not answered as successfully as those that only contain natural language. While questions requiring to fill-in a blank in the code or completing a natural language statement about the snippet are handled rather successfully, MCQs that require analysis and/or reasoning about the code (e.g., what is true/false about the snippet, or what is its output) appear to be the most challenging. These findings can be leveraged by educators to adapt their instructional practices and assessments in programming courses, so that GPT becomes a valuable assistant for a learner as opposed to a source of confusion and/or potential hindrance in the learning process.

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

↑