基于代码生成的评分:评估“用通俗英语解释”问题的自动评分机制
Code Generation Based Grading: Evaluating an Auto-grading Mechanism for "Explain-in-Plain-English" Questions
AI总结:
本文提出“基于代码生成的评分”(CGBG)方法,利用LLM将学生对“用通俗英语解释”问题的回答转化为代码并通过测试用例验证,发现其与人工评分具有中等一致性。
摘要:
理解并阐明代码的目的通常被认为是入门编程课程中的关键学习目标。为了实现这一目标,采用了“用通俗英语解释”(Explain-in-Plain-English)问题,即向学生展示一段代码,并要求他们提供对该代码目的的抽象描述。然而,由于 EiPE 问题需要自然语言回答,它们通常需要人工评分,这不仅耗时,还会延迟给学生的反馈。随着能够生成代码的大型语言模型(LLMs)的出现,可以利用对 EiPE 问题的回答来生成代码段,然后使用测试用例轻松验证其正确性。我们将这种方法称为“基于代码生成的评分”(CGBG),并在本文中,我们使用一门以 Python 教授的入门编程课程过去考试中的 EiPE 回答,探讨了它与人类评分者之间的一致性。总体而言,我们发现 CGBG 与人类评分者达到了中等程度的一致性,主要分歧在于它对代码的低层次和逐行描述较为宽容。
英文摘要:
Comprehending and elucidating the purpose of code is often cited as being a key learning objective within introductory programming courses. To address this objective ``Explain-in-Plain-English'' questions, in which students are shown a segment of code and asked to provide an abstract description of the code's purpose, have been adopted. However, given EiPE questions require a natural language response, they often require manual grading which is time-consuming for course staff and delays feedback for students. With the advent of large language models (LLMs) capable of generating code, responses to EiPE questions can be used to generate code segments, the correctness of which can then be easily verified using test cases. We refer to this approach as "Code Generation Based Grading" (CGBG) and in this paper we explore its agreement with human graders using EiPE responses from past exams in an introductory programming course taught in Python. Overall, we find that CGBG achieves moderate agreement with human graders with the primary area of disagreement being its leniency with respect to low-level and line-by-line descriptions of code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。