Get the daily emailDaily email
  1. Home
  2. Models
  3. This story

Baidu releases Unlimited-OCR 2 for unbounded-length document parsing

Baidu published Unlimited-OCR 2 on Hugging Face, built on Sparse Reference Sliding Window Attention (SR-SWA). SR-SWA compresses text-visual attention to a fixed set of working references (e.g. 512 tokens), keeping per-step latency and memory nearly constant…

Published Read the original
Baidu releases Unlimited-OCR 2 for unbounded-length document parsing

Why it matters

Offers an open-weights option for parsing hundred-page documents in RAG and extraction pipelines with bounded memory.

What happened

1 min read

Baidu published Unlimited-OCR 2 on Hugging Face, built on Sparse Reference Sliding Window Attention (SR-SWA). SR-SWA compresses text-visual attention to a fixed set of working references (e.g. 512 tokens), keeping per-step latency and memory nearly constant regardless of document length. Baidu claims state-of-the-art results on MPDocBench and MarathonDocBench.

inscraper analysis

Our analysis

The benchmark results are Baidu's own, and the page excerpt gives no model size, license or head-to-head comparison with olmOCR or Mistral OCR. Bounding attention to a fixed reference set is a sensible idea, but it may hurt cross-references to distant parts of a document. Teams processing long PDFs should test it on their own data.

More in Models