Skip to main content
QUICK REVIEW

[Paper Review] Human-AI Co-Creation of Worked Examples for Programming Classes

Mohammad Hassany, Peter Brusilovsky|arXiv (Cornell University)|Feb 26, 2024
Model-Driven Software Engineering TechniquesComputer Science3 citations
TL;DR

This paper presents WEAT, a human-AI co-creation tool that uses large language models (e.g., ChatGPT) to generate line-by-line code explanations for Java programming examples, enabling instructors to efficiently author high-quality worked examples. In a study with five instructors, 73.6% of generated explanations were accepted with minimal edits, demonstrating that human-AI collaboration significantly reduces authoring time while maintaining pedagogical quality.

ABSTRACT

Worked examples (solutions to typical programming problems presented as a source code in a certain language and are used to explain the topics from a programming class) are among the most popular types of learning content in programming classes. Most approaches and tools for presenting these examples to students are based on line-by-line explanations of the example code. However, instructors rarely have time to provide line-by-line explanations for a large number of examples typically used in a programming class. In this paper, we explore and assess a human-AI collaboration approach to authoring worked examples for Java programming. We introduce an authoring system for creating Java worked examples that generates a starting version of code explanations and presents it to the instructor to edit if necessary.We also present a study that assesses the quality of explanations created with this approach

Motivation & Objective

  • To address the lack of high-quality, interactive worked examples in programming education due to the high time cost of manual authoring.
  • To explore whether large language models can generate pedagogically effective code explanations that instructors can efficiently revise.
  • To design and evaluate a human-AI co-creation authoring system that supports instructors in producing interactive, explained programming examples.
  • To assess the quality and usability of AI-generated explanations in comparison to expert-authored ones.
  • To identify design improvements for authoring tools that support efficient human-AI collaboration in educational content creation.

Proposed method

  • The WEAT system uses a fine-tuned prompt to generate line-by-line code explanations for Java examples using a large language model (e.g., ChatGPT).
  • Instructors provide the problem statement and source code, and the system returns AI-generated explanations for each code line.
  • The interface allows instructors to review, edit, merge, reorder, or accept explanations with minimal friction.
  • The system logs instructor interactions to analyze editing behavior and efficiency.
  • A user study with five instructors evaluated the tool’s usability and the quality of generated explanations.
  • The study compared AI-generated explanations with expert-authored ones using qualitative feedback and quantitative metrics like Levenshtein edit ratio.

Experimental results

Research questions

  • RQ1To what extent can LLM-generated code explanations be used as-is or with minimal edits by instructors?
  • RQ2How do the quality and readability of AI-generated explanations compare to those created by expert instructors?
  • RQ3What editing patterns do instructors use when refining AI-generated explanations?
  • RQ4How does human-AI co-creation affect the time and effort required to author worked examples?
  • RQ5What interface design features are critical for effective human-AI collaboration in educational content authoring?

Key findings

  • On average, 73.6% of the Levenshtein edit ratio between original and final explanations indicates high acceptance of AI-generated content, with 43.5% of explanations remaining unchanged.
  • Approximately half of the AI-generated explanation fragments were used without any edits, saving significant instructor time.
  • Instructors most frequently edited explanations by summarizing, adding missing details, or removing redundant content.
  • Despite high acceptance, some explanations were rejected due to factual inaccuracies, highlighting the necessity of human oversight.
  • Instructors reported inefficiencies due to interface limitations, such as modal dialogs blocking the main editing area and lack of tools for reordering or merging fragments.
  • The study confirmed that human-AI co-creation offers a 'best of both worlds' solution: high-quality explanations can be accepted directly, while inferior ones can be improved efficiently.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.