DeepSeek releases an open document-reading model that re-orders a page before reading it

In short

91.09 overall OmniDocBench v1.5 score, DeepSeek's test (DeepSeek-OCR: 87.36); 0.057 reading-order error, down from 0.085 (lower is better); 3.39B parameters stored in the release, per Hugging Face; 256–1,120 image tokens per page passed to the language model

Why reading order matters

OCR, optical character recognition, is software that turns an image of text into text. On a plain letter the order is obvious. On a two-column paper, a form, a newspaper page or a table, it is not: read straight across and you splice the end of one column into the start of the next, or mix a table's cells into the paragraph beside it (our explanation).

Modern document readers chop the page image into small pieces, "visual tokens", and hand them to a language model that writes out the text. DeepSeek's paper argues that flattening a page into a fixed raster order "introduces unwarranted inductive bias", while people scan a page along its logical structure. Documents, with their "complex layout orders, intricate formulas, and tables", are its test bed.

How open it is

In plain words (our summary of Apache 2.0), you may use, change, share and sell the model, including in a commercial product. Copies must carry the licence and changed files must say so; contributors grant a patent licence. There is no right to DeepSeek's trademarks and no warranty. The card offers two prompts: one converts a document to Markdown with its layout, the other ("Free OCR") just reads out the text.

What DeepEncoder V2 changes

DeepSeek-OCR 2 keeps the decoder of the first DeepSeek-OCR and changes only the encoder, the part that looks at the image. Here is how it works, in our words:

A more conventional design, with the visual tokens in a separate encoder, failed "to converge", the paper says. A page gets one 1,024×1,024 global view (256 tokens) plus up to six 768×768 crops (144 tokens each), so 256 to 1,120 tokens. The first DeepSeek-OCR used up to 1,156 in its "Gundam" mode, and the paper says 1,120 matches Gemini 3 Pro's maximum visual-token budget.

Pipeline diagram: a document page is cut into 16x16 patches, compressed 16-fold by an 80M SAM and convolution tokenizer, passed to a Qwen2 500M language model with non-causal visual tokens and causal query tokens, and only the re-ordered query outputs go with a prompt to the DeepSeek-3B mixture-of-experts decoder

The whole reader: an 80M tokenizer compresses the page, the Qwen2-based encoder re-orders it through causal queries, and only those re-ordered tokens reach the 3B decoder with the prompt. Wei, Sun and Li (DeepSeek-AI), DeepSeek-OCR 2: Visual Causal Flow, arXiv 2601.20552 (2026), Fig. 3, CC BY 4.0.

What to notice: The decoder never sees the raw visual tokens, only the queries the encoder has put in its own order.

The numbers, and who measured them

OmniDocBench v1.5 covers 1,355 pages in nine kinds of document, such as magazines, academic papers and research reports, in Chinese and English. In the paper's Table 1, DeepSeek ran its own two models; the scores for every other model, the authors say, come from the OmniDocBench repository.

The 3.73 gain DeepSeek reports is in points of the overall score; formula recognition rose most, from 84.14 to 90.31. Among single end-to-end models in the table, DeepSeek-OCR 2 has the highest overall score and the smallest stated token budget, while two multi-step pipelines, PaddleOCR-VL and MinerU2.5, still make fewer text and reading-order errors (our reading of the table). A second table puts its overall error at 0.100 against 0.115 for Gemini 3 Pro at the same 1,120-token budget, without saying where the Gemini figure comes from.

In its own services, which have no answer key, DeepSeek counts how often the output gets stuck repeating itself. That rate fell from 6.25% to 4.17% on images from its online users' logs, and from 3.69% to 2.88% on PDFs it processes for pre-training data.

Every DeepSeek-OCR 2 score here is DeepSeek's own, and we found no outside test. The paper also shows a weak spot: on newspapers the text error got slightly worse (0.131 to 0.139). The authors blame the lower token cap on text-dense pages and having only 250,000 newspaper samples in training. Its reading-order error was lower than the first version's on all nine document types.

Terms in plain English

Where things stand

The paper calls DeepSeek-OCR 2 both a research architecture and "a practical tool for generating high-quality training data" for language models. DeepSeek says it will try the encoder on general visual reasoning, and floats one shared encoder for images, audio and text, told apart only by their learned queries. Neither was shown in the January release.

Sources

Sources

More from AI in China

All stories from AI in China