AI-Generated Traces for Novice Programmers: Learning Effects and Learner Differences in a Multi-Institutional Study

๐Ÿ“… 2026-06-02
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
This study addresses the persistent challenge novice learners face in understanding program execution dynamics, a gap inadequately addressed by existing visualization tools and compounded by the lack of empirical evaluation of AI-generated instructional content. The authors propose Generative Animated Traces (GATs), an approach that leverages artificial intelligence to automatically produce narrative animations integrating source code, runtime states, and conceptual analogies to support CS1 studentsโ€™ comprehension of program behavior. In the first large-scale, multi-institutional experiment of its kind, the research evaluates analogy-driven, AI-generated animations within both Python and Java introductory programming courses, combining educational experimentation with learning analytics. Findings indicate that GATs can selectively enhance immediate learning outcomes; however, their efficacy is context-dependent, exhibits short-term effects, and is significantly moderated by learnersโ€™ engagement patterns, underscoring the critical need for personalized instructional interventions.
๐Ÿ“ Abstract
Introductory programming (CS1) courses often struggle to support students' understanding of program execution. While visualizations can make execution processes explicit, their effectiveness depends on design and context, and empirical evidence for AI-generated visualizations remains limited. We propose Generated Animated Traces (GATs), AI-generated, analogy-based, narrated animations that coordinate source code, execution state, and conceptual analogies. We conduct a study at two institutions in CS1 courses (Python, N=961; Java N=151) comparing GATs to textual explanations. We measure immediate learning performance and experience, end-of-course engagement and exam performance. Results show that GATs can yield selective benefits for immediate learning, but benefits are context-dependent and short-term. We observe that GATs' influence on performance is moderated by learner engagement profiles. This finding underscores the importance of personalized approaches.
Problem

Research questions and friction points this paper is trying to address.

program execution understanding
novice programmers
learning effects
learner differences
AI-generated visualizations
Innovation

Methods, ideas, or system contributions that make the work stand out.

Generated Animated Traces
AI-generated visualizations
program execution understanding
learner engagement profiles
personalized learning
๐Ÿ”Ž Similar Papers
No similar papers found.
๐Ÿ’ผ Related Jobs
No related jobs found.
Y
Yuri Noviello
Delft University of Technology
N
Naaz Sibia
University of Toronto
A
Anastasiia Birillo
JetBrains Research
T
Thomas Overklift Vaupel Klein
Delft University of Technology
Michael Liut
Michael Liut
University of Toronto at Mississauga
Adaptive SystemsAlgorithmsComputing EducationEducational TechnologyGenerative AI
G
Gosia Migut
Delft University of Technology