Full text not available for this paper
Summary (Overview)
- WeVisDoc is a two-stage data-centric framework for robust end-to-end document parsing, addressing the gap between data coverage and model capability.
- Stage I builds broad coverage from ~40 million records spanning diverse layouts, languages, and acquisition conditions, combining heterogeneous supervision, executable page synthesis, and source-conditioned appearance degradation.
- Stage II uses a held-out diagnostic probe to measure residual errors within fixed visual–structural clusters, guiding targeted data construction and reallocation of a fixed target-token budget.
- Results: WeVisDoc-4B achieves an Overall score of 95.38 on OmniDocBench v1.6 and a mean Overall score of 75.54 across PureDocBench tracks, ranking first among compared end-to-end parsers in all four settings.
- Key finding: Stage II refinement yields larger gains on degraded pages (e.g., +4.03 points for the 4B model on the Real Degraded track), demonstrating the value of capability-aware data allocation.
Introduction and Theoretical Foundation
Background and Motivation
Document parsing converts document images into structured text while preserving content, element types, structural organization, and reading order. Despite architectural progress, reliable parsing remains challenging due to variations in language, layout, content density, element composition, and acquisition conditions.
Central Challenge
The paper identifies a critical distinction:
Expanding empirical support and increasing exposure to existing support are distinct interventions.
- Expanding empirical support: collecting, retrieving, or synthesizing new records
- Increasing exposure: replaying or reweighting existing records
A key insight is that residual error alone is insufficient evidence of a coverage deficit—it may arise from unreliable targets, low visual observability, decoding failure, or model limitations that additional nearby examples cannot resolve.
Theoretical Foundation
The training objective is defined as loss per supervised token. For record with input image and target sequence , the parser models the target autoregressively:
where is the target length and denotes preceding tokens.
With mask indicators for whether target position contributes to training:
The training objective normalized by supervised target length is:
Methodology
3.1 Task Formulation
The framework uses a unified document parsing approach where targets use Markdown for text, LaTeX for formulas, and HTML for tables. The same parser and output formats apply to pages, regions, and components.
3.2 Stage I: Broad-Coverage Data Construction
Data Sources and Coverage
- ~40 million records spanning:
- Content domains: academic papers, textbooks, reports, forms, receipts, news, handwritten notes
- Layouts: single/multi-column, free-form, sparse/dense pages, formula/table-rich pages
- Languages: Simplified/Traditional Chinese, English, multilingual pages
- Acquisition conditions: born-digital PDFs, scans, photographs, screenshots, screen recapture
Source Balancing and Token Accounting
For source with eligible records and supervised tokens :
where follows available token counts, gives equal shares.
For stream-selection probabilities with desired token share :
Multi-Model Joint Annotation
Three expert parsers (MinerU2.5-Pro, PaddleOCR-VL-1.6, dots.mocr) generate candidate targets. Normalized edit distance (NED) between experts and :
Decision rules:
- All three experts agree (NED < threshold ): high-confidence annotation
- Two agree, one differs: requires image-based review
- All three differ: withheld from Stage I, reviewed by stronger model + humans for Stage II
Broad-Coverage Synthesis
Executable page programs generate both page images and exact targets via dual compilation from semantic HTML, ensuring exact supervision with shared identifiers aligning image regions and structured targets.
Appearance Degradation
Source-specific acquisition paths (paper/copying/transmission effects, physical acquisition like perspective/curvature/illumination) applied while preserving target validity—views that lose content are rejected or assigned visible-content crop targets.
3.3 Stage II: Capability Diagnosis and Targeted Refinement
Hard-Example Mining
- Document-level: full-page NED between Stage I prediction and reliable target
- Component-level: identifies failures occupying little page area (e.g., formulas missing despite readable surrounding text)
- Mining from training pool, disjoint from held-out probe
Verification
High-error records undergo target reliability verification before being treated as hard examples, distinguishing annotation errors from genuine model weaknesses.
Targeted Construction and Allocation
- Validated additions, Stage I replay, and audited hard examples form a ~5M-record refinement pool
- All exposure counted against a fixed Stage II target-token budget
- Stage II freezes the visual encoder and updates only the language model
Empirical Validation / Results
Benchmark Performance
| Model | OmniDocBench v1.6 | PureDocBench Clean | PureDocBench Digital | PureDocBench Real | PureDocBench Avg 3 |
|---|---|---|---|---|---|
| WeVisDoc-4B | 95.38 | 79.8 | 77.7 | 69.1 | 75.54 |
| WeVisDoc-2B | 95.06 | 79.4 | 76.6 | 65.6 | 73.86 |
| HunyuanOCR-1.5 | 94.7 | 74.0 | 70.8 | 61.6 | 68.8 |
| Unlimited-OCR | 93.9 | 71.3 | 63.6 | 53.4 | 62.8 |
| FD-RL | 91.2 | 78.4 | 76.3 | 67.0 | 73.9 |
| Logics-Parsing-v2 | 93.3 | 76.4 | 73.9 | 67.6 | 72.6 |
| Qianfan-OCR | 93.9 | 57.2 | 50.9 | 45.1 | 51.1 |
Key Results
- WeVisDoc-4B ranks first among compared end-to-end parsers in all four settings
- WeVisDoc-2B delivers top-tier performance at half the parameter count
- Stage II improvements are larger on degraded PureDocBench tracks, including a +4.03-point gain for the 4B model on the Real Degraded track
- Stage-wise results are consistent with the benefit of the complete refinement protocol, particularly under degraded acquisition conditions
Theoretical and Practical Implications
Theoretical Implications
- Coverage vs. capability distinction: The paper formalizes that expanding empirical support (new data) and increasing exposure (reweighting existing data) are distinct interventions requiring different diagnostic signals.
- Token-budget framework: Using supervised target tokens (rather than record count) as the optimization budget provides a more principled accounting when records vary substantially in target length.
- Residual error ≠ coverage deficit: The framework explicitly separates annotation errors, unreadable content, and genuine model weaknesses before allocating additional data.
Practical Implications
- Two-stage data-centric pipeline: Provides a reproducible protocol for building robust document parsers without architectural changes.
- Diagnostic probe design: Held-out probes disjoint from training/mining/evaluation enable reliable measurement of residual weaknesses.
- Source-aware balancing: Prevents large corpora from dominating training while preserving diversity.
- Degradation-aware supervision: Validated degraded image–target pairs improve robustness without compromising semantic supervision.
Conclusion
WeVisDoc demonstrates that robust end-to-end document parsing requires not just broad data coverage but capability-aware refinement guided by diagnosed residual weaknesses. The two-stage framework—broad coverage construction followed by targeted refinement under a fixed token budget—achieves state-of-the-art results at both 2B and 4B scales.
Key takeaways:
- Broad coverage alone does not specify how to address a parser's remaining weaknesses
- Systematic diagnosis (via held-out probes, multi-model verification, and group-level aggregation) enables effective allocation of training resources
- Degraded acquisition conditions benefit most from capability-aware refinement
Future directions implied by the work include:
- Isolating the individual contributions of Stage II interventions (validated additions vs. replay vs. hard-example reweighting)
- Extending the framework to other document parsing architectures and modalities
- Further scaling the diagnostic and refinement loop for even larger models
Resources:
- Project Page: https://tencent.github.io/WeVisDoc
- GitHub: https://github.com/Tencent/WeVisDoc
- WeVisDoc-4B: https://huggingface.co/Tencent/WeVisDoc-4B
- WeVisDoc-2B: https://huggingface.co/Tencent/WeVisDoc-2B
Related papers
- SenseNova-U1.5: Towards Native Unified Visual Intelligence
SenseNova-U1.5 is an 8B native unified multimodal model achieving state-of-the-art visual understanding and 4K generation via spatially joint reconstruction and multi-expert on-policy distillation.
- MathForm: Scaling Mathematical Autoformalization with Knowledge Retrieval and Verification-Guided Refinement
MathForm's retrieval-augmented, verification-guided iterative refinement framework produces an 8B model that outperforms 32B baselines, achieving 72.37% average semantic consistency on autoformalization benchmarks.
- LLaDA-Image: Building Strong Image Generators with Fully Open Training Recipes
LLaDA-Image, a diffusion-based large language model, achieves state-of-the-art text-to-image generation and editing in a unified framework, surpassing GPT-Image 2 and FLUX.2 on benchmarks.