Objective

Many schools and universities want computers to grade short written answers, because grading by hand takes a great deal of time. Automatic short answer grading means a program reads a student's answer, which may be a phrase or a few sentences, and decides whether it is correct. Newer programs use language models such as BERT and T5. These models first learn language patterns from very large amounts of text and are then trained on answers that people have already graded. On some datasets, they now come close to human graders.

The worry is that such models can lean on shallow patterns that have little to do with whether an answer is right. A student who learns those patterns could earn points without knowing the material. The authors also note that the same patterns could treat some students unfairly, for example students with language difficulties who use fewer descriptive words.

The researchers asked one main question: how vulnerable are neural automatic short answer grading models to an attack that inserts adjectives and adverbs (descriptive words such as "completely" or "entire") into wrong answers? They also wanted to find out:

  • why the models were fooled,
  • whether human graders would notice the changes or suspect cheating, and
  • how schools could use automatic grading more safely.

Methods

This was a computer experiment on grading models, followed by a small rating survey with human graders. A study like this can show that a weakness exists in a lab setting. It cannot show how many real students would try it or how well they would succeed.

The attack

The attack assumes a student cannot see inside the grading model and only sees whether answers are marked correct or not, as happens when students submit practice answers during a semester. The researchers took the 100 most frequent adjectives and adverbs from the Brown Corpus, a collection of English texts already labeled by word type. They removed common function words and meaning-reversing words such as "not". They then tried inserting each word before every noun, pronoun and verb in a wrong answer, and kept the insertions that made the model call the answer correct.

Models and data

The team trained base-sized BERT and T5 models for 8 epochs (passes through the training data), using 10% of the training data for validation. They tested four datasets:

  • SciEntsBank, science answers from primary and middle school classes in the USA, labeled correct, incorrect or contradictory, with three test sets (unseen answers, unseen questions, unseen domains);
  • RTE and MNLI, which test whether one sentence follows from another;
  • MRPC, which tests whether two sentences mean the same thing.

Only wrong answers that the model had already marked wrong were attacked. The attack was compared with TextFooler, an existing method that needs more information about the model than students would have.

Human rating survey

Seven experienced graders took part in an online survey. All had university degrees and graded short answers for university courses, mainly in computer science. They came from India, Iran, Syria, Slovenia and Germany, and none were native English speakers. Four were randomly placed in a control group and three in the experimental group. Each rated 30 answers on 5-point scales for naturalness, correctness and suspiciousness. The control group saw original answers and the experimental group saw the altered versions. Graders who gave a suspiciousness score of at least 4 were asked if they would act on it. The study was voluntary, anonymous and took 53.14 minutes on average. The results were analyzed with rank-based statistical tests.

Key Findings

Across models and datasets, the word-insertion attack made the grading models mark many wrong answers as correct, and the human graders did not become more suspicious of the altered answers.

How well the attack worked

  • The attack lowered model accuracy by 8 to 22 percentage points across all models and datasets. The size of the drop stayed fairly steady even when a model's starting accuracy differed from dataset to dataset.
  • Compared with TextFooler, the new attack lowered accuracy by an extra 0.4 to 3.8 percentage points on the SciEntsBank test sets. TextFooler did better on the other datasets, by 2.9 to 8.1 points. The authors conclude that which attack is stronger depends on the dataset.
  • TextFooler ran faster, because it uses the model's confidence scores to pick words. Students would not normally see those scores.
  • T5, the newer model, was hit equally hard or harder than BERT. The authors read this as a sign that some of T5's better performance rests on unreliable statistical patterns.

Why the models were fooled

  • In the SciEntsBank training data, 2,008 answers were correct and 2,462 were incorrect. Correct answers were slightly longer (13.4 words against 11.7) and used more adjectives (1.1 against 0.8) and adverbs (0.6 against 0.5) on average.
  • The words that fooled the models were usually either much more common in correct answers or barely present in the training data. Some rare ones were close in meaning to common ones, such as "complete" and "entire". Only one top word, "better", appeared more in incorrect answers (15 times against 4).
  • The models were less sure of answers that later got fooled. Most untouched wrong answers received a confidence of 0.8 to 1, while most soon-to-be-fooled answers received 0.45 to 0.65.

