TL;DR
Modern AI is often "too smart" for its own good—when transcribing handwriting, it tends to automatically fix typos and grammar, which is a nightmare for researchers and teachers who need to see exactly what a student wrote. This paper introduces Escriba-OCR-1B, a compact model that prioritizes "diplomatic transcription" (keeping the messiness intact), outperforming models 200 times its size while running comfortably on a standard CPU.
What Problem Does This Paper Address?
If you’ve ever used a high-end Vision-Language Model (VLM) to transcribe a blurry photo of a grocery list, you’ve likely noticed it "helpfully" corrects your spelling. In the world of paleography and education research, this is called normalization, and it’s a bug, not a feature.
In Brazil, millions of students write handwritten essays for the ENEM (the national university entrance exam). To provide meaningful feedback or study how students learn to write, researchers need a diplomatic transcription: a version that preserves every misspelling, struck-through word, and awkward insertion.
Current state-of-the-art VLMs have such strong "language priors"—they are so well-trained on correct text—that they often "hallucinate" correct spellings over the visual evidence of a mistake. Furthermore, due to privacy laws (like Brazil's LGPD), schools need models that can run locally on modest hardware rather than sending sensitive student data to a proprietary cloud API.
Methods
The authors started with LightOnOCR-3-1B, a small but capable open-weight model consisting of a Pixtral vision encoder and a Qwen3 decoder. They fine-tuned it for just 85 minutes on a single GPU using the BRESSAY dataset.
The "secret sauce" wasn't just the fine-tuning, but the evaluation. They moved beyond the standard Character Error Rate (CER) to create a benchmark that specifically tracks:
- Error Preservation: Did the model keep the student's "caza" instead of changing it to "casa"?
- Edit-Markup Recovery: Can the model correctly identify and transcribe text that was crossed out or squeezed between lines?
- Line Structure: Does the digital version match the physical layout of the page?
To handle the "vocabulary narrowing" that often happens during fine-tuning (where a model forgets words not in its specific training set), they used weight interpolation (WiSE-FT), blending the fine-tuned weights with the base model's weights to maintain a broader linguistic reach.
Datasets
- BRESSAY: The primary dataset, containing 1,000 handwritten Brazilian Portuguese argumentative essays, complete with transcriptions of student errors and edit markups.
- BFL (Brazilian Forensic Letter): Used as an out-of-domain test set to see how the model handles different handwriting styles (like block capitals) and different genres (job applications vs. school essays).
Key Insights and Ideas
- The "Language Prior" Trap: Even when explicitly prompted not to correct errors, massive zero-shot models (like the 235B parameter Qwen3-VL) still replaced 39–78% of non-dictionary words with "correct" ones. They simply can't help themselves.
- Tiny but Mighty: Escriba-OCR-1B (1 billion parameters) achieved a 2.06% CER, crushing the best zero-shot baseline (5.6% CER) despite being a fraction of the size.
- The "Ground Truth" Isn't Always True: A fascinating human review revealed that 45% of the times the model appeared to "correct" a student's mistake, it was actually the human transcriber who had made an error in the original dataset. The model was often more faithful to the image than the ground truth was!
- Efficiency is Key: By quantizing the model to 4 bits, the authors showed it could run on a standard CPU at about one minute per page, making it viable for schools without expensive server racks.
Key Results
- Accuracy: Reached 2.06% CER on the BRESSAY test set, a 2.7x improvement over the best zero-shot baseline.
- Markup Recovery: It successfully recovered 77% of illegible deletions and 67% of insertions, tasks where zero-shot models almost entirely failed.
- Speed: Transcribes a page in 2.3 seconds on an A100 GPU, or roughly 53 seconds on a 4-vCPU cloud machine using the quantized version.
- Benchmarks: Under the ICDAR 2024 competition metrics, it reached 2.1% CER, outperforming the best previously published page-level results.
Limitations and Future Work
Despite its success, Escriba-OCR-1B still normalizes about 60% of likely misspellings. The "language prior" is a persistent beast that is difficult to fully tame.
The authors also noted that the BRESSAY images are relatively clean and well-cropped. Future work is needed to see how the model handles "wild" photos taken by teachers in actual classrooms—complete with shadows, perspective distortion, and messy backgrounds. Finally, expanding the training data to include more genres (like letters or short-answer questions) would help the model handle a wider variety of Portuguese vocabulary.
Summary updated