OvisOCR2 Technical Report
arXiv · HuggingFace · ▲52
Abstract (verbatim)
We introduce OvisOCR2, a 0.8B document parsing model. OvisOCR2 is designed as an end-to-end parser: given a document page image, it generates a Markdown representation in natural reading order, covering text, formulas, tables, and visual regions. We build a data engine that combines filtered real-document annotations with synthetic pages whose rendered images and Markdown targets are derived from the same HTML source. The training recipe includes supervised fine-tuning, reinforcement learning on a 4B branch with a multi-component reward design, on-policy distillation into the 0.8B model, and model fusion. On OmniDocBench v1.6, OvisOCR2 achieves a state-of-the-art overall score of 96.58, placing an end-to-end model at the top of this leaderboard previously dominated by pipeline methods and highlighting the potential of end-to-end document parsing. On PureDocBench, OvisOCR2 also achieves the highest Avg3 score of 75.06. Beyond these two public benchmarks, we evaluate OvisOCR2 on an in-house benchmark designed to cover a broader set of long-tail and challenging scenarios. OvisOCR2 obtains the best overall performance among the compared methods, providing further evidence of its generalization and robustness. OvisOCR2 is available at https://huggingface.co/ATH-MaaS/OvisOCR2.
Background
Background Analysis
Technical Context: Document parsing technology converts visually rich document images (e.g., scans, PDFs, or photos) into machine-readable structured formats like Markdown. It is critical for digital office workflows, knowledge management, and search engine indexing, where accurate extraction of text, tables, formulas, and their original layout/order is required. For example, enterprises need to digitize paper contracts into searchable electronic documents, while academic platforms extract structured data from paper-based research for retrieval.
Previous Limitations: Existing approaches fall into two categories:
1. Pipeline Methods: These process documents in sequential steps (layout analysis → content recognition → merging). While they perform well on benchmarks like OmniDocBench, they are complex to deploy and prone to error accumulation (e.g., misidentified table boundaries cannot be corrected downstream). Different modules also have uneven computational costs.
2. End-to-End Methods: These use a single model to generate results directly, simplifying deployment but historically underperforming compared to pipelines. Prior end-to-end models struggled with long documents, complex layouts (e.g., nested tables), or handwritten content, leading to lower scores on public benchmarks.
OvisOCR2’s Solution: This paper proposes an optimized end-to-end approach:
- Data Engine: Combines real document annotations with synthetic data (generated from HTML templates to produce both images and corresponding Markdown), improving adaptability to diverse scenarios.
- Training Strategy: Uses supervised fine-tuning, reinforcement learning (on a 4B-parameter model), on-policy distillation (compressed into 0.8B), and model fusion to balance performance and efficiency.
- Goal: Achieve SOTA results with a lightweight model, surpassing current pipeline-based leaders.
Key Differences: Compared to prior work, OvisOCR2 stands out by:
1. Performance Breakthrough in End-to-End Design: For the first time, a single model outperforms pipelines on mainstream benchmarks like OmniDocBench.
2. Lightweight yet Efficient Training: Achieves SOTA results using the small Qwen3.5-0.8B model, making it suitable for resource-constrained deployments.
3. Comprehensive Data Strategy: Synthetic data augments real annotations, enhancing robustness.
This work demonstrates the potential of end-to-end models in document parsing, offering a more efficient solution for practical applications.









