Escriba-OCR: A 1B Vision-Language Model for Error-Preserving Transcription of Handwritten Portuguese Essays

Tardelli Ronan Coelho StekelarXiv 2026

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.
Figure 1: Escriba-OCR-1B against the 22 open baselines on the 199 BRESSAY test pages. (a) Page CER against model size; MoE models are plotted at their total parameter count. Fine-tuning puts the 1B model far below zero-shot VLMs up to 400 times larger, including its own base model. (b) The features of a diplomatic transcription, one dot per system. The best zero-shot deletion recall (29%) belongs to Gemma 3 4B at 0.5% precision. HTR-Flor reads ground-truth line crops, so its line structure is not shown. Error preservation, the last row, remains the open problem for every system (§8.4).

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

Abstract

Feedback tools and research on learner writing need transcriptions of handwritten essays that keep exactly what the student wrote: misspellings, line breaks, struck-through words and insertions. Vision-language models (VLMs) read handwriting well, but they also tend to rewrite it into correct language. We measure this on BRESSAY, 1,000 handwritten Brazilian Portuguese essays, with a benchmark that adds error preservation, invented errors, edit-markup precision and recall and line structure to the character error rate (CER) and uses paired bootstrap confidence intervals. We restrict the study to open-weight models that schools can run on their own hardware. Of 22 open baselines, the best, Qwen3-VL 235B-A22B, reaches 5.6% CER on the 199 test pages; none reproduces the edit markup reliably, and every VLM replaces 39-78% of the words absent from a Portuguese dictionary with dictionary words. We fine-tune LightOnOCR-3-1B on the 647 training pages in 85 minutes on one GPU. The resulting Escriba-OCR-1B reaches 2.06% CER, 3.5 points below the best baseline (95% CI [-4.2, -2.9]); under the ICDAR 2024 competition metric it reaches 2.1% CER, below the best published page-level results (2.2-2.4%). It recovers 67% of insertions and 77% of illegible deletions, and reproduces the line structure of 97% of the pages, but still normalises 60% of likely misspellings. Three seeds agree within 0.04 CER points, and quantised to 4 bits the model runs on an ordinary CPU at about one minute per page. On 40 letters of another corpus it matches its base model (without that model's appended comments) but misreads unseen words more often; weight interpolation recovers half the gap. A teacher's review finds that 45% of the judgeable apparent corrections are errors in the BRESSAY ground truth, so dictionary-based scores likely understate preservation. We release the model, the benchmark code and the review data.
BibTeX
@misc{stekel2026escriba,
  author = {Tardelli Ronan Coelho Stekel},
  title = {{Escriba-OCR: A 1B Vision-Language Model for Error-Preserving Transcription of Handwritten Portuguese Essays}},
  year = {2026},
  eprint = {2611.29874},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29874},
}
Figure