mPLUG-DocOwl 1.5: Unified Structure Learning for OCR-free Document Understanding

Anwen Hu, Haiyang Xu, Jiabo Ye, Ming Yan, Liang Zhang, Bo Zhang, Ji Zhang, Qin Jin, Fei Huang, Jingren Zhou

Multimodal Large Language Models (MLLMs) have made significant strides in general image understanding but often falter when faced with text-rich documents, tables, and charts. mPLUG-DocOwl 1.5 addresses this by introducing "Unified Structure Learning," a paradigm that shifts the focus from simple OCR to comprehensive structural parsing. By employing a novel H-Reducer module to maintain spatial relationships and training on the massive 4-million-sample DocStruct4M dataset, the model achieves state-of-the-art performance across ten diverse benchmarks without relying on external OCR engines.

The Challenge of Text-Rich Documents

While Large Language Models (LLMs) excel at processing textual data, their multimodal counterparts frequently struggle with "text-rich" images. In documents, tables, and charts, meaning is derived not just from words, but from their spatial arrangement—the relationship between a header and a cell, or an axis label and a data point. Most current "OCR-free" models attempt to read text directly from pixels but often fail to grasp this underlying visual architecture. Existing solutions typically either ignore structure, focus on narrow domains like webpages, or use modules that "squash" visual features, losing critical spatial information. mPLUG-DocOwl 1.5 aims to bridge this gap by teaching models to parse the visual architecture of a document as effectively as they read its words.

The H-Reducer: Preserving Spatial Context

A primary challenge in document understanding is the high resolution required to read small text, which results in a massive number of visual tokens. For instance, a 1.3k resolution image can produce over 9,000 tokens, overwhelming the LLM decoder. To mitigate this, the authors propose the H-Reducer (Horizontal Reducer).

Unlike traditional "resampler" modules that use cross-attention and can lose the "grid" nature of an image, the H-Reducer employs a simple 1x4 convolution kernel to merge horizontally adjacent visual patches. This design choice stems from the observation that human-written text is predominantly organized horizontally. By merging along this axis, the H-Reducer reduces the token count by 75% while maintaining the spatial layout and semantic coherence of the text. This preservation of relative positions is crucial for understanding complex structures like table boundaries.

Unified Structure Learning and DocStruct4M

The model's structural intelligence is developed through a two-stage training process called Unified Structure Learning.

In Stage 1, the model is trained on "structure-aware" tasks. It learns to parse documents using line feeds (\n) and spaces to represent layout, and utilizes an extended Markdown syntax to represent the grids of tables and charts. This stage also includes "multi-grained text localization," where the model learns to ground text at the word, phrase, line, and block levels. This capability is essential for precise information extraction and grounding.

mPLUG-DocOwl 1.5 demonstrates precise multi-grained text localization, identifying specific fields like "Response Code Assigned" within complex document layouts.

To support this training, the authors constructed DocStruct4M, a dataset containing 4 million samples across five domains: documents, webpages, tables, charts, and natural images. By ensembling 17 public datasets and converting them into structure-aware formats (like Markdown for tables), the model gains a universal understanding of visual structures.

Performance and Benchmarking

mPLUG-DocOwl 1.5, with 8.1B parameters, achieved state-of-the-art (SOTA) performance among OCR-free models on all 10 evaluated benchmarks, including DocVQA, ChartQA, and WTQ.

The model exhibits robust performance across diverse domains, including complex tables, bar charts, and pie charts, accurately extracting and reasoning over structural data.

Notably, the model demonstrates remarkable efficiency. It outperformed the significantly larger CogAgent (17.3B parameters) on benchmarks like InfoVQA (50.4 vs 44.5) and ChartQA (70.5 vs 68.4), despite having half the parameters and being trained on less data. Qualitative results further show that the model can accurately reconstruct complex tables into Markdown and explain its reasoning by citing specific structural elements. On the newly introduced DocLocal4K benchmark, the H-Reducer significantly outperformed standard modules in both text grounding and recognition.

Conclusion

mPLUG-DocOwl 1.5 represents a significant step forward in OCR-free document understanding. By prioritizing spatial preservation through the H-Reducer and utilizing Markdown as a universal structural language, it overcomes the limitations of previous MLLMs. While challenges remain—such as token limits for multi-page documents and performance on "scene text" in natural environments—the model's ability to "read" structure as well as text sets a new standard for the field.

Summary updated

BibTeX
@inproceedings{hu2024mplug,
  author = {Anwen Hu and Haiyang Xu and Jiabo Ye and Ming Yan and Liang Zhang and Bo Zhang and Ji Zhang and Qin Jin and Fei Huang and Jingren Zhou},
  title = {{mPLUG-DocOwl 1.5: Unified Structure Learning for OCR-free Document Understanding}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.175},
}
Figure