arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.06187cs.SEcs.AIcs.CY
收藏

不可编译学生代码的自动化程序修复

Automated Program Repair of Uncompilable Student Code

North Carolina State University(北卡罗来纳州立大学)

Griffin Pitts, Aum Pandya, Darsh Rank, Tirth Bhatt, Muntasir Hoq, Bita Akram

AI总结:

本研究利用大型语言模型修复不可编译的学生代码,以保留其结构意图,从而提升学生建模和知识追踪的分析能力。

摘要:

在CS1学习环境中,大量学生编程提交是不可编译的,这限制了它们在学生建模和下游知识追踪中的应用。传统建模流程往往排除这些情况,丢弃了对学生学习过程的观察。本研究将自动化程序修复作为恢复不可编译代码的策略,以在学生建模中保留学生的结构意图。在此框架下,我们评估了大型语言模型(LLMs)作为修复代理,在高和低上下文提示条件下进行修复。修复被评估了可编译性、编辑距离以及对原学生结构和逻辑的保留程度。虽然所有模型都产生了可编译的修复,但它们在保留学生控制流和代码结构方面存在差异,影响了其教学实用性。通过恢复不可编译的提交,本工作使能够更全面地分析学习者的编码过程和长期发展。

英文摘要:

A significant portion of student programming submissions in CS1 learning environments are uncompilable, limiting their use in student modeling and downstream knowledge tracing. Traditional modeling pipelines often exclude these cases, discarding observations of student learning. This study investigates automated program repair as a strategy to recover uncompilable code while preserving students' structural intent for use in student modeling. Within this framework, we assess large language models (LLMs) as repair agents under high- and low-context prompting conditions. Repairs were evaluated for compilability, edit distance, and preservation of students' original structure and logic. While all models produced compilable repairs, they differed in how well they preserve students' control flow and code structure, affecting their pedagogical utility. By recovering uncompilable submissions, this work enables richer and more comprehensive analyses of learners' coding processes and development over time.

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

↑