MonkeyOCR: Document Parsing with a Structure-Recognition-Relation Triplet Paradigm

Zhang Li, Yuliang Liu, Qiang Liu, Zhiyin Ma, Ziyang Zhang, Shuo Zhang, Zidun Guo, Jiarui Zhang, Xinyu Wang, Xiang BaiarXiv 2025 · DOI

Abstract

Document parsing—converting complex PDFs or images into structured formats like Markdown—remains a significant challenge in artificial intelligence. Current approaches typically fall into two categories: multi-stage pipelines that suffer from cumulative errors, or massive end-to-end models that are computationally expensive and prone to hallucinations. We present MonkeyOCR, a novel framework based on the Structure-Recognition-Relation (SRR) triplet paradigm. By leveraging the new 4.5-million-instance MonkeyDoc dataset and a novel Contiguous Parameter Degradation (CPD) pruning technique, MonkeyOCR achieves state-of-the-art performance, outperforming models like Gemini 2.5-Pro while maintaining high efficiency on consumer-grade hardware.

Introduction

Converting complex documents into structured formats is essential for digitizing information. Traditional pipeline-based toolchains often fail due to "cumulative error": if a layout model crops a formula slightly incorrectly, the subsequent recognizer cannot recover the information. Conversely, large-scale end-to-end models, while robust, are computationally intensive and struggle with the quadratic cost of self-attention on long, dense sequences. MonkeyOCR introduces a "middle way" that balances the robustness of end-to-end models with the efficiency of modular pipelines.

The SRR Paradigm

The core of MonkeyOCR is the SRR paradigm, which decomposes the parsing task into three distinct yet integrated components:

  1. Structure ("Where is it?"): A DETR-based model identifies regions of interest, such as text blocks, tables, and formulas.
  2. Recognition ("What is it?"): Instead of multiple specialized tools, a single Large Multimodal Model (LMM) recognizes the content of these blocks in parallel, avoiding the long-context bottleneck of full-page processing.
  3. Relation ("How is it organized?"): A dedicated model determines the logical reading order of the detected elements to ensure coherent output.
The Structure-Recognition-Relation (SRR) paradigm for document parsing.

Efficiency through CPD

To optimize the model for production, the authors developed Contiguous Parameter Degradation (CPD). Research indicated that many middle layers in 3B-parameter models are redundant for specific OCR tasks. By skipping contiguous sequences of these layers and fine-tuning the remaining architecture, the model can be compressed to 0.6B–1.2B parameters. This results in negligible performance loss while enabling deployment on a single NVIDIA RTX 3090 GPU.

The MonkeyDoc Dataset

A major contribution of this work is MonkeyDoc, a comprehensive dataset of 4.5 million bilingual (English/Chinese) instances. Spanning over 10 document types—including academic papers, financial reports, and textbooks—it specifically addresses the historical scarcity of high-quality Chinese document data. This dataset was instrumental in training MonkeyOCR to handle diverse and complex layouts with high precision.

Key Results and Insights

MonkeyOCR-3B sets a new benchmark on OmniDocBench, surpassing both open-source giants like Qwen2.5-VL-72B and closed-source models such as Gemini 2.5-Pro and GPT-4o. The researchers found that parallelizing block recognition allows the model to run 2.09x faster than standard end-to-end baselines. Furthermore, the 1.2B version (created via CPD) offers a 34% speed improvement over the 3B model with only a 1.5% drop in performance.

Performance comparison of MonkeyOCR against state-of-the-art models on the OmniDocBench.

Conclusion and Future Work

MonkeyOCR demonstrates that a structured triplet approach can outperform massive end-to-end models in both accuracy and efficiency. While the SRR paradigm significantly reduces cumulative errors, it remains dependent on the initial detection step. Future research will focus on handling "non-Manhattan" (irregular) layouts and improving cross-page logic for tables and paragraphs that span multiple pages.

Reference: Li, Z., Liu, Y., et al. "MonkeyOCR: Document Parsing with a Structure-Recognition-Relation Triplet Paradigm." arXiv:2506.05218v2, 2026.

Summary updated

BibTeX
@misc{li2025monkeyocr,
  author = {Zhang Li and Yuliang Liu and Qiang Liu and Zhiyin Ma and Ziyang Zhang and Shuo Zhang and Zidun Guo and Jiarui Zhang and Xinyu Wang and Xiang Bai},
  title = {{MonkeyOCR: Document Parsing with a Structure-Recognition-Relation Triplet Paradigm}},
  year = {2025},
  eprint = {2506.05218},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.05218},
}
Figure