TL;DR
GLM-OCR is a compact, 0.9B-parameter multimodal model that delivers state-of-the-art document understanding while remaining efficient enough for edge deployment. By combining a layout-aware two-stage pipeline with a novel Multi-Token Prediction (MTP) mechanism, it boosts decoding throughput by 50% and outperforms models more than 200 times its size on key document parsing benchmarks.
What Problem Does This Paper Address?
Document intelligence—parsing text, formulas, tables, and key-value pairs from visually rich documents—is a messy problem. Traditional OCR systems rely on brittle, multi-stage pipelines with handcrafted rules that fail on complex layouts. On the other end of the spectrum, modern Multimodal Large Language Models (MLLMs) handle these tasks well but are computationally massive, slow, and memory-intensive.
Furthermore, standard MLLMs use token-by-token autoregressive decoding. This is highly inefficient for OCR tasks, which are inherently deterministic and exhibit strong local structural dependencies (like markdown table syntax or LaTeX formatting). The authors of GLM-OCR set out to build a lightweight, fast, and highly accurate model tailored specifically for real-world production environments.
Methods
GLM-OCR features a highly optimized architecture and training pipeline built around three core pillars:
- Compact Core Architecture: The model consists of a 0.4B CogViT visual encoder paired with a 0.5B GLM language decoder, totaling just 0.9B parameters.
- Multi-Token Prediction (MTP): To fix the autoregressive bottleneck, the authors introduced auxiliary heads that predict multiple tokens simultaneously (trained to predict 10 tokens per step, averaging 5.2 at inference). To prevent memory bloat, these draft heads share parameters, keeping GPU overhead minimal while increasing throughput by ~50%.
- Two-Stage System Pipeline: For document parsing, GLM-OCR uses
PP-DocLayout-V3to first segment a document into semantically coherent regions (paragraphs, tables, formulas). These regions are cropped and processed by the GLM-OCR core in parallel, which drastically reduces hallucinations and stabilizes performance on complex layouts. For Key Information Extraction (KIE), the model bypasses layout cropping and processes the full image directly using schema-guided prompts.
The model's training recipe concludes with a Reinforcement Learning (RL) stage using Group Relative Policy Optimization (GRPO). The reward function is task-aware, penalizing structural malformations and rewarding accuracy metrics like TEDS (for tables) and CDM (for formulas).
Datasets
The model was trained and evaluated using a mix of public and custom datasets:
- Public Benchmarks: OmniDocBench v1.5 (comprehensive document parsing), OCRBench (Text), UniMERNet (formula recognition), PubTabNet, and TEDS_TEST (table structure).
- Key Information Extraction (KIE): Nanonets-KIE and Handwritten-KIE.
- In-House Benchmarks: To prove real-world viability, the authors evaluated GLM-OCR on six practical industrial scenarios: code document parsing, natural-scene table extraction, handwritten text, multilingual OCR (supporting 8 languages), seal recognition, and receipt KIE.
Key Insights and Ideas
- Specialization Beats Scale: A carefully optimized 0.9B model can outperform massive general-purpose models like Qwen3-VL-235B on domain-specific tasks. By focusing parameters strictly on visual-text alignment and structural syntax, GLM-OCR avoids the "bloat" of larger models.
- Exploiting OCR Determinism: Because document structures (like HTML tags or Markdown syntax) have rigid local dependencies, forcing the model to plan multiple tokens ahead via MTP actually improves structural coherence, resulting in fewer broken tags.
- Layouts as a Stabilizer: Small language models easily lose track of long-context spatial relationships. Decomposing a page into isolated regions before feeding it to the language decoder acts as a powerful guardrail against repetitive generation and hallucinations.
Key Results
GLM-OCR achieved outstanding results across both public and practical benchmarks:
- OmniDocBench v1.5 SOTA: It scored 94.62 overall, ranking first among all evaluated models and outperforming direct specialized competitors like PaddleOCR-VL-1.5 (94.50) as well as massive frontier models like Gemini-3 Pro (90.33).
- Table & Formula Mastery: It achieved absolute top scores in table recognition (93.96 on Table TEDS) and excelled in formula transcription (96.5 on UniMERNet).
- High Throughput: In comparative speed tests, GLM-OCR achieved a throughput of 1.86 pages/second for PDF documents and 0.67 images/second for standalone images, substantially outperforming competing open-source pipelines.
Limitations and Future Work
Despite its strong performance, the authors note a few key limitations:
- Error Propagation: Because the document parsing pipeline relies on a two-stage approach, any mistakes made by the initial layout detector (
PP-DocLayout-V3) will inevitably degrade downstream recognition. - Edge-Case Degradation: Performance drops when encountering extremely low-resolution or heavily distorted documents, highly irregular table structures, or underrepresented languages in the training corpus.
- Minor Formatting Variability: As a generative model, it can still exhibit minor stochastic variations in whitespace and line breaks.
Future work will focus on improving robustness under extreme layout complexities, expanding multilingual coverage, and tightening structural output consistency to minimize downstream integration costs.
Summary updated