Idea · Aug 31, 2026
Slip-or-Misconception: LLM Classification of Code-Tracing Errors for Differentiated Feedback in CS1
An LLM pipeline that classifies a student's code-tracing error as a transient cognitive slip or a genuine misconception, then routes to differentiated feedback: a re-read nudge for slips, a targeted Socratic hint for misconceptions. Validated on archived CSS 142 submission data and tested in a classroom deployment for outcome measurement.
What it would do
Tracing errors in CS1 have two distinct causes: cognitive slips (transient attention failures that would self-correct with a second look) and misconceptions (systematically wrong mental models requiring conceptual remediation). Torrey (SIGCSE 2026) demonstrates that distinguishing them by self-explanation prompts alone is insufficient, but engaging students in analyzing their own errors shows promise. This research extends that finding by building an LLM classifier that combines the student's tracing response, a brief prompted self-explanation, and their submission-history pattern (slips are inconsistent across similar problems; misconceptions recur) to predict error type. The classifier is validated against instructor-coded labels on archived CSS 142 exam data, then integrated into the Jolly Feedback pipeline to route slip-classified errors to a re-read prompt and misconception-classified errors to a Socratic hint targeting the inferred mental model. A controlled classroom deployment measures whether differentiated feedback reduces time-to-correct-answer and resubmission count compared to uniform feedback, directly testing whether the slip/misconception distinction is pedagogically actionable at scale with LLM-driven automation.