Synonym Expansion Catches More Paraphrased Correct Answers in Keyword-Based Grading — But Also More Wrong Ones
This synonym expansion short answer grading experiment tests whether expanding tokens to WordNet synonyms actually fixes the paraphrase problem in automated grading — and what it costs in false positives.
Automated short-answer grading (ASAG) systems have used token-overlap scoring — matching words or n-grams between a student’s answer and a reference answer — as a baseline since at least the Mohler-era ASAG literature. A standard fix proposed for that baseline’s best-known weakness, failing on correct answers that use different words than the reference, is to expand each token to its synonyms (classically via WordNet) before computing overlap. I built a small synthetic grading set with paraphrased-but-correct answers and lexically-similar-but-wrong answers, and tested whether synonym expansion actually fixes the paraphrase problem — and what it costs when it does.
Concept
The baseline method in question is simple: tokenize the reference answer and the student’s answer, then score similarity as the overlap between the two token sets (a Jaccard ratio, or an n-gram/keyword match count in the older ASAG literature). A student is credited as correct once that overlap crosses some threshold. The known failure mode is that two answers can mean the same thing while sharing almost no words — “RAM holds data temporarily while the computer runs” and “random access memory keeps information only while the machine is powered on” overlap on very little beyond function words.
A related failure mode shows up in a completely different task: benchmark-contamination detection, where testing how much paraphrasing it takes to hide a leaked benchmark question from n-gram dedup showed the same surface-form-matching blind spot — rewording defeats token-level matching by design, whether the matching is trying to catch plagiarism, deduplicate benchmarks, or grade an answer. Grading rubrics inherit that exact vulnerability, and synonym expansion is the classic proposed patch: before scoring overlap, expand each token to a set of words considered interchangeable with it.
Hypothesis (falsifiable): expanding tokens to synonyms before computing Jaccard overlap will increase the overlap score — and therefore the credit given — for paraphrased-but-correct answers, relative to plain token overlap. The second, more interesting question is whether that same expansion also inflates the score given to answers that are wrong but happen to share vocabulary with the reference. If synonym expansion raises both groups’ scores by a similar amount, it isn’t actually discriminating paraphrase from error — it’s just inflating everything.
Experiment
I built ten short-answer questions spanning intro CS, stats/ML, and intro science (the kind of material a Python course, a biology course, or an “intro to ML” course would use for short-answer checks). Each question has one reference answer, three correct paraphrases written with substantially different wording, and two incorrect distractors written to deliberately share vocabulary with the reference while stating something false (e.g. “RAM stores data permanently even after the computer is turned off” — same topic words, opposite claim). That gives 30 correct-paraphrase examples and 20 incorrect examples, 50 total.
Two scoring functions, both using Python’s built-in set operations, nothing beyond the standard library:
- Lexical Jaccard: tokenize both answers (lowercase, strip punctuation, drop a short stopword list), then
|A ∩ B| / |A ∪ B|on the raw token sets. - Synonym-expanded Jaccard: the same Jaccard computation, but each token set is first expanded with a hand-built synonym lexicon (~60 entries covering this question set’s vocabulary — things like
increase↔rise↔grow,store↔hold↔save,cause↔leads↔triggers) before the intersection/union is taken.
I originally planned to use NLTK’s WordNet corpus for the synonym step, which is the standard choice in the ASAG literature. This sandbox’s network proxy blocks NLTK’s downloader on SSRF-safety grounds, so I substituted a small, fully inspectable hand-built synonym map instead — a real limitation, flagged below, but one that keeps the experiment 100% offline and reproducible.
def jaccard(set_a, set_b):
if not set_a or not set_b:
return 0.0
return len(set_a & set_b) / len(set_a | set_b)
def expand(tokens):
expanded = set(tokens)
for t in tokens:
if t in SYNONYMS:
expanded |= SYNONYMS[t]
return expanded
score_lexical = lambda ref, ans: jaccard(set(tokenize(ref)), set(tokenize(ans)))
score_expanded = lambda ref, ans: jaccard(expand(tokenize(ref)), expand(tokenize(ans)))
For each of the 50 (reference, answer) pairs I computed both scores, applied a credit threshold of 0.3 (a middle-of-the-road choice for Jaccard-style ASAG baselines), and then swept the threshold from 0.15 to 0.5 to check whether the result was an artifact of that one cutoff. The whole script runs in under 40 milliseconds — no model downloads, no external calls.
Results
Mean overlap score on the 30 correct paraphrases: lexical Jaccard 0.210, synonym-expanded 0.252. Mean overlap score on the 20 incorrect distractors: lexical Jaccard 0.141, synonym-expanded 0.182. Synonym expansion raised the score for both groups — the question is whether it raised the correct group’s scores by enough, relative to the incorrect group, to be worth it.
At a 0.3 credit threshold, directly:
| Metric | Lexical Jaccard | Synonym-expanded |
|---|---|---|
| Recall on correct paraphrases | 16.7% (5/30) | 33.3% (10/30) |
| False-positive rate on incorrect answers | 10.0% (2/20) | 20.0% (4/20) |
Synonym expansion doubled recall on correct paraphrases (16.7% → 33.3%) — but it also doubled the false-positive rate on wrong answers (10.0% → 20.0%). Sweeping the threshold shows this isn’t specific to 0.3:
| Threshold | Lexical recall | Lexical FPR | Expanded recall | Expanded FPR |
|---|---|---|---|---|
| 0.15 | 73% | 35% | 80% | 60% |
| 0.20 | 60% | 25% | 73% | 45% |
| 0.25 | 33% | 15% | 53% | 30% |
| 0.30 | 17% | 10% | 33% | 20% |
| 0.35 | 7% | 5% | 20% | 5% |
| 0.40 | 3% | 0% | 7% | 0% |
At every threshold from 0.15 to 0.30, synonym expansion’s recall gain is accompanied by a roughly proportional (in two cases larger) false-positive gain. The one point where expansion looks unambiguously better is threshold 0.35, where it nearly triples recall (7%→20%) while FPR stays flat at 5% — but that single favorable row sits on only 1-2 raw examples out of 50, which is a sample size too small to generalize from. Both methods are also, honestly, bad absolute graders here: at a 0.3 threshold neither credits even half of the genuinely correct paraphrases, because free-text Jaccard overlap on short answers (10-20 words) produces low absolute scores even between a correct paraphrase and its reference — a point the literature cited below makes explicitly.
Explanation
These results line up with what the ASAG literature already reports about plain keyword/overlap matching. The classic Automatic Short-Answer Grading System (ASAGS) paper found that exact-surface-form word matching alone correlated only 0.46 with human grades on its benchmark data, and that adding stemming plus heuristic rules including WordNet synonym matching raised that correlation to 0.59 — a real improvement, but one the same paper’s conclusion still flags synonym handling as unresolved. It also reports that a plain keyword/n-gram baseline scored as low as 0.07, and even -0.05, correlation with human grades on two of its test datasets, i.e., barely better than chance or actively misleading on some question types — consistent with how poorly both of my Jaccard variants perform in absolute terms at a 0.3 threshold.
The broader trajectory of the field backs the idea that synonym-level fixes are a partial, not a complete, answer. A 2022 survey of deep-learning ASAG methods, “Survey on Automated Short Answer Grading with Deep Learning: from Word Embeddings to Transformers,” reports that the strongest systems combine hand-engineered features (the category token-overlap and synonym expansion both belong to) with learned representations — neither alone being the best performer. That matches what I found at the toy scale here: synonym expansion is a genuine improvement over raw tokens on the metric that matters (catching true paraphrases), but it doesn’t close the gap to a real semantic grader, and it buys that improvement by also crediting more wrong answers.
That trade-off is also the live concern in the current push toward LLM-based grading. A 2025 cross-disciplinary survey of LLM auto-grading, “Advances in Auto-Grading with Large Language Models,” names “inconsistencies and the need for human oversight” as an open challenge across the educational-assessment, essay-grading, and STEM-grading sub-fields it reviews — i.e., the field hasn’t solved the recall/false-positive trade-off by switching methods, it has just moved it to a harder-to-audit place. Keyword overlap has the virtue that its 20% false-positive rate is at least visible and explainable per-answer; an LLM grader’s errors are not inherently more reliable, just less legible by default.
What This Result Does Not Prove
- The dataset is 10 hand-written questions and 50 hand-written answers from one author — it is not drawn from real student responses, and the specific 16.7%/33.3%/10%/20% figures will not transfer to any real course’s answer distribution.
- The synonym lexicon covers roughly 60 terms chosen to fit these specific questions, not a general-purpose resource like WordNet — a full WordNet expansion (which the sandbox’s network policy blocked here) would likely raise both recall and false positives further, and by different relative amounts than this hand-built lexicon does.
- Only two scoring methods were tested. TF-IDF-weighted overlap, sentence-embedding cosine similarity, and LLM-based grading were not run here and are exactly the methods the cited literature treats as the real alternative to overlap-based scoring — this experiment says nothing about how they’d perform on the same data.
- The incorrect distractors were deliberately authored to share vocabulary with the reference answer while being wrong; real student mistakes may be lexically closer to or further from the reference than these distractors are, which would shift the false-positive numbers in either direction.
- A single fixed threshold per method was swept across a small range (0.15-0.5); a production system would calibrate per-question or per-answer-length rather than using one global cutoff, which could change which method looks better in practice.
Resources
- Automatic Short-Answer Grading System (ASAGS) — the source for the 0.46/0.59 correlation figures on exact-match vs. stemmed+synonym matching.
- Survey on Automated Short Answer Grading with Deep Learning: from Word Embeddings to Transformers (2022) — on why hand-engineered overlap features and learned representations perform best combined, not separately.
- Advances in Auto-Grading with Large Language Models: A Cross-Disciplinary Survey (2025) — on consistency and oversight challenges in the LLM-grading approaches meant to replace overlap scoring.
- NLTK WordNet interface docs — the standard tool for synonym expansion in ASAG research; substituted here with a hand-built lexicon due to this sandbox’s network policy.
- Sentence-Transformers documentation — the practical starting point for an actual embedding-based semantic similarity score, the natural next experiment this one points to.
Related Reading
- When N-gram Dedup Fails: How Much Paraphrasing Hides a Benchmark Leak — the same surface-form-matching blind spot, tested in benchmark-contamination detection instead of grading.
- How Much Does Chunk Size Really Affect RAG Retrieval? A Reproducible Experiment — another parameter sweep that surfaces a recall/precision-style trade-off as a single setting changes.
- Getting Started with Statistics for Machine Learning: What You Actually Need to Know — background on the recall and false-positive-rate concepts used throughout this experiment.
