Abstract
Document Parsing (DP) is the critical process of converting unstructured document images into machine-readable formats like Markdown or JSON. This paper surveys the evolution of DP from traditional modular pipelines to modern end-to-end Vision-Language Models (VLMs). We explore core methodologies, essential benchmarks like OmniDocBench, and the pivotal role of DP as a bottleneck in modern Retrieval-Augmented Generation (RAG) systems.
Introduction
While digital communication is ubiquitous, a vast amount of human knowledge remains locked in "dumb" formats such as scanned PDFs and academic papers. Document Parsing aims to bridge the "visual-semantic" gap, requiring systems to not only perform Optical Character Recognition (OCR) but also to interpret complex layouts, table structures, and specialized content like mathematical formulas. This synthesis provides a unified perspective on the state of the art and the remaining hurdles for intelligent document understanding.
Document Parsing Methodology
The field has evolved into two primary architectural paradigms: Modular Pipeline Systems and End-to-End Vision-Language Models.
1. Modular Pipeline Systems
The traditional approach employs a "divide and conquer" strategy using a sequence of specialized models:
- Layout Analysis: Utilizing CNNs (e.g., YOLO) or Transformers (e.g., LayoutLM) to identify regions of interest.
- Content Extraction: Dedicated modules for OCR, Mathematical Expression Recognition (MER), and Table Structure Recognition (TSR).
- Relation Integration: A final stage using spatial coordinates and rule-based logic to reconstruct the logical reading order.
2. End-to-End Vision-Language Models (VLMs)
The emerging frontier treats DP as a sequence-to-sequence problem. Models like Nougat, Donut, or GOT bypass the pipeline by using a Vision Transformer (ViT) encoder and a text decoder to directly generate structured text from document images.
Datasets and Benchmarks
Effective evaluation requires diverse benchmarks. Key datasets include PubLayNet and DocLayNet for layout analysis, UniMER-1M for formulas, and PubTabNet for tables. A significant recent contribution is OmniDocBench, a comprehensive dataset with over 100,000 annotations designed to evaluate the cascading impact of errors across the entire parsing workflow.
Key Insights and Ideas
The RAG Bottleneck
Document parsing is frequently the "weakest link" in Retrieval-Augmented Generation (RAG) systems. If a parser misinterprets a table or omits a formula, the downstream Large Language Model (LLM) will inevitably produce hallucinations or fail to retrieve accurate information.
Logical vs. Physical Layout
A critical advancement is the distinction between physical layout (spatial positioning) and logical layout (semantic role). Modern research is shifting toward Logical Layout Analysis to better preserve the semantic flow of information.
Unified Object Recognition
The "Everything is an Object" paradigm, exemplified by the General OCR Theory (GOT) model, suggests treating text, formulas, and charts as unified objects. This simplifies architecture and improves the model's ability to generalize across diverse content types.
Key Results and Performance
- Nougat: Established as a milestone for being the first end-to-end model optimized for academic documents, successfully replacing complex multi-stage pipelines.
- GOT (General OCR Theory): Represents the current state-of-the-art in "OCR 2.0," providing high-resolution processing and unified handling of formulas, charts, and geometric shapes.
- Paradigm Shift: While modular systems remain superior for high-precision specialized tasks (e.g., financial extraction), VLMs are rapidly closing the performance gap for general-purpose document understanding.
Limitations and Future Work
Despite progress, several challenges remain:
- High-Density Content: VLMs still struggle with extremely crowded pages and small fonts.
- Efficiency: There is a growing need for "Small Document Models" capable of efficient deployment on edge devices.
- Structural Metrics: Standard text metrics like BLEU are insufficient; new metrics like TEDS for tables are required to evaluate the meaning of the layout.
- Multilingual Support: Expanding high-quality datasets beyond English and Chinese is essential for global applicability.
Summary updated