Abstract
This paper presents an unsupervised framework for Optical Character Recognition (OCR) correction that leverages the inherent redundancy in large-scale digital libraries. By utilizing "near-duplicate" texts and a novel multi-input attention mechanism within a Sequence-to-Sequence (Seq2Seq) model, the system achieves significant error reduction without requiring human-labeled training data. Experimental results on historical corpora show that this approach rivals supervised models in performance, providing a scalable solution for digitizing historical archives.
Introduction
Digitizing historical archives is often hampered by high OCR error rates due to physical deterioration, unusual typefaces, and complex layouts. Traditional correction methods either require expensive supervised data (pairs of messy OCR and perfect human transcripts) or struggle with the computational complexity of aligning multiple noisy versions of the same text. This research addresses these challenges by proposing an unsupervised framework that treats text redundancy—common in large digital collections like Google Books—as a source of "labels" for learning.
Methodology
The authors propose a Seq2Seq model with a specialized attention mechanism designed to handle multiple inputs simultaneously.
Multi-Input Attention Averaging
Instead of performing explicit, computationally expensive alignment of multiple noisy versions (or "witnesses") of a text, the model uses Average Attention Combination. The architecture encodes each noisy input independently. At each decoding step, the decoder calculates the attention context for all inputs and averages them. This allows the model to effectively align, correct, and vote on the output character in a single pass, leveraging the "wisdom of the crowd."
Unsupervised Training Strategies
To eliminate the need for human-labeled data, the researchers evaluated three training regimes:
- Noisy Training: Uses a language model to identify the cleanest-looking version among duplicates to serve as a pseudo-ground truth for the others.
- Synthetic Training: Injects random noise (insertions, deletions, substitutions) into clean modern text to teach the model general error correction.
- Bootstrapping: Uses a model trained on synthetic data to generate consensus results from real noisy duplicates, which are then used to train a more specialized model.
Experimental Evaluation
The model was tested on two major historical corpora: the Richmond Daily Dispatch (RDD), featuring American Civil War-era newspapers, and the Text Creation Partnership (TCP), a collection of early English books. Millions of duplicate lines were identified using text-reuse analysis to serve as witnesses for the correction process.
Key Results
The unsupervised bootstrapping method demonstrated remarkable efficacy. On single-input correction, the model cut Character Error Rates (CER) nearly in half. When multiple inputs were available, the bootstrapping method achieved a CER of 0.094, closely approaching the supervised model's performance of 0.077.
As shown in the evaluation, performance improves significantly as the number of witnesses increases, particularly in the range of 2 to 6 inputs, after which gains begin to plateau. This confirms that the multi-input decoding strategy effectively mitigates random OCR noise through consensus.
Discussion and Conclusion
While highly effective, the model faces limitations when systematic errors occur across all witnesses. For example, the historical "long s" (often misread as 'f') creates a false consensus that the model cannot currently overcome. Future work will explore integrating font-specific priors and more advanced language models to address these systematic biases. Despite these challenges, the multi-input attention framework provides a powerful, scalable solution for cleaning large-scale digital archives without the need for manual intervention.
Summary updated