What the human graders thought

  • Correctness: The altered answers were not rated as more correct than the originals. So the attack fooled the model, not the people.
  • Naturalness: The altered answers were rated as less natural, a statistically meaningful difference of moderate size.
  • Suspicion: Graders did not find the altered answers more suspicious. Graders said they would act on a suspicion 14 times out of 120 ratings for original answers, and 5 times out of 90 for altered ones.
  • Agreement: Graders often disagreed. Agreement on suspicion was very low (0.13). It was 0.51 for correctness in the control group and 0.55 in the experimental group.
  • In the control group, graders who found an answer less natural or less correct also tended to find it more suspicious. One grader noted it is hard to tell bad English from unnatural text.

Implications

For teachers and instructors

The authors recommend keeping people in the grading loop. A human can double-check answers where the model is unsure, and can run spot checks. Also, graders need training on what cheating against automatic graders might look like. In this study, graders without that knowledge tended to suspect answers that were poorly written or wrong, which could unfairly point at weaker students or students with limited English.

For school and university leaders

Before buying or using an off-the-shelf grading model, the authors advise looking at the data it was trained on, because patterns in that data can become unreliable shortcuts. They also suggest limiting how many times students can send answers to the model for feedback, since repeated tries make it easier to find weak spots. They point out a trade-off: explaining the model's decisions helps students learn, but it may also reveal weaknesses.

For developers and researchers

The authors suggest using attacks like this one during training to find and reduce unreliable patterns, although they note that this can lower accuracy on normal answers. They also point to the model's confidence score as a warning sign: many fooled answers had low confidence and could be sent to a human.

A sensible reading

This study tested a lab attack on benchmark datasets. It does not show that students are doing this today, so schools should treat it as a reason for caution and checking, not for dropping automatic grading. The paper does not offer evidence on which defense works best.

Limitations

The authors say the human rating test was too small to find small effects. In particular, a larger study would be needed to rule out that the altered answers are slightly more suspicious. Only seven graders took part, and the graders each rated just 30 answers.

All graders worked at universities and came from engineering fields. They were not native English speakers and came from several countries, which may have affected how they judged naturalness. The authors suggest that American school teachers might be better at telling manipulated answers from poorly written ones. Agreement among graders was low on several questions, so those ratings are noisy.

The authors also tested only one kind of attack, on BERT and T5 models. They cannot rule out that other kinds of grading models would be less sensitive. They found the attack suited to subjects where facts matter, and perhaps unsuited to language learning, where wording is what is being judged.

The paper does not mention, but the altered answers in the human test came only from successful attacks on one model, T5, and from the shortest answers that did not refer to graphs or tables, so they may not represent typical attempts. The paper does not mention, but the graders knew some answers might be manipulated, which could make them more alert than a real grader would be. The paper does not mention, but the attack was run by computer, and no real students tried it.

Future Directions

The authors list several next steps:

  • How well do other attack strategies work against grading models?
  • Can attacks like this one be used during training to help grading models stand up better to problems, and how useful and safe are such models in real classrooms?
  • What happens to answers that a student would have gotten right anyway, when adversarial words are added?
  • How do grading models handle harmless differences, such as common typos or longer and shorter answers?
  • Do grading models built in other ways, especially older ones based on hand-built features, react differently? The authors expect those would need attacks designed for them.
  • Would a larger human study, with more graders and more sessions, confirm the results on suspicion?
  • Would graders from other fields and institutions, for example American school teachers, judge the altered answers differently?

The bottom line: In this lab study, adding common adjectives and adverbs to wrong answers made two widely used language models mark many of them correct, and their accuracy dropped by 8 to 22 percentage points. A small group of seven university graders found the altered answers less natural but not more suspicious, so a cheating student might not be caught by a human glance alone. The human test was small and the attack was run by computer, not by real students. The sensible takeaway is to keep humans involved, check low-confidence grades, train graders on what to look for, and examine the training data of any grading tool.