
UniChart
Multimodal1,593 ops201.9M params
An OCR-free Transformer that reads document images and generates text answers or parses directly.
Documents and OCR · 1,593 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.
This model is donut-base fine-tuned on DocVQA, a document visual question answering dataset, so it answers questions about a document image.
Donut, short for Document understanding transformer, reads document images directly, without first running a separate text recognition (OCR) engine. The paper argues that relying on OCR brings high computational cost, inflexibility across languages and document types, and OCR errors that carry into later steps. Its answer is a plain Transformer trained end to end with a cross-entropy loss.
A Swin Transformer vision encoder turns the page image into a sequence of embeddings, and a BART text decoder then generates text one token at a time conditioned on that encoding. The released donut-base model has encoder stages of {2,2,14,2} layers and a 4-layer decoder, works at 2560x1920 input size, and was pre-trained on IIT-CDIP (11M) and on SynthDoG data in English, Chinese, Japanese and Korean. SynthDoG is the authors' synthetic document generator, offered so that pre-training can extend to other languages and domains. The repository names visual document classification and information extraction, also called document parsing, among the tasks Donut handles.
Key idea. Donut showed that a single Transformer trained with cross-entropy loss can understand document images end to end without an OCR engine.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{kim2022ocrfreedocumentunderstandingtransformer,
title={OCR-free Document Understanding Transformer},
author={Geewook Kim and Teakgyu Hong and Moonbin Yim and Jeongyeon Nam and Jinyoung Park and Jinyeong Yim and Wonseok Hwang and Sangdoo Yun and Dongyoon Han and Seunghyun Park},
year={2022},
eprint={2111.15664},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2111.15664},
}