Abstract
Open-ended short-answer questions (SAGs) have been widely recognized as a powerful tool for providing deeper insights into learners' responses in the context of learning analytics (LA). However, SAGs often present challenges in practice due to the high grading workload and concerns about inconsistent assessments. With recent advancements in natural language processing (NLP), automatic short-answer grading (ASAG) offers a promising solution to these challenges. Despite this, current ASAG algorithms are often limited in generalizability and tend to be tailored to specific questions. In this paper, we propose a unified multi-agent ASAG framework, GradeOpt, which leverages large language models (LLMs) as graders for SAGs. More importantly, GradeOpt incorporates two additional LLM-based agents - the reflector and the refiner - into the multi-agent system. This enables GradeOpt to automatically optimize the original grading guidelines by performing self-reflection on its errors. Through experiments on a challenging ASAG task, namely the grading of pedagogical content knowledge (PCK) and content knowledge (CK) questions, GradeOpt demonstrates superior performance in grading accuracy and behavior alignment with human graders compared to representative baselines. Finally, comprehensive ablation studies confirm the effectiveness of the individual components designed in GradeOpt.
Introduction
Open-ended short-answer questions (SAQs) are the gold standard for understanding a student's thought process, yet they remain notoriously difficult to grade at scale. While multiple-choice questions are easily automated, they fail to capture the "why" behind an answer. Automatic Short-Answer Grading (ASAG) has traditionally relied on pattern matching or fine-tuned models like BERT, but these often struggle with the nuance required for high-stakes education.
Even modern Large Language Models (LLMs) face a "translation" problem: human-written rubrics designed for expert teachers are often too vague or ambiguous for an AI to follow consistently. Manually "prompt engineering" these rubrics is a tedious process of trial and error. GradeOpt aims to close this gap by enabling the AI to optimize its own instructions through a self-reflective multi-agent system.
The GradeOpt Framework
GradeOpt operates as a multi-agent system composed of three specialized LLM agents that work in a "train-and-test-adapt" cycle. This architecture allows the system to bridge the gap between human pedagogical intent and machine execution.
- The Grader: Uses the current guidelines to score student responses and provides reasoning for its decisions.
- The Reflector: Analyzes cases where the Grader’s score disagreed with a human "ground truth" label. It identifies why the error happened (e.g., a rule was too broad or missed a specific edge case).
- The Refiner: Takes the feedback from the Reflector and generates a new, improved set of "Adaptation Rules" to be appended to the original rubric.
Advanced Optimization Strategies
To ensure robust performance and efficiency, GradeOpt incorporates several key engineering innovations:
- Nested Iteration & Beam Search: Instead of a single linear update path, the system maintains a "beam" of the top-performing guideline versions, exploring multiple ways to fix a rubric simultaneously.
- Misconfidence-based Sampling: Rather than looking at random errors, the system prioritizes "challenging" examples where the model was very confident in its wrong answer. This strategy allows the model to reach peak performance in just 3 rounds of iteration.
- Test-time Adaptation: If the system detects it is grading a new group of students (Out-of-Distribution data) by monitoring its own prediction confidence, it can trigger a mini-training session to adapt the guidelines on the fly.
Experimental Evaluation
The framework was evaluated on two distinct real-world datasets: a Teacher Knowledge dataset ($D_1$) involving complex math pedagogy questions on a three-point scale, and a Physical Science dataset ($D_2$) involving high school responses on a binary scale.
Key Results
GradeOpt consistently outperformed state-of-the-art baselines, including fine-tuned RoBERTa models and previous prompt optimization leaders like APO.
- Accuracy: On the teacher math dataset ($D_1$), GradeOpt achieved up to 92% accuracy, significantly higher than zero-shot GPT-4o (85%).
- Human Alignment: Using Cohen’s Kappa, GradeOpt reached scores as high as 0.88, indicating "almost perfect" agreement with human experts.
- Efficiency: The misconfidence sampling strategy proved highly effective, reaching optimal performance faster than random sampling methods.
Conclusion
GradeOpt demonstrates that LLMs can do more than just grade; they can actively participate in the refinement of the grading process itself. By translating "lossy" human rubrics into explicit "if-then" logic, the framework achieves human-level consistency in complex subjects. While the system currently requires a small seed of human-labeled data, it represents a major step toward scalable, high-quality automated assessment in education. Future work will explore applying this framework to even more subjective tasks, such as long-form essay grading.
Summary updated