Introduction
Multimodal Large Language Models (MLLMs) have demonstrated remarkable capabilities in natural scene understanding. However, document images present a distinct set of challenges: they are often visually cluttered and information-dense. Traditional "one-pass" inference paradigms, which process an entire high-resolution image simultaneously, often struggle with these complexities. In a dense document, the answer to a specific query typically resides within a minute fraction of the page. Treating all pixels with equal importance can lead to distraction by redundant information, resulting in hallucinations or unfaithful responses.
To address this, we introduce Doc-CoB (Chain-of-Boxes), a novel two-stage reasoning framework that mimics the human "coarse-to-fine" reading pattern. Humans naturally scan a layout, identify relevant sections, and then focus on extracting specific details. Doc-CoB bridges this cognitive gap without requiring architectural changes to the underlying MLLM.
Methodology: The Two-Stage Reasoning Paradigm
The Doc-CoB framework decomposes document understanding into two sequential stages: Key Box Selecting (S1) and Focused Answering (S2).
- Key Box Selecting (S1): The model is provided with a document image where layout elements, detected by an off-the-shelf analyzer, are overlaid with unique ID labels. The MLLM is tasked with identifying the IDs of the "boxes" most relevant to the user's query.
- Focused Answering (S2): Once the key boxes are selected, the image is modified using a Blur Reverse Mask. Areas outside the selected boxes are blurred, while the key boxes are highlighted with red borders. The model then generates a final answer based on this focused visual input, effectively reducing visual noise and forcing the attention mechanism to ground its reasoning in the correct evidence.
To support this framework, the authors developed a fully automatic data generation pipeline utilizing GPT-4o as a linguistic annotator and MinerU as a visual layout analyzer. Furthermore, two Enabling Tasks were introduced during training: Box-ID Recognition, which teaches the model to map coordinates to IDs, and Box-Query Reasoning, which requires the model to explain the relevance of a specific box to a question.
Experimental Setup and Datasets
The Doc-CoB training dataset comprises 249k samples repurposed from nine existing document datasets, including DocVQA, DUDE, DeepForm, and PubLayNet. Evaluation was conducted across seven major benchmarks focusing on Document Question Answering (DocQA) and Information Extraction (DocIE).
Key Results and Discussion
The experimental results demonstrate that Doc-CoB acts as a significant performance multiplier for smaller MLLMs.
As shown in the results table, InternVL2-8B-CoB achieved an 80.05% score on the DeepForm benchmark, a dramatic improvement over the 36.33% baseline. Remarkably, this 8B parameter model outperformed GPT-4o on all seven benchmarks and surpassed the InternVL2-40B model on six out of seven. These findings suggest that where a model looks is often more critical than the total number of parameters or pixels processed.
Additional insights from the study include:
- The "Focus" Effect: Blurring irrelevant information consistently improves accuracy by forcing the model to ignore visual clutter.
- Layout Tool Agnosticism: The framework is robust to the choice of layout analyzer. Even basic OCR-based clustering (K-means) provided significant performance boosts.
- Efficiency: Doc-CoB achieves higher accuracy even at lower image resolutions compared to vanilla models, proving its efficiency in token usage.
Conclusion and Future Work
Doc-CoB demonstrates that a structured, two-stage reasoning process can significantly enhance the document understanding capabilities of MLLMs. By mimicking human focus, smaller models can achieve state-of-the-art performance previously reserved for much larger systems.
Future work will address current limitations, such as the dependency on initial layout detection and the linear nature of the selection process. The researchers aim to explore iterative self-verification steps and finer-grained "sub-box" reasoning to further push the boundaries of automated document understanding.
Summary updated