HATFormer: Historic Handwritten Arabic Text Recognition with Transformers
Not on the map. Why?
Abstract (arXiv)
Arabic handwritten text recognition (HTR) is challenging, especially for historical texts, due to diverse writing styles and the intrinsic features of Arabic script. Additionally, Arabic handwriting datasets are smaller compared to English ones, making it difficult to train generalizable Arabic HTR models. To address these challenges, we propose HATFormer, a transformer-based encoder-decoder architecture that builds on a state-of-the-art English HTR model. By leveraging the transformer's attention mechanism, HATFormer captures spatial contextual information to address the intrinsic challenges of Arabic script through differentiating cursive characters, decomposing visual representations, and identifying diacritics. Our customization to historical handwritten Arabic includes an image processor for effective ViT information preprocessing, a text tokenizer for compact Arabic text representation, and a training pipeline that accounts for a limited amount of historic Arabic handwriting data. HATFormer achieves a character error rate (CER) of 8.6% on the largest public historical handwritten Arabic dataset, with a 51% improvement over the best baseline in the literature. HATFormer also attains a comparable CER of 4.2% on the largest private non-historical dataset. Our work demonstrates the feasibility of adapting an English HTR method to a low-resource language with complex, language-specific challenges, contributing to advancements in document digitization, information retrieval, and cultural preservation.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 19 of its 57 references that are in the map. First posted on arXiv 3 Oct 2024.
Builds on
19 of 57 references.
References · 19
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,375
- 2013Speech Recognition with Deep Recurrent Neural Networkscited by 669
- 2015An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognitioncited by 520
- 2022Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understandingcited by 366
- 2021TrOCR: Transformer-based Optical Character Recognition with Pre-trained Modelscited by 279
- 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 255
- 2023Patch n' Pack: NaViT, a Vision Transformer for any Aspect Ratio and Resolutioncited by 229
7 more
- 2019Decoupled Attention Network for Text Recognitioncited by 102
- 2019Visualizing and Understanding the Effectiveness of BERTcited by 67
- 2019Evaluating Sequence-to-Sequence Models for Handwritten Text Recognitioncited by 58
- 2023DTrOCR: Decoder-only Transformer for Optical Character Recognitioncited by 40
- 2024Muharaf: Manuscripts of Handwritten Arabic Dataset for Cursive Text Recognitioncited by 13
- 2023A Transformer-based Approach for Arabic Offline Handwritten Text Recognitioncited by 9
- 2024Representing Online Handwriting for Recognition in Large Vision-Language Modelscited by 7
Built on by
Citing papers per year: 2026: 9.
9 papers.
- 2026A Human-in-the-Loop Label Error Detection Framework Applied to Arabic-Script HTR Datasetscited by 3
- 2026Cross-Lingual Learning within Arabic Script for Low-Resource HTRcited by 2
- 2026RefLAM: A Reference-Grounded Line Annotation Pipeline for Historical Arabic Manuscriptscited by 1
- 2026Different Strokes for Different Folks: Writer Identification for Historical Arabic Manuscriptscited by 0
- 2026Performance Gap Analysis between Latin and Arabic Scripts HTRcited by 0
- 2026Does a Modern-Handwriting Warm-Up Help Historical Arabic OCR? A Reproducible, Compute-Matched Evaluation on Muharaf and KHATTcited by 0
- 2026When Do VLMs Help Arabic Manuscript OCR? A Cross-Dataset Studycited by 0
- 2026AraMS-28k: The Largest Publicly Released Line-Level Dataset of Historical Arabic Manuscripts with Margin and Insertion-Anchor Annotationscited by 0
- 2026HPMD: A Historical Persian Manuscript Dataset for Word Spotting with Line-Level Annotationcited by 0
- 2026HPMD: A Historical Persian Manuscript Dataset for Word Spotting with Line-Level Annotation28 Sep 2026
- 2026AraMS-28k: The Largest Publicly Released Line-Level Dataset of Historical Arabic Manuscripts with Margin and Insertion-Anchor Annotations27 Aug 2026
- 2026RefLAM: A Reference-Grounded Line Annotation Pipeline for Historical Arabic Manuscripts25 Aug 2026
- 2026When Do VLMs Help Arabic Manuscript OCR? A Cross-Dataset Study23 Aug 2026
- 2026Does a Modern-Handwriting Warm-Up Help Historical Arabic OCR? A Reproducible, Compute-Matched Evaluation on Muharaf and KHATT23 Aug 2026
- 2026Performance Gap Analysis between Latin and Arabic Scripts HTR17 Jun 2026
- 2026Cross-Lingual Learning within Arabic Script for Low-Resource HTR3 May 2026
- 2026Different Strokes for Different Folks: Writer Identification for Historical Arabic Manuscripts24 Apr 2026
- 2026A Human-in-the-Loop Label Error Detection Framework Applied to Arabic-Script HTR Datasets23 Jan 2026