ModelsSelected

Baidu Releases Unlimited OCR Based on DeepSeek-OCR

Why we picked it

The R-SWA sliding-window mechanism removes the linear cost growth that limits long-document OCR, and the same idea could transfer to ASR and machine translation where long sequence generation hits the same bottleneck. Developers building RAG pipelines or local document-ingestion services can use it as a constant-cost parsing layer; a practical benchmark comparison is its roughly 35% speed gain over DeepSeek-OCR at 6,000 tokens.

Baidu introduced Unlimited OCR, a 3B MoE document parsing model (500M activated parameters) fine-tuned from DeepSeek-OCR that can be deployed locally.

Body

Its core technique, R-SWA, keeps the KV cache as a fixed-capacity queue by attending to all image tokens but only the last 128 generated text tokens, so memory and compute stay constant regardless of output length.

At 6,000 output tokens it runs about 35% faster than DeepSeek-OCR, and a 32K context single pass parses 40+ pages of 1024×1024 images at 256 tokens per page with a Distinct-35 score of 97%.

The model outputs Markdown or JSON with support for tables, math formulas and reading-order recovery, making it suitable as an entry point for RAG and knowledge bases.

Original · AIGCLINK

百度的这个新OCR可以,Unlimited OCR,解决长文档OCR速度衰减和显存膨胀问题,几十页文档一次性匀速解析完

3B MoE(激活5亿参数),端到端文档解析,可本地部署

基于DeepSeek-OCR微调,核心是R-SWA,输出6000 token时比DeepSeek-OCR快约35%

传统LLM解码器的KV cache会随输出变长而不断膨胀,导致又吃显存又慢

R-SWA模拟人类抄写的工作记忆,生成每个token时始终能看到全部图像视觉token,对已生成文本只回看最近128个,KV cache变为固定容量队列,使单token的注意力计算开销不再随输出长度持续增长,无论输出1万还是10万token,显存和计算成本保持恒定

每页1024×1024图像压缩成256 token,32K上下文单次前向解析40+页,不漏行、不重复(Distinct-35 97%)

直接输出Markdown/JSON,支持表格、数学公式、阅读顺序恢复,可以作为RAG和知识库的数据入口

这个机制还可以扩展到ASR、机器翻译这种长序列生成上

#OCR #UnlimitedOCR #文档解析

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Models" desk, focusing on China's AI industry and domestic foundation model ecosystem. Within our cross-regional analytical framework, it directly maps to US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include Unlimited OCR, Baidu, DeepSeek-OCR, OCR.

Source attribution: curated from AIGCLINK (@aigclink). Cross-source corroboration: 2 independent sources have covered this development (including Jerry Liu), confirming industry-wide signal strength.