DeepSeek releases an open document-reading model that re-orders a page before reading it
In short
- On 27 January 2026 the Chinese AI lab DeepSeek put DeepSeek-OCR 2 on Hugging Face and GitHub: a model that turns a picture of a document into text, with its weights free to download under the Apache 2.0 licence.
- What is new is the order in which it reads. Vision-language models, the paper says, feed a page to the language model in strips, top-left to bottom-right. DeepSeek's new encoder, DeepEncoder V2, learns to re-order the pieces of the page by what they contain before passing them on.
- On the OmniDocBench v1.5 test of 1,355 document pages, DeepSeek reports an overall score of 91.09, up from 87.36 for its first DeepSeek-OCR, while using at most 1,120 image tokens a page. Those two scores are DeepSeek's own.
- The paper, posted on arXiv on 28 January, is a preprint and has not been peer reviewed. Its abstract says the work sets out "to investigate the feasibility" of the new encoder.
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:
- Shrink the image. As before, an 80-million-parameter tokenizer compresses the page's patches 16-fold into visual tokens.
- Swap the vision model for a small language model. Where the first version used a 300M CLIP vision model, the new encoder is a 500M language model initialised from Qwen2-0.5B.
- Add an equal number of "causal flow" queries. The visual tokens all see one another. After them come as many learned query tokens, each seeing every visual token but only the queries before it. That one-way rule lets each query pick what comes next, so the queries come out in a new reading order.
- Pass on only the re-ordered half. Just the query outputs go to the 3B decoder. In the authors' framing, the encoder decides the reading order and the decoder reads.
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.

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
- Visual token: a compressed piece of the image, the unit a language model reads in place of a word piece (our wording).
- Causal attention: each token can look only at the tokens before it, the way a language model writes one word after another (our wording).
- Edit distance: how many characters must be changed to turn the model's output into the correct text, scaled here so that 0 is perfect (our wording).
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
- DeepSeek-OCR-2, model card and files, Hugging Face (DeepSeek), 27 January 2026
- DeepSeek-OCR 2: Visual Causal Flow, Haoran Wei, Yaofeng Sun and Yukun Li (DeepSeek-AI), arXiv preprint, 28 January 2026
- deepseek-ai/DeepSeek-OCR-2, code repository, GitHub, 27 January 2026
Sources
More from AI in China
- Baidu releases Unlimited SVG, an open model that redraws images as editable code
- DeepSeek's open models grew to 1.6 trillion parameters in a year, free to download
- Alibaba's Qwen team released five downloadable models this year, most under Apache 2.0
- The Chinese Academy of Sciences sets out 20 foundational science questions for AI
- Qwen releases FlashQLA, open code that runs its linear attention up to 3x faster