[Paper Review] StackMix and Blot Augmentations for Handwritten Text Recognition
This paper proposes a novel handwritten text recognition (HTR) system that outperforms state-of-the-art models on multiple benchmark datasets, including IAM, Bentham, Saint Gall, Digital Peter, and HKR. The approach combines a modified ResNet-34 backbone with two data augmentation techniques—Handwritten Blots to simulate strikethrough text and StackMix for generating synthetic training samples by mixing printed and handwritten text—achieving a new SOTA CER of 1.73% on BenthamR0 and 3.65% on Saint Gall.
This paper proposes a handwritten text recognition(HTR) system that outperforms current state-of-the-artmethods. The comparison was carried out on three of themost frequently used in HTR task datasets, namely Ben-tham, IAM, and Saint Gall. In addition, the results on tworecently presented datasets, Peter the Greats manuscriptsand HKR Dataset, are provided.The paper describes the architecture of the neural net-work and two ways of increasing the volume of train-ing data: augmentation that simulates strikethrough text(HandWritten Blots) and a new text generation method(StackMix), which proved to be very effective in HTR tasks.StackMix can also be applied to the standalone task of gen-erating handwritten text based on printed text.
Motivation & Objective
- Address the challenge of limited labeled data in historical handwritten document recognition, where expert annotation is costly and time-consuming.
- Improve recognition accuracy on low-resource and historically variable handwriting datasets by enhancing training data diversity and robustness.
- Develop a scalable HTR system capable of processing large volumes of historical manuscripts efficiently, reducing reliance on manual deciphering.
- Introduce data augmentation techniques that simulate real-world handwriting defects and improve model generalization without requiring additional annotations.
- Achieve state-of-the-art performance across multiple benchmark datasets, including recent and specialized collections like Peter the Great's manuscripts and HKR.
Proposed method
- Adopt a modified ResNet-34 architecture with stride-1 convolutions in the first layer to preserve spatial resolution, followed by AdaptiveAvgPool2d and three BiLSTM layers for sequence modeling.
- Introduce Handwritten Blots—a data augmentation method that simulates strikethrough text by applying realistic ink blot artifacts to handwritten lines, improving robustness to ink defects.
- Propose StackMix, a novel augmentation technique that generates synthetic training samples by blending printed text with handwritten images using a learned mixing strategy, effectively increasing training data diversity.
- Train the model using CTC loss for end-to-end sequence-to-sequence learning, enabling direct optimization of transcription accuracy.
- Apply the model in a line-level recognition setting, processing 128×2048 pixel images, and evaluate using standard metrics: CER, WER, and accuracy.
- Use a consistent data split across experiments to ensure fair comparison with prior work, particularly on IAM where multiple splits exist.
Experimental results
Research questions
- RQ1Can synthetic data augmentation techniques like StackMix and Handwritten Blots significantly improve HTR performance on low-resource and historical handwriting datasets?
- RQ2How does the combination of StackMix and Handwritten Blots compare to standard data augmentation and baseline models in terms of CER and WER across diverse datasets?
- RQ3To what extent can the proposed system reduce manual annotation costs by enabling high-accuracy inference on large-scale historical manuscripts with minimal labeled data?
- RQ4Does the model generalize well across different handwriting styles and languages, including modern and historical scripts, as demonstrated on IAM, Bentham, and Saint Gall?
- RQ5How does the inference speed of the proposed system compare to existing models, especially when using complex augmentations during training?
Key findings
- The proposed model achieves a new state-of-the-art CER of 1.73% ± 0.02 on the BenthamR0 dataset, significantly outperforming prior methods (e.g., 3.98% in [11]) and approaching the 3.5% CER of the 2016 SOTA model.
- On the IAM-B dataset, the model achieves 3.77% CER and 12.8% WER, closely matching the 3.5% CER of the 2016 SOTA model, demonstrating strong performance on a widely used benchmark.
- On the Saint Gall dataset, the model achieves 3.65% CER, outperforming the previous best of 5.26% CER and showing strong generalization to highly variable historical scripts.
- The combination of all augmentations (StackMix + Blots + standard augs) reduces CER to 1.73% on BenthamR0 and 3.65% on Saint Gall, indicating synergistic improvements from multiple augmentation strategies.
- The model achieves 95 lines per second inference speed on a single Tesla V100 GPU, enabling automated processing of 380 pages per minute—dramatically faster than manual historian teams (3 months for 662 pages).
- On the Digital Peter dataset, the model reaches 2.50% CER and 14.6% WER, outperforming the prior SOTA of 10.5% CER, demonstrating effectiveness on rare and complex historical scripts.
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.