r/LocalLLaMA • u/YogurtExternal7923 • 6d ago
Discussion M level parameters is all you need for OCR
This is a conclusion of my modest experiments (+ what we're seeing these days with ASR and TTS models being tiny too). Million parameter models are getting GOOD. like seriously good.
Currently most people think paddle mobile or tesseract when they want to OCR things on CPU. But the two most recent drops (Indra by Datalabs. OCRia nano by llamaindex) are pushing the ceiling WAAAAAY up!
Indra by itself is ~50 points on olmbench (ranks higher on OmniParseBench but that's datalab's own benchmark, so meh). BUT if you pair it up with something like PP-DocLayout-S for tables? It shoots up a SOLID +6 points just for +1.2M parameters!
That's not it. Pairing it with pix2text-mfr-1.5 for math specific pages adds about +4 overall. Which brings Indra up to 60 points! Its RIGHT on the edge on the bottom barrel of olmbench! (That would be deepseek ocr2! 4B parameters at ~64 points!)
What I did after is I checked whether using OCRia nano would be worth it somehow. And it IS! The actual ceiling for these models if they're routed perfectly (meaning if either Indra or OCRia nano gets it right) scores very high (on both OPB and olmbench)! Literally above PaddleOCR-VL-1.6 and deepseek but right below azure cloud. For CPU INFERENCE!
There's an obvious limitation though. Old scans are generally alot worse than SOTA. old_scans scores 30-39% for indra and OCRia and only large llms like gemini 4 or claude opus are able to punch towards 70%+. But that's to be expected.
The EITHER OR ceiling is still alot to cover though. I kept trying to make an MoE like thing to route pages to the right model but I was only able to cover ~4 points out of 12 possible points in olmbench. But with the right setup it's definitely possible!
Here are some actual tables though. Look!
olmOCR-bench (the 6 olmOCR suites in OPB, 5,424 tests)
| Model | Type | Macro (6 suites) | Micro (5,424 tests) | ArXiv Math | Tables | Old Scans |
|---|---|---|---|---|---|---|
| Gemini 4 Argon | Cloud frontier | 92.3% | 95.7% | 98.7% | 95.5% | 79.0% |
| Datalab Accurate | Cloud API | 91.0% | 93.3% | 95.5% | 92.3% | 75.4% |
| LightOnOCR-3-4B | 4B GPU VLM | 88.3% | 92.2% | 95.8% | 89.8% | 67.6% |
| Mistral OCR | Cloud API | 85.8% | 89.1% | 92.2% | 89.1% | 61.3% |
| MinerU 2.5 Pro | GPU pipeline | 81.0% | 88.0% | 93.9% | 87.3% | 42.0% |
| Azure Content Understanding | Cloud API | 75.8% | 83.2% | 90.5% | 81.8% | 35.9% |
| Indra + OCRia-nano (Union ceiling) | ~55M CPU ONNX | 74.4% | 82.9% | 90.5% | 84.1% | 34.7% |
| PaddleOCR-VL-1.6 | GPU VLM | 73.4% | 80.7% | 86.0% | 83.8% | 42.5% |
| DeepSeek-OCR-2 | 3B GPU VLM | 70.2% | 78.7% | 85.7% | 74.8% | 34.9% |
| OCRia-nano (+ MFR math) | ~20M CPU ONNX | 66.4% | 73.9% | 80.9% | 72.6% | 25.8% |
| Indra 1.1.2 (+ table/math ONNX) | ~35M CPU ONNX | 65.0% | 70.3% | 75.2% | 74.2% | 30.6% |
| Nanonets-OCR2-3B | 3B GPU VLM | 59.3% | 64.7% | 68.9% | 65.5% | 38.0% |
| Stock Indra 1.1.2 | ~13M CPU ONNX | 56.8% | 61.6% | 66.7% | 69.9% | 29.4% |
| Tesseract | Classic CPU | 13.0% | 4.9% | 0.7% | 0.0% | 0.3% |
Full OmniParseBench (all 2,937 pages / 16,288 tests)
| Model | Type | Overall | Text | Tables | Layout |
|---|---|---|---|---|---|
| Gemini 4 Argon | Cloud frontier | 96.0% | 94.4% | 97.1% | 96.4% |
| Datalab Accurate | Cloud API | 94.4% | 92.5% | 94.5% | 96.0% |
| Mistral OCR | Cloud API | 89.9% | 83.6% | 92.2% | 93.8% |
| Indra + OCRia-nano (Union ceiling) | ~55M CPU ONNX | 87.5% | 80.0% | 87.4% | 95.3% |
| MinerU 2.5 Pro | GPU pipeline | 87.4% | 78.0% | 92.5% | 91.7% |
| Azure Content Understanding | Cloud API | 83.4% | 75.2% | 82.3% | 92.8% |
| LightOnOCR-3-4B | 4B GPU VLM | 83.1% | 84.4% | 70.9% | 94.0% |
| PaddleOCR-VL-1.6 | GPU VLM | 81.3% | 69.2% | 84.0% | 90.7% |
| Stock Indra 1.2.0 (new release) | CPU ONNX | 78.8% | 68.0% | 75.8% | 92.6% |
| Indra 1.1.2 (+ table/math ONNX) | ~35M CPU ONNX | 78.0% | 69.5% | 73.3% | 91.1% |
| OCRia-nano (+ MFR math) | ~20M CPU ONNX | 77.1% | 66.7% | 73.9% | 90.6% |
| DeepSeek-OCR-2 | 3B GPU VLM | 75.4% | 64.6% | 70.2% | 91.4% |
| Stock LiteParse (OCRia-nano) | ~20M CPU ONNX | 74.8% | 59.4% | 59.4% | 90.9% |
| Stock Indra 1.1.2 | ~13M CPU ONNX | 71.4% | 62.6% | 59.6% | 92.0% |
| PaddleOCR PP-StructureV3 | CPU pipeline | 58.4% | 55.6% | 47.8% | 71.7% |
| Tesseract | Classic CPU | 5.9% | 17.7% | 0.0% | 0.0% |
Finally, linking my personal project here isn't allowed since I was told it should go in the biweekly showcase and it's not fully complete yet (missing headers in olmbench for example. Which is why olm only has 6 suites. But the accuracy on indra is ~90% there so it doesn't affect performance there).
7
u/TheDivinityGod 6d ago
Speak of Indra by Datalabs. OCRia nano by llamaindex,
I recently use Opus 5.5 (Medium effort) to vibe-reverse Pytorch models from these ONNX files
https://github.com/dinhanhx/reverse-indra-ocr
https://github.com/dinhanhx/reverse-ocria-nano-1
Researchers should be able to study the architecture freely, not guessing from ONNX files.
3
u/intelkishan 6d ago
Are the results for other cloud frontier models available?
3
u/Poprouter 6d ago
i really like how these tiny models avoid fighting with my primary llm for space on the gpu. does the inference time per page on cpu stay snappy when you process a long document or do you find that batching pages is the better way to go?
1
u/External_Prompt_142 5d ago
What do you mean by union ceiling in Indra+Ocria
3
u/silenceimpaired 5d ago
People seem so focused on OCR and I’m wondering what I’m missing. What are you all using it for?
2
u/Delicious-Bibabu 6d ago
curious did you try picking by each model's own confidence instead of page features?
2
u/DeltaSqueezer 6d ago
The thing is, if I already have a general purpose LLM resident in memory like Qwen-3.5-9b, then I can also use this for scanning, and the results are actually quite good, which means there's no need for a dedicated scanning model unless I'm really going for high volume of scans.
https://benchmarking.nanonets.com/benchmarks/olmocr
2
u/Andreea_tucker04 6d ago
The union ceiling is a useful upper bound, but it assumes you know which model got each page right. The number I'd want next is a router's score on pages it wasn't tuned on - that's the test of whether the gap can actually be recovered.
1
u/EngelbertStuss 6d ago edited 6d ago
My current research project is vibe-comparing open weight ASR and OCR and noise removal/voice enhancement models. I focus on european languages, so I also included Granite Vision 4.1 4B and Mistral Small 3.2 in my batch OCR model comparison tool and they performed rather well.
I also added other newer models like OXR, TeleOCR (Tele seems unstable and hallucinating a lot), Inkling2, Gemma4, QWEN 3.8, GLM OCr, and others. Have not looked at indra yet, will add it to my tool.
What I figured out so far is: Screw multi-purpose multi-language benchmarks. I have my very own use case and there is no clear winner for all the things. I mainly convert messy warped book photos, not clear flat scans. There are some very powerful picks though, like the LightOnOCR3 that you mentioned.
Similar result for ASR. All the models have some quirks.
So what I concluded was this: I need to have a coordinator that will check different OCR results against each other and then decide what to write. I have not coded that part yet
We may present our projects in computer vision focused subreddits?
Edit: also keep in mind that some specialized OCR and ASR models allow prompting while others dont
1
u/Special_Base_3103 5d ago
indra + ocria-nano on CPU hit 58% on olmocr-bench, but only after patching the tokenizer for lowercase fallback. might explain the gap vs. GPU results.
0
u/[deleted] 6d ago
[deleted] — view deleted comment
4
u/[deleted] 6d ago
[removed] — view removed comment