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:
- Visual Foundation Model: A pre-trained encoder for raw visual feature extraction.
- Visual Abstractor: A module that distills visual features into learnable tokens compatible with the LLM.
- 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}.
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.
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