Idea · Jul 8, 2026
Routing-Aware LLM Grading of Handwritten CS Exams: Privacy-Preserving Calibration with Open-Source Models
Extend 'Fighting Fire with Fire' (SIGCSE TS 2026) by replacing GPT-4o with fine-tuned open-source models and adding a calibrated confidence router that auto-escalates uncertain grades to a TA, reducing grading time and privacy exposure without sacrificing accuracy.
What it would do
Leithner et al. (SIGCSE TS 2026) showed that a GPT-4o-assisted grading pipeline reduced handwritten CS exam grading time by ~40% while maintaining accuracy comparable to human TAs. Two limitations remain: (1) sending student exam images to a proprietary API raises FERPA/privacy concerns for on-premises deployment; (2) the grader is always-on with no confidence filtering, so equally costly API calls are made for clear-cut answers and genuinely ambiguous responses. This project addresses both limitations through two interlocking contributions. Privacy contribution: We investigate whether fine-tuned or few-shot-prompted open-source models (Llama 3.1 70B, Qwen 2.5 72B -- the same tier validated for CS compiler-message explanation in paper-205) can match GPT-4o grading accuracy when deployed on department-owned GPU servers. Using a dataset of historical anonymized exams and expert grades collected under existing IRB, we measure per-question-type accuracy across four types common in CS1/CS2: short-answer explanation, algorithm tracing, Explain-in-Plain-English (EiPE), and fill-in-the-code. Routing contribution: We train a lightweight binary classifier on the LLM's own uncertainty signals (token-level log-probability entropy, answer-length variance across temperature sweeps) to predict which grades are likely to disagree with a human expert. Items above a confidence threshold are auto-accepted; items below are flagged for a 30-second TA review. We measure the Pareto frontier of (% auto-accepted) vs. (accuracy on auto-accepted items) across threshold values, targeting a 95% confidence band where auto-graded items match human grades at ICC > 0.90. Experiment: Using existing grading logs from prior courses (no new student subjects), we simulate four pipeline configurations: (a) full GPT-4o grading (Leithner baseline), (b) open-source LLM only, (c) open-source LLM + routing at 90% confidence threshold, (d) open-source LLM + routing at 95% threshold. Primary metrics are grading accuracy vs. gold human grades, estimated TA time for flagged items, and privacy cost (number of images sent to external APIs). Connection to Pisan's infrastructure: Submit! and Jolly Feedback already collect grading rubrics and TA grades. Adding exam OCR output as a new input channel would allow the routing system to slot in as a 'suggested grade' module, with TAs reviewing uncertain items rather than grading from scratch. A Phase 2 field deployment could follow a successful simulation study.