Manuscript Offprint

arXiv:2608.25180

Self-Explanation Tutor for Active Study of CS1 Worked Examples

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

Arun-Balajiee

Lekshmi-Narayanan

arl122@pitt.edu

University of Pittsburgh

Pittsburgh, PA, USA

Mohammad Hassany

moh70@pitt.edu

University of Pittsburgh

Pittsburgh, PA, USA

Kamil Akhuseyinoglu

kakhusey@andrew.cmu.edu

Carnegie Mellon University

Pittsburgh, PA, USA

Rully Hendrawan

rah225@pitt.edu

University of Pittsburgh

Pittsburgh, PA, USA

Abstract

Worked examples are a 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, turns that study into an active task, 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.

CCS Concepts

• Applied computing → Interactive learning environments;

• Human-centered computing → HCI theory, concepts and models;

• Computing methodologies → Cross-validation; Discourse, dialogue and pragmatics.

Peter Brusilovsky

peterb@pitt.edu

University of Pittsburgh

Pittsburgh, PA, USA