Human-in-the-Loop LLM Grading for Handwritten Mathematics Assessments

Arne Vanhoyweghen, Vincent Holst, Melika Mobini, Lukas Van de Voorde, Tibo Vanleke, Bert Verbruggen, Brecht Verbeken, Andres Algaba, Sam Verboven, Marie-Anne Guerry, Filip Van Droogenbroeck, Vincent Ginis · DOI

Abstract

Providing timely and individualised feedback on handwritten student work is highly beneficial for learning but difficult to achieve at scale. This challenge has become more pressing as generative AI undermines the reliability of take-home assessments, shifting emphasis toward supervised, in-class evaluation. We present a scalable, end-to-end workflow for LLM-assisted grading of short, pen-and-paper assessments. The workflow spans (1) constructing solution keys, (2) developing detailed rubric-style grading keys used to guide the LLM, and (3) a grading procedure that combines automated scanning and anonymisation, multi-pass LLM scoring, automated consistency checks, and mandatory human verification. We deploy the system in two undergraduate mathematics courses using six low-stakes in-class tests. Empirically, LLM assistance reduces grading time by approximately 23% while achieving agreement comparable to, and in several cases tighter than, fully manual grading. Occasional model errors occur but are effectively contained by the hybrid design. Overall, our results show that carefully embedded human-in-the-loop LLM grading can substantially reduce workload while maintaining fairness and accuracy.

Introduction

The pedagogical value of timely, individualized feedback is well-established, yet providing such feedback for handwritten mathematics at scale remains a significant administrative challenge. As generative AI makes take-home assignments less reliable for assessment, educators are increasingly returning to supervised, in-class exams. However, grading hundreds of handwritten responses manually is time-consuming and prone to inconsistency. While automated systems like multiple-choice tests offer speed, they fail to evaluate a student's reasoning process or provide partial credit. This paper proposes a human-in-the-loop (HITL) workflow that leverages multimodal Large Language Models (LLMs) to automate the grading of handwritten math while preserving human oversight and pedagogical integrity.

Methodology

The proposed pipeline was deployed across two undergraduate mathematics courses at Vrije Universiteit Brussel. The workflow integrates several stages to ensure privacy, accuracy, and efficiency:

  1. Standardized Collection and Anonymization: Students use specific answer sheets with bubble-coded IDs. Responses are scanned, automatically cropped to isolate math work, and anonymized before being sent to the LLM (GPT-5.1) to preserve student privacy.
  2. Structured Grading Keys: The core of the system is a detailed rubric that assigns specific points to intermediate reasoning steps. Precise instructions (e.g., "2 points for identifying the common denominator") were found to be essential for maintaining model performance and reducing errors.
  3. Multi-Pass Grading and Aggregation: To mitigate LLM stochasticity, each response is graded independently five times. The system adopts a conservative approach, using the maximum score from these runs as the provisional grade to protect students from potential model under-scoring.
  4. Human Verification: A human instructor receives a report containing the student's work, the five LLM scores, and the model's written justifications. The instructor then performs a final "accept" or "overrule" action.

Results and Discussion

The system was evaluated using real-world classroom data from six "bonus tests" and a calibration study involving experienced human annotators.

Efficiency and Accuracy

The HITL workflow reduced grading time by an average of 23.3%. This efficiency gain is particularly notable as the comparison group already utilized a streamlined digital entry system. In terms of accuracy, the system achieved high agreement levels, with quadratically weighted Cohen’s $\kappa$ values generally ranging from 0.70 to 0.96.

Weighted Cohen’s kappa across different grading conditions, showing high agreement between human and LLM scores.

As shown in Figure 1, the agreement between human graders and the LLM was often comparable to, or even exceeded, the agreement between two human graders. The LLM appears to act as a "stabilizing reference," helping human graders maintain objectivity and consistency. Detailed agreement metrics for specific questions are provided in the table below.

Detailed agreement metrics (quadratically weighted Cohen’s kappa) for manual and digital grading across various test questions.

Error Containment and Privacy

While the LLM exhibited significant errors (such as hallucinations or misinterpretations) in approximately 3% of cases, the mandatory human verification step successfully identified and corrected these instances. Furthermore, the "privacy-by-design" workflow, which only shares cropped images of mathematical work with third-party providers, effectively protects student identities.

Conclusion

The study demonstrates that LLMs can be effectively integrated into the grading process for handwritten mathematics. By positioning the AI as a supportive tool rather than a replacement, institutions can significantly reduce grading workloads while maintaining high standards of fairness and accuracy. Future work will focus on improving OCR robustness through error-correcting codes and exploring the system's applicability to more open-ended or advanced mathematical proofs.

Summary updated

BibTeX
@misc{vanhoyweghen2026human,
  author = {Arne Vanhoyweghen and Vincent Holst and Melika Mobini and Lukas Van de Voorde and Tibo Vanleke and Bert Verbruggen and Brecht Verbeken and Andres Algaba and Sam Verboven and Marie-Anne Guerry and Filip Van Droogenbroeck and Vincent Ginis},
  title = {{Human-in-the-Loop LLM Grading for Handwritten Mathematics Assessments}},
  year = {2026},
  eprint = {2603.13083},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.13083},
}
Figure