Personalized Worked Example Generation from Student Code Submissions Using Pattern-based Knowledge Components
Griffin Pitts, Muntasir Hoq, Peter Brusilovsky, Narges Norouzi, Arto Hellas, Juho Leinonen, Bita Akram

TL;DR
This paper introduces a method for generating personalized programming worked examples by analyzing student code to extract pattern-based knowledge components, which then guide a generative model for more relevant educational content.
Contribution
The authors propose a novel pipeline that uses AST-based analysis to extract structural knowledge components from student code and condition a generative model for personalized example creation.
Findings
KC-conditioned generation improves topical focus.
It enhances relevance to students' logical errors.
Expert evaluation supports effectiveness.
Abstract
Adaptive programming practice often relies on fixed libraries of worked examples and practice problems, which require substantial authoring effort and may not correspond well to the logical errors and partial solutions students produce while writing code. As a result, students may receive learning content that does not directly address the concepts they are working to understand, while instructors must either invest additional effort in expanding content libraries or accept a coarse level of personalization. We present an approach for knowledge-component (KC) guided educational content generation using pattern-based KCs extracted from student code. Given a problem statement and student submissions, our pipeline extracts recurring structural KC patterns from students' code through AST-based analysis and uses them to condition a generative model. In this study, we apply this approach to…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
