cs.CYAug 25, 2026

Self-Explanation Tutor for Active Study of CS1 Worked Examples

Authors: Arun-Balajiee Lekshmi-Narayanan, Mohammad Hassany, Kamil Akhuseyinoglu, Rully Hendrawan, Peter Brusilovsky

Organizations: University of Pittsburgh Pittsburgh, PA, USA · Carnegie Mellon University Pittsburgh, PA, USA

Abstract

Worked examples are an important part of introductory programming, but reading their expert explanations is passive. Self explanation, students explaining the problem and its solution to themselves with subgoal level analysis, converts passive reading into an active study of worked example, yet it is hard to scale because assessing free-text explanations and returning timely feedback has had no easy automated solution. We investigate whether a large language model (LLM) can fill that gap. We build a self-explanation tutor for introductory programming, ESSE, in which students explain lines of worked examples and receive immediate LLM feedback on the correctness and completeness of each explanation, and we pursue two goals. First, we ask whether the LLM judges student explanations well enough to serve as the engine of the tutor; we assess its judgments against two independent human reference standards of different kinds, a single domain expert and a crowd of non-expert raters, each with its own strengths and weaknesses, characterizing both where the LLM is reliable and the systematic tendencies in how it diverges. Second, we ask whether the LLM-based tutoring benefits students; deploying it in an introductory Java course, we find that its feedback leads students to persist and revise rather than abandon a line, that their explanations grow more complete and conceptually richer across attempts, and that students show evidence of learning. These indicate that LLM-based assessment is good enough to power a self-explanation tutor, and that the tutor positively shapes how students study worked examples.

Figures & tables

Explore similar work

CardsList
  1. Exploring the Effectiveness of Using LLMs for Automated Assessment of Student Self Explanations in Programming Education

    May 20, 2026Arun-Balajiee Lekshmi-Narayanan, Mohammad Hassany, Peter BrusilovskyLLM-as-a-JudgeProgramming Education

  2. ACE-TA: An Agentic Teaching Assistant for Grounded Q&A, Quiz Generation, and Code Tutoring

    Feb 20, 2026Himanshu Tripathi, Charlottee Crowell, Kaley Newlin +3Evidence-Grounded QAIntelligent Tutoring Systems

  3. Ultra Strong Machine Learning: LLM-Generated Explanations Do Not Yet Suffice for Teaching Humans Active Learning Strategy

    Aug 31, 2025Lun Ai, Johannes Langer, Ute Schmid +1Active LearningHuman-in-the-Loop AI