Revisiting N-Gram Models: Their Impact in Modern Neural Networks for Handwritten Text Recognition
Not on the map. Why?
Abstract (arXiv)
In recent advances in automatic text recognition (ATR), deep neural networks have demonstrated the ability to implicitly capture language statistics, potentially reducing the need for traditional language models. This study directly addresses whether explicit language models, specifically n-gram models, still contribute to the performance of state-of-the-art deep learning architectures in the field of handwriting recognition. We evaluate two prominent neural network architectures, PyLaia and DAN, with and without the integration of explicit n-gram language models. Our experiments on three datasets - IAM, RIMES, and NorHand v2 - at both line and page level, investigate optimal parameters for n-gram models, including their order, weight, smoothing methods and tokenization level. The results show that incorporating character or subword n-gram models significantly improves the performance of ATR models on all datasets, challenging the notion that deep learning models alone are sufficient for optimal performance. In particular, the combination of DAN with a character language model outperforms current benchmarks, confirming the value of hybrid approaches in modern document analysis systems.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 17 of its 35 references that are in the map. First posted on arXiv 30 Apr 2024.
Builds on
17 of 35 references.
References · 17
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
- 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 632
- 2021TrOCR: Transformer-based Optical Character Recognition with Pre-trained Modelscited by 278
- 2023Nougat: Neural Optical Understanding for Academic Documentscited by 240
- 2023DocLLM: A layout-aware generative language model for multimodal document understandingcited by 112
- 2022DAN: a Segmentation-free Document Attention Network for Handwritten Document Recognitioncited by 62
- 2020OrigamiNet: Weakly-Supervised, Segmentation-Free, One-Step, Full Page Text Recognition by learning to unfoldcited by 53
- 2020End-to-end Handwritten Paragraph Text Recognition Using a Vertical Attention Networkcited by 50
- 2016Joint Line Segmentation and Transcription for End-to-End Handwritten Paragraph Recognitioncited by 46
- 2022N-Gram in Swin Transformers for Efficient Lightweight Image Super-Resolutioncited by 46
- 2021Rethinking Text Line Recognition Modelscited by 45
5 more
- 2022N-Grammer: Augmenting Transformers with latent n-gramscited by 13
- 2020Enhancing Handwritten Text Recognition with N-gram sequence decomposition and Multitask Learningcited by 11
- 2023Key-value information extraction from full handwritten pagescited by 9
- 2023Exploring the Integration of Large Language Models into Automatic Speech Recognition Systems: An Empirical Studycited by 7
- 2024Improving Automatic Text Recognition with Language Models in the PyLaia Open-Source Librarycited by 5
Built on by
Citing papers per year: 2024: 1; 2025: 0; 2026: 1.
2 papers.