TL;DR
Traditional OCR systems extract text but leave complex visual elements like charts, diagrams, and icons behind as dead pixel crops. This paper introduces Multimodal OCR (MOCR) and a compact 3B-parameter model called dots.mocr that parses both text and graphics into a unified, structured code representation (such as SVG and LaTeX). By treating visual elements as first-class parsing targets, it achieves state-of-the-art document parsing and even outperforms commercial giants like Gemini 3 Pro on structured graphics reconstruction.
What Problem Does This Paper Address?
Real-world documents—ranging from scientific PDFs to webpages and screenshots—convey information not just through words, but through structural layouts, mathematical formulas, and information-dense graphics.
Current document parsing pipelines are heavily text-centric: they recognize characters but treat non-textual regions as black-box image crops. This approach is inherently lossy. It discards the rich geometric and semantic structures embedded within charts or diagrams and fails to capture how these visual components relate to the surrounding text. The authors address this gap by reframing OCR as a multimodal task: translating an entire document page into clean, reusable, and renderable code.
Methods
The authors develop dots.mocr, a unified architecture consisting of three primary components:
- High-Resolution Vision Encoder (1.2B parameters): Trained entirely from scratch, this backbone is engineered to ingest high-resolution inputs up to ~11M pixels. This massive throughput is critical for preserving small fonts and fine-grained graphic primitives like chart markers or diagrammatic lines.
- Lightweight Multimodal Connector
- Autoregressive Language Decoder (Qwen2.5-1.5B): Initialized from a base model to natively learn strongly structured target sequences and long-range dependencies.
To stabilize training over highly heterogeneous data, they implement a three-stage pretraining curriculum:
- Stage 1: General-purpose vision training to build a stable vision-language interface.
- Stage 2: Joint pretraining on general vision data mixed with text-only document parsing.
- Stage 3: Shifting the focus toward MOCR-specific targets, heavily emphasizing multimodal document parsing and image-to-SVG graphics reconstruction.
During supervised fine-tuning (SFT), they introduce strict data normalization—such as SVG canonicalization and viewBox normalization—to handle the fact that different code strings can render visually identical graphics.
Datasets
The training corpus is built using a scalable data engine drawing from four diverse sources:
- PDF Documents: Multilingual page transcriptions with layout regions and reading orders, auto-labeled via
dots.ocr. - Webpages: Rendered page images with aligned structural signals extracted directly from the HTML/DOM.
- SVG Graphics: Native web assets (icons, charts, UI elements) cleaned via
svgoand deduplicated using perceptual hashing (pHash). - General-Purpose Data: Standard vision datasets for grounding and counting to maintain broad robustness.
For evaluation, the authors introduce OCR Arena, an automated framework based on the LLM-as-a-judge paradigm. Using Gemini 3 Flash, it conducts rigorous, symmetric pairwise comparisons of model outputs against the original document image to calculate an Elo rating. They also evaluate on standard benchmarks including olmOCR-Bench, OmniDocBench 1.5, XDocParse, and several image-to-SVG benchmarks (UniSVG, ChartMimic, Design2Code, GenExam, SciGen, ChemDraw).
Key Insights and Ideas
- Graphics as Code: The core "aha" moment is that document graphics shouldn't be treated as pixels, but as executable code. Converting a chart into SVG code unlocks a massive, previously discarded source of multimodal supervision.
- The "Render-and-Reuse" Workflow: Parsing visuals into structured code allows documents to contribute highly controllable, structured data that can directly power the next generation of multimodal LLM pretraining.
- Mitigating Evaluation Brittleness: Traditional string-matching metrics (like Word Error Rate) fail on complex Markdown or LaTeX because they penalize semantically identical but structurally different code variations. The "OCR Arena" Elo system offers a robust, semantic-aware alternative.
Key Results
- Document Parsing:
dots.mocrachieves the strongest Elo performance among all open-source models on the OCR Arena leaderboard, ranking second overall behind only Gemini 3 Pro. It sets a new state-of-the-art score of 83.9 onolmOCR Bench. - Graphics Parsing: The specialized variant,
dots.mocr-svg, outperforms Gemini 3 Pro across all image-to-SVG benchmarks. For instance, onUniSVGoverall, it scores 0.902 compared to Gemini 3 Pro's 0.735, showing remarkable fidelity in reconstructing structure-sensitive tasks likeChartMimicandChemDraw.
Limitations and Future Work
In its current release, dots.mocr is task-conditioned rather than a single-pass end-to-end system. It requires separate passes for page-level text parsing and region-level image-to-SVG decoding. Additionally, while it leads the open-source community, there is still noticeable headroom for improvement on highly dense formula- and table-heavy pages.
Future work will focus on unifying these steps into a single-pass output, scaling up high-quality formula/table supervision, and expanding the program spaces to support other formats like TikZ for scientific figures or D3.js for interactive web visualizations.
Summary updated