Vibeleaderboard
← All Intel
Intel / article

GLM-OCR technical report: multi-token prediction for document parsing

Source
arxiv.org
Publisher
Z.ai
Author
Z.ai
Date

Context

Z.ai's GLM-OCR report argues that reading documents well depends more on fitting the model to the task than on making it bigger. The whole model has 0.9B parameters: a 0.4B CogViT vision encoder that turns the page image into features, and a 0.5B GLM language decoder that writes out the text. The authors start from the premise that OCR is a deterministic job with strong local dependencies, so generating strictly one at a time is inefficient, as the technical report sets out.

Their answer is multi-token prediction. Extra prediction heads attached to the decoder guess several upcoming tokens at once, and because those heads share the same parameters, the additional GPU memory stays small. GLM-OCR is trained to predict ten tokens per step and, by the authors' measurement, generates 5.2 tokens per decoding step on average, for approximately 50% higher . They also argue that looking ahead helps with structural markup such as table tags and Markdown syntax, yielding fewer broken tags.

The second half of the design works at the level of the page. For document parsing, a separate layout model, PP-DocLayout-V3, first divides the page into regions such as paragraphs, tables and formulas; each region is recognized independently, in parallel, and a merge step restores reading order and produces Markdown and JSON. The authors say they added this step because small models are prone to and repetitive output on complex layouts, and splitting the page turns one hard problem into several simpler ones. Key information extraction skips the cropping: the full image goes in with a asking for specific fields as JSON. On OmniDocBench v1.5 the authors report an overall score of 94.62, the highest among the models they evaluated, though only narrowly ahead of PaddleOCR-VL-1.5 at 94.50.

The split carries a cost the report names itself. Because recognition depends on the layout stage, inaccurate region detection can degrade what follows, and complex layouts with cross-page dependencies or irregular multi-column structure can come out with imperfect reading order. The model's release was covered earlier in Z.ai's launch post, which describes the same encoder, decoder and two-stage pipeline.

Terms in this piece · Glossary
  • Token — A piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.
  • throughput — How much model output a provider can generate over time, commonly measured in output tokens per second.
  • Hallucination — Generated content that is false or unsupported, even when it sounds plausible.
  • Prompt — Information or instructions supplied to a model; in a chat, the request you type is often called your prompt.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

More from Z.ai
Recommended reads