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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: MacNeil, Stephen, Rogalska, Magdalena, Leinonen, Juho, Denny, Paul, Hellas, Arto, Crosland, Xandria
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914970445283328
author MacNeil, Stephen
Rogalska, Magdalena
Leinonen, Juho
Denny, Paul
Hellas, Arto
Crosland, Xandria
author_facet MacNeil, Stephen
Rogalska, Magdalena
Leinonen, Juho
Denny, Paul
Hellas, Arto
Crosland, Xandria
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_09193
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Synthetic Students: A Comparative Study of Bug Distribution Between Large Language Models and Computing Students
MacNeil, Stephen
Rogalska, Magdalena
Leinonen, Juho
Denny, Paul
Hellas, Arto
Crosland, Xandria
Computers and Society
Artificial Intelligence
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.
title Synthetic Students: A Comparative Study of Bug Distribution Between Large Language Models and Computing Students
topic Computers and Society
Artificial Intelligence
url https://arxiv.org/abs/2410.09193