GLM-OCR Technical Report

Shuaiqi Duan, Yadong Xue, Weihan Wang, Zhe Su, Huan Liu, Sheng Yang, Guobing Gan, Guo Wang, Zihan Wang, Shengdong Yan, Dexin Jin, Yuxuan Zhang, Guohong Wen, Yanfeng Wang, Yutao Zhang, Xiaohan Zhang, Wenyi Hong, Yukuo Cen, Da Yin, Bin Chen, Wenmeng Yu, Xiaotao Gu, Jie TangarXiv 2026

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:

  1. 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.
  2. 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%.
  3. Two-Stage System Pipeline: For document parsing, GLM-OCR uses PP-DocLayout-V3 to 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.
Figure 2: Overall architecture and workflow of the GLM-OCR framework. This system supports two primary tasks: Document Parsing (Task 1), which combines layout detection and region cropping to produce structured Markdown and JSON outputs; and Key Information Extraction (Task 2), which directly extracts structured JSON data based on input visual 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).
Figure 1: Performance of GLM-OCR on OmniDocBench v1.5.
  • 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

BibTeX
@misc{duan2026glm,
  author = {Shuaiqi Duan and Yadong Xue and Weihan Wang and Zhe Su and Huan Liu and Sheng Yang and Guobing Gan and Guo Wang and Zihan Wang and Shengdong Yan and Dexin Jin and Yuxuan Zhang and Guohong Wen and Yanfeng Wang and Yutao Zhang and Xiaohan Zhang and Wenyi Hong and Yukuo Cen and Da Yin and Bin Chen and Wenmeng Yu and Xiaotao Gu and Jie Tang},
  title = {{GLM-OCR Technical Report}},
  year = {2026},
  eprint = {2603.10910},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.10910},
}
Figure