arXiv:2603.28295cs.AI2026-03

用专家标注题库测试大模型答编程题,发现部分模型比老师答得更好。

Evaluating LLMs for Answering Student Questions in Introductory Programming Courses

  • 构建170个真实学生问题库,用专家答案做标准。
  • Gemini 3 flash模型在教学准确性上超过普通教师回复。
  • 提出教师把关的AI辅助模式,防止幻觉和偏题。

大型语言模型(LLMs)的兴起为编程教育带来机遇与挑战。学生频繁使用生成式AI工具,但直接提供完整解答反而阻碍学习;同时教师面临反馈量大、难以及时个性化的问题。本研究评估了LLMs在计算机科学导论课程中辅助回答学生问题的能力。我们通过学习管理系统收集170个真实学生提问,并由领域专家撰写标准答案,建立可复现的基准数据集。由于传统文本匹配指标不足以评估开放式教育回应,我们开发并验证了一种基于LLM作为裁判的定制化评估指标,用于衡量教学准确性。结果显示,Gemini 3 flash等模型在教学质量上已超越典型教师回复,与专家标准高度一致。为降低幻觉风险并确保符合课程上下文,建议采用“教师在环”机制。最后,我们将方法抽象为任务无关的评估框架,倡导从临时部署后测试转向可量化的前置验证,推动教育类LLM工具的规范化发展。

原文摘要 · Abstract (English)

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.

编程教育LLM评估教师辅助

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。