评估LLMs在初级编程课程中回答学生问题的能力
Evaluating LLMs for Answering Student Questions in Introductory Programming Courses
AI总结:
本文研究了LLMs在初级编程课程中协助教师回答学生问题的能力,通过构建基准数据集和定制评估指标,证明了LLMs能超越传统教师回答质量,并提出'教师在环'策略以降低风险。
摘要:
大型语言模型(LLMs)的快速发展为编程教育带来了机遇与挑战。尽管学生越来越多地使用生成式AI工具,但直接访问往往阻碍学习过程,因为这些工具提供完整的解决方案而非教学提示。同时,教师在提供及时、个性化的反馈时面临显著的工作量和可扩展性挑战。本研究探讨了LLMs在CS1编程课程中安全有效地协助教师回答学生问题的能力。为此,我们建立了严格、可重复的评估过程,通过收集170个真实的学生问题数据集,并配以由领域专家撰写的 ground-truth 回答。由于传统文本匹配度量不足以评估开放性教育回答,我们开发并验证了一个定制的LLM-as-a-Judge度量标准,以评估教学准确性。我们的发现表明,如Gemini 3 Flash等模型能够超越典型教师回答的质量基准,实现与专家教学标准的高水平一致性。为缓解持续存在的风险如幻觉,并确保与课程特定上下文的一致性,我们倡导采用'教师在环'的实现方式。最后,我们将我们的方法抽象为一项任务无关的评估框架,倡导教育LLM工具的开发从随意的、事后部署测试转向可量化的、事前部署验证过程。
英文摘要:
The rapid emergence of Large Language Models (LLMs) presents both opportunities and challenges for programming education. While students increasingly use generative AI tools, direct access often hinders the learning process by providing complete solutions rather than pedagogical hints. Concurrently, educators face significant workload and scalability challenges when providing timely, personalized feedback. This study investigates the capabilities of LLMs to safely and effectively assist educators in answering student questions within a CS1 programming course. To achieve this, we established a rigorous, reproducible evaluation process by curating a benchmark dataset of 170 authentic student questions from a learning management system, paired with ground-truth responses authored by subject matter experts. Because traditional text-matching metrics are insufficient for evaluating open-ended educational responses, we developed and validated a custom LLM-as-a-Judge metric optimized for assessing pedagogical accuracy. Our findings demonstrate that models, such as Gemini 3 flash, can surpass the quality baseline of typical educator responses, achieving high alignment with expert pedagogical standards. To mitigate persistent risks like hallucination and ensure alignment with course-specific context, we advocate for a "teacher-in-the-loop" implementation. Finally, we abstract our methodology into a task-agnostic evaluation framework, advocating for a shift in the development of educational LLM tools from ad-hoc, post-deployment testing to a quantifiable, pre-deployment validation process.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。