DUBLIN - Document Understanding By Language-Image Network

Kriti Aggarwal, Aditi Khandelwal, Kumar Tanmay, Owais Khan Mohammed, Qiang Liu, Monojit Choudhury, Hardik Hansrajbhai Chauhan, Subhojit Som, Vishrav Chaudhary, Saurabh TiwaryarXiv 2023 · DOI

Introduction

Visual Document Understanding (VDU) is a critical frontier in artificial intelligence, requiring models to interpret both textual content and spatial layout. Traditionally, this has been achieved through a two-step "OCR-then-process" pipeline. However, this approach introduces significant bottlenecks. DUBLIN (Document Understanding By Language-Image Network) represents a paradigm shift toward end-to-end, pixel-based document understanding. By treating documents as pure images and bypassing explicit Optical Character Recognition (OCR), DUBLIN achieves state-of-the-art (SOTA) results across a diverse range of extractive and abstractive tasks.

The Limitations of OCR-Centric Pipelines

Most legacy document AI systems first utilize an OCR engine to convert pixels into text, followed by a language model to process that text. This methodology suffers from three primary flaws:

  1. The "OCR Tax": Errors made during the initial transcription phase—common in handwritten documents or non-Latin scripts—propagate through the entire system, often leading to unrecoverable failures.
  2. Loss of Visual Context: OCR typically strips away non-textual cues such as font size, color, and spatial positioning. These elements are vital for human comprehension of complex layouts like forms or infographics.
  3. Computational Overhead: Maintaining and running specialized OCR engines alongside large language models adds significant latency and architectural complexity.

While previous OCR-free models like Donut and Pix2Struct attempted to mitigate these issues, they often struggled with high-resolution requirements or complex layouts. DUBLIN addresses these gaps through a sophisticated architecture and a novel training curriculum.

Architecture and Methodology

DUBLIN is built on an end-to-end encoder-decoder architecture with 976 million trainable parameters. The model utilizes the Bletchley image encoder as its backbone, while the text decoder is initialized with weights from InfoXLM.

Variable Resolution Scaling

One of the primary technical innovations in DUBLIN is its approach to image resolution. Standard models often stretch or crop images to fit a fixed square input, which can distort text and render it unreadable. DUBLIN employs a strategy that resizes images to an aspect ratio based on a power of two. This preserves the original proportions of the document, ensuring that the spatial relationships and legibility of the text remain intact regardless of the document's dimensions.

Multi-Stage Curriculum Pretraining

Rather than a single-shot training phase, DUBLIN utilizes a five-stage curriculum. This process begins with low-resolution images and simpler tasks, gradually increasing in both resolution and complexity. This allows the model to learn coarse visual features before fine-tuning on the high-resolution details necessary for reading small print.

Key pretraining tasks include:

  • Masked Document Language Modeling: The model predicts missing text tokens using both visual context and surrounding text.
  • Bounding Box Task: The model learns to localize and recognize text regions by predicting specific coordinates, effectively treating layout as a first-class citizen.
  • Rendered QA: The model practices answering questions where the query itself is visually rendered onto the document image, further bridging the gap between vision and language.

Experimental Results

DUBLIN was pretrained on a massive multimodal corpus, including CCNews 200M and a newly curated Synthetic Table QA dataset containing one million webpages. When evaluated against standard VDU benchmarks, DUBLIN demonstrated significant performance gains over existing SOTA models:

  • DocVQA: Improved SOTA by 5.35%, demonstrating superior document question-answering capabilities.
  • InfographicsQA: Achieved a 7.5% improvement, highlighting its ability to parse complex visual data.
  • AI2D (Science Diagrams): Observed a massive 24% jump over previous benchmarks, proving its efficacy in diagrammatic reasoning.
  • CORD (Receipts): Increased information extraction accuracy by 6%.
  • VisualMRC: Set a new SOTA for abstractive reading comprehension with a CIDEr score of 347.3.

Discussion and Future Directions

DUBLIN reinforces the principle that "pixels are enough." By training on sufficient visually-rendered text, the model implicitly learns to read and understand layout without the need for explicit OCR. However, the model is not without limitations. The training process is computationally intensive, requiring approximately 86,000 GPU hours. Furthermore, while DUBLIN excels at extraction, there remains a performance gap in tasks requiring heavy mathematical reasoning or complex chart de-rendering compared to specialized models like Matcha.

Future work will focus on expanding multilingual support beyond English, improving computational efficiency, and enhancing the model's ability to perform complex logical reasoning within visual contexts.

Summary updated

BibTeX
@misc{aggarwal2023dublin,
  author = {Kriti Aggarwal and Aditi Khandelwal and Kumar Tanmay and Owais Khan Mohammed and Qiang Liu and Monojit Choudhury and Hardik Hansrajbhai Chauhan and Subhojit Som and Vishrav Chaudhary and Saurabh Tiwary},
  title = {{DUBLIN - Document Understanding By Language-Image Network}},
  year = {2023},
  eprint = {2305.14218},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.14218},
}
Figure