arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.00302cs.CL
收藏

使用大型语言模型为编程中的逻辑错误生成反馈阶梯

Generating Feedback-Ladders for Logical Errors in Programming using Large Language Models

University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校)

Hasnain Heickal, Andrew Lan

AI总结:

针对现有 LLM 编程反馈过于直接、忽视学习情境且不分层的问题,本文提出为同一题目-错误提交生成多层级“反馈阶梯”,并通过用户研究验证其支持教师按需渐进反馈的价值。

摘要:

在编程作业逻辑错误的反馈生成中,基于大型语言模型(LLM)的方法展现出巨大前景。这些方法要求 LLM 根据题目陈述和学生的(有缺陷的)提交生成反馈。但此类方法存在若干问题。首先,生成的反馈信息往往过于直接地揭示提交中的错误,从而减少了学生宝贵的学习机会。其次,它们没有考虑学生的学习情境,即其先前的提交、当前知识水平等。第三,它们不具备分层性,因为现有方法对所有学生提交都使用单一、共享的提示词。本文探索使用 LLM 生成“反馈阶梯”,即为同一题目-提交对提供多个层级的反馈。我们通过一项面向学生、教育工作者和研究人员的用户研究评估所生成反馈阶梯的质量。研究中我们观察到,总体而言,更高层级的反馈以及得分更高的提交,其有效性会递减。在实践中,我们的方法使教师能够根据学生个人的学习情境选择合适层级的反馈展示给学生,或者在更高层级反馈未能纠正学生错误时,以渐进方式给出更详细的反馈。

英文摘要:

In feedback generation for logical errors in programming assignments, large language model (LLM)-based methods have shown great promise. These methods ask the LLM to generate feedback given the problem statement and a student's (buggy) submission. There are several issues with these types of methods. First, the generated feedback messages are often too direct in revealing the error in the submission and thus diminish valuable opportunities for the student to learn. Second, they do not consider the student's learning context, i.e., their previous submissions, current knowledge, etc. Third, they are not layered since existing methods use a single, shared prompt for all student submissions. In this paper, we explore using LLMs to generate a "feedback-ladder", i.e., multiple levels of feedback for the same problem-submission pair. We evaluate the quality of the generated feedback-ladder via a user study with students, educators, and researchers. We have observed diminishing effectiveness for higher-level feedback and higher-scoring submissions overall in the study. In practice, our method enables teachers to select an appropriate level of feedback to show to a student based on their personal learning context, or in a progressive manner to go more detailed if a higher-level feedback fails to correct the student's error.

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

↑