HTR-VT: Handwritten Text Recognition with Vision Transformer

Yuting Li, Dexiong Chen, Tinglong Tang, Xi Shen
9/13/2024
cs.CV

No official code found. Best implementation: Intellindust-AI-Lab/HTR-VT (132 stars, last commit 2026-01-22).

Abstract

We explore the application of Vision Transformer (ViT) for handwritten text recognition. The limited availability of labeled data in this domain poses challenges for achieving high performance solely relying on ViT. Previous transformer-based models required external data or extensive pre-training on large datasets to excel. To address this limitation, we introduce a data-efficient ViT method that uses only the encoder of the standard transformer. We find that incorporating a Convolutional Neural Network (CNN) for feature extraction instead of the original patch embedding and employ Sharpness-Aware Minimization (SAM) optimizer to ensure that the model can converge towards flatter minima and yield notable enhancements. Furthermore, our introduction of the span mask technique, which masks interconnected features in the feature map, acts as an effective regularizer. Empirically, our approach competes favorably with traditional CNN-based models on small datasets like IAM and READ2016. Additionally, it establishes a new benchmark on the LAM dataset, currently the largest dataset with 19,830 training text lines. The code is publicly available at: https://github.com/YutingLi0606/HTR-VT.

View on arXivView PDF

Code Implementations(1)

(Pattern Recognition) Pytorch implementation of “HTR-VT: Handwritten Text Recognition with Vision Transformer”

13216Shell, PythonSep 4, 20249 months ago
handwriting-ocrhandwriting-recognitionhandwritten-character-recognitionhandwritten-digit-recognitionhandwritten-text-recognition+1 more

Similar Papers

Cite this paper

@article{li2024htrvt,
  title  = {HTR-VT: Handwritten Text Recognition with Vision Transformer},
  author = {Yuting Li and Dexiong Chen and Tinglong Tang and Xi Shen},
  year   = {2024},
  eprint = {2409.08573},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.08573v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.08573.svg)](https://codeofpaper.com/paper/2409.08573)

Discussion