Dcc --help:利用大语言模型生成上下文感知的编译器错误解释
Dcc --help: Generating Context-Aware Compiler Error Explanations with Large Language Models
AI总结:
本文提出并评估了集成大语言模型到DCC编译器的dcc --help工具,利用上下文信息生成面向初学者的错误解释,在CS1/CS2课程中大规模部署,编译时和运行时概念准确率分别为90%和75%,为编程教学提供新机会。
摘要:
在入门编程这一具有挑战性的领域中,高注册率和失败率促使我们探索各种工具和系统来提升学生的学习成果,尤其是能够扩展到大规模学生群体的自动化工具。本文介绍并评估了 dcc --help 工具,该工具将大语言模型(LLM)集成到调试C编译器(DCC)中,为每个错误生成针对初学者的独特解释。dcc --help 向 LLM 提供编译时和运行时错误发生的上下文信息,包括源代码、错误位置和标准编译器错误消息。LLM 被指示生成针对初学者、可操作的错误解释和指导,旨在帮助学生理解和解决问题,而不直接提供解决方案。dcc --help 已部署到我们的 CS1 和 CS2 课程中,在十周内共有 2,565 名学生使用该工具超过 64,000 次。我们分析了这些错误/解释对的一个子集,以评估其属性,包括概念正确性、相关性和整体质量。我们发现,LLM 生成的解释在编译时案例中有 90% 概念准确,在运行时案例中有 75% 概念准确,但经常忽视不提供代码解决方案的指令。部署后的发现、观察和反思表明,dcc --help 为学生的编程入门提供了新颖的脚手架机会。
英文摘要:
In the challenging field of introductory programming, high enrollments and failure rates drive us to explore tools and systems to enhance student outcomes, especially automated tools that scale to large cohorts. This paper presents and evaluates the dcc --help tool, an integration of a Large Language Model (LLM) into the Debugging C Compiler (DCC) to generate unique, novice-focused explanations tailored to each error. dcc --help prompts an LLM with contextual information of compile- and run-time error occurrences, including the source code, error location and standard compiler error message. The LLM is instructed to generate novice-focused, actionable error explanations and guidance, designed to help students understand and resolve problems without providing solutions. dcc --help was deployed to our CS1 and CS2 courses, with 2,565 students using the tool over 64,000 times in ten weeks. We analysed a subset of these error/explanation pairs to evaluate their properties, including conceptual correctness, relevancy, and overall quality. We found that the LLM-generated explanations were conceptually accurate in 90% of compile-time and 75% of run-time cases, but often disregarded the instruction not to provide solutions in code. Our findings, observations and reflections following deployment indicate that dcc-help provides novel opportunities for scaffolding students' introduction to programming.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。