Automatic Generation of Programming Exercises and Code Explanations Using Large Language Models

Sami Sarsa, Paul Denny, Arto Hellas, Juho Leinonen

Tutkimustuotos: Artikkeli kirjassa/konferenssijulkaisussaConference contributionScientificvertaisarvioitu

250 Lataukset (Pure)

Abstrakti

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.
AlkuperäiskieliEnglanti
OtsikkoProceedings of the 2022 ACM Conference on International Computing Education Research V.1 (ICER 2022)
KustantajaACM
Sivumäärä17
DOI - pysyväislinkit
TilaHyväksytty/In press - 15 kesäk. 2022
OKM-julkaisutyyppiA4 Artikkeli konferenssijulkaisuussa
TapahtumaACM Conference on International Computing Education Research - Lugano, Sveitsi
Kesto: 7 elok. 202211 elok. 2022
https://icer2022.acm.org/

Conference

ConferenceACM Conference on International Computing Education Research
LyhennettäICER
Maa/AlueSveitsi
KaupunkiLugano
Ajanjakso07/08/202211/08/2022
www-osoite

Sormenjälki

Sukella tutkimusaiheisiin 'Automatic Generation of Programming Exercises and Code Explanations Using Large Language Models'. Ne muodostavat yhdessä ainutlaatuisen sormenjäljen.

Siteeraa tätä