Early evidence of how LLMs outperform traditional systems on OCR/HTR tasks for historical records
Seorin Kim, Julien Baudru, Wouter Ryckbosch, Hugues Bersini, Vincent Ginis
TL;DR
This study tests whether large language models (GPT-4o and Claude Sonnet 3.5) can directly transcribe historical handwritten tabular records, comparing them to traditional OCR/HTR systems. By evaluating line-by-line and whole-scan inputs with CER and BLEU, plus human judgments, the authors show that LLMs generally outperform conventional OCR/HTR pipelines, with two-shot prompting delivering the best alignment to ground truth in respective input modes. The work also reveals that BLEU and CER can diverge and that header content disproportionately influences scores, suggesting BLEU as a useful metric for longer, structured transcriptions. The results have practical implications for fast, scalable digitization of historical documents and guide future research on model ensembles, digits-focused fine-tuning, and benchmark development.
Abstract
We explore the ability of two LLMs -- GPT-4o and Claude Sonnet 3.5 -- to transcribe historical handwritten documents in a tabular format and compare their performance to traditional OCR/HTR systems: EasyOCR, Keras, Pytesseract, and TrOCR. Considering the tabular form of the data, two types of experiments are executed: one where the images are split line by line and the other where the entire scan is used as input. Based on CER and BLEU, we demonstrate that LLMs outperform the conventional OCR/HTR methods. Moreover, we also compare the evaluated CER and BLEU scores to human evaluations to better judge the outputs of whole-scan experiments and understand influential factors for CER and BLEU. Combining judgments from all the evaluation metrics, we conclude that two-shot GPT-4o for line-by-line images and two-shot Claude Sonnet 3.5 for whole-scan images yield the transcriptions of the historical records most similar to the ground truth.
