TL;DR
When asked to transcribe handwritten math, vision-language models (VLMs) don’t just read the ink—they secretly do the math and "autocorrect" wrong answers. Using a new benchmark called DiploMat, the authors prove that VLMs override clear visual evidence with their internal arithmetic priors, turning student mistakes into silent false passes during automated grading.
What Problem Does This Paper Address?
Imagine a student writes $37 \times 9 = 533$ on an exam. If you use a VLM to transcribe the page for grading, you want a faithful reading of what the student actually wrote. Instead, VLMs frequently transcribe this as $37 \times 9 = 333$, silently fixing the error and hiding the mistake the grader needs to catch.
Humans and AI alike use context to read messy handwriting—if a squiggle could be a 3 or a 5, knowing the math helps read correct documents accurately. However, previous studies that noticed VLMs over-correcting errors couldn't untangle two things: Is the VLM genuinely overriding what it sees using math knowledge, or is it just making random visual misreadings that happen to land on the right answer? Furthermore, is the model misperceiving the ink early on, or overriding it later while generating the text?
Methods
To separate visual confusion from mathematical meddling, the authors introduce a statistical protocol comparing observed repairs ($O$)—where a false equation is transcribed as its true counterpart—against an expected "confusion null" ($E$).
Rather than assuming all digits are equally easy to read, $E$ is tailored to each specific VLM's quirks. By watching how often a model confuses specific digits in neutral contexts (like true equations, digits-only views, or expressions where the $+$, $-$, or $\times$ is replaced by a meaningless handwritten triangle), the authors calculate the exact probability that independent visual noise would accidentally fix the equation. Their core metric is the ratio $O/E$: a model meets the criterion for arithmetic bias if the 95% confidence lower bound of $O/E$ exceeds 2 (meaning repairs happen more than twice as often as visual confusion predicts).
They also run a same-glyph test, placing the exact same pixel crop of a digit into different equations to see if changing the surrounding math alters how those identical pixels are read.
Finally, they peek inside the models using a logit lens (projecting hidden layer states to vocabulary probabilities) and attention knockouts (blocking generated tokens after the $=$ sign from attending to the operand tokens) to pinpoint where and how the override happens.
Datasets
- DiploMat (Newly Introduced): Built by recombining real recorded pen strokes and segmented symbols from the CROHME (2016, 2019, and 2023) handwritten math competitions. Because equations are synthesized from one writer's known strokes, the ground-truth intended digits are known by construction. It includes hundreds of false/true equation pairs across distinct "design" and held-out "test" writers.
- CROHME 2019 Training Set: Disjoint writer ink used to test LoRA fine-tuning remedies.
- FERMAT: Existing dataset of photographed handwritten solutions containing deliberate errors, used for supplementary real-world checks.
Key Insights and Ideas
- It’s an override, not bad eyesight: When asked only for the target digit, VLMs read the pixels faithfully. When asked to transcribe the whole equation, they repair that exact same glyph—even when asked for the single digit and the full equation consecutively in the same reply!
- It requires visual ambiguity, not just text habits: If you feed the exact same false equations to VLMs as typed LaTeX and ask them to copy them, repairs drop below 0.7%. The language prior only hijacks the output when reading an image.
- The override happens late: Using the logit lens and attention knockouts, the authors show that the model's late layers actively look back at the written operands to override the visual digit while writing out the equation.
- The accuracy-faithfulness trap: Every remedy tested—prompting the VLM to copy errors, cropping symbols to remove context, attention knockouts, and LoRA fine-tuning—either fails to stop the repairs or severely tanks transcription accuracy on true equations (by stripping away helpful context for genuinely messy ink).
Key Results
- Confirmatory Held-Out Test: 9 out of 10 open VLMs (4B to 38B parameters, including Qwen, Gemma, Mistral, InternVL, LLaVA, and Molmo families) met the repair criterion, with $O/E$ ratios ranging from 6.6 to 19.5 (only GLM-4.6V-Flash did not).
- Plain Repair Rates: On clean renderings, repairs occurred in 1.0% to 10.4% of false equation readings—silent grading failures that specialized non-LLM OCR recognizers almost never make (only 3 repairs in 1,600 readings).
- Commercial Models: GPT-6 Luna ($O/E = 7.69$) and Claude Opus 5.5 ($O/E = 6.84$, post hoc) both exhibited significant repair, whereas GPT-6.1 Sol misread digits too rarely for the statistical test to have enough power.
- Same-Glyph Context Effect: 10 of 10 VLMs changed their reading of pixel-identical glyphs depending on the surrounding arithmetic, shifting outputs by 2.1 to 29.1 percentage points. Blocking attention to the operands reduced exact repairs in free transcription (e.g., dropping from 29.7% to 7.0%).
Limitations and Future Work
The authors note that DiploMat uses clean, regular renderings of single-operation equations, meaning these exact repair rates aren't direct plug-and-play numbers for messy, real-world classroom grading (in fact, under simulated scan degradation, only 7 of 10 VLMs met the strict statistical criterion, falling short of their pre-registered rule of 8). Furthermore, their human baseline was small (two authors reading 60 false equations), and real student exam pages remain untested under a calibrated confusion null. Finally, while attention knockouts prove that generated tokens attend to the operands during an override, the exact mechanism of how operands are initially read from the image remains an open question—as does finding a remedy that stops VLMs from playing mathematician without making them worse readers.
Summary updated