[Paper Review] Handwriting Recognition in Historical Documents with Multimodal LLM
This paper evaluates Gemini, a multimodal large language model, for handwritten historical document transcription, comparing it to state-of-the-art (SoTA) fine-tuned Transformer models (CNN-BiLSTM and TrOCR). It finds that while Gemini performs comparably to SoTA models on English 17th-century documents with zero-shot prompting, it significantly underperforms on non-English languages like German and Latin, primarily due to hallucinations and limited multilingual representation in its training data, highlighting the continued need for fine-tuned models in multilingual and non-English historical contexts.
There is an immense quantity of historical and cultural documentation that exists only as handwritten manuscripts. At the same time, performing OCR across scripts and different handwriting styles has proven to be an enormously difficult problem relative to the process of digitizing print. While recent Transformer based models have achieved relatively strong performance, they rely heavily on manually transcribed training data and have difficulty generalizing across writers. Multimodal LLM, such as GPT-4v and Gemini, have demonstrated effectiveness in performing OCR and computer vision tasks with few shot prompting. In this paper, I evaluate the accuracy of handwritten document transcriptions generated by Gemini against the current state of the art Transformer based methods. Keywords: Optical Character Recognition, Multimodal Language Models, Cultural Preservation, Mass digitization, Handwriting Recognitio
Motivation & Objective
- To assess the performance of multimodal LLMs, specifically Gemini, in transcribing handwritten historical documents compared to state-of-the-art (SoTA) fine-tuned models.
- To identify the strengths and limitations of zero-shot multimodal LLMs in handling diverse historical scripts and languages.
- To evaluate whether Gemini can serve as a viable, low-barrier alternative to computationally intensive, fine-tuned models for non-technical researchers and cultural institutions.
- To investigate the impact of training data bias on model performance across different languages, especially non-English historical scripts.
- To explore the feasibility of using prompt engineering and model settings to reduce hallucination in LLM-based transcription.
Proposed method
- Reimplemented two SoTA models: a CNN-BiLSTM and a fine-tuned TrOCR (Vision Transformer + Roberta decoder) using public code and HuggingFace pipelines.
- Trained both models on curated ICDAR benchmark datasets, including 1,200 pages of 18th-century English Bentham papers, 450 pages of Early Modern German, and 150 pages of cursive Latin.
- Used zero-shot prompting with Gemini, providing only the image and a simple instruction: 'transcribe the following document.'
- Evaluated performance at word and character level using gold-standard transcriptions from ICDAR 2014–2017 and supplemental 17th-century Dutch and Spanish datasets.
- Applied error analysis to distinguish between recognition errors and hallucinations, particularly in high-error cases.
- Compared model workflows in terms of computational requirements, technical complexity, and accessibility for non-technical users.
Experimental results
Research questions
- RQ1How does the zero-shot performance of Gemini compare to fine-tuned SoTA models in transcribing English historical manuscripts?
- RQ2To what extent do multimodal LLMs like Gemini generalize across non-English historical scripts, such as 17th-century German and Latin?
- RQ3What is the primary source of error in Gemini’s transcription—misrecognition of handwriting or hallucination in text generation?
- RQ4Can prompt engineering or temperature adjustments significantly reduce hallucination rates in LLM-based transcription of historical documents?
- RQ5How do the technical and computational barriers of fine-tuned models compare to the accessibility of cloud-hosted LLMs like Gemini for non-technical researchers?
Key findings
- Gemini achieved comparable word-level accuracy to fine-tuned SoTA models on English 17th-century documents without any fine-tuning, demonstrating strong zero-shot performance.
- For non-English languages like German and Latin, Gemini’s performance was significantly worse than fine-tuned TrOCR, with error rates increasing substantially.
- The majority of high-error cases in Gemini were due to hallucination—generating text unrelated to the input image—rather than misrecognition of characters.
- Gemini exhibited a broad performance distribution, with many samples perfectly transcribed and a few severely erroneous, indicating emergent but inconsistent capabilities.
- Fine-tuned TrOCR outperformed both Gemini and the CNN-BiLSTM model across all languages, especially in multilingual and non-English contexts.
- Despite its limitations, Gemini offers a significantly simpler, free, and programmatic workflow compared to training or fine-tuning deep learning models, reducing technical barriers for non-experts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.