NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Auditing an Automatic Grading Model with deep Reinforcement Learning

Aubrey Condor, Zachary A. Pardos

Introduction

Automatic Short Answer Grading (ASAG) systems are increasingly integrated into educational platforms to provide immediate feedback and reduce the grading burden on educators. These models, often based on transformer architectures like BERT, are typically validated using metrics such as Quadratic Weighted Kappa (QWK) to measure agreement with human graders. However, high agreement scores can mask significant underlying flaws. A model might achieve high accuracy by identifying superficial patterns—such as the presence of specific keywords—rather than demonstrating a true understanding of conceptual correctness.

This research, conducted by scholars at UC Berkeley, introduces a novel auditing framework using deep reinforcement learning (RL) to "stress-test" ASAG models. By treating the grading system as an environment to be exploited, the researchers reveal critical vulnerabilities that standard evaluation metrics fail to capture.

Methodology: The RL Auditor

The auditing process is framed as a game where a Reinforcement Learning agent attempts to maximize the score of a student's response through minimal textual modifications.

The Target and the Agent

The target of the audit is a state-of-the-art ASAG model built on BERT-base, trained as a multi-class classifier to grade science responses on a 1-to-5 scale. To probe this model, the researchers deployed a Proximal Policy Optimization (PPO) agent.

The agent’s "state" is the current text of a student's response. Its "actions" include:

  1. Appending specific phrases to the beginning or end of the text.
  2. Deleting approximately 20% of the existing text.

To ensure the agent finds the most efficient path to a high grade, the reward function incentivizes score increases while penalizing the number of revisions made.

Experimental Conditions

The researchers conducted three experiments by varying the "vocabulary" available to the RL agent:

  • Helpful Phrases: Ten phrases containing correct scientific concepts derived from the grading rubric.
  • Unhelpful Phrases: Ten phrases that used relevant terminology but were scientifically inaccurate or irrelevant.
  • Mixed: A combination of both helpful and unhelpful phrases.

Data and Context

The study utilized a dataset of 1,313 open-ended science responses from middle school students. The curriculum focused on the physics of sound waves—specifically, how the pitch of a sound changes when tapping glasses containing different levels of water. These responses were originally evaluated by subject matter experts (SMEs) using a Knowledge Integration (KI) rubric, providing a ground-truth baseline for the BERT model's initial training.

Key Insights: Exploiting the "Black Box"

The RL audit uncovered two primary types of vulnerabilities in the BERT-based grader:

1. The Keyword Stuffing Vulnerability

In the "Helpful" experiment, the agent discovered that it could consistently achieve a top score by simply repeating a correct phrase multiple times. For instance, adding the phrase "[water has more mass]" four times in succession was often sufficient to trigger a high grade. This indicates that the BERT model was over-relying on token frequency rather than evaluating the logical or linguistic structure of the response.

2. The Misconception Trap

Perhaps more concerning were the results of the "Unhelpful" experiment. The RL agent found that the phrase "sound is more dense"—a common student misconception—was highly effective at boosting scores. Because the phrase contains "academic-sounding" words like "sound" and "dense," the model interpreted it as a sign of high-level understanding, despite the statement being scientifically flawed.

Results and Statistical Performance

Despite these vulnerabilities, the BERT model initially appeared robust, with a Quadratic Weighted Kappa of 0.7919. In a traditional deployment scenario, this score would suggest a high-performing model ready for classroom use. However, the RL agent's performance told a different story:

  • Efficiency: In Experiment 1, the agent reached maximum scores in an average of only 3.4 actions.
  • Repetition: In 26% of top-performing sequences in the "Helpful" set, the agent relied on repeating the same phrase.
  • Exploitation of Errors: In the "Unhelpful" set, the agent successfully manipulated the model in 86.6% of cases by repeatedly using the "sound is more dense" misconception.
  • Preference: In the "Mixed" experiment, while the agent preferred helpful phrases (90% of actions), it still utilized unhelpful phrases 10% of the time to "top off" a score to the maximum level.

Conclusion and Future Directions

The findings demonstrate that high agreement with human graders does not guarantee a model’s conceptual integrity. The BERT-based grader proved susceptible to adversarial-style manipulation, rewarding "keyword stuffing" and scientific misconceptions.

The authors suggest that this RL-based auditing framework should be a standard part of the ASAG development pipeline. By identifying these "blind spots," developers can engage in adversarial retraining—incorporating these manipulated, nonsensical examples into the training set with low scores to "patch" the model. This iterative process promises to create more robust, fair, and pedagogically sound automated grading systems for the future of education.

Summary updated

BibTeX
@inproceedings{condor2024auditing,
  author = {Aubrey Condor and Zachary A. Pardos},
  title = {{Auditing an Automatic Grading Model with deep Reinforcement Learning}},
  booktitle = {EDM},
  year = {2024},
}
Figure