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

利用大型语言模型生成针对编程语法错误的高精度反馈

Generating High-Precision Feedback for Programming Syntax Errors using Large Language Models

MPI-SWS(马克斯·普朗克软件系统研究所);Microsoft(微软);TU Wien(维也纳工业大学)

Tung Phung, José Cambronero, Sumit Gulwani, Tobias Kohn, Rupak Majumdar, Adish Singla, Gustavo Soares

AI总结:

针对编程教育中LLM生成语法错误反馈精度难保障的问题,提出带运行时验证与可调精度参数的PyFiXV技术,经真实数据集验证可生成高精度反馈。

摘要:

大型语言模型(LLM),例如Codex,在通过自动为学生生成反馈来改进编程教育方面具有广阔前景。我们研究了利用LLM为Python程序中的语法错误生成修复反馈这一入门编程中的关键场景。具体而言,受人类导师给出反馈的方式启发,给定学生的有错误程序,我们的目标是生成包含修复后程序以及描述错误/修复方式的自然语言解释的反馈。尽管使用LLM前景可观,但关键挑战在于确保生成反馈的高精度,这是在课堂部署此类技术前的必要条件。我们研究的核心问题是:我们能否开发出带有可调精度参数的基于LLM的反馈生成技术,让教育工作者能对学生收到的反馈进行质量控制?为此,我们提出了PyFiXV,这是一种由Codex驱动的生成高精度反馈的技术。PyFiXV的核心思路是使用一种新颖的运行时验证机制来判断生成的反馈是否适合分享给学生;值得注意的是,该验证机制还为教育工作者提供了一个精度调节旋钮。我们使用两个包含语法错误的Python程序的真实世界数据集进行了广泛评估,证明了PyFiXV在生成高精度反馈方面的有效性。

英文摘要:

Large language models (LLMs), such as Codex, hold great promise in enhancing programming education by automatically generating feedback for students. We investigate using LLMs to generate feedback for fixing syntax errors in Python programs, a key scenario in introductory programming. More concretely, given a student's buggy program, our goal is to generate feedback comprising a fixed program along with a natural language explanation describing the errors/fixes, inspired by how a human tutor would give feedback. While using LLMs is promising, the critical challenge is to ensure high precision in the generated feedback, which is imperative before deploying such technology in classrooms. The main research question we study is: Can we develop LLMs-based feedback generation techniques with a tunable precision parameter, giving educators quality control over the feedback that students receive? To this end, we introduce PyFiXV, our technique to generate high-precision feedback powered by Codex. The key idea behind PyFiXV is to use a novel run-time validation mechanism to decide whether the generated feedback is suitable for sharing with the student; notably, this validation mechanism also provides a precision knob to educators. We perform an extensive evaluation using two real-world datasets of Python programs with syntax errors and show the efficacy of PyFiXV in generating high-precision feedback.

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

↑