Idea · Aug 27, 2026
Error-Type Priority Routing for LLM-Generated CS1 Feedback: Should the Tutor Address Syntax or Concept First?
Build and evaluate an LLM feedback pipeline that classifies CS1 submission errors as syntactical, conceptual, or strategic, then routes each error type to a differently framed hint, testing whether prioritizing conceptual hints over syntactical corrections improves learning outcomes for struggling students.
What it would do
Liding et al. (ITiCSE 2025) analyzed 346 coding attempts across three CS1 quizzes and found that among the bottom-performing 15% of students (those requiring 10 or more attempts), syntactical errors declined sharply in the first 10 submissions while conceptual and strategic errors remained flat throughout. This creates a concrete routing question for any LLM-based tutoring system: when a student's submission log shows all three error types present simultaneously, which type should the LLM address first? Current automated feedback systems (including Pisan's Submit! and Jolly Feedback pipelines) treat all errors as equal and either surface all of them or prioritize the first failing test. This research builds a three-class error classifier on top of CSS 142 submission logs (syntactical: compilation failures, missing semicolons, undeclared variables; conceptual: wrong algorithm, incorrect loop logic, misunderstanding of return semantics; strategic: poor decomposition, copy-paste without adaptation, skipping edge cases) and trains a priority router that decides which error class to address first based on the student's attempt count and the composition of their current error set. Two routing strategies are compared in a within-subjects design across multiple assignments: 'syntax-first' (match what most compilers and linters do: fix the code so it runs before addressing logic) and 'concept-first' (address the deepest logical misunderstanding even if the code does not yet compile, using natural language hints that do not require working code as context). The LLM hint generator (claude-sonnet-5) receives the error class label, the student's attempt count, and the current failing submission as input, and generates a Socratic hint calibrated to the priority class. Outcome measures are: time to first passing submission, total attempt count after hint delivery, and a post-assignment comprehension probe (three short written questions about the algorithm). A secondary analysis replicates the Liding et al. finding on UW CSS 142 data and extends it by testing whether the syntactical error decline curve appears in Pisan's courses, establishing an empirical base for which the routing intervention is designed.