Papers › OCR-free Document Understanding Transformer

OCR-free Document Understanding Transformer

30 Nov 2021arXiv:2111.15664archive 2025-07-28

Geewook Kim, Teakgyu Hong, Moonbin Yim, Jeongyeon Nam, Jinyoung Park, Jinyeong Yim, Wonseok Hwang, Sangdoo Yun, Dongyoon Han, Seunghyun Park

Understanding document images (e.g., invoices) is a core but challenging task since it requires complex functions such as reading text and a holistic understanding of the document. Current Visual Document Understanding (VDU) methods outsource the task of reading text to off-the-shelf Optical Character Recognition (OCR) engines and focus on the understanding task with the OCR outputs. Although such OCR-based approaches have shown promising performance, they suffer from 1) high computational costs for using OCR; 2) inflexibility of OCR models on languages or types of document; 3) OCR error propagation to the subsequent process. To address these issues, in this paper, we introduce a novel OCR-free VDU model named Donut, which stands for Document understanding transformer. As the first step in OCR-free VDU research, we propose a simple architecture (i.e., Transformer) with a pre-training objective (i.e., cross-entropy loss). Donut is conceptually simple yet effective. Through extensive experiments and analyses, we show a simple OCR-free VDU model, Donut, achieves state-of-the-art performances on various VDU tasks in terms of both speed and accuracy. In addition, we offer a synthetic data generator that helps the model pre-training to be flexible in various languages and domains. The code, trained model and synthetic data are available at https://github.com/clovaai/donut.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2111.15664")

Code

Syntology Ran 0 of 9 code samples harvested from 2 repositories linked to this paper; 9 have no recorded run.

By repository: official repository: 1 sample from 1 repository, 0 ran; community (archive-listed): 8 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

clovaai/donut officialmentioned in papermentioned on GitHubpytorchMIT report
impira/docquery mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

9 samples harvested; 0 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

9unverified

Licence: 0 of the 9 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

load_json clovaai/donut/donut/util.py official repository unverified MIT (permissive) · 263020461a3e369d · report
apply_tesseract impira/docquery/src/docquery/ext/pipeline_document_question_answering.py community (archive-listed) unverified MIT (permissive) · 0a993549920c0550 · report
decode_spans impira/docquery/src/docquery/ext/qa_helpers.py community (archive-listed) unverified MIT (permissive) · 5af813087bf4d28a · report
donut_token2json impira/docquery/src/docquery/ext/pipeline_document_classification.py community (archive-listed) unverified MIT (permissive) · 74ec9de19aac6a0c · report
get_logger impira/docquery/src/docquery/config.py community (archive-listed) unverified MIT (permissive) · 5df09cd2222c8bdc · report
main impira/docquery/src/docquery/cmd/__main__.py community (archive-listed) unverified MIT (permissive) · 67438118b555068e · report
normalize_box impira/docquery/src/docquery/ext/pipeline_document_question_answering.py community (archive-listed) unverified MIT (permissive) · ad692f1231b24538 · report
pipeline impira/docquery/src/docquery/transformers_patch.py community (archive-listed) unverified MIT (permissive) · c783979082342a7f · report
select_starts_ends impira/docquery/src/docquery/ext/qa_helpers.py community (archive-listed) unverified MIT (permissive) · 7239c77e40da43e7 · report

Tasks

Document Image ClassificationKey-value Pair ExtractionOptical Character RecognitionOptical Character Recognition (OCR)Visual Question Answering (VQA)document understanding

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Document Image Classification RVL-CDIP Donut Accuracy 95.3% #10 of 31 Archive leaderboard report
Key-value Pair Extraction RFUND-EN Donut key-value pair F1 24.54 #13 of 13 Archive leaderboard report
Key-value Pair Extraction SIBR Donut key-value pair F1 17.26 #7 of 7 Archive leaderboard report
Visual Question Answering (VQA) DocVQA test Donut ANLS 0.675 #29 of 33 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

SPEED

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections