用大模型模拟学生编程过程,实现个性化辅导
CoderAgent: Simulating Student Behavior for Personalized Programming Learning with Large Language Models
- 基于认知架构设计智能代理,细粒度模拟编程思维过程
- 提出编程思维树(PTOT)四步框架,可解析学习策略
- 无需真实数据即可生成可解释的学习轨迹,适合教育研究者
个性化编程辅导(如习题推荐)能提升学习效率、动机和成果,在现代数字教育中日益重要。然而,高质量编程数据不足,以及离线评估与真实学习之间的不匹配,限制了此类系统的实际应用。现有方法虽尝试模拟学习数据,但常忽略编程学习的细粒度、迭代特性,导致可解释性差。为此,本文提出基于大语言模型的智能代理 CoderAgent,无需依赖真实数据,即可细粒度模拟学生编程过程。受认知架构 ACT-R 启发,设计其结构以匹配人类认知机制,聚焦编程知识掌握与编码能力应用。针对多层认知推理的内在模式,引入编程思维树(Programming Tree of Thought, PTOT),将过程分解为‘为何、如何、何处、何事’四步,实现对迭代解题策略的详细分析。在真实数据集上的实验表明,CoderAgent 能提供可解释的学习轨迹分析,并实现高精度模拟,为个性化编程教育铺平道路。
原文摘要 · Abstract (English)
Personalized programming tutoring, such as exercise recommendation, can enhance learners' efficiency, motivation, and outcomes, which is increasingly important in modern digital education. However, the lack of sufficient and high-quality programming data, combined with the mismatch between offline evaluation and real-world learning, hinders the practical deployment of such systems. To address this challenge, many approaches attempt to simulate learner practice data, yet they often overlook the fine-grained, iterative nature of programming learning, resulting in a lack of interpretability and granularity. To fill this gap, we propose a LLM-based agent, CoderAgent, to simulate students' programming processes in a fine-grained manner without relying on real data. Specifically, we equip each human learner with an intelligent agent, the core of which lies in capturing the cognitive states of the human programming practice process. Inspired by ACT-R, a cognitive architecture framework, we design the structure of CoderAgent to align with human cognitive architecture by focusing on the mastery of programming knowledge and the application of coding ability. Recognizing the inherent patterns in multi-layered cognitive reasoning, we introduce the Programming Tree of Thought (PTOT), which breaks down the process into four steps: why, how, where, and what. This approach enables a detailed analysis of iterative problem-solving strategies. Finally, experimental evaluations on real-world datasets demonstrate that CoderAgent provides interpretable insights into learning trajectories and achieves accurate simulations, paving the way for personalized programming education.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。