Home
Scholarly Works
AI-Generated Traces for Novice Programmers:...
Conference

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

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.

Authors

Noviello Y; Sibia N; Birillo A; Klein TOV; Liut M; Migut G

Pagination

pp. 135-141

Publisher

Association for Computing Machinery (ACM)

Publication Date

July 10, 2026

DOI

10.1145/3803400.3809346

Name of conference

Proceedings of the 31st ACM Conference on Innovation and Technology in Computer Science Education V. 1

Labels

Sustainable Development Goals (SDG)

View published work (Non-McMaster Users)