Introduction
Multimodal Large Language Models (MLLMs) have revolutionized document understanding by enabling OCR-free processing. However, capturing fine-grained text details typically requires high-resolution inputs, which current models handle by cropping pages into numerous sub-images. This approach leads to a "token explosion"—often exceeding 3,000 visual tokens per page. When scaled to multi-page documents, this redundancy causes significant inference latency and exceeds GPU memory limits.
mPLUG-DocOwl2 addresses this challenge by introducing a novel High-resolution DocCompressor. This module condenses complex document images into a fixed budget of just 324 visual tokens per page, maintaining state-of-the-art performance while drastically reducing computational overhead.
Methodology: The High-resolution DocCompressor
The core innovation of mPLUG-DocOwl2 is its ability to compress visual information without losing critical layout or textual details. The architecture utilizes a four-step process:
- Shape-adaptive Cropping: High-resolution images are divided into sub-images alongside a low-resolution "global" image of the entire page.
- H-Reducer: This component aligns visual features into the language model's semantic space before compression occurs.
- Layout-aware Compression: The model employs a cross-attention mechanism where the low-resolution global features serve as a "query" to extract essential information from the high-resolution sub-image features (keys/values). This ensures the model retains a spatial map of where fine-grained text belongs within the overall layout.
- Fixed Token Budget: Regardless of the input resolution, every page is represented by exactly 324 tokens.
Training Strategy
The model undergoes a rigorous three-stage training process to ensure robust multi-page reasoning:
- Stage 1 (Single-image Pretraining): Focuses on basic structure parsing, such as tables and charts.
- Stage 2 (Multi-image Continue-pretraining): Introduces tasks like "Multi-page Text Lookup" to teach the model how to link information across different pages.
- Stage 3 (Multi-task Finetuning): Instruction tuning for complex question answering and generating detailed explanations with evidence.
To support this training, the authors introduced MP-DocStruct1M for multi-page parsing and MP-DocReason51K for evaluating detailed multi-page explanations.
Key Results and Efficiency
mPLUG-DocOwl2 achieves state-of-the-art results on major multi-page benchmarks, including MP-DocVQA (ANLS score of 69.42), DUDE, and NewsVideoQA.
The efficiency gains are particularly notable:
- Token Reduction: The model uses less than 20% of the visual tokens required by competing models like InternVL2 or IXC-2.5.
- Inference Speed: First Token Latency is reduced by over 50%. On the MP-DocVQA benchmark, mPLUG-DocOwl2 achieved a latency of 0.95s, compared to 2.13s for LongVA-7B.
- Semantic Compression: The researchers found that compressing features after LLM alignment (post-H-Reducer) is significantly more effective than compressing raw pixels, allowing 324 tokens to represent up to 5,000 characters effectively.
Conclusion
mPLUG-DocOwl2 proves that current MLLMs are often over-provisioned with redundant visual data. By utilizing layout-aware compression and a fixed token budget, the model enables efficient, high-performance understanding of multi-page documents, paving the way for more scalable document AI in resource-constrained environments.
Summary updated