mlsanityData to 14 Oct 2026

DRetHTR: Linear-Time Decoder-Only Retentive Network for Handwritten Text Recognition

arXiv 2602.17387 ↗First posted 19 Feb 2026cs.CVcited by 1

Not on the map. Why?

Abstract (arXiv)

State-of-the-art handwritten text recognition (HTR) systems commonly use Transformers, whose growing key-value (KV) cache makes decoding slow and memory-intensive. We introduce DRetHTR, a decoder-only model built on Retentive Networks (RetNet). Compared to an equally sized decoder-only Transformer baseline, DRetHTR delivers 1.6-1.9x faster inference with 38-42% less memory usage, without loss of accuracy. By replacing softmax attention with softmax-free retention and injecting multi-scale sequential priors, DRetHTR avoids a growing KV cache: decoding is linear in output length in both time and memory. To recover the local-to-global inductive bias of attention, we propose layer-wise gamma scaling, which progressively enlarges the effective retention horizon in deeper layers. This encourages early layers to model short-range dependencies and later layers to capture broader context, mitigating the flexibility gap introduced by removing softmax. Consequently, DRetHTR achieves best reported test character error rates of 2.26% (IAM-A, en), 1.81% (RIMES, fr), and 3.46% (Bentham, en), and is competitive on READ-2016 (de) with 4.21%. This demonstrates that decoder-only RetNet enables Transformer-level HTR accuracy with substantially improved decoding speed and memory efficiency.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 24 of its 43 references that are in the map. First posted on arXiv 19 Feb 2026.

Builds on

24 of 43 references.

References · 24

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2016Layer Normalizationcited by 5,669
  4. 2021EfficientNetV2: Smaller Models and Faster Trainingcited by 1,135
  5. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
  6. 2019CCNet: Extracting High Quality Monolingual Datasets from Web Crawl Datacited by 548
  7. 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 283
  8. 2021TrOCR: Transformer-based Optical Character Recognition with Pre-trained Modelscited by 279
  9. 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 144
  10. 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 131
  11. 2019Decoupled Attention Network for Text Recognitioncited by 102
  12. 2018NRTR: A No-Recurrence Sequence-to-Sequence Model For Scene Text Recognitioncited by 73
12 more
  1. 2020Pay Attention to What You Read: Non-recurrent Handwritten Text-Line Recognitioncited by 71
  2. 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
  3. 2019Evaluating Sequence-to-Sequence Models for Handwritten Text Recognitioncited by 58
  4. 2020End-to-end Handwritten Paragraph Text Recognition Using a Vertical Attention Networkcited by 50
  5. 2016Joint Line Segmentation and Transcription for End-to-End Handwritten Paragraph Recognitioncited by 46
  6. 2021Rethinking Text Line Recognition Modelscited by 45
  7. 2023DTrOCR: Decoder-only Transformer for Optical Character Recognitioncited by 40
  8. 2013Dropout improves Recurrent Neural Networks for Handwriting Recognitioncited by 39
  9. 2024HTR-VT: Handwritten Text Recognition with Vision Transformercited by 24
  10. 2021Rescoring Sequence-to-Sequence Models for Text Line Recognition with CTC-Prefixescited by 18
  11. 2020Attention-based Fully Gated CNN-BGRU for Russian Handwritten Textcited by 17
  12. 2018Language Model Supervision for Handwriting Recognition Model Adaptationcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2024HTR-JAND: Handwritten Text Recognition with Joint Attention Network and Knowledge Distillation
  2. 2026ExpertHTR: Unified Handwritten Text Recognition with Multi-Task Learning and Sparse Mixture-of-Experts
  3. 2025Advancing Offline Handwritten Text Recognition: A Systematic Review of Data Augmentation and Generation Techniques
  4. 2023Self-distillation Regularized Connectionist Temporal Classification Loss for Text Recognition: A Simple Yet Effective Approach
  5. 2026Exploring In-Context Learning for Handwritten Text Recognition
  6. 2021Text is Text, No Matter What: Unifying Text Recognition using Knowledge Distillation
  7. 2025Benchmarking Large Language Models for Handwritten Text Recognition
  8. 2026A Free Lunch? Adapting PP-OCRv6 for Historical Text Recognition