Abstract
Multimodel Large Language Models (MLLMs) have achieved promising OCR-free Document Understanding performance by increasing the supported resolution of document images. However, this comes at the cost of generating thousands of visual tokens for a single document image, leading to excessive GPU memory and slower inference times, particularly in multi-page document comprehension. In this work, to address these challenges, we propose a High-resolution DocCompressor module to compress each high-resolution document image into 324 tokens, guided by low-resolution global visual features. With this compression module, to strengthen multi-page document comprehension ability and balance both token efficiency and question-answering performance, we develop the DocOwl2 under a three-stage training framework: Single-image Pretraining, Multi-image Continue-pretraining, and Multi-task Finetuning. DocOwl2 sets a new state-of-the-art across multi-page document understanding benchmarks and reduces first token latency by more than 50%, demonstrating advanced capabilities in multi-page questioning answering, explanation with evidence pages, and cross-page structure understanding.
Introduction
Current Multimodal Large Language Models (MLLMs) face a significant "token explosion" problem when handling documents. To recognize small text without a separate OCR engine, models must process images at high resolutions. Standard techniques involve cropping a high-resolution image into many sub-images, each generating hundreds of visual tokens. For a single A4 page, this can result in over 3,000 tokens. When attempting to understand a 10-page document, the LLM's context window is quickly overwhelmed, leading to massive GPU memory consumption and sluggish inference speeds. mPLUG-DocOwl2 addresses the fundamental challenge: maintaining high-resolution detail for text recognition while drastically reducing the number of visual tokens sent to the LLM.
Methodology
mPLUG-DocOwl2 features a three-tier visual processing pipeline designed for efficiency and accuracy:
- Shape-adaptive Cropping: The image is cut into $R \times C$ sub-images based on its aspect ratio, alongside a global low-resolution overview.
- H-Reducer: Inherited from DocOwl 1.5, this module uses a convolution layer to ensemble horizontal features, reducing the initial token count by 4x and aligning them with the LLM's hidden dimension.
- High-resolution DocCompressor: This core innovation utilizes layout-aware guidance. It uses the features from the global low-resolution image as the query in a cross-attention mechanism. Since the global image captures the overall layout (paragraphs, tables, titles), it effectively guides the compression of the high-resolution sub-image features (the keys and values).
This ensures that the final 324 tokens preserve the most semantically dense information from the high-resolution crops. By aligning high-resolution tokens to their corresponding spatial locations in the global map, the model compresses data without losing spatial context.
Training Framework
The model underwent a rigorous three-stage training process:
- Single-image Pretraining: Utilizing DocStruct4M for basic document structure and parsing.
- Multi-image Continue-pretraining: Introducing MP-DocStruct1M, a newly designed dataset for multi-page parsing and lookup tasks.
- Multi-task Finetuning: A collection of downstream benchmarks including DocVQA, InfoVQA, ChartQA, and VisualMRC.
Experimental Results
DocOwl2 achieved state-of-the-art performance across multiple benchmarks while maintaining superior efficiency. It achieved an 80.7% score on DocVQA, outperforming many models that utilize 5x to 10x more visual tokens. On the MP-DocVQA benchmark, it achieved an ANLS score of 69.42, significantly higher than LongVA-7B (60.80) and Idefics3-8B (67.15).
Crucially, DocOwl2 reduced First Token Latency (FTL) by over 50% compared to previous SOTA models. For instance, on DocVQA, FTL dropped from approximately 0.94s (InternVL2) to 0.26s. By reducing tokens to 324 per page, the model can handle significantly more pages (up to 20+) on standard hardware compared to competitors that hit memory limits much sooner.
Conclusion
mPLUG-DocOwl2 introduces a highly efficient architecture for OCR-free multi-page document understanding. By utilizing the novel High-resolution DocCompressor, the model reduces the visual representation of a document page to just 324 tokens—less than 10% of some competitors—while achieving state-of-the-art performance. Future work may extend this layout-aware compression to even longer sequences, such as high-frame-rate video understanding or massive document archives.
Summary updated