Date
Publisher
arXiv
This article explores the natural language generation capabilities of large
language models with application to the production of two types of learning
resources common in programming courses. Using OpenAI Codex as the large
language model, we create programming exercises (including sample solutions and
test cases) and code explanations, assessing these qualitatively and
quantitatively. Our results suggest that the majority of the automatically
generated content is both novel and sensible, and in some cases ready to use as
is. When creating exercises we find that it is remarkably easy to influence
both the programming concepts and the contextual themes they contain, simply by
supplying keywords as input to the model. Our analysis suggests that there is
significant value in massive generative machine learning models as a tool for
instructors, although there remains a need for some oversight to ensure the
quality of the generated content before it is delivered to students. We further
discuss the implications of OpenAI Codex and similar tools for introductory
programming education and highlight future research streams that have the
potential to improve the quality of the educational experience for both
teachers and students alike.
Study at a glance
- Question: How well can an artificial intelligence model generate programming exercises and code explanations for computer science education?
- Setting and data: Not stated in the abstract
- Method: Qualitative and quantitative evaluation of programming exercises, sample solutions, test cases, and code explanations generated by an AI model
Why it matters
Programming courses commonly require learning resources such as exercises, test cases, and code explanations. Exploring how large language models generate these materials helps determine their role in supporting instructors and introductory programming education.
Key findings
- In programming courses, most AI-generated exercises and code explanations were novel, sensible, and in some cases ready to use immediately.
- Supplying simple keywords easily steered both the specific programming concepts and contextual themes featured in the generated exercises.
- The generative tool demonstrated significant value for instructors, though its content still required educator review to ensure quality for students.
Summary drafted with AI from the paper’s abstract and may contain errors. See the full paper for details.
What is the application?
Who is the user?
Who age?
Why use AI?
Study design
