Skip to main content
QUICK REVIEW

[Paper Review] DiT: Self-supervised Pre-training for Document Image Transformer

Junlong Li, Yiheng Xu|arXiv (Cornell University)|Mar 4, 2022
Handwritten Text Recognition TechniquesComputer Science9 citations
TL;DR

DiT proposes a self-supervised pre-trained Document Image Transformer that leverages large-scale unlabeled document images to learn general visual representations without human annotations. By adapting masked image modeling with a document-specific discrete VAE, DiT achieves state-of-the-art performance across multiple Document AI tasks, including document image classification (92.69% top-1 accuracy), layout analysis (94.9% F1), table detection (96.55% wF1), and text detection (94.29% F1).

ABSTRACT

Image Transformer has recently achieved significant progress for natural image understanding, either using supervised (ViT, DeiT, etc.) or self-supervised (BEiT, MAE, etc.) pre-training techniques. In this paper, we propose extbf{DiT}, a self-supervised pre-trained extbf{D}ocument extbf{I}mage extbf{T}ransformer model using large-scale unlabeled text images for Document AI tasks, which is essential since no supervised counterparts ever exist due to the lack of human-labeled document images. We leverage DiT as the backbone network in a variety of vision-based Document AI tasks, including document image classification, document layout analysis, table detection as well as text detection for OCR. Experiment results have illustrated that the self-supervised pre-trained DiT model achieves new state-of-the-art results on these downstream tasks, e.g. document image classification (91.11 $ ightarrow$ 92.69), document layout analysis (91.0 $ ightarrow$ 94.9), table detection (94.23 $ ightarrow$ 96.55) and text detection for OCR (93.07 $ ightarrow$ 94.29). The code and pre-trained models are publicly available at \url{https://aka.ms/msdit}.

Motivation & Objective

  • Address the lack of large-scale human-labeled document image datasets for pre-training vision backbones in Document AI.
  • Overcome domain shift and performance degradation in real-world Document AI applications due to template and format mismatches.
  • Develop a self-supervised pre-training framework for document images that generalizes across diverse document layouts and formats.
  • Improve downstream performance on vision-based Document AI tasks without relying on supervised annotations.
  • Establish a foundation model for Document AI that supports both computer vision and natural language processing tasks via a unified Transformer architecture.

Proposed method

  • Pre-train a vision Transformer backbone using masked image modeling (MIM) on large-scale unlabeled document images.
  • Train a domain-specific discrete VAE (dVAE) on grayscale document images to generate more relevant visual tokens than generic models like DALL-E.
  • Corrupt input document images by masking patches and train the Transformer to reconstruct the original visual tokens from the dVAE.
  • Use a standard image Transformer architecture with learned position embeddings and multi-head self-attention to model long-range dependencies in document layouts.
  • Fine-tune the pre-trained DiT model on downstream Document AI tasks using standard classification and detection heads.
  • Enhance performance further by fine-tuning on synthetic document images (1M) in addition to real data, improving zero-shot generalization.

Experimental results

Research questions

  • RQ1Can self-supervised pre-training on large-scale unlabeled document images improve generalization in Document AI tasks without human annotations?
  • RQ2How does a document-specific dVAE compare to generic image tokenizers (e.g., DALL-E) in learning meaningful visual representations for document understanding?
  • RQ3To what extent does DiT improve performance on downstream tasks such as document image classification, layout analysis, table detection, and text detection compared to supervised and self-supervised baselines?
  • RQ4Does DiT generalize better across diverse document formats and layouts than models pre-trained on limited or domain-specific datasets?
  • RQ5Can DiT serve as a strong foundation model for multi-modal Document AI systems, including layout-based models like LayoutLM?

Key findings

  • DiT achieves a new state-of-the-art result of 92.69% top-1 accuracy on RVL-CDIP for document image classification, improving from 91.11% with prior methods.
  • On PubLayNet for document layout analysis, DiT achieves 94.9% F1, a significant improvement over the previous SOTA of 91.0%.
  • For table detection on ICDAR 2019 cTDaR, DiT-L achieves 96.55% wF1 score, surpassing the previous best of 94.23% by over 2.3 percentage points.
  • On FUNSD for text detection, DiT-L reaches 94.29% F1 (IoU@0.5), outperforming the commercial OCR engine baseline and all other ViT and CNN backbones.
  • Fine-tuning DiT with a synthetic dataset of 1M document images further boosts performance, achieving 94.29% F1 on FUNSD and 96.55% wF1 on table detection.
  • The model demonstrates strong few-shot generalization, especially on low-resource settings like the archival subset of cTDaR, where it outperforms most baselines despite color limitations in the dVAE.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.