Introduction
Document parsing—the conversion of unstructured PDFs or scanned images into machine-readable text, tables, and formulas—is a critical component of modern AI workflows, particularly Retrieval-Augmented Generation (RAG). However, real-world documents often present "messy" challenges, such as multi-page tables, embedded images within cells, and intricate multi-column layouts. To address these complexities, researchers from KingSoft Office and Huazhong University of Science and Technology have developed MonkeyOCR v1.5, a unified vision-language framework designed for robust document understanding.
Methodology: A Two-Stage Vision-Language Framework
MonkeyOCR v1.5 utilizes a refined two-stage approach to balance high-resolution recognition with computational efficiency. This architecture avoids the bottlenecks of full-page end-to-end models while maintaining the structural integrity of the document.
Stage I: Joint Layout and Reading Order Prediction
Unlike traditional pipelines that detect bounding boxes and then sort them via post-processing, MonkeyOCR v1.5 predicts bounding boxes, categories, and reading order indices simultaneously. This joint prediction ensures that the sequence of extracted text remains semantically coherent based on visual cues, solving the "jigsaw puzzle" problem common in earlier systems.
Stage II: Localized Content Recognition
Once the layout is established, each detected region (text, formula, or table) is cropped and processed by the Vision-Language Model (VLM) for high-fidelity recognition. This "parallel recognition" strategy allows the model to focus on fine-grained details within specific bounding boxes, producing structured outputs in JSON, Markdown, or HTML formats.
Key Innovations
The framework introduces several novel techniques to enhance structural accuracy:
- Visual Consistency Reinforcement Learning (GRPO): To scale training without exhaustive manual labeling, the authors implemented a "render-and-compare" loop. A reward model compares the original table image to a version rendered from the model's predicted HTML. Discrepancies result in penalties, allowing the model to learn from unlabeled data by checking its own work against visual evidence.
- Image-Decoupled Table Parsing (IDTP): Using YOLOv10, the system detects images within tables, replaces them with placeholders during parsing, and re-integrates them into the final output. This prevents non-textual visual data from confusing the table structure parser.
- Type-Guided Table Merging (TGTM): To handle tables split across pages, a BERT-based classifier determines if a new fragment is a continuation of a previous table, effectively managing repeated headers or split rows.
Evaluation and Benchmarking Results
The model was evaluated against rigorous benchmarks, including OmniDocBench v1.5, PubTabNet, and OCRFlux.
MonkeyOCR v1.5 currently leads the OmniDocBench v1.5 leaderboard with an overall score of 93.01%, surpassing competitors like PPOCR-VL (92.86%) and MinerU 2.5 (90.67%). Notably, it achieved an 8.2% improvement over the previous state-of-the-art on the OCRFlux-complex dataset, demonstrating exceptional robustness in handling intricate document patterns such as those found in newspapers and academic notes.
Conclusion and Future Work
MonkeyOCR v1.5 represents a significant step forward in document parsing by combining joint layout prediction with specialized table-handling modules. While the two-stage VLM approach requires more resources than lightweight OCR engines, its accuracy on complex documents is unparalleled. Future research will focus on further optimizing computational overhead and expanding the model's capabilities to handle stylized fonts and handwritten annotations.
Trial Link: MonkeyOCR on GitHub
Summary updated