No Padding Please: Efficient Neural Handwriting Recognition
Not on the map. Why?
Abstract (arXiv)
Neural handwriting recognition (NHR) is the recognition of handwritten text with deep learning models, such as multi-dimensional long short-term memory (MDLSTM) recurrent neural networks. Models with MDLSTM layers have achieved state-of-the art results on handwritten text recognition tasks. While multi-directional MDLSTM-layers have an unbeaten ability to capture the complete context in all directions, this strength limits the possibilities for parallelization, and therefore comes at a high computational cost. In this work we develop methods to create efficient MDLSTM-based models for NHR, particularly a method aimed at eliminating computation waste that results from padding. This proposed method, called example-packing, replaces wasteful stacking of padded examples with efficient tiling in a 2-dimensional grid. For word-based NHR this yields a speed improvement of factor 6.6 over an already efficient baseline of minimal padding for each batch separately. For line-based NHR the savings are more modest, but still significant. In addition to example-packing, we propose: 1) a technique to optimize parallelization for dynamic graph definition frameworks including PyTorch, using convolutions with grouping, 2) a method for parallelization across GPUs for variable-length example batches. All our techniques are thoroughly tested on our own PyTorch re-implementation of MDLSTM-based NHR models. A thorough evaluation on the IAM dataset shows that our models are performing similar to earlier implementations of state-of-the-art models. Our efficient NHR model and some of the reusable techniques discussed with it offer ways to realize relatively efficient models for the omnipresent scenario of variable-length inputs in deep learning.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). First posted on arXiv 28 Feb 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 2; 2023: 0; 2024: 0; 2025: 0; 2026: 1.
5 papers.
- 2022The LAM Dataset: A Novel Benchmark for Line-Level Handwritten Text Recognitioncited by 16
- 2022Boosting Modern and Historical Handwritten Text Recognition with Deformable Convolutionscited by 14
- 2021StackMix and Blot Augmentations for Handwritten Text Recognitioncited by 2
- 2026A Text Recognition Dataset from Sahidic Coptic Ancient Manuscriptscited by 1
- 2021Many Heads but One Brain: Fusion Brain -- a Competition and a Single Multimodal Multitask Architecturecited by 0
- 2026A Text Recognition Dataset from Sahidic Coptic Ancient Manuscripts14 Jun 2026
- 2022Boosting Modern and Historical Handwritten Text Recognition with Deformable Convolutions17 Aug 2022
- 2022The LAM Dataset: A Novel Benchmark for Line-Level Handwritten Text Recognition16 Aug 2022
- 2021Many Heads but One Brain: Fusion Brain -- a Competition and a Single Multimodal Multitask Architecture22 Nov 2021
- 2021StackMix and Blot Augmentations for Handwritten Text Recognition26 Aug 2021