arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.00371cs.CLcs.CYcs.SE
收藏

为学生代码进行苏格拉底调试的推理轨迹:从误解到矛盾与更新信念

Reasoning Trajectories for Socratic Debugging of Student Code: From Misconceptions to Contradictions and Updated Beliefs

University of North Carolina at Charlotte(北卡罗来纳州夏洛特大学)

Erfan Al-Hossami, Razvan Bunescu

AI总结:

本文提出推理轨迹生成任务,通过标注的调试问题数据集探讨生成推理轨迹和基于LLM的苏格拉底对话方法,实验显示LLM能生成91%正确的推理轨迹和98.7%有效的对话内容。

摘要:

在苏格拉底调试中,教师引导学生自行发现和修复bug,而非直接提供修复方法。大多数初级程序员bug由编程误解引起,即对编程概念的错误信念。在此背景下,苏格拉底调试可视为引导推理轨迹(RT)的过程,最终得出与bug原因矛盾的程序行为陈述。达到矛盾后,预期学生会自行识别错误信念并更新持久信念。本文引入推理轨迹生成任务,结合标注的调试问题数据集,包含人工或LLM生成的RT注释。随后描述基于LLM的RT生成和以RT为锚点的苏格拉底对话解决方案。大规模LLM作为评判者评估显示,大型语言和推理模型能生成91%正确的推理轨迹和98.7%有效的对话内容。

英文摘要:

In Socratic debugging, instructors guide students towards identifying and fixing a bug on their own, instead of providing the bug fix directly. Most novice programmer bugs are caused by programming misconceptions, namely false beliefs about a programming concept. In this context, Socratic debugging can be formulated as a guided Reasoning Trajectory (RT) leading to a statement about the program behavior that contradicts the bug-causing misconception. Upon reaching this contradiction, the ensuing cognitive dissonance is expected to lead the student to identify the false belief on their own, followed by an enduring belief update. In this paper, we introduce the task of reasoning trajectory generation, together with a dataset of debugging problems annotated with RTs that are manually created or LLM-generated. We then describe LLM-based solutions for generating RTs and Socratic conversations that are anchored on them. A large-scale LLM-as-judge evaluation shows that large language and reasoning models can generate up to 91% correct reasoning trajectories and 98.7% valid conversation turns.

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

↑