Automatic Generation of Programming Exercises and Code Explanations using Large Language Models
Sami Sarsa, Paul Denny, Arto Hellas, Juho Leinonen

TL;DR
This paper investigates the use of large language models, specifically OpenAI Codex, to automatically generate programming exercises and code explanations, demonstrating their potential to assist educators with high-quality, customizable content.
Contribution
It introduces a method for generating programming exercises and explanations using Codex, showing how input keywords influence content and discussing implications for programming education.
Findings
Generated content is mostly novel and sensible
Easy to control programming concepts via keywords
Significant potential for educational tool development
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Attention Is All You Need · Linear Layer · Cosine Annealing · Attention Dropout · Dropout · Multi-Head Attention · Dense Connections · Softmax · 15 Ways to Contact How can i speak to someone at Delta Airlines
