
DAN (Distract-your-Attention Network FER)
Image classification156 ops19.7M params
An end-to-end network that reads whole handwritten pages into characters and layout tokens without line segmentation.
Documents and OCR · 681 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
DAN, the Document Attention Network, takes a whole handwritten document image and writes out its text one character at a time, without first cutting the page into lines. Handwritten text recognition is traditionally handled in two steps, line segmentation followed by text line recognition. The authors present DAN as the first end-to-end segmentation-free architecture for handwritten document recognition.
The model is made up of an FCN encoder for feature extraction and a stack of transformer decoder layers that predict one token after another. Besides recognizing text, it is trained to label text parts using begin and end tags in an XML-like fashion. It is trained without using any segmentation label. The README adds that the model uses a character-level attention to handle slanted lines.
On the READ 2016 dataset the paper reports a CER of 3.43% at page level and 3.70% at double-page level. On the RIMES 2009 dataset at page level it reports a CER of 4.54%. The training recipe in the repository pre-trains on synthetic lines before training the DAN itself.
Key idea. DAN recognizes whole handwritten documents end to end without line segmentation, using an FCN encoder and transformer decoder layers to output characters and logical layout tokens.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{coquenet2022dansegmentationfreedocumentattention,
title={DAN: a Segmentation-free Document Attention Network for Handwritten Document Recognition},
author={Denis Coquenet and Clément Chatelain and Thierry Paquet},
year={2022},
eprint={2203.12273},
archivePrefix={arXiv},
primaryClass={cs.CV},
doi={https://doi.org/10.1109/TPAMI.2023.3235826},
url={https://arxiv.org/abs/2203.12273},
}