←

Baidu releases Unlimited-OCR-2 with sparse reference sliding-window attention for unbounded document parsing

Baidu

Image official 2 src. ~1 min

Baidu published Unlimited-OCR-2 on Hugging Face on October 26, dated 2026/10/27, under an MIT licence with code in baidu/Unlimited-OCR. Its SR-SWA mechanism compresses text-visual attention onto a fixed set of roughly 512-token reference slots, so per-step decoding latency and memory stay near-constant regardless of document length, which Baidu claims gives state-of-the-art results on both MPDocBench and the hundred-page MarathonDocBench; inference is supported natively in Transformers and recommended via SGLang.

Why it matters

Makes page-count-independent OCR latency a shipping feature rather than a research claim.

Importance: 3/5

Open-weight release with a concrete architectural result on long documents.

Sources