mPLUG-DocOwl: Modularized Multimodal Large Language Model for Document Understanding

Jiabo Ye, Anwen Hu, Haiyang Xu, Qinghao Ye, Ming Yan, Yuhao Dan, Chenlin Zhao, Guohai Xu, Chenliang Li, Junfeng Tian, Qian Qi, Ji Zhang, Fei HuangarXiv 2023 · DOI

Introduction

mPLUG-DocOwl is a modularized multimodal large language model (MLLM) designed to bridge the gap between general image description and sophisticated document understanding. By employing a unified instruction tuning strategy across document-specific and general datasets, it achieves state-of-the-art OCR-free performance on complex tasks like analyzing charts, tables, and webpages.

Problem Statement

While recent Multimodal Large Language Models (MLLMs) like LLaVA or MiniGPT-4 are impressive at describing natural scenes, they often stumble when faced with "text-rich" images—such as dense financial spreadsheets, complex infographics, or intricate webpages. Existing models typically possess superficial OCR abilities, recognizing words but failing to comprehend structural relationships, such as table headers and their corresponding values. While specialized document understanding models exist, they often lack the conversational flexibility of an LLM. The challenge lies in creating a model that is both a generalist conversationalist and a specialist at document parsing without requiring a separate OCR engine.

Methodology

The architecture of mPLUG-DocOwl builds upon mPLUG-Owl, utilizing a modular design consisting of three primary components:

  1. Visual Foundation Model: A pre-trained encoder for raw visual feature extraction.
  2. Visual Abstractor: A module that distills visual features into learnable tokens compatible with the LLM.
  3. Language Foundation Model (LLM): The core engine generating the final linguistic response.

The central innovation is the Unified Instruction Tuning strategy. Various document tasks, such as table QA and information extraction, are converted into a standardized natural language instruction format: <image> Human: {question} AI: {answer}.

Overview of the mPLUG-DocOwl framework and Unified Instruction Tuning across various domains.

To maintain general conversational abilities while learning document-specific skills, a two-stage training paradigm is employed:

  • Stage 1: Fine-tuning the Visual Abstractor and the LLM (via LoRA) on document understanding data.
  • Stage 2: Freezing the abstractor and further training the LLM (via LoRA) on a balanced mix of document data, general vision-language data, and language-only data.

Datasets and Evaluation

mPLUG-DocOwl was trained on a diverse collection of datasets spanning multiple domains, including document, table, chart, natural image text, and webpage data.

Categorization of datasets used for training mPLUG-DocOwl across different modalities.

Additionally, the researchers introduced LLMDoc, a new evaluation set designed to test MLLM compliance with human instructions in document-heavy scenarios. It includes 100 test samples across five scenarios, evaluated by humans on a scale from A (correct) to D (irrelevant).

Key Results

mPLUG-DocOwl outperformed existing OCR-free state-of-the-art models, such as Donut and Pix2Struct, across several benchmarks:

  • InfoVQA: Achieved a score of 38.2, matching Pix2Struct and significantly exceeding Donut (11.6).
  • VisualMRC (Webpages): Reached 188.8, nearly doubling the performance of Donut (93.9).
  • Human Evaluation (LLMDoc): On the LLMDoc set, mPLUG-DocOwl received an "A" rating for 37% of responses, compared to 15% for the original mPLUG-Owl and 6% for MiniGPT-4.

Qualitatively, the model demonstrated an ability to understand hand-drawn tables and perform basic reasoning, such as calculating percentages from charts.

Conclusion

mPLUG-DocOwl demonstrates that an OCR-free approach is viable for complex document understanding by aligning visual features directly with language. While the model shows significant improvements in instruction following and document parsing, limitations remain in multi-step mathematical reasoning and occasional hallucinations when text is small or blurry. Future work will focus on increasing visual encoder resolution and enhancing quantitative analysis capabilities.

Summary updated

BibTeX
@misc{ye2023mplug,
  author = {Jiabo Ye and Anwen Hu and Haiyang Xu and Qinghao Ye and Ming Yan and Yuhao Dan and Chenlin Zhao and Guohai Xu and Chenliang Li and Junfeng Tian and Qian Qi and Ji Zhang and Fei Huang},
  title = {{mPLUG-DocOwl: Modularized Multimodal Large Language Model for Document Understanding}},
  year = {2023},
  eprint = {2307.02499},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.02499},
}
Figure