arXiv:2610.41215cs.CLOct 2026

Manuscript Offprint

arXiv:2610.41215

Beyond Response Scoring: An AI-aware Cognitive Supervision Framework for Automated Mathematical Short Answer Grading

Shengran Guo, Min Chi, Feifei Qiao, Varad Patwardhan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Transformer-based language models have achieved remarkable success in automated short answer grading (ASAG). However, current methods in ASAG struggle to comprehend, reason about and evaluate complex mathematical answers involving symbols and formulas. These score-only methods fail to generalize across diverse responses and skill states associated with identical scores. Moreover, they ignore the potential upward bias introduced by generative Artificial Intelligence (AI) usage in assessing students' performance and knowledge mastery. To address these limitations, we propose AICG (AI-aware Cognitive-supervised Grading), a two-branch multi-task framework. The first branch combines RoBERTa-based regression, ordinal, and classification heads for individual-answer grading. The second branch uses an expert-designed Q-matrix to associate responses with assessed skills and jointly predicts G-DINA-derived skill mastery and learning gain. Through the shared encoder, these skill-level targets provide cognitive supervision for answer grading beyond score labels. AICG further uses a Gen-AI detector, trained through supervised contrastive pretraining followed by linear classification, to estimate assistance probabilities and convert them into reliability weights, attenuating unreliable cognitive evidence during learning assessment. We conduct experiments on 49,402 instructor-graded responses spanning 19 academic semesters. Relative to RoBERTa regression, AICG reduces mean absolute error (MAE) by 50.3% and improves quadratic weighted kappa (QWK) from 0.798 to 0.927. Ablations identify Q-matrix-guided cognitive supervision as the primary source of improvement, while AI-aware weighting further reduces overall MAE by 4.2% over the unweighted cognitive model and consistently improves MAE and QWK across the four most recent post-Gen-AI semesters.

Introduction

Automated grading of mathematical short answers sits at the intersection of natural language understanding, symbolic reasoning, and cognitive assessment: responses interleave prose and derivations, while partial credit depends on demonstrated reasoning rather than only the final answer. With generative AI, the same fluent, high-scoring response may reflect genuine mastery or a borrowed solution, increasing the importance of accurate and reliable grading. Existing work approaches this problem from two complementary directions: individual-answer grading, which maps each response to a score, and Q-matrix-based skill modeling, which grounds assessment in an explicit cognitive structure. Both have made substantial progress, but neither addresses their complementary limitations or the reliability threat introduced by generative AI.

Individual-answer grading. In automated short-answer grading (ASAG), pretrained language models and LLMs encode response semantics with substantially less manual feature engineering (Burrows, Gurevych, and Stein 2015; Latif and Zhai 2024; Ferreira Mello et al. 2025; Chu et al. 2025). However, mathematical responses interleave natural-language explanations, symbolic formulas, and incomplete derivations, while partial credit may depend on multiple reasoning principles. Current language models remain unreliable in domain-specific symbolic and compositional reasoning (Latif and Zhai 2024; Jiang and Bosch 2024; Ferreira Mello et al. 2025) and may misinterpret valid intermediate or mathematically equivalent work. More fundamentally, supervision is compressed into a scalar label: identical scores can represent different reasoning and skill states, limiting generalization to unseen solution patterns. Figure 1 illustrates this difficulty: the student correctly applies conditional independence twice but stops before Bayes' rule; the score of 0.60 records the earned credit but not the underlying reasoning pattern.

Q-matrix-based skill modeling. A complementary perspective explicitly represents the cognitive structure of assessment. A Q-matrix associates items with skills, while cognitive-diagnosis models such as G-DINA infer mastery from response patterns (de la Torre 2011). Student and question representations complement answer features (Zhang, Lin, and Chi 2020), and neural cognitive-diagnosis models demonstrate the value of explicit skill structure (Wang et al. 2020; Liu et al. 2024; Qian et al. 2024; Gu et al. 2025). Figure 1 illustrates this value: the missing Bayes step indicates weak Bayesian reasoning, while the Q-matrix links this evidence across items assessing the same skill. However, these models rely on binary item-response records and leave the semantic evidence in free-text solutions unused. Generative AI further complicates assessment because an assisted answer may earn its assigned grade while overstating independent mastery. Although recent detectors identify machine-generated text (Hans et al. 2024; Bao et al. 2024), hard filtering remains vulnerable to rewriting and distribution shift and may disproportionately affect non-native writ-

Question. Given p(O)=0.5p(O)=0.5, suppose AA and BB are conditionally independent given OO and Oˉ\bar{O}. Let p(A∣O)=p(Aˉ∣Oˉ)=0.8p(A \mid O) = p(\bar{A} \mid \bar{O}) = 0.8, p(B∣O)=0.75p(B \mid O) = 0.75, and p(B∣Oˉ)=0.5p(B \mid \bar{O}) = 0.5. Determine p(O∣A∩B)p(O \mid A \cap B). Reference AnswerPrinciple/WeightDefinition of Conditional Independent Events (0.3)p(A∩B∣O)=p(A∣O)∗p(B∣O)=0.8∗0.75=0.6p(A \cap B \mid O) = p(A \mid O) * p(B \mid O) = 0.8 * 0.75 = 0.6.Definition of Conditional Independent Events (0.3)p(A∩B∣∼O)=p(A∣∼O)∗P(B∣∼O)=(1−0.8)∗0.5=0.10p(A \cap B \mid \sim O) = p(A \mid \sim O) * P(B \mid \sim O) = (1 - 0.8) * 0.5 = 0.10.Bayes's Rule (0.4)p(O∣A∩B)=p(A∩B∣O)∗p(O)p(A∩B∣O)∗p(O)+p(A∩B∣∼O)∗p(∼O)=0.6∗0.5/(0.6∗0.5+0.1∗0.5)=0.857143p(O \mid A \cap B) = \frac{p(A \cap B \mid O) * p(O)}{p(A \cap B \mid O) * p(O) + p(A \cap B \mid \sim O) * p(\sim O)} = 0.6 * 0.5 / (0.6 * 0.5 + 0.1 * 0.5) = 0.857143. Student AnswerTotal score: 0.60Definition of Conditional Independent Events: 1conditionally independent events: p(A∩B∣O)=p(A∣O)∗p(B∣O)p(A \cap B \mid O) = p(A \mid O) * p(B \mid O)--> p(A∩B∣O)=0.8∗0.75=0.6p(A \cap B \mid O) = 0.8 * 0.75 = 0.6Definition of Conditional Independent Events: 1p(A∩B∣∼O)=p(A∣∼O)∗p(B∣∼O)⇢0.2∗0.5=0.1p(A \cap B \mid \sim O) = p(A \mid \sim O) * p(B \mid \sim O) \dashrightarrow 0.2 * 0.5 = 0.1Bayes's Rule: 0I don't know how to do the restWeighted score: 0.3(1)+0.3(1)+0.4(0)=0.600.3(1) + 0.3(1) + 0.4(0) = 0.60.

Figure 1: Alignment between weighted reference principles and partial-credit evidence. Blue, green, and red boxes denote reference steps, demonstrated principles, and the missing application of Bayes's rule, respectively.

ers (Sadasivan et al. 2025; Liang et al. 2023), making binary removal unsuitable.

We propose AICG (AI-aware Cognitive-supervised Grading), a two-branch multi-task framework. The first branch applies regression, ordinal, and classification heads to a shared RoBERTa representation (Liu et al. 2019), capturing complementary continuous, ordered, and categorical grading signals. The second branch uses the Q-matrix to aggregate skill-relevant responses and predicts G-DINA-derived pretest mastery, posttest mastery, and learning gain. Joint optimization transfers this cognitive supervision to the shared response encoder without feeding predicted grades into the cognitive branch. AICG further trains a Gen-AI detector through supervised contrastive pretraining (Khosla et al. 2020) followed by linear classification. The estimated assistance probabilities are converted into soft reliability weights applied only to cognitive evidence, preserving the grading treatment of each response. Our contributions are threefold:

  • AICG is the first Transformer-based ASAG framework to jointly optimize answer grading with Q-matrix-aligned mastery and learning-gain supervision.

  • We introduce AI-aware reliability weighting that attenuates potentially assisted cognitive evidence without discarding responses or altering their grades.

  • AICG outperforms five strong baselines in a ten-year expanding-window evaluation while maintaining robust cross-semester generalization.

References (37)