Reading or Reasoning? Format Decoupled Reinforcement Learning for Document OCR

Yufeng Zhong, Lei Chen, Zhixiong Zeng, Xuanle Zhao, Deyang Jiang, Liming Zheng, Jing Huang, Haibo Qiu, Peng Shi, Siqi Yang, Lin Ma

Abstract

Reading text from images or scanned documents via OCR models has been a longstanding focus of researchers. Intuitively, text reading is perceived as a straightforward perceptual task, and existing work primarily focuses on constructing enriched data engineering to enhance SFT capabilities. In this work, we observe that even advanced OCR models exhibit significantly higher entropy in formatted text (e.g., formula, table, etc.) compared to plain text, often by an order of magnitude. These statistical patterns reveal that advanced OCR models struggle with high output uncertainty when dealing with format sensitive document, suggesting that reasoning over diverse reading pathways may improve OCR performance. To address this, we propose format decoupled reinforcement learning (FD-RL), which leverages high-entropy patterns for targeted optimization. Our approach employs entropy-based data filtration strategy to identify format-intensive instances, and adopt format decoupled rewards tailored to different format types, enabling format-level validation rather than token-level memorization. FD-RL achieves an average score of 90.41 on OmniDocBench, setting a new record for end-to-end models on this highly popular benchmark. More importantly, we conduct comprehensive ablation studies over data, training, filtering, and rewarding strategies, thoroughly validating their effectiveness.

Introduction: The Entropy Challenge in Document OCR

While modern Vision-Language Models (VLMs) excel at reading plain text, they often falter when encountering "formatted text"—complex mathematical formulas, multi-column tables, or intricate layouts. Traditional approaches have focused on massive data scaling and Supervised Fine-Tuning (SFT). However, researchers from Meituan have identified a fundamental bottleneck: for complex documents, the challenge is not just "seeing" the characters, but "reasoning" through the correct structural pathway.

A key discovery driving this work is the "entropy signal." Even advanced OCR models exhibit output entropy (a measure of uncertainty) on formatted text that is often an order of magnitude higher than on plain text. This high uncertainty indicates that the model is struggling to decide on structural rules, leading to token-level memorization rather than true understanding.

Average Entropy Multiple vs. Proportion of Format-decoupled Text Tokens

Methodology: The FD-RL Framework

To address these challenges, the authors introduce Format Decoupled Reinforcement Learning (FD-RL), a two-stage training paradigm that treats complex OCR as a reasoning task.

Stage 1: Supervised Fine-Tuning (SFT)

The model is first trained on a curated 566k sample dataset to establish a robust baseline. This dataset includes enhanced open-source data (PDFA, DocStruct4M, DocGenome), real-world PDF data (208k samples), and synthetic OCR data (118k samples) designed to fill gaps in educational and academic content.

Stage 2: Format Decoupled Reinforcement Learning

The core innovation lies in the second stage, which utilizes the Group Relative Policy Optimization (GRPO) algorithm and two key strategies:

  1. Entropy-based Data Filtration: Instead of training on the entire corpus, the SFT model identifies "hard" samples where it is most uncertain (high entropy). Focusing RL on these samples forces the model to reason through complex structures.
  2. Format Decoupled Rewards: To move beyond simple character matching, the framework employs rewards tailored to specific content types:
  3. Plain Text: Standard string matching.
  4. Formulas: Semantic equivalence in LaTeX (expression correctness).
  5. Tables: Structural coherence using the TEDS metric.
The two-stage FD-RL training framework: SFT followed by Reinforcement Learning with decoupled rewards.

Results and Performance

FD-RL set a new state-of-the-art for end-to-end models on the OmniDocBench benchmark, achieving an overall score of 90.41. This significantly outperforms previous leading models like dots.ocr (88.41) and Deepseek-OCR (87.01).

Key performance metrics include:

  • Formula Recognition: A record-high CDM score of 88.67.
  • Table Parsing: A TEDS score of 87.35, demonstrating superior robustness in preserving complex hierarchies.

Ablation studies revealed that "more data" isn't always better; filtering for the top 50% highest-entropy samples yielded better results than using 100% of the data, proving that challenging the model's reasoning is more effective than redundant training.

Conclusion and Future Directions

FD-RL demonstrates that reinforcement learning, guided by entropy signals and format-specific rewards, can significantly level up document OCR capabilities. By shifting the focus from perceptual reading to structural reasoning, the model learns the underlying rules of complex documents. Future work will look into more granular reward functions and extending this approach to even more diverse document types, such as handwritten charts or architectural diagrams.

Summary updated

BibTeX
@inproceedings{zhong2026reading,
  author = {Yufeng Zhong and Lei Chen and Zhixiong Zeng and Xuanle Zhao and Deyang Jiang and Liming Zheng and Jing Huang and Haibo Qiu and Peng Shi and Siqi Yang and Lin Ma},
  title = {{Reading or Reasoning? Format Decoupled Reinforcement Learning for Document OCR}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=o5NB6Bi4GE},
}
Figure