Baidu Open-Sources Unlimited OCR 2 for Hundred-Page Document Parsing
Baidu has released Unlimited OCR 2, an open-source OCR model built for very long documents.The 3B model parses books, filings and reports of hundreds of pages in one request.Its core change is SR-SWA, a sparse attention scheme that keeps per-step decoding cost nearly flat.
Weights ship under the MIT license, with code on GitHub.TL;DR Size: 3.34B parameters.Active parameters not disclosed.Max position length 131,072 tokens.Runs on: 1 CUDA GPU in BF16.Baidu tested on an NVIDIA A800-80GB.BF16 weights total about 6.7 GB.
Performance: first place on both multi-page benchmarks Baidu tested, against 9 other models (self-reported).Best: 77.1 overall on MarathonDocBench (hundreds of pages).The next model, Kimi-K3, scores 33.7.Worst: 48.2 on heading hierarchy (TEDS) on MarathonDocBench, its lowest sub-score.
What is Unlimited OCR 2?Unlimited OCR 2 is a 3B vision-language model from Baidu that turns ordered page images into structured text.Output covers text, tables, formulas, figures, headings and reading order.It succeeds Unlimited-OCR, released in June 2026 to push DeepSeek-OCR further.
The config keeps a DeepSeek-OCR style layout.A SAM ViT-B plus CLIP-L encoder feeds a 12-layer mixture-of-experts decoder.Each token routes to 6 of 64 experts, plus 2 shared experts.The DeepSeek-OCR paper describes this decoder as DeepSeek3B-MoE-A570M.
Baidu does not state an active count for version 2.In multi-page mode, each page costs 273 image tokens.How does SR-SWA work?Full attention cost grows quadratically with sequence length.During decoding, each new token scans a longer KV cache.
At 273 image tokens per page, 100 pages add 27,300 input tokens before any output.SR-SWA stands for Sparse Reference Sliding Window Attention.It compresses text-visual attention into a fixed set of working references.Baidu’s model card gives 512 tokens as the example size.
The config pairs a 128-token local window with top-16 selection over 32-token blocks.That is 16 blocks of 32 tokens, matching the 512-token budget.This keeps per-step latency and memory nearly constant as documents grow.It calls the result ‘unlimited-horizon’ parsing within a finite context window.
Image encoding and total runtime still rise with page count.#mtp-uo2-embed{background:transparent!important;border:0!important;} #mtp-uo2-embed iframe{width:100%!important;border:0!important;display:block!important;background:transparent!
important;} #mtp-uo2-embed hr,#mtp-uo2-embed p:empty,#mtp-uo2-embed del,#mtp-uo2-embed s{display:none!important;} (function(){var f=document.getElementById('mtp-uo2-frame');window.addEventListener('message',function(e){if(e.data&&e.data.mtpEmbed==='uo2'&&e.data.height&&e.source===f.contentWindow){f.
style.height=e.data.height+'px';}});})(); How does it score on MPDocBench and MarathonDocBench?Baidu team tests on MPDocBench, with dozens of pages per document, and MarathonDocBench, with hundreds.MPDocBench-Parse is a public benchmark of 433 documents and 3,246 pages.
We could not find a public MarathonDocBench release.Per Baidu’s leaderboard chart, Unlimited OCR 2 scores 84.6 on MPDocBench.Qwen3.8-Max follows at 78.3, then Qwen-3.8-Flash-Next at 77.4.On MarathonDocBench it scores 77.1.Kimi-K3 is next at 33.7, then Gemini-3.8-Flash at 28.6.
The drop between benchmarks is the real story.Qwen3.8-Max falls from 78.3 to 22.9 on hundred-page documents.Unlimited OCR 2 falls 7.5 points.Its predecessor, Unlimited-OCR, scores 0.0 on MarathonDocBench.Sub-scores (MPDocBench / MarathonDocBench): Text: 94.8 / 89.6 Formula: 89.4 / 87.
9 Reading order: 92.3 / 85.3 Tables: 87.8 / 74.8 Heading hierarchy: 60.1 / 48.2 Single-metric margins on MPDocBench are thin.Qwen3.8-Max scores 94.3 on text and 89.2 on formulas.All figures are self-reported and appear only in a chart image.
Comparison with other open OCR models Unlimited OCR 2Unlimited-OCRDeepSeek-OCR-2PaddleOCR-VL-1.6DeveloperBaiduBaiduDeepSeekBaidu PaddlePaddleParameters3.34B3.34B3.39B0.96BActive parametersNot disclosedNot disclosedNot disclosedNot disclosedLicenseMITMITApache 2.0Apache 2.
0Paper / releaseOct 2026 (report)Jun 2026 (arXiv)Jan 2026 (arXiv)Jun 2026 (arXiv)Long-document mechanismSR-SWA, 512-token reference setMulti-page infermulti, no SR-SWANot disclosedNot disclosedMPDocBench overall84.6 (Baidu)61.9 (Baidu)Not reportedNot reportedMarathonDocBench overall77.1 (Baidu)0.
0 (Baidu)Not reportedNot reportedServingTransformers, custom SGLangTransformers, vLLM, SGLangTransformers, SGLangPaddleOCR, Transformers Parameter counts and licenses from each model’s Hugging Face page.Benchmark scores from Baidu’s chart.How do you run Unlimited OCR 2?
The model card lists Transformers for quick tests and SGLang for serving.In Transformers, infer handles 1 page with dynamic tiling, called gundam mode.infermulti parses every page of a document in 1 request, so the model keeps cross-page context.
Loading requires trustremotecode=True, which runs Python code from the repo.SGLang serving uses a customized wheel from Baidu, not upstream SGLang.Baidu’s example schedules 10 pages per window and reuses the previous window’s KV tail.Smaller windows cut peak memory but weaken cross-page merging.
Baidu warns a default bias setting can trigger a 462 MiB allocation and run out of memory.Key Takeaways Unlimited OCR 2 is a 3.34B, MIT-licensed OCR model from Baidu.SR-SWA caps attention at a fixed 512-token reference set.It scores 77.1 on MarathonDocBench, against 33.7 for the next model.
Heading hierarchy is the weak spot, at 48.2 on long documents.All benchmark numbers are Baidu’s own.Check out the model card, the technical report and the GitHub repo.Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter.Wait!
are you on telegram?now you can join us on telegram as well.Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.?Connect with us The post Baidu Open-Sources Unlimited OCR 2 for Hundred-Page Document Parsing appeared first on MarkTechPost.
Related
相關文章
騰訊12.8億用戶蟬聯中國互聯網第一,綠泡泡月活破1.5億,手遊top10獨佔8款
本文作者: Nemo 2026-11-03 18:59 導語:短劇業務是本次報告的關注重點。11 月 3 日,QuestMobile發佈最新《中國移動互聯網秋季大報告》。報告顯示,截至 2026 年 9 月,騰訊控股以 12.80 億去重總用戶量(APP + 小程序)位列中國互聯網公司用戶規模榜首,第九年蟬聯榜首,霸主地位穩固。
實測阿里版Muse:千問Go 7×24小時在線,幫我逛淘寶、盯大麥
AI應用風向標(公眾號:ZhidxcomAI) 作者|畢偉豪 編輯|漠影 如果有這樣一個AI,它有一部手機和一臺電腦在雲端24小時運轉等你發號施令,能登錄你的淘寶、高德、大麥,能幫忙挑選商品,還能在雲端電腦上開發遊戲,甚至可以一句話做出應用,你會拿它來做什麼?
螞蟻自研AI數據平臺OceanBase獲獲世界互聯網大會傑出貢獻獎
本文作者: 徐咪 2026-11-03 14:46 導語:11月3日上午,2026世界互聯網大會在浙江烏鎮開幕。記者從大會現場獲悉,螞蟻自研AI數據平臺OceanBase獲得“世界互聯網大會傑出貢獻獎”。大會頒獎詞指出 11月3日上午,2026世界互聯網大會在浙江烏鎮開幕。
QuestMobile:豆包、DeepSeek月人均使用次數超其他AI應用
報告認為,具備獨立服務閉環的應用入口,以及能夠打通服務交付的系統級入口,正在逐漸佔據優勢。數據顯示,2026年9月,豆包和DeepSeek的月人均使用次數分別達到72.0次和65.9次,月人均使用時長分別為132.5分鐘和136.7分鐘,在使用頻次和時長方面領先其他AI應用。
騰訊混元放出"AI 科學家":自己訓蛋白、造機械手,還反手改進下一代 AI
為撐起動輒數週的研究,Hyra 2.0 把活拆給三層 Agent:Overall 管資源協調,Mission 做規劃,Worker 跑實驗。任務狀態持久化,等訓練間隙也能推進別的項目;每結論都得附代碼與日誌當憑證,存疑時交獨立 Agent 複核,跑通的經驗沉澱成 Skill 複用。
從用戶場景到產業落地:美的原創性競爭的底層邏輯
每年的科技月都是美的展示技術肌肉的時刻,聚光燈下的獎項固然耀眼,但真正值得關注的,往往是藏在產品背後的研發邏輯。第31屆科技月傳遞出一個明確信號:美的的創新重心,正從“參數內卷”轉向“原創性競爭”。在頒獎儀式上,美的集團董事長兼總裁方洪波強調:“沒有科技的投入和沉澱,就不會有美的的今天;要從同質化競爭,升級到原創性競爭。”這句話不是一句應景的口號,而是美的研發體系多年演進的底層邏輯。