Back to Feed
Multimodal / Reinforcement Learning

Converting Document Images to Markdown Efficiently

Original: OvisOCR2 Technical Report

Listen to the summary

Uses a voice available on your device

Audio options
On this page 4 sections
Related concepts 8 concepts

Key Takeaways

  • Uses a Qwen3.5-0.8B backbone to convert complex document images into structured Markdown.
  • Employs reinforcement learning with specific rewards for text fidelity and table structure to improve parsing accuracy.
  • Features a distillation process to transfer knowledge from a 4B parameter teacher model to the compact 0.8B student model.
  • Achieves a score of 96.58 on OmniDocBench v1.6 and 75.06 on PureDocBench.

Summary & Methodology Analysis

The OvisOCR2 architecture leverages the Qwen3.5-0.8B backbone to handle document parsing. The training pipeline begins with a data engine that merges real-world document annotations with synthetic pages generated from HTML templates. Following this initial setup, the team performs supervised fine-tuning to establish a baseline generation policy. To refine the model for complex tasks, they use Reinforcement Learning with Group Relative Policy Optimization, or GRPO, which is an alignment technique that optimizes the model policy based on rewards for text fidelity, formula character detection, and table tree-edit similarity.

Interactive System Flowchart

Click diagram to expand and zoom

Cross-Examination & FAQs

A deeper dive clarifying mechanics, constraints, and baseline evaluations.

Q1. What is the primary goal of OvisOCR2?

The goal is to convert visually rich document images into structured, machine-readable Markdown in a single pass.

Q2. How does the model perform on benchmarks?

OvisOCR2 achieves an overall score of 96.58 on OmniDocBench v1.6 and an Avg3 score of 75.06 on PureDocBench.

Q3. Does this model work for all document types?

The model has limitations regarding its robustness to degraded real-world images compared to some general vision language models.

Q4. What is the purpose of the distillation process mentioned?

On-policy distillation is used to transfer reward-aligned behaviors from a 4B teacher model to the 0.8B student model using token-level distribution supervision.

Q5. What specific metrics are used in the reinforcement learning reward design?

The rewards are based on text fidelity, formula character detection, and table tree-edit similarity.

Q6. How are the training data samples generated?

The data engine combines real-document annotations processed by OCR parsers with synthetic document pages rendered from HTML templates.

Q7. What happens after the initial training variants are created?

Model fusion is applied, which uses weighted parameter averaging to combine multiple trained candidate variants.

Q8. How does OvisOCR2 handle table structures?

The reinforcement learning reward design includes a specific component for table tree-edit similarity to improve the accuracy of structured data extraction.

Q9. Are there specific hardware requirements for running OvisOCR2?

The paper does not specify the hardware requirements for running the model.