OvisOCR2 Technical Report

Shiyin Lu, Yinglun Li, Yu Xia, Yuhui Chen, An-Yang Ji, Jun-Peng Jiang, Qing-Guo Chen, Jianshan Zhao, En Lin, Haijun Li, Cheng Qin, Zhao Xu, Weihua LuoarXiv 2026

TL;DR

Alibaba Group has introduced OvisOCR2, a compact 0.8B parameter end-to-end document parsing model that converts document images directly into structured Markdown. By combining a sophisticated hybrid data engine with a teacher-student reinforcement learning and distillation pipeline, OvisOCR2 achieves state-of-the-art results on OmniDocBench v1.6, outperforming much larger, complex pipeline-based models.

What Problem Does This Paper Address?

Document parsing—the task of converting document images into machine-readable formats like Markdown while preserving text, formulas, tables, and reading order—is traditionally dominated by multi-stage pipeline methods. These pipelines break the task down into layout analysis, region cropping, specialized OCR, and final merging.

While powerful, pipelines suffer from two major flaws:

  1. Error Accumulation: A mistake in the early layout analysis stage (e.g., misidentifying a table boundary) cannot be corrected by downstream recognizers.
  2. Deployment Complexity: Managing multiple disjoint models with varying runtime loads complicates production environments.

End-to-end models offer a cleaner, single-pass alternative but have historically lagged behind pipelines in accuracy. OvisOCR2 addresses this performance gap, proving that a compact, single-pass model can match or exceed the performance of complex pipelines.

Methods

The authors achieve state-of-the-art performance through a combination of a robust data engine and a novel two-branch training strategy:

1. Hybrid Data Engine

The data engine balances real-world variety with synthetic precision:

  • Real-World Pipeline: Extracts structured data from existing OCR parsers, normalizes them into a unified Markdown schema using strict rule-based filters, and applies manual spot-checking to eliminate low-quality subsets.
  • Synthetic Pipeline: Mines hard failure cases, uses a multimodal LLM to generate programmatic HTML templates, diversifies the content via an AI agent, and renders pixel-perfect images using Playwright. Ground-truth Markdown is derived directly from the DOM, ensuring zero annotation noise.
Architecture of the OvisOCR2 Data Engine

2. Two-Branch Training & On-Policy Distillation

Directly applying Reinforcement Learning (RL) to a small 0.8B model often leads to training instability and policy divergence. To solve this, the authors implement a two-branch approach:

  • Teacher RL: A larger 4B parameter "teacher" model is trained using Group Relative Policy Optimization (GRPO). It optimizes a multi-component reward function that scores text fidelity, visual formula matching (via Character Detection Matching), and table topology (via Tree Edit Distance).
  • On-Policy Distillation (OPD): The reward-aligned preferences of the 4B teacher are distilled into the 0.8B student model using an efficient top-$k$ reverse KL divergence loss. This transfers the structural capabilities of the larger model without exposing the smaller model to high-variance RL training.
  • Model Fusion: Finally, multiple student variants are merged using weighted parameter averaging to boost generalization.

Datasets

The model was trained on a massive mixture of real and synthetic data and evaluated on three key benchmarks:

  • OmniDocBench v1.6: The primary public benchmark, containing 1,651 pages across 10 document types, evaluating text, formulas, tables, and reading order.
  • PureDocBench: A source-traceable benchmark that tests robustness across three tracks: Clean (rendered), Digital (degraded), and Real (handheld photos/photocopies).
  • In-House Benchmark: A dataset of over 1,000 pages specifically targeting challenging, long-tail real-world scenarios like handwriting and complex tables.

Key Insights and Ideas

  • End-to-End is Viable at Scale: OvisOCR2 demonstrates that a compact 0.8B model can dethrone heavily engineered pipelines, challenging the assumption that document parsing requires separate specialized models for layout and text.
  • Distillation Stabilizes Small-Model RL: The paper reveals that direct RL on small models degrades table parsing quality due to high-variance updates. Using a larger teacher to absorb the RL variance and distilling it via reverse KL provides a crucial stabilizing effect.
  • Source-of-Truth Synthesis: Generating synthetic data by rendering HTML and extracting ground truth directly from the DOM eliminates the parser-derived noise that plagues real-world datasets, allowing the model to learn perfect structural layouts.

Key Results

OvisOCR2 achieved dominant results across all evaluated benchmarks:

  • OmniDocBench v1.6: Achieved a state-of-the-art overall score of 96.58, outperforming the leading pipeline method (PaddleOCR-VL-1.6 at 96.33) and improving over the previous best end-to-end model by 1.84 points. It secured the lowest text edit distance and the highest formula and table scores.
  • PureDocBench: Ranked first overall with an Avg3 score of 75.06, leading comfortably on both the Clean and Digital tracks.
  • In-House Benchmark: Outperformed all competitors with an overall score of 85.54. Notably, on the complex-table subset, OvisOCR2 reduced the table missing rate to 7.96%, whereas traditional pipeline methods missed 13–17% of tables during layout analysis.

Limitations and Future Work

Despite its success, OvisOCR2 faces clear limitations in real-world physical environments. On the Real track of PureDocBench (which features phone-captured pages and screen photography), OvisOCR2's performance falls below massive, general-purpose proprietary VLMs like Gemini-3.1-Pro and Kimi K2.6.

The authors note that improving robustness against severe physical image degradations and further refining performance on heavily handwritten documents remain key directions for future work.

Summary updated

BibTeX
@misc{lu2026ovisocr,
  author = {Shiyin Lu and Yinglun Li and Yu Xia and Yuhui Chen and An-Yang Ji and Jun-Peng Jiang and Qing-Guo Chen and Jianshan Zhao and En Lin and Haijun Li and Cheng Qin and Zhao Xu and Weihua Luo},
  title = {{OvisOCR2 Technical Report}},
  year = {2026},
  eprint = {2607.13639},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.13639},
}
Figure