mlsanityData to 14 Oct 2026

Learning to Align: Addressing Character Frequency Distribution Shifts in Handwritten Text Recognition

arXiv 2506.09846 ↗First posted 11 Jun 2025cs.CV cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

Handwritten text recognition aims to convert visual input into machine-readable text, and it remains challenging due to the evolving and context-dependent nature of handwriting. Character sets change over time, and character frequency distributions shift across historical periods or regions, often causing models trained on broad, heterogeneous corpora to underperform on specific subsets. To tackle this, we propose a novel loss function that incorporates the Wasserstein distance between the character frequency distribution of the predicted text and a target distribution empirically derived from training data. By penalizing divergence from expected distributions, our approach enhances both accuracy and robustness under temporal and contextual intra-dataset shifts. Furthermore, we demonstrate that character distribution alignment can also improve existing models at inference time without requiring retraining by integrating it as a scoring function in a guided decoding scheme. Experimental results across multiple datasets and architectures confirm the effectiveness of our method in boosting generalization and performance. We open source our code at https://github.com/pkaliosis/fada.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 21 of its 48 references that are in the map. First posted on arXiv 11 Jun 2025.

Builds on

21 of 48 references.

References · 21

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2024The Llama 3 Herd of Modelscited by 14,715
  4. 2022Robust Speech Recognition via Large-Scale Weak Supervisioncited by 4,057
  5. 2020Multilingual Denoising Pre-training for Neural Machine Translationcited by 1,035
  6. 2015An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognitioncited by 520
  7. 2021TrOCR: Transformer-based Optical Character Recognition with Pre-trained Modelscited by 279
  8. 2017Lexically Constrained Decoding for Sequence Generation Using Grid Beam Searchcited by 237
  9. 2020NeuroLogic Decoding: (Un)supervised Neural Text Generation with Predicate Logic Constraintscited by 149
  10. 2016Guided Open Vocabulary Image Captioning with Constrained Beam Searchcited by 105
  11. 2022Quality Not Quantity: On the Interaction between Dataset Design and Robustness of CLIPcited by 97
  12. 2018Unsupervised Text Style Transfer using Language Models as Discriminatorscited by 70
9 more
  1. 2023COLLIE: Systematic Construction of Constrained Text Generation Taskscited by 70
  2. 2021A Plug-and-Play Method for Controlled Text Generationcited by 56
  3. 2023The Edinburgh International Accents of English Corpus: Towards the Democratization of English ASRcited by 36
  4. 2022Boosting Modern and Historical Handwritten Text Recognition with Deformable Convolutionscited by 14
  5. 2021Cross-domain Speech Recognition with Unsupervised Character-level Distribution Matchingcited by 9
  6. 2023Most Language Models can be Poets too: An AI Writing Assistant and Constrained Text Generation Studiocited by 9
  7. 2024Removing Distributional Discrepancies in Captions Improves Image-Text Alignmentcited by 8
  8. 2024A Data-Driven Guided Decoding Mechanism for Diagnostic Captioningcited by 4
  9. 2024An Analysis of Letter Dynamics in the English Alphabetcited by 1

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.