Aube.Tuesday, 24 November 2026Support us

Aube.

News of progress
Single source

Baidu open-sources OCR model that parses any document length

Languages for this article
Original · ENDEESFRITPT

Originally written in English. 6 languages available; yours is one click away.

Generated illustration for “Baidu open-sources OCR model that parses any document length”
AI-generated illustration — artist’s view, not documentary

Seven Harry Potter books, more than 3,600 pages, went through a single run of Baidu's new document reader. That is the demonstration the company chose to show what its model can now do: read a document of any length without being fed it page by page. Unlimited OCR 2, the second version of Baidu's document-parsing model, is built on optical character recognition, the technique that turns the image of a page into text a computer can search and edit.

The first Unlimited-OCR, released in June, used a sliding window attention mechanism to stretch parsing from single pages to dozens of consecutive pages. Version 2 replaces it with Sparse Reference Sliding Window Attention, or SR-SWA. Baidu compares the approach to how a person copies a book: focus on the current page, and look back only when information from another page is needed. In practice, a page gate first narrows each query's visual reference from the whole document to the relevant pages, then the highest-scoring groups of visual tokens are pulled in to capture links across distant pages. According to the project's README, the model keeps a fixed working set of references, for example 512 tokens, so that per-step decoding latency and memory stay nearly constant regardless of document length. In a 100-page setting, Baidu reports that SR-SWA decodes each step seven times faster than full attention and 5.6 times faster than the previous design.

On Baidu's own tests, the model reaches 84.6 on MPDocBench, a multi-page parsing benchmark, and 77.1 on MarathonDocBench, a benchmark for hundred-page documents that Baidu released with the model. The company says both results are state of the art for end-to-end parsing and ahead of several flash-tier general models it tested. These figures come from Baidu alone, and independent evaluations had not been published at the time of writing.

For anyone who digitizes long files, the practical gain is that the whole document can now go through one pass instead of being cut into pieces. The code and weights are published under the MIT license, which allows them to be reused, and the model can be called through Baidu AI Cloud and the Baidu AI Open Platform. It already runs with Transformers for quick tests and with SGLang for serving. The first version has passed 10 million downloads on Hugging Face and 28,500 stars on GitHub, which gives an idea of the interest the line has attracted.

The next public step is set. Baidu plans to show more of the model at Baidu World 2026 on November 12, and the independent evaluations that would confirm the benchmark figures are still to come.

seven times fasterPer-step decoding on 100-page documents, vs full attention (Baidu's own tests)

Sources — read the originals(Paris time)

PandailyEN
0000

Read next

Comments

Loading the thread…

Sign in to leave a comment. Sign in