Structured Attention Matters to Multimodal LLMs in Document Understanding

Chang Liu, Hongkai Chen, Yujun Cai, Hang Wu, Qingwen Ye +2 more
6/19/2025
cs.CLcs.AIcs.IR

No official code found. Best implementation: vivo/StructureMatters (9 stars, Apache-2.0, last commit 2025-06-30).

Abstract

Document understanding remains a significant challenge for multimodal large language models (MLLMs). While previous research has primarily focused on locating evidence pages through precise multimodal queries, our work investigates a fundamental yet overlooked aspect: how input format influences document comprehension performance. Through systematic analysis, we discover that raw OCR text often impairs rather than improves MLLMs' performance, which is a counterintuitive finding we attribute to attention dispersion and structure loss. To further substantiate our hypothesis, we propose a novel structure-preserving approach that encodes document elements using the LaTex paradigm, maintaining the hierarchical organization and spatial relationships critical for comprehension. Our attention analysis reveals that structured text induces structured attention patterns on both textual and visual content, directing models to focus on semantically meaningful regions while reducing attention waste. This approach significantly enhances MLLMs' document question answering performance across diverse document types without requiring architectural modifications or additional training.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Structured Attention Matters to Multimodal LLMs in Document Understanding

91Shell, PythonJun 18, 20251 years agoApache-2.0
attentiondocumentunderstandingllm

Cite this paper

@article{liu2025structured,
  title  = {Structured Attention Matters to Multimodal LLMs in Document Understanding},
  author = {Chang Liu and Hongkai Chen and Yujun Cai and Hang Wu and Qingwen Ye and Ming-Hsuan Yang and Yiwei Wang},
  year   = {2025},
  eprint = {2506.21600},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.21600v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.21600.svg)](https://codeofpaper.com/paper/2506.21600)

Discussion