此语言仍有 26 条内容或界面任务待翻译;未完成部分显示中文原文。
大模型与软件Industry Updates报道日期 10-27约 9 分钟读完

Baidu Releases and Open-Sources Ernie Unlimited OCR 2: SR-SWA and Chunked Decoding Cut KV Cache from 47GB to 1.77GB

Baidu has released and open-sourced Ernie Unlimited OCR 2, which processes ultra-long documents through Sparse Reference Sliding Window Attention (SR-SWA) and the Unlimited-Horizon Decoding Paradigm. According to the technical report, in hundred-page single-sequence tests, peak KV cache dropped from 47GB to 1.77GB, a reduction of about 96%; 16-way concurrent throughput increased from 360 to 1315 tokens per second. A real-world test on the 884-page The Lord of the Rings completed parsing in about 43 minutes, with MPDocBench and MarathonDocBench overall scores of 84.59 and 77.06 respectively, both the highest among evaluated models.

Content Correction

01Release Overview

Baidu has released and open-sourced Ernie Unlimited OCR 2, now live on Hugging Face and GitHub. The previous-generation Unlimited OCR has accumulated over 1000,000 downloads in the open-source community, approximately 2.86,000 GitHub stars, and already has community online demos and SGlang inference support.

02Core Technology: SR-SWA

SR-SWA (Sparse Reference Sliding Window Attention) performs selection in two layers: Page Gate filters out relevant pages based on the current parsing position, while Token Sieve represents information blocks as concise summaries to compute relevance and picks a fixed number of relevant visual information blocks via TopK. The selected results, together with a fixed-size local sliding window, participate in parsing, keeping the amount of referenced information per step constant.

The Unlimited-Horizon Decoding Paradigm divides a document into controllably sized page blocks parsed sequentially, with adjacent blocks overlapping by one page. When moving to the next block, it reuses the visual KV cache of the overlapping page and retains the text cache at the end of the previous output segment, while promptly releasing the visual caches of other pages.

03Benchmarks and Evaluation Data

In a real-world test, the 884-page English edition of The Lord of the Rings was parsed in about 42 minutes 56 seconds, averaging roughly 2.9 seconds per page, with 466 cross-page merges flagged. In the MarathonDocBench single-sequence test, peak KV cache dropped from 47GB to 1.77GB, a reduction of about 96%; 16-way concurrent throughput increased from 360 to 1315 tokens per second. MPDocBench overall score was 84.59, and MarathonDocBench overall score was 77.06, both the highest among evaluated models. Single-step decoding speed was 7.0× that of Full Attention and 5.6× that of R-SWA.

MetricResultNotes
Peak KV cache47GB → 1.77GBHundred-page single-sequence test, reduced by approximately 96%,16-way concurrent throughput360 → 1315 tokens/secApproximately 3.65× standard decoding,884-page The Lord of the Rings42 min 56 secAverage of about 2.9 seconds per page,MPDocBench84.59Highest among evaluated models,MarathonDocBench77.06Highest among evaluated models,Single-step decoding speed7.0× / 5.6×vs. Full Attention / R-SWA

04Positioning and Use Cases

The team summarizes the evolution of document parsing into three stages: OCR 1.0 (modular pipelines), OCR 2.0 (end-to-end vision-language models), and OCR 3.0 (continuous processing of entire documents). Applicable scenarios include continuous parsing of hundreds of pages of annual reports, technical manuals, and scanned documents; compared with the previous generation, per-page overall scores are essentially on par, with advantages in continuous processing of longer documents, cross-page continuity, and reduced overhead.

Editorial Analysis Inferred from source information

SR-SWA and block decoding respectively address the two problems of "computing less per step" and "storing less", so that the time consumed by a single decoding step does not grow with document length. For services that batch-process long documents such as annual reports and technical manuals, this means that after VRAM usage drops, a single GPU card can handle more tasks with higher concurrent throughput, and users no longer need to manually split files. Compared with the previous generation, single-page quality is basically on par while the ability to continuously process long documents is significantly enhanced—this is a trade-off-oriented upgrade toward long-document scenarios, rather than a generational leap in general recognition quality. The naming Unlimited OCR Works pays homage to Unlimited Blade Works from Fate/stay night, and the community's rewritten incantation was even included in the technical report's introduction, credited to Snarcy, showing that the project interacts closely with the open-source community.

  • All benchmark figures come from the technical report and press coverage; this site has not conducted independent testing
  • The spot-check results in the 884-page test are as described by the reporting author, with limited page coverage
  • Throughput and cache figures are based on the test conditions set in the report; actual deployment is affected by hardware and workload

Sources 量子位

Compilation Notes 内容由 AI 根据公开资料整理;事实与推断分开呈现。

Content Correction

Further Reading

Product Selection Assistant

让需求变成可修改的筛选条件

依据已录入参数生成条件,结果可查看和修改。帧率与性能需核对实测,不能仅凭算力数值保证。