Escriba-OCR: A 1B Vision-Language Model for Error-Preserving Transcription of Handwritten Portuguese Essays
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.
Community
Escriba-OCR-1B is a 1B-parameter OCR model that transcribes handwritten Brazilian Portuguese essays exactly as the student wrote them: misspellings, line breaks, struck-through words and insertions included. Feedback tools and research on learner writing need that, but vision-language models tend to rewrite the text into correct Portuguese.
- Benchmark. 22 open baselines (0.8B to 400B parameters) on the 199 BRESSAY test pages, scored on CER plus error preservation, invented errors, edit-markup precision and recall, and line structure, with paired bootstrap confidence intervals. Every VLM replaces 39–78% of the words that are not in a Portuguese dictionary with dictionary words.
- Model. LightOnOCR-3-1B fine-tuned on 647 pages in 85 minutes on one GPU: 2.06% CER against 5.60% for the best baseline, Qwen3-VL 235B-A22B (95% CI of the difference [−4.2, −2.9]). It recovers 77% of illegible deletions and 67% of insertions, and gets the line structure right on 97% of the pages.
- Runs at school. Quantised to 4 bits, it transcribes a page in about a minute on an ordinary CPU, so the essays never leave the school's computers.
- Limits. It still normalises 60% of likely misspellings, and on 40 letters from another corpus it misreads words it never saw in training more often than its base model. A teacher's review finds that 45% of the judgeable apparent corrections are errors in the BRESSAY ground truth.
Model: https://huggingface.co/tardellirs/Escriba-OCR-1B · CPU (GGUF): https://huggingface.co/tardellirs/Escriba-OCR-1B-GGUF · Demo: https://huggingface.co/spaces/tardellirs/Escriba-OCR-Demo · Code and benchmark: https://github.com/tardellirs/escriba-ocr
The same failure shows up in finance and admin forms, with higher stakes: a VLM that "corrects" a handwritten name, account number or amount produces a clean-looking value that's simply wrong. Did you see invented corrections concentrate on particular token types, such as names versus common words, or digits versus letters? That would help predict where silent rewrites are most dangerous outside essays.
Thanks, that's the right worry. I ran the breakdown on the 199 BRESSAY test pages for four models (Escriba, its base LightOnOCR-3-1B, Qwen3.5 27B and Qwen3-VL 235B), counting a silent rewrite whenever the output is a different real word, or a different valid number, than the one on the page. Ranked by risk:
| What's on the page | Silently rewritten (range over the 4 models) |
|---|---|
| Student misspellings (non-dictionary words) | 61–73% |
| Names never seen in training | 19–28% |
| Common words never seen in training | 16–29% |
| Numbers | 9–13% |
| Rare names / rare common words | 8–14% / 7–22% |
| Frequent common words / frequent names | 1.5–10% / 0.8–6% |
So the rewrites concentrate on whatever departs from the model's prior: misspellings first, then rare and unseen words, with names unseen in training the worst case. Names the student misspelt get "corrected" to the famous spelling (Aushwitz → Auschwitz, Webber → Weber). Numbers are the case I'd worry about most in forms: about 9% wrong in every model from 1B to 235B, almost always as another plausible number (1988 → 1888, 1850 → 1950, 2019 → 2010), so nothing looks off. Only 175 numbers, though, so the CI is wide (roughly 4–13%). Large VLMs also flip short words: Qwen3-VL 235B wrote não ("not") for são ("are") 29 times.
Fine-tuning helps on what the model has seen: Escriba has the lowest rate on common words (1.5% vs 5.6% for Qwen3-VL 235B on frequent ones, 16.4% vs 21.8% on unseen ones) and normalises the fewest misspellings (61% vs 71%). It doesn't help on unseen names, where Escriba gets 53% wrong in total vs 37% for the 235B model, nor on numbers.
Caveat: the BRESSAY ground truth has its own errors, so a share of these "rewrites" are reference mistakes. Script: https://github.com/tardellirs/escriba-ocr/blob/main/bench/token_types.py. The unseen-names result is a main reason we're now working on a broader model, trained beyond school essays and also on English handwriting.
Get this paper in your agent:
hf papers read 2611.29874 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 2
tardellirs/Escriba-OCR-1B-GGUF
Datasets citing this paper 0
No dataset linking this paper