arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.09193cs.CYcs.AI
收藏

合成学生:大语言模型与计算机专业学生错误分布的对比研究

Synthetic Students: A Comparative Study of Bug Distribution Between Large Language Models and Computing Students

Temple University(天普大学);Aalto University(阿尔托大学);University of Auckland(奥克兰大学);Western Governors University(西州长大学)

Stephen MacNeil, Magdalena Rogalska, Juho Leinonen, Paul Denny, Arto Hellas, Xandria Crosland

AI总结:

本研究对比了LLMs与计算机专业学生在代码错误分布上的差异,发现无引导时LLMs生成的错误分布不合理,但在提供常见错误描述和频率引导后,LLMs能生成真实的合成错误分布。

摘要:

大语言模型(LLMs)为生成合成课堂数据提供了令人兴奋的机会。此类数据可包含具有典型错误分布的代码、用于解决开发教育工具时冷启动问题的模拟学生行为,以及在因隐私原因无法获取真实数据时的合成用户数据。在本文中,我们进行了一项对比研究,考察LLMs生成的错误分布与计算机专业学生产生的错误分布之间的差异。利用先前两项关于学生生成错误的大规模分析数据,我们探讨了当被提示向代码中注入错误时,LLMs是否能被引导表现出与真实学生错误相似的错误模式。结果表明,在无引导的情况下,LLMs无法生成合理的错误分布,且许多生成的错误不太可能由真实学生产生。然而,在包含常见错误描述和典型频率的引导下,LLMs可以被引导在合成代码中生成真实的错误分布。

英文摘要:

Large language models (LLMs) present an exciting opportunity for generating synthetic classroom data. Such data could include code containing a typical distribution of errors, simulated student behaviour to address the cold start problem when developing education tools, and synthetic user data when access to authentic data is restricted due to privacy reasons. In this research paper, we conduct a comparative study examining the distribution of bugs generated by LLMs in contrast to those produced by computing students. Leveraging data from two previous large-scale analyses of student-generated bugs, we investigate whether LLMs can be coaxed to exhibit bug patterns that are similar to authentic student bugs when prompted to inject errors into code. The results suggest that unguided, LLMs do not generate plausible error distributions, and many of the generated errors are unlikely to be generated by real students. However, with guidance including descriptions of common errors and typical frequencies, LLMs can be shepherded to generate realistic distributions of errors in synthetic code.

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

↑