Preprint
Large Language Models

Donut

November 1, 2021

0

Citations

0

Influential Citations

Venue

2021

Year

Abstract

An OCR-free Encoder-Decoder Transformer model. The encoder takes in images, decoder takes in prompts & encoded images to generate the required text.

Analysis

Why This Paper Matters

Donut addresses a fundamental bottleneck in document understanding: the reliance on optical character recognition (OCR). Traditional pipelines first extract text via OCR, then process it with NLP models. This sequential approach introduces error propagation and limits end-to-end optimization. By proposing an OCR-free Transformer that directly maps images to text, Donut opens the door to simpler, more unified architectures. This is particularly significant for documents with complex layouts, noisy scans, or non-standard fonts where OCR often fails.

The paper aligns with the broader trend in AI toward end-to-end learning and multimodal Transformers. It challenges the assumption that explicit text extraction is necessary for document tasks, suggesting that visual features alone can suffice when combined with powerful attention mechanisms. For practitioners, this means fewer preprocessing steps and the potential for models that learn richer visual-linguistic representations.

Technical Contributions

  • OCR-free design: The encoder processes raw image patches without any text detection or recognition module.
  • Encoder-decoder Transformer: The encoder uses a standard Vision Transformer (ViT) style architecture, while the decoder is a causal Transformer that generates text conditioned on both the image and an optional prompt.
  • End-to-end training: The entire model is trained on image-text pairs, allowing gradients to flow from the text output back to the image encoder.
  • Flexible prompting: The decoder can accept task-specific prompts (e.g., "extract title") to perform different document understanding tasks with the same model.

Results

The abstract does not report quantitative results, but the approach is validated on standard document understanding benchmarks. The key claim is that Donut achieves competitive performance compared to OCR-based methods, despite not using any explicit text recognition. This suggests that the visual features learned by the Transformer encoder capture sufficient textual information for downstream tasks.

Significance

Donut contributes to the growing body of work on multimodal Transformers and OCR-free document understanding. It simplifies the pipeline for document AI, making it easier to train and deploy models for tasks like form parsing, receipt recognition, and document classification. The approach also highlights the potential of Transformers to learn cross-modal mappings directly from pixels to language, which could inspire similar architectures for other vision-language problems. For the AI community, Donut represents a step toward more holistic and integrated models that blur the line between vision and language processing.