Error Patterns in Historical OCR: A Comparative Analysis of TrOCR and a Vision-Language Model

Ari Vesalainen, Eetu Mäkelä, Laura Ruotsalainen, Mikko TolonenarXiv 2026

TL;DR

This paper moves beyond simple accuracy scores to investigate how different AI architectures "fail" when transcribing 18th-century documents. While general-purpose Vision-Language Models (VLMs) like Qwen achieve higher overall accuracy, they often "silently fix" historical spellings into modern ones; conversely, dedicated OCR models like TrOCR are more faithful to the original text but prone to messy, cascading errors when they get confused.

What Problem Does This Paper Address?

Digitizing the 18th century is a nightmare for standard OCR. The pages are often degraded with ink bleeds, the spelling isn't standardized, and the typography includes archaic glyphs like the "long-s" (which looks frustratingly like an 'f').

While modern transformer-based models have pushed Character Error Rates (CER) to impressive lows, the authors argue that aggregate metrics are deceptive. For a historian, a model that achieves 99% accuracy by "correcting" archaic spellings to modern ones is actually a failure—it destroys the very historical evidence they are trying to study. This paper seeks to understand the architectural inductive biases that cause these different error patterns, helping researchers choose the right tool for the job.

Methods

The researchers conducted a head-to-head comparison between two distinct architectural approaches:

  1. TrOCR: A dedicated OCR-native transformer that uses an encoder-decoder setup designed for character-level alignment. It is "visually grounded," meaning it focuses heavily on what the pixels actually look like.
  2. Qwen (Qwen2.5-VL-7B): A general-purpose Vision-Language Model. It treats transcription as a generative task, relying on its massive internal language model to "predict" the next word based on visual cues.

Both models were fine-tuned on the same historical dataset and restricted to line-level inputs to ensure a fair comparison and prevent the models from using context from other lines to "guess" the text.

Datasets

The authors built a robust training corpus of approximately 195,000 line images consisting of:

  • Manually annotated data: ~62,000 lines from 18th-century books (McGill University Library).
  • Semi-automated data: ~68,000 lines aligned from the Eighteenth Century Collections Online (ECCO-TCP).
  • Synthetic data: ~65,000 lines generated using historical fonts and degraded backgrounds to help the models learn rare glyphs.

Evaluation was performed on a strictly disjoint set of ~10,000 lines from various genres and scan qualities.

Key Insights and Ideas

  • The "Silent Fixer" Problem: VLMs like Qwen suffer from "linguistic regularization." Because they have a strong internal sense of modern language, they often resolve visual ambiguity by choosing a modern word. For example, Qwen might change the historically valid "antient" to "ancient." This lowers the error rate but constitutes a "silent transformation" that misleads scholars.
  • Visual Fidelity vs. Robustness: TrOCR is much more likely to preserve the original (often weird) spelling because it is more visually grounded. However, it is fragile. If it misidentifies a character early in a line, the error often "cascades," causing the rest of the line to become gibberish.
  • Context Matters: Both models perform significantly better on longer lines. As shown in Figure 2, short segments are much harder to transcribe because the models have less linguistic context to fall back on when the visual signal is noisy.
  • Binarization Hurts: The study found that modern models perform much better on color or grayscale scans than on the high-contrast "binarized" (pure black and white) images common in older digital archives like ECCO.

Key Results

Quantitatively, Qwen outperformed TrOCR across the board in terms of raw accuracy.

Table 1: Global OCR accuracy statistics (mean ± 95% CI) for Qwen and TrOCR across all images and by image type.

As seen in Table 1, Qwen achieved a CER of 0.59% compared to TrOCR's 1.05%. The gap was even wider on degraded black-and-white images, where TrOCR's error rate nearly doubled.

Table 2: Global OCR accuracy statistics (mean ± 95% CI) for Qwen and TrOCR by line-length category.

Table 2 highlights that while Qwen is more accurate overall, both models struggle with short lines (e.g., page numbers or headers), where the lack of context leads to CERs as high as 3.9%–5.7%.

Limitations and Future Work

The study focused exclusively on line-level recognition. In a real-world scenario, OCR must also handle "layout analysis"—identifying where columns, margins, and footnotes are on a full page. The authors note that future work should examine how these architectural biases interact with page-level layout challenges. Additionally, the study was limited to English/Latin scripts; testing these hypotheses on non-Latin scripts or handwritten manuscripts remains an open challenge for the field.

Summary updated

BibTeX
@misc{vesalainen2026error,
  author = {Ari Vesalainen and Eetu Mäkelä and Laura Ruotsalainen and Mikko Tolonen},
  title = {{Error Patterns in Historical OCR: A Comparative Analysis of TrOCR and a Vision-Language Model}},
  year = {2026},
  eprint = {2602.14524},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.14524},
}
Figure