Skip to main content
Back

Z.ai's Tiny GLM-OCR Beats Models 260x Bigger at Document Parsing

Z.ai's 0.9B open-source OCR model tops OmniDocBench V1.5 with a 94.62 score, outperforming models 260x its size

Pro

  • GLM-OCR is a 0.9B open-source OCR model from Z.ai that scored 94.62 on OmniDocBench V1.5, ranking #1 overall.
  • It outperforms Qwen3-VL-235B (260x larger) and beats GPT-5.2 on receipt key information extraction (94.5 vs 83.5).
  • A two-stage pipeline (layout detection + parallel region OCR) and Multi-Token Prediction deliver 1.86 pages/second on PDFs -- up to 18x faster than competitors.
  • Fully open-source (MIT model license, Apache 2.0 SDK); available on Hugging Face and via pip install glmocr.
  • Supports vLLM, SGLang, Ollama, and Apple Silicon (MLX); cloud API priced at ~1/10th the cost of traditional OCR solutions.
  • Known weaknesses: error propagation in complex multi-column layouts, uneven multilingual support beyond Chinese/English, and generative hallucination risk.

GLM-OCR, released by Z.ai (Zhipu AI), is a 0.9-billion-parameter multimodal OCR model that just claimed the top spot on OmniDocBench V1.5 -- the leading benchmark for real-world document parsing -- with a score of 94.62. To put that in perspective, it outperforms Qwen3-VL-235B, a model with 260 times more parameters, and closes in on closed-source giants like Gemini-3 Pro (90.33). The model is fully open-source under MIT license, and the SDK is Apache 2.0.

Not your grandfather's OCR

Traditional OCR reads pixels and spits out characters. It treats a table as a collection of floating words and a formula as a jumble of symbols. Traditional OCR has always had a significant flaw: it reads, but it does not understand -- it sees a table as a collection of floating words, a mathematical formula as a jumble of symbols, and a complex layout as a chaotic stream of text. GLM-OCR takes a fundamentally different approach: it is a vision-language model that understands document structure and generates semantic outputs in Markdown, JSON, and LaTeX.

GLM-OCR is a multimodal OCR model for complex document understanding, built on the GLM-V encoder-decoder architecture. It introduces Multi-Token Prediction (MTP) loss and stable full-task reinforcement learning to improve training efficiency, recognition accuracy, and generalization. The model integrates the CogViT visual encoder pre-trained on large-scale image-text data, a lightweight cross-modal connector with efficient token downsampling, and a GLM-0.5B language decoder. Combined with a two-stage pipeline of layout analysis and parallel recognition based on PP-DocLayout-V3, GLM-OCR delivers robust and high-quality OCR performance across diverse document layouts.

The architecture that makes it tick

It combines a 0.4B-parameter CogViT visual encoder with a 0.5B-parameter GLM language decoder, achieving a strong balance between computational efficiency and recognition performance. The two halves are connected by a lightweight cross-modal connector that downsamples visual tokens before feeding them into the language decoder -- keeping the memory footprint small without sacrificing visual fidelity.

The key architectural insight is the two-stage pipeline. Rather than throwing a full page at the model and hoping for the best, GLM-OCR uses a two-stage pipeline: it first runs layout analysis via PP-DocLayout-V3 to detect regions of interest, then performs OCR on those regions in parallel -- enabling both higher accuracy and faster throughput. This decomposition is what lets a 0.9B model punch so far above its weight class: smaller, simpler sub-problems are easier to solve correctly, and they can be solved simultaneously.