Experiences from Using Code Explanations Generated by Large Language Models in a Web Software Development E-Book
Stephen MacNeil, Andrew Tran, Arto Hellas et al. · ACM Technical Symposium on Computer Science Education (SIGCSE) · 2023
Advances in natural language processing have resulted in large language models (LLMs) that can generate code and code explanations. In this paper, we report on our experiences generating multiple code explanation types using LLMs and integrating them into an interactive e-book on web software development. Three different types of explanations -- a line-by-line explanation, a list of important concepts, and a high-level summary of the code -- were created. Students could view explanations by clicking a button next to code snippets, which showed the explanation and asked about its utility. Our results show that all explanation types were viewed by students and that the majority of students perceived the code explanations as helpful to them. However, student engagement varied by code snippet complexity, explanation type, and code snippet length. Drawing on our experiences, we discuss future directions for integrating explanations generated by LLMs into CS classrooms.
Cited by 190 works. doi:10.1145/3545945.3569785 Open-access PDF
Authors
References
- Expectation vs. Experience: Evaluating the Usability of Code Generation Tools Powered by Large Language Models
- Review of recent systems for automatic assessment of programming assignments
- Designing the whyline
- Automatic Generation of Programming Exercises and Code Explanations Using Large Language Models
- Online python tutor
- Generating Diverse Code Explanations using the GPT-3 Large Language Model
- PeerWise
- CodeWrite
- Autonomously Generating Hints by Inferring Problem Solving Policies
- Wheel-Spinning: Students Who Fail to Master a Skill