Abstract
Digitizing historical texts often results in significant Optical Character Recognition (OCR) errors due to degraded source materials and archaic layouts. This paper introduces a robust framework for Post-OCR correction utilizing multi-noise synthetic data and a novel Self-Correct-Noise Test-Time Adaptation (SCN-TTA) method. Our approach addresses the "Proper Noun Problem" and the mismatch between synthetic training data and real-world noise. Experimental results demonstrate a 68.67% reduction in Character Error Rate (CER) on historical benchmarks, with the ByT5 model outperforming significantly larger language models.
Introduction
The preservation of historical literature through digitization is hindered by "noisy" text—misread characters and typos that obscure meaning and historical accuracy. Traditional Post-OCR correction models often struggle with two major issues: the lack of diverse noise levels in training data and the tendency to "hallucinate" corrections for rare proper nouns (PNs). This work proposes a methodology to overcome these hurdles using weakly supervised data and on-the-fly model adaptation.
Methodology
The proposed system employs a two-pronged strategy to improve correction accuracy across diverse historical contexts.
Multi-Noise Synthetic Data
Rather than training on a single noise level, we utilize "weakly supervised" data—aligned OCR and ground truth pairs that may contain slight misalignments. We introduce an Error Level (EL) parameter to generate synthetic datasets with varying Character Error Rates (CER). This diversity allows the model to handle both clear and highly degraded pages effectively, making it more robust to real-world variability.
Self-Correct-Noise Test-Time Adaptation (SCN-TTA)
To handle book-specific vocabulary and noise patterns, we introduce SCN-TTA, a 7-step adaptation process. This method allows the model to "practice" on the specific context of a target book before final correction.
The process involves masking proper nouns to learn their surrounding context, generating a book-specific synthetic dataset, and performing a rapid round of fine-tuning. This prevents the model from incorrectly "correcting" rare names into common words, preserving historical value.
Results and Discussion
Our evaluation across multiple benchmarks, including RETAS and Overproof, reveals several key insights into the nature of effective OCR correction.
The Optimal Alignment Curve (OAC)
A critical finding is the existence of an "effective data" threshold. Through quadratic regression analysis, we established the Optimal Alignment Curve (OAC), which maps the relationship between training noise and test performance.
The OAC indicates that synthetic training data with a CER exceeding 20.1% begins to degrade model performance. This provides a concrete "speed limit" for how much noise researchers should inject into training data to maintain effectiveness.
Model Performance and Proper Nouns
The byte-level ByT5 model emerged as the most effective architecture, consistently outperforming mBART and even large-scale models like GPT-4o and Llama2 in one-shot scenarios. On the RETAS benchmark, our method achieved a 68.67% reduction in CER. Furthermore, the SCN-TTA method significantly improved the Correct Word Retention Rate (CWRR) for proper nouns, boosting it to 0.887 compared to 0.736 for standard training.
Conclusion
By combining multi-noise synthetic data with test-time adaptation, we significantly advance the state-of-the-art in historical OCR correction. While the method is highly effective for long-form texts like novels, future work will address its application to shorter text snippets and the correction of numerical data.
Summary updated