Unlimited OCR Works
Paper · https://arxiv.org/abs/2606.23050
Recently, end-to-end OCR models, exemplified by DeepSeek OCR, have once again thrust OCR into the spotlight. A widely held view is that employing a large language model (LLM) as the decoder allows the model to leverage the prior distribution of language, leading to improved OCR performance. However, the downside is equally evident: as the output sequence lengthens, the accumulated KV cache drives up memory consumption and progressively slows down generation. This stands in stark contrast to humans, who exhibit no such decline in efficiency during long-horizon copying tasks. In this technical report, we propose Unlimited OCR, a model designed to emulate human parsing working memory. Taking DeepSeek OCR as the baseline, we replace all attention layers in the decoder with our proposed Reference Sliding Window Attention (R-SWA), which reduces attention computation costs while maintaining a constant KV cache throughout the entire decoding process. By combining the high compression rate of DeepSeek OCR's encoder with our constant KV cache design, Unlimited OCR can transcribe dozens of pages of documents in a single forward pass under a standard maximum length of 32K. More importantly, R-SWA is a general-purpose parsing attention mechanism - beyond OCR, it is equally applicable to tasks such as ASR, translation, etc. Codes and model weights are publicly available at http://github.com/baidu/Unlimited-OCR.
First seen by Oriel on .
AI summary
Unlimited OCR replaces decoder attention with Reference Sliding Window Attention (R-SWA), keeping KV cache constant so it can transcribe dozens of document pages in one pass under a 32K maximum length.
- The model builds on DeepSeek OCR, retaining its high-compression encoder while replacing all decoder attention layers with R-SWA.
- R-SWA reduces attention computation costs and avoids growing KV-cache memory consumption during decoding.
- The authors describe R-SWA as applicable beyond OCR to parsing tasks including ASR and translation.
- Code and model weights are publicly available.
#ocr #attention #asr #machine translation
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hugging Face Papers: 113, latest observation ; +11 over observed period since
Comments
Comment count reported by the source.
- Hugging Face Papers: 7, latest observation ; 0 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hugging Face Papers | 2606.23050 | https://arxiv.org/abs/2606.23050 Read discussion |