Improving Automatic Text Recognition with Language Models in the PyLaia Open-Source Library
Not on the map. Why?
Abstract (arXiv)
PyLaia is one of the most popular open-source software for Automatic Text Recognition (ATR), delivering strong performance in terms of speed and accuracy. In this paper, we outline our recent contributions to the PyLaia library, focusing on the incorporation of reliable confidence scores and the integration of statistical language modeling during decoding. Our implementation provides an easy way to combine PyLaia with n-grams language models at different levels. One of the highlights of this work is that language models are completely auto-tuned: they can be built and used easily without any expert knowledge, and without requiring any additional data. To demonstrate the significance of our contribution, we evaluate PyLaia's performance on twelve datasets, both with and without language modelling. The results show that decoding with small language models improves the Word Error Rate by 13% and the Character Error Rate by 12% in average. Additionally, we conduct an analysis of confidence scores and highlight the importance of calibration techniques. Our implementation is publicly available in the official PyLaia repository at https://gitlab.teklia.com/atr/pylaia, and twelve open-source models are released on Hugging Face.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 11 of its 31 references that are in the map. First posted on arXiv 29 Apr 2024.
Builds on
11 of 31 references.
References · 11
- 2017On Calibration of Modern Neural Networkscited by 4,860
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
- 2021TrOCR: Transformer-based Optical Character Recognition with Pre-trained Modelscited by 278
- 2023Nougat: Neural Optical Understanding for Academic Documentscited by 240
- 2022DAN: a Segmentation-free Document Attention Network for Handwritten Document Recognitioncited by 62
- 2020End-to-end Handwritten Paragraph Text Recognition Using a Vertical Attention Networkcited by 50
- 2021Rethinking Text Line Recognition Modelscited by 45
- 2021MMOCR: A Comprehensive Toolbox for Text Detection, Recognition and Understandingcited by 40
- 2020Enhancing Handwritten Text Recognition with N-gram sequence decomposition and Multitask Learningcited by 11
- 2017Lattice Rescoring Strategies for Long Short Term Memory Language Models in Speech Recognitioncited by 9
- 2023Key-value information extraction from full handwritten pagescited by 9
Built on by
Citing papers per year: 2024: 1; 2025: 4.
5 papers.
- 2025Baichuan-Omni-1.5 Technical Reportcited by 107
- 2024Revisiting N-Gram Models: Their Impact in Modern Neural Networks for Handwritten Text Recognitioncited by 2
- 2025Comparative analysis of optical character recognition methods for S'ami texts from the National Library of Norwaycited by 1
- 2025Towards the Influence of Text Quantity on Writer Retrievalcited by 1
- 2025Judge a Book by its Cover: Investigating Multi-Modal LLMs for Multi-Page Handwritten Document Transcriptioncited by 0
- 2025Towards the Influence of Text Quantity on Writer Retrieval9 Jun 2025
- 2025Judge a Book by its Cover: Investigating Multi-Modal LLMs for Multi-Page Handwritten Document Transcription27 Feb 2025
- 2025Baichuan-Omni-1.5 Technical Report26 Jan 2025
- 2025Comparative analysis of optical character recognition methods for S'ami texts from the National Library of Norway13 Jan 2025
- 2024Revisiting N-Gram Models: Their Impact in Modern Neural Networks for Handwritten Text Recognition30 Apr 2024