Baidu Proposes New Method for Long-Document OCR

burkov · x · 2026-07-12

This new paper from Baidu introduces Unlimited OCR, utilizing Reference Sliding Window Attention (R-SWA) to transcribe long documents in a single pass.

The core idea combines the highly compressed encoder of DeepSeek OCR with Baidu's own constant KV cache design, enabling the processing of dozens of pages in a single forward pass, even under the standard 32K context limit.

The authors also emphasize that R-SWA is not limited to OCR; it serves as a general-purpose parsing attention mechanism extensible to:

Original post →

More from Research

Research channel →