Skip to content

Source paper

Unlimited OCR Works

Youyang Yin, Huanhuan Liu, YY and 14 more

Youyang Yin, Huanhuan Liu, YY, Qunyi Xie, Chaorun Liu, Shiqi Yang, Shaohua Wang, Zhanlong Liu, Hao Zou, Jinyue Chen, Shu Wei, Jingjing Wu, Mingxin Huang, Zhen Wu, Guibin Wang, Tengyu Du, Lei Jia

arXiv 2606.23050 · 2026106 upvotes on Hugging Face

Research ideas from this paper (4)

Generated by AI. The paper’s authors did not write these.

AI summary

Unlimited OCR addresses the memory and latency bottlenecks of long-horizon end-to-end document parsing, where standard LLM decoders accumulate linearly growing KV caches across dozens of pages. The authors introduce Reference Sliding Window Attention (R-SWA), enabling one-shot multi-page transcription with constant decode-side KV cache memory and generation speed while achieving state-of-the-art accuracy on OmniDocBench.

How it works (AI summary)

Building on DeepSeek OCR, which pairs a frozen 16x-compression DeepEncoder with a 3B-total and 0.5B-active MoE decoder, Unlimited OCR replaces all decoder multi-head attention layers with R-SWA. Each generated token attends to all static reference tokens (visual tokens and prompt) plus a causal sliding window of the most recent 128 decoded tokens, and the decoder is continue-trained for 4,000 steps on 2M single- and synthetic multi-page samples at 32K context length.