Abstract
dots.ocr is a unified Vision-Language Model (VLM) that masters the "trinity" of document parsing—layout detection, text recognition, and reading order—within a single, end-to-end pass. By combining a custom-trained vision encoder with a massive, 126-language synthetic data engine, it achieves state-of-the-art performance while eliminating the "cascading errors" common in traditional multi-stage pipelines.
Introduction: The Challenge of Document Parsing
Parsing a document is a multi-faceted challenge that extends beyond simple text recognition. It requires a deep understanding of structure, including paragraph boundaries, table layouts, and logical reading sequences. Traditionally, this has been addressed through fragmented pipelines where separate models handle layout detection, optical character recognition (OCR), and reading order determination.
This modular approach suffers from two critical flaws:
- Cascading Errors: Failures in the initial layout detection phase (e.g., missing a column boundary) inevitably lead to incorrect OCR and nonsensical reading orders.
- Data Scarcity: High-quality datasets are predominantly English-centric, leaving the vast majority of the world’s 126+ languages underserved.
The authors of dots.ocr propose a single model that learns these tasks simultaneously, enabling components to mutually reinforce one another.
Methodology: A Unified Vision-Language Approach
The core innovation of dots.ocr is its Unified Task Formulation. Document parsing is treated as an autoregressive generation task: given an image, the model outputs a sequence of coordinates, categories, and text in the correct human reading order.
Architecture
- Vision Encoder (1.2B parameters): Trained from scratch to handle native high-resolution inputs (up to 11 million pixels), allowing the model to capture fine details in dense, complex documents.
- Language Model Decoder (1.7B parameters): Based on the Qwen2.5-1.5B architecture, optimized to balance computational efficiency with the reasoning power required for complex layout interpretation.
The Multilingual Data Engine
To overcome the multilingual data bottleneck, the researchers developed a three-stage pipeline:
- Synthesis: A "teacher" model (Qwen2.5-VL-72B) generates semantically equivalent documents in target languages while maintaining layout logic.
- Distillation: This data trains a smaller "student" model capable of auto-labeling millions of raw PDFs.
- Targeted Correction: A Human-in-the-Loop (HITL) cycle identifies specific weaknesses (e.g., rare symbols or table borders) to "hone" the model’s precision through high-signal data.
Key Insights: The Synergy of the "Trinity"
The research highlights that layout detection, text recognition, and reading order are symbiotic. Training on text recognition acts as a "semantic regularizer," improving layout detection by helping the model recognize that bounding boxes should contain coherent information. Furthermore, reading order serves as a "structural-semantic bridge" connecting low-level pixels to high-level logic; shuffling the training order was found to collapse the model's internal representation of document layout.
Experimental Results
dots.ocr was evaluated against specialized expert models and generalist VLMs (including GPT-4o and Gemini 2.5 Pro) across several benchmarks, including the new XDocParse (126 languages) and OmniDocBench (English and Chinese).
Key performance highlights include:
- State-of-the-Art Benchmarks: Achieved scores of 87.5 (EN) and 84.0 (ZH) on OmniDocBench.
- Global Performance: Surpassed the nearest competitor on the 126-language XDocParse benchmark by +7.4 points, representing a ~10% relative improvement.
- Precision: In text recognition metrics, dots.ocr more than halved the error rate of Gemini-2.5-Pro, demonstrating the efficacy of unified training.
Conclusion and Future Directions
While dots.ocr represents a significant leap in document understanding, processing 11-million-pixel images remains memory-intensive. Future work will explore scaling the model's parameters and integrating this unified paradigm into broader VLM pre-training. The authors envision dots.ocr as a pivotal step toward AI that truly comprehends the world's structured knowledge rather than merely perceiving pixels.
Summary updated