TL;DR
MinerU-Diffusion reimagines document OCR not as a sequential text generation task, but as a parallel inverse rendering problem solved via diffusion decoding. By replacing standard left-to-right autoregressive decoding with a block-wise diffusion framework and an uncertainty-driven curriculum, it achieves up to a 3.2× speedup while significantly boosting robustness against semantic disruptions.
What Problem Does This Paper Address?
Modern document OCR has evolved far beyond line-by-line text transcription. Today's state-of-the-art systems are expected to perform full document parsing—recovering complex layouts, multi-column text, dense tables, and mathematical formulas all at once.
To do this, most modern systems deploy Vision-Language Models (VLMs) that rely on autoregressive (AR) decoding, generating text token-by-token from left to right. The authors point out two fundamental flaws with this approach:
- Efficiency Bottlenecks: Sequential decoding introduces massive latency that scales linearly with document length. Parsing a long, formula-heavy document becomes computationally expensive and slow.
- Linguistic Over-Reliance: Because AR models are trained like language models, they rely heavily on semantic context to "guess" the next token. When visual signals are weak or layouts are highly irregular, these models suffer from cumulative error propagation and hallucination—essentially writing what makes grammatical sense rather than what is actually on the page.
The authors argue that left-to-right causal generation is merely an artifact of text serialization, not an intrinsic property of OCR. Instead, OCR is fundamentally a deterministic mapping from a 2D image to structured text.
Methods
The authors introduce MinerU-Diffusion, a 2.5B-parameter framework that treats OCR as an inverse rendering problem solved via discrete masked diffusion.
Its architecture and training rely on two novel pillars:
- Block-wise Attention Mechanism: Standard full-attention diffusion models suffer from quadratic complexity ($O(L^2)$) and positional drift over long sequences. MinerU-Diffusion addresses this by partitioning the sequence into contiguous blocks. Tokens can attend bidirectionally within their own block but only causally to preceding blocks. This hybrid approach provides structural anchoring across the document while allowing massive parallel token updates within each block.
- Two-Stage Curriculum Learning: Training any-order diffusion models is notoriously unstable. The authors design a progressive curriculum:
- Stage I (Diversity-Driven Foundational Learning): The model learns broad visual-semantic alignment on a massive, diverse dataset ($D_{base}$).
- Stage II (Uncertainty-Driven Boundary Refinement): The model undergoes "hard case mining." By running multiple stochastic inference passes, the system flags samples with low prediction consistency (high uncertainty) and subjects them to targeted fine-tuning with adaptive sample weighting.
Datasets
MinerU-Diffusion was trained on a massive meta-dataset of approximately 7.5M samples derived from the MinerU2.5 dataset, focusing on Chinese and English document parsing. It was evaluated across several rigorous benchmarks:
- OmniDocBench v1.5: For full-document parsing, layout analysis, and text edit distance.
- CC-OCR & OCRBench v2: For specialized table recognition.
- UniMER-Test: For complex formula recognition.
The Semantic Shuffle Benchmark
To prove that their model relies on true visual decoding rather than language priors, the authors introduced the Semantic Shuffle benchmark. They took 112 English document images from the FOX dataset, shuffled a controlled proportion of the words to destroy semantic coherence, and re-rendered them with consistent formatting.
Key Insights and Ideas
- OCR is Not Language Modeling: The core philosophical shift is that an OCR system should prioritize authentic visual evidence over linguistic plausibility.
- The Parallelism-Accuracy Trade-off is Controllable: By adjusting a dynamic confidence threshold ($T$), users can tune how conservative the diffusion decoding is. Lowering the threshold allows more tokens to be decoded in parallel (higher speed), while raising it ensures higher accuracy by resolving ambiguous tokens more carefully.
- Structural Anchoring via Blocks: Pure non-autoregressive models often lose track of where they are in a long document. Using block boundaries as "anchors" prevents long-range alignment drift while preserving the speed advantages of parallel decoding.
Key Results
- Substantial Speedups: MinerU-Diffusion achieves up to a 3.26× speedup compared to autoregressive baselines like MinerU2.5 at lower confidence thresholds. At a conservative threshold ($T=0.95$), it still delivers a 2.12× speedup while maintaining 99.9% relative accuracy.
- High-Quality Parsing: On OmniDocBench v1.5, MinerU-Diffusion achieved an Overall score of 88.94 without ground-truth layouts (outperforming most AR models) and jumped to 93.37 when provided with oracle layout regions.
- Immunity to Semantic Distortion: On the Semantic Shuffle benchmark, as the text distortion level increased to 100%, the performance of traditional AR decoders degraded sharply. In contrast, MinerU-Diffusion maintained a nearly flat, highly stable performance curve, proving its resilience and pure visual decoding capability.
Limitations and Future Work
- Layout Analysis Bottleneck: The noticeable performance gap between the settings with and without ground-truth layouts indicates that page-level layout analysis remains a key bottleneck for the framework.
- Symbol-Level Precision: While highly competitive, MinerU-Diffusion still shows a slight performance gap behind specialized AR pipelines on highly complex, dense printed mathematical expressions (e.g., the CPE category of UniMER-Test).
- Language Constraints: The current training data and evaluations are strictly limited to Chinese and English, leaving the model's capabilities on low-resource languages untested.
Summary updated