Idea · Sep 15, 2026

Two-Stage LLM Grading of Handwritten CS Exam Artifacts: Adapting a Mathematical Pipeline for Code Traces, Data Structure Diagrams, and Algorithm Analysis

Adapts and evaluates a proven two-stage LLM autograding pipeline for CS-specific handwritten exam artifacts, including code traces, data structure state diagrams, and pseudocode, where the complexity of execution state and visual structure exceeds that of mathematical expressions.

What it would do

Levine et al. (SIGCSE TS 2026) demonstrated that a two-stage pipeline separating transcription from rubric evaluation achieves promising accuracy for handwritten mathematics with parameterized rubrics. CS instructors who rely on handwritten proctored exams face an analogous but harder problem: code trace tables, linked-list or tree diagrams, and algorithm pseudocode carry execution state, control-flow branching, and structural relationships that standard OCR pipelines cannot parse. This research extends the Levine et al. pipeline to three canonical CS artifact types, designing Stage-1 prompts that produce structured intermediate representations (variable-step tables for traces, adjacency or pointer notation for data structures, normalized pseudocode for algorithms) and Stage-2 prompts that evaluate each against a parameterized rubric. The study measures agreement with human graders across item types, identifies failure modes unique to each artifact category, and benchmarks grading-time reduction against a Gradescope baseline, following the methodology of the companion Fighting Fire with Fire study at the same venue. The results will inform whether a single unified pipeline or per-artifact specialized pipelines better serve CS assessment at scale.

More in Assessment & Grading

All 132 ideas in Assessment & Grading →