TL;DR
SP-DocReader is a self-play framework designed to polish the performance of Vision Language Models (VLMs) on precise document transcription. By using a "Reading Discrepancy Masking" technique to isolate specific errors made during generation, it focuses training only on the tokens that need correction, leading to a massive 54% reduction in character error rates while keeping the heavy VLM backbone frozen.
What Problem Does This Paper Address?
While modern VLMs are great at summarizing documents or answering general questions, they often stumble when asked to perform "precise OCR"—transcribing every single character, number, and punctuation mark on a page accurately.
Standard Supervised Fine-Tuning (SFT) treats every token in a document with equal weight. However, after initial training, a model might already be 95% accurate. Continuing to train on the entire sequence is inefficient; the model spends most of its "gradient budget" reinforcing things it already knows rather than fixing the tricky 5% of residual errors. Furthermore, high-resolution processing is computationally expensive, and models often struggle to maintain precision when input resolution is lowered to save costs.
Methods
SP-DocReader introduces a self-play loop where the model learns from its own mistakes. The process follows these key steps:
- Reading Discrepancy Masking (RDM): The model (the "main player") generates a transcription of a page. This is compared against the ground truth using a Longest Common Subsequence (LCS) algorithm. This alignment identifies exactly which tokens were misread, skipped, or hallucinated.
- Dual Objective Training: Instead of a standard loss over the whole page, the authors propose two targeted losses:
- Reading Discrepancy Loss: A contrastive loss that encourages the model to score the ground-truth version of the "error zones" higher than its own erroneous generation.
- Focused Fidelity Loss (FFL): A direct supervision loss applied only to the unmatched ground-truth tokens. Crucially, these tokens are still scored using their full original context (prefixes), ensuring the model learns to correct errors within the flow of the document.
- Modular Tuning: To remain efficient, the authors freeze the large VLM backbone (e.g., Qwen or InternVL) and only update a specialized OCR module and projection layers.
- Iterative Refreshing: The framework is iterative. After a round of training, the "opponent" (the version of the model used to generate the errors) is updated to the new, improved version, forcing the model to find and fix increasingly subtle mistakes.
Datasets
The authors utilized a variety of benchmarks to test both in-distribution accuracy and zero-shot generalization:
- Training: A balanced 60k-page subset of Vary-600K (English and Chinese).
- OCR Benchmarks: DocBank (academic papers) and IIT-CDIP (scanned legacy documents) for zero-shot testing.
- Document VQA: DocVQA and InfographicVQA to see if better reading translates to better reasoning.
- Parsing Benchmarks: OmniDocBench, OCRBench v2, and CC-OCR.
Key Insights and Ideas
- The Power of the Delta: The core "aha" moment is that focusing on the discrepancy provides a much sharper signal than full-sequence training. It prevents the model from becoming "lazy" by just predicting easy, repetitive tokens.
- Backbone Freezing as a Feature: Surprisingly, modular tuning (updating only 0.5B parameters) often yielded better zero-shot results than full-parameter tuning (3.8B parameters). Freezing the backbone likely acts as a regularizer, preventing the model from losing its general reasoning capabilities (catastrophic forgetting) while it masters OCR.
- Data Efficiency: SP-DocReader is remarkably data-efficient. The authors found that their method trained on only 30k pages outperformed a standard SFT model trained on 120k pages.
- Resolution Robustness: By focusing on hard tokens, the model becomes more resilient to low-resolution inputs. It achieved lower error rates at 48 DPI than the baseline SFT model achieved at much higher resolutions.
Key Results
- Character Error Rate (CER): On the Qwen3-VL-4B backbone, SP-DocReader reduced the CER on the Vary-600K dataset from 2.40% to 1.11%—a relative improvement of roughly 54%.
- Zero-Shot Generalization: On the DocBank dataset, the CER dropped by 1.90 percentage points, proving the model wasn't just memorizing its training set.
- VQA Performance: Better reading led to better thinking. The model saw a 3.7 point increase in Average Normalized Levenshtein Similarity (ANLS) on DocVQA.
- Qualitative Improvements: As shown in Figure 4, the model successfully corrected specific errors in dates, mathematical formulas, and complex prose where the baseline SFT model hallucinated or misread characters.
Limitations and Future Work
- Single-Page Scope: The current framework focuses on transcribing single pages. Extending this to multi-page documents or complex structured data like nested tables remains a challenge.
- Generation Limits: The model uses a fixed token budget (1024 tokens) for generation, which might truncate extremely dense pages.
- Language Support: While tested on English and Chinese, the authors note that generalization to other languages or different model families hasn't been established yet.
Future work could involve integrating this discrepancy-aware approach into the pre-training phase or applying it to more complex layout analysis tasks.
Summary updated