UReader: Universal OCR-free Visually-situated Language Understanding with Multimodal Large Language Model

Jiabo Ye, Anwen Hu, Haiyang Xu, Qinghao Ye, Ming Yan, Guohai Xu, Chenliang Li, Junfeng Tian, Qi Qian, Ji Zhang, Qin Jin, Liang He, Xin Lin, Fei Huang

Introduction

Visually-situated Language Understanding (VsLU)—the ability to interpret text within diverse visual contexts—remains a significant challenge for Multimodal Large Language Models (MLLMs). Traditional approaches often rely on external OCR engines or specialized, domain-specific models. UReader introduces a universal, OCR-free framework designed to handle high-resolution, text-rich images across documents, charts, and webpages.

UReader's universal capability across diverse visual contexts and tasks.

The primary bottleneck for existing vision encoders, such as CLIP, is their low-resolution training (typically 224x224). When high-resolution documents are downscaled to these dimensions, text becomes illegible. UReader addresses this by preserving resolution through a novel cropping strategy, enabling the model to "read" without the overhead of a separate OCR stage.

Proposed Methodology

The UReader architecture builds upon the mPLUG-Owl framework, incorporating several key innovations to enhance visual text processing.

The UReader architecture featuring the shape-adaptive cropping module and LoRA-tuned LLM.

Shape-Adaptive Cropping Module

Instead of simple resizing, UReader employs a shape-adaptive cropping module. It calculates an optimal grid based on the image's original aspect ratio, dividing the high-resolution input into multiple local patches. A downscaled "global" image is also generated to provide overall context. Each patch is processed at the encoder's native resolution, ensuring text remains sharp and readable.

2D Crop Position Encoding

To maintain spatial coherence, learnable row and column embeddings are added to the visual features of each patch. This allows the Large Language Model (LLM) to reconstruct the spatial relationship between different parts of the original image.

Unified Instruction Tuning and Auxiliary Tasks

UReader is fine-tuned using a unified instruction format across a diverse set of tasks, including VQA, Information Extraction, and Captioning. To further sharpen its text recognition capabilities, two auxiliary tasks are introduced:

  • Text Reading: Transcribing all text within the image.
  • Key Points Generation: Summarizing the most important semantic features.

The model utilizes Low-Rank Adaptation (LoRA), fine-tuning only 1.2% of the total parameters (86M), which significantly reduces computational requirements compared to full-parameter training.

Experimental Evaluation

UReader was evaluated across 10 datasets spanning five domains: Documents (DocVQA, InfographicsVQA, DeepForm, KLC), Tables (WikiTableQuestions (WTQ), TabFact), Charts (ChartQA), Natural Images (TextVQA, TextCaps), and Webpages (VisualMRC).

Key Results

  • State-of-the-Art Performance: UReader achieved SOTA results among OCR-free models on 8 out of 10 tasks.
  • Impact of Cropping: On the DocVQA benchmark, the model's score improved from 22.0 to 65.4 when the cropping module was enabled, demonstrating its critical role in processing high-resolution documents.
  • Zero-Shot Generalization: The model showed strong performance on unseen datasets like OCR-VQA, indicating that it has learned a generalizable understanding of visually-situated language.

Discussion and Future Work

The success of UReader suggests that the primary limitation of current MLLMs in text-heavy tasks is input resolution rather than the underlying language model's reasoning capacity. By fixing the visual input via adaptive cropping, UReader achieves high efficiency, requiring only 16 A100 days for training—a fraction of the time needed for previous specialized models.

However, limitations remain. UReader currently processes images individually, making it less effective for multi-page documents. Additionally, like other LLM-based systems, it is prone to occasional hallucinations. Future research will focus on extending the model's context window for multi-page support and improving visual feature compression to handle longer sequences more efficiently.

Summary updated

BibTeX
@inproceedings{ye2023ureader,
  author = {Jiabo Ye and Anwen Hu and Haiyang Xu and Qinghao Ye and Ming Yan and Guohai Xu and Chenliang Li and Junfeng Tian and Qi Qian and Ji Zhang and Qin Jin and Liang He and Xin Lin and Fei Huang},
  title = {{UReader: Universal OCR-free Visually-situated Language Understanding with Multimodal Large Language Model}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.187},
}
Figure