Skip to main content
QUICK REVIEW

[Paper Review] Transformer-based HTR for Historical Documents

Phillip Ströbel, Simon Clematide|arXiv (Cornell University)|Mar 21, 2022
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

This paper proposes fine-tuning the pre-trained TrOCR model—a vision-and-language transformer architecture—on early modern Latin manuscripts for handwritten text recognition (HTR). Despite never encountering Latin or historical handwriting during pre-training, TrOCR LARGE achieves a 2.55% CER on Rudolf Gwalther’s poetry and 16.53% on Heinrich Bullinger’s correspondence, outperforming a strong HTR+ baseline by 4.6 percentage points on the multi-author test set, demonstrating strong zero-shot transferability to unseen handwriting styles and languages.

ABSTRACT

We apply the TrOCR framework to real-world, historical manuscripts and show that TrOCR per se is a strong model, ideal for transfer learning. TrOCR has been trained on English only, but it can adapt to other languages that use the Latin alphabet fairly easily and with little training material. We compare TrOCR against a SOTA HTR framework (Transkribus) and show that it can beat such systems. This finding is essential since Transkribus performs best when it has access to baseline information, which is not needed at all to fine-tune TrOCR.

Motivation & Objective

  • To evaluate whether the pre-trained TrOCR model, originally trained on English printed and synthetic handwritten text, can generalize to low-resource, historically variable Latin manuscripts.
  • To assess if TrOCR can achieve high HTR performance on early modern manuscripts without prior exposure to Latin or historical handwriting styles.
  • To compare TrOCR’s performance against a strong HTR+ baseline on both single-author and multi-author manuscript collections.
  • To investigate the potential of TrOCR as a robust, transferable HTR model for diverse and heterogeneous manuscript collections in digital humanities.

Proposed method

  • Fine-tuned the TrOCR BASE and TrOCR LARGE models on two Latin manuscript datasets: 4,037 lines from Rudolf Gwalther’s 16th-century poetry volume and 16,584 lines from Heinrich Bullinger’s correspondence.
  • Used the pre-trained vision encoder (BEiT) and RoBERTa-based decoder from TrOCR, initializing with ImageNet-1K pre-training and fine-tuning on manuscript images and transcriptions.
  • Applied data augmentation and layout analysis via Transkribus to extract line-level image-text alignments from scanned manuscripts.
  • Trained models for up to 50 epochs on the Gwalther dataset and up to 20 epochs on the Bullinger dataset, with early stopping and validation monitoring.
  • Evaluated performance using Character Error Rate (CER) on validation and test sets, comparing TrOCR to the HTR+ baseline.
  • Used a 3,603/433 split for Gwalther and a 13,843/1,685/1,056 split for Bullinger to ensure robust evaluation.

Experimental results

Research questions

  • RQ1Can TrOCR generalize to Latin manuscripts despite no pre-training on Latin or historical handwriting?
  • RQ2Does TrOCR outperform existing HTR models like HTR+ on low-resource, multi-author manuscript collections?
  • RQ3How does fine-tuning duration affect TrOCR’s performance on historical handwriting with varying styles?
  • RQ4Can TrOCR achieve strong performance without requiring baseline information, unlike conventional HTR models?
  • RQ5Does the larger TrOCR LARGE architecture consistently outperform TrOCR BASE on diverse manuscript data?

Key findings

  • TrOCR LARGE achieved a 2.55% CER on the validation set for Rudolf Gwalther’s poetry, outperforming the HTR+ baseline of 2.74% by 0.19 percentage points.
  • On the multi-author Bullinger correspondence dataset, TrOCR LARGE achieved a 16.53% CER on the test set, surpassing the HTR+ baseline of 21.13% by 4.60 percentage points.
  • The TrOCR LARGE model showed consistent improvement with longer fine-tuning, peaking at 15 epochs with a 2.55% CER on the Gwalther data.
  • TrOCR BASE showed performance degradation beyond 10 epochs, suggesting overfitting or suboptimal learning dynamics on this data.
  • Despite no exposure to Latin or early modern handwriting during pre-training, TrOCR LARGE generalized effectively to both single-author and multi-author manuscript collections.
  • The results indicate that TrOCR is a highly transferable HTR model capable of zero-shot adaptation to new languages and handwriting styles.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.