CoChat

Experiences from Using Code Explanations Generated by Large Language Models in a Web Software Development E-Book

Open access
MacNeil, Stephen, Tran, Andrew, Hellas, Arto, Kim, Joanne, Sarsa, Sami, Denny, Paul, Bernstein, Seth, Leinonen, Juho · 2023 · Proceedings of the 54th ACM Technical Symposium on Computer Science Education V. 1

The DOI matches its Crossref record; 33 of the 33 references it cites were found in a registry or an index.

Abstract

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.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1145/3545945.3569785

Cites

33 of 33 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

2 more claims about this paper

Create a free account to see every claim other papers make about this one.

See all claims — free account

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 33 references

Research works printed but not linked: 12

  1. A survey of automated assessment approaches for programming assignments. Kirsti M Ala-Mutka , Computer science education. 152005. 2005
  2. Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, Charles Sutton, arXiv:2108.07732[cs.PL]Program Synthesis with Large Language Models. 2021 · arXiv
  3. Language Models are Few-Shot Learners. Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Advances in neural information processing systems. Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford2020Ilya Sutskever, and Dario Amodei
  4. Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde De Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, arXiv:2107.03374Evaluating large language models trained on code. 2021. 2021arXiv preprint
  5. The Robots Are Coming: Exploring the Implications of Ope-nAI Codex on Introductory Programming. James Finnie-Ansley, Paul Denny, Brett A Becker, Andrew Luxton-Reilly, James Prather, Australasian Computing Education Conf. 2022
  6. Sparks: Inspiration for Science Writing Using Language Models. Katy Ilonka, Gero , Vivian Liu, Lydia Chilton, 10.1145/3532106.3533533Designing Interactive Systems Conf. (Virtual Event, Australia) (DIS '22). New York, NY, USAAssociation for Computing Machinery2022 · doi:10.1145/3532106.3533533designing
  7. Pre-train, prompt, and predict: A systematic survey of prompting methods in natural language processing. Pengfei Liu, Weizhe Yuan, Jinlan Fu, Zhengbao Jiang, Hiroaki Hayashi, Graham Neubig, arXiv:2107.135862021. 2021arXiv preprint
  8. Automated Assessment in Computer Science Education: A State-of-the-Art Review. José Carlos Paiva, José , Paulo Leal, Álvaro Figueira, ACM Transactions on Computing Education (TOCE). 2022. 2022
  9. Challenges of Teaching Programming in StackOverflow Era. Jaanus Pöial, International Conf. on Interactive Collaborative Learning. Springer2020
  10. Step Tutor: Supporting Students through Step-by-Step Example-Based Feedback. Wengran Wang, Yudong Rao, Rui Zhi, Samiha Marwan, Ge Gao, Thomas W Price, Proceedings of the 2020 ACM Conf. on Innovation and Technology in Computer Science Education. the 2020 ACM Conf. on Innovation and Technology in Computer Science EducationTrondheim, Norway; New York, NY, USAAssociation for Computing Machinery2020ITiCSE '20)
  11. An Australasian Study of Reading and Comprehension Skills in Novice Programmers, Using the Bloom and SOLO Taxonomies. Jacqueline L Whalley, Raymond Lister, Errol Thompson, Tony Clear, Phil Robbins, P K Kumar, Christine Prasad, Proceedings of the 8th Australasian Conf. on Computing Education -Volume. the 8th Australasian Conf. on Computing Education -VolumeHobart, AustraliaAUS200652
  12. Wordcraft: Story Writing With Large Language Models. Ann Yuan, Andy Coenen, Emily Reif, Daphne Ippolito, 27th International Conf. on Intelligent User Interfaces. 2022

Cited by

See all 271

Metadata

Authors
MacNeil, S., Tran, A., Hellas, A., Kim, J., Sarsa, S., Denny, P., Bernstein, S., & Leinonen, J.
Affiliations
  • Temple University (US)
  • Aalto University (FI)
  • University of Auckland (NZ)
Venue
Proceedings of the 54th ACM Technical Symposium on Computer Science Education V. 1
Publisher
ACM
Published
2023-03-02
Pages
931-937
OpenAlex
W4323033814
Cited by
195
References
30
Citations by year
2026: 27 · 2025: 59 · 2024: 79 · 2023: 29
FWCI
58.66
Type
conference paper
Language
en
Open access
Locations
  • ACM Technical Symposium on Computer Science Education (SIGCSE) (publishedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • Aaltodoc (Aalto University) (submittedVersion, other-oa)
  • arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Computer Science Applications › Teaching and Learning Programming
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
  • Physical Sciences › Computer Science › Artificial Intelligence › Intelligent Tutoring Systems and Adaptive Learning
Keywords
code explanation, large language models, interactive e-books, computer science education, student engagement, explanation types, code generation, code complexity

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.