Introduction
Multimodal Large Language Models (MLLMs) have significantly advanced visual understanding, yet they often struggle with document-intensive tasks. While identifying objects in natural scenes is effective at low resolutions, documents contain fine-grained text and complex layouts that require high-resolution processing to remain legible. HRVDA (High-Resolution Visual Document Assistant) addresses this by enabling efficient 1536×1536 resolution processing through intelligent token pruning.
The Challenge of High-Resolution Documents
Standard MLLMs typically operate at resolutions like 224×224, which is insufficient for documents where small text becomes unreadable upon resizing. Simply increasing resolution leads to a "token explosion." For instance, a 1536×1536 image can generate over 9,000 visual tokens, far exceeding the context limits of models like LLaMA-2 and causing quadratic increases in computational overhead.
Methodology: Smart Filtering for Efficiency
HRVDA utilizes a Swin Transformer backbone, chosen for its hierarchical structure which is better suited for localized document text than standard ViTs. The core innovation lies in two filtering stages that "slim down" visual data before it reaches the LLM:
- Content Filtering Mechanism (CFM): Recognizing that documents often contain significant white space, HRVDA uses a pluggable Content Detector to identify regions with text, tables, or charts. Tokens representing empty areas are pruned, often reducing the count by 50% without information loss.
- Instruction Filtering Module (IFM): This module aligns visual data with the user's specific query. By fusing visual tokens with the instruction, the model prunes tokens that are irrelevant to the task at hand—much like a human eye zooming in on a relevant section of a form.
The model is trained in four stages: training the content detector, pre-training the image encoder on pseudo-OCR tasks, training the IFM, and finally instruction tuning the LLM (LLaMA-2-7B) using LoRA.
Key Results and Performance
HRVDA achieves state-of-the-art (SOTA) performance across 9 out of 12 benchmarks, including CORD (89.3 F1) and SROIE (91.0 F1). Crucially, it maintains high efficiency; despite the 1536×1536 input resolution, its inference speed is comparable to models using 448×448 inputs. By setting filtering thresholds to 0.5, the model achieves a 61% reduction in runtime compared to non-filtered baselines.
Conclusion
By leveraging the inherent sparsity of document images and instruction-aware pruning, HRVDA demonstrates that high-resolution document AI can be both accurate and computationally efficient. While challenges remain with extremely dense text and extreme aspect ratios, HRVDA provides a robust framework for the next generation of visual document assistants.
Summary updated