mlsanityData to 7 Oct 2026

Improving Automatic Text Recognition with Language Models in the PyLaia Open-Source Library

arXiv 2404.18722 ↗First posted 29 Apr 2024cs.CV cs.CLcited by 5

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

  1. 2017On Calibration of Modern Neural Networkscited by 4,860
  2. 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
  3. 2021TrOCR: Transformer-based Optical Character Recognition with Pre-trained Modelscited by 278
  4. 2023Nougat: Neural Optical Understanding for Academic Documentscited by 240
  5. 2022DAN: a Segmentation-free Document Attention Network for Handwritten Document Recognitioncited by 62
  6. 2020End-to-end Handwritten Paragraph Text Recognition Using a Vertical Attention Networkcited by 50
  7. 2021Rethinking Text Line Recognition Modelscited by 45
  8. 2021MMOCR: A Comprehensive Toolbox for Text Detection, Recognition and Understandingcited by 40
  9. 2020Enhancing Handwritten Text Recognition with N-gram sequence decomposition and Multitask Learningcited by 11
  10. 2017Lattice Rescoring Strategies for Long Short Term Memory Language Models in Speech Recognitioncited by 9
  11. 2023Key-value information extraction from full handwritten pagescited by 9

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 4.

5 papers.