arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.07655cs.AIcs.CY
收藏

利用基于大语言模型的专家与学生智能体合成高质量编程任务

Synthesizing High-Quality Programming Tasks with LLM-based Expert and Student Agents

MPI-SWS;University of Vienna(维也纳大学)

Manh Hung Nguyen, Victor-Alexandru Pădurean, Alkis Gotovos, Sebastian Tschiatschek, Adish Singla

AI总结:

本文提出 PyTaskSyn,通过专家与学生智能体多阶段协作生成并验证编程任务,显著提升任务质量,在减少工作量和成本的同时达到与专家设计任务相当的水平。

摘要:

生成式人工智能正在变革计算机教育,使个性化内容和反馈的自动生成成为可能。我们研究其在向学生提供高质量编程任务方面的能力。尽管任务生成取得了令人鼓舞的进展,但人工智能生成的任务与专家创建的任务之间仍存在质量差距。人工智能生成的任务可能与目标编程概念不一致,可能让学生难以理解,或者可能包含诸如错误测试用例等关键问题。现有工作通常需要人类教师介入进行验证。我们通过引入 PyTaskSyn 来应对这些挑战,这是一种新颖的合成技术,首先生成一个编程任务,然后判断其是否满足特定质量标准,以决定是否将其提供给学生。其核心思想是将这一过程分解为多个阶段,由使用强生成模型和较弱生成模型模拟的专家智能体与学生智能体执行。通过广泛评估,我们表明与基线技术相比,PyTaskSyn 显著提高了任务质量,并展示了我们验证流程中每种专门智能体类型的重要性。此外,我们使用公开可用的网络应用进行了用户研究,结果表明 PyTaskSyn 能够提供与专家设计的任务相媲美的高质量编程任务,同时减少工作量和成本,并且比在线资源中可用的编程任务更具吸引力。

英文摘要:

Generative AI is transforming computing education by enabling the automatic generation of personalized content and feedback. We investigate its capabilities in providing high-quality programming tasks to students. Despite promising advancements in task generation, a quality gap remains between AI-generated and expert-created tasks. The AI-generated tasks may not align with target programming concepts, could be incomprehensible to students, or may contain critical issues such as incorrect tests. Existing works often require interventions from human teachers for validation. We address these challenges by introducing PyTaskSyn, a novel synthesis technique that first generates a programming task and then decides whether it meets certain quality criteria to be given to students. The key idea is to break this process into multiple stages performed by expert and student agents simulated using both strong and weaker generative models. Through extensive evaluation, we show that PyTaskSyn significantly improves task quality compared to baseline techniques and showcases the importance of each specialized agent type in our validation pipeline. Additionally, we conducted user studies using our publicly available web application and show that PyTaskSyn can deliver high-quality programming tasks comparable to expert-designed ones while reducing workload and costs, and being more engaging than programming tasks that are available in online resources.

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

↑