YaiGlobalArabic OCR

YaiGlobal Parser vs Gemini 2.0 Flash

The closest competitor on printed Arabic — 12.50% against 13.00% character error rate. The gap widens to more than eight times that on handwriting.

Gemini 2.0 Flash is the strongest general-purpose model measured on this benchmark, and on modern printed Arabic the difference between it and a purpose-built parser is narrow enough that it may not justify changing anything. On handwriting, historical material and table structure it is not narrow. This page says which is which.

Measured side by side

All figures from the same evaluation on KITAB-Bench. Gemini's figures are quoted from the published benchmark paper, produced by its authors — not measured by us.

Head to head across four tasks.
Task / measureYaiGlobalGemini 2.0 FlashRelative gap
Image-to-text CER ↓12.50%13.00%−3.85%
Image-to-text WER ↓25.00%32.00%−21.88%
Image-to-text chrF ↑85.2377.95+9.34%
Handwriting CER ↓14.50%22.00%−34.09%
Handwriting WER ↓37.25%53.50%−30.37%
Table structure TEDS ↑97.9983.08+17.95%
End-to-end MARS ↑79.9765.65+21.81%
End-to-end chrF ↑ (text)79.8175.75+5.36%
End-to-end TEDS ↑ (tables)80.1255.55+44.23%

How to read that table

On printed Arabic recognition the two are close. A 3.85% relative difference in character error rate is real but small, and for a modest volume of modern printed documents it is unlikely on its own to justify a procurement decision. We would rather say that than pretend a 0.5 percentage-point gap is decisive.

On handwriting the gap is 34.09% — more than eight times wider. Gemini degrades from 13.00% to 22.00% moving from the full task to the handwritten subsets; the parser moves from 12.50% to 14.50%. That is the difference between a system that handles handwriting and one that handles print and copes with handwriting.

On structure the gap is largest of all. Table fidelity within end-to-end conversion differs by 44.23% (80.12 against 55.55). This is the characteristic weakness of general vision-language models on documents: they reconstruct page geometry from pixels each time, where a parser carries an explicit model of it. The full table results →

When Gemini 2.0 Flash is the better choice

There are real cases, and they follow from what a general model is for.

  • When you need reasoning about the document, not extraction from it. Summarising, answering questions about content, interpreting a chart. A parser returns what is on the page; it does not tell you what the page means. These are different products.
  • Modern printed Arabic at low volume, where a 3.85% relative difference in error rate does not repay a procurement cycle — particularly if a Google Cloud relationship already exists.
  • Rapid prototyping, where an API you already have credentials for beats one you have to evaluate.
  • Mixed-language content in bulk where Arabic is incidental rather than the point.

One caution that applies to any generative model used for OCR. The failure mode is hallucination — fluent, plausible text that was never on the page — rather than visible garbling. It survives review in a way a misread word does not. This is a property of the architecture, not a criticism of Gemini specifically, and it matters most for archival material where nobody will re-read the source.

When the parser is the better choice

  • Handwritten or historical Arabic — the 34.09% margin, and the pattern that the margin widens as material gets harder.
  • Documents where tables carry the meaning — financial records, statistical yearbooks, registries. A 44.23% difference in table fidelity is the difference between a queryable table and one that needs re-keying.
  • Retrieval pipelines, where layout detection determines whether chunking is semantically coherent.
  • On-premises requirements — where material cannot leave the institution's infrastructure for legal or sovereignty reasons. A hosted API is not an option regardless of its accuracy.

What this comparison does not establish

This evaluation was conducted by YaiGlobal. We ran our system and compared against Gemini's published figures from the KITAB-Bench paper. We did not re-run Gemini, which means differences in prompting, pre-processing or model version are confounded with capability. No independent party has replicated the comparison.

It also covers four of the benchmark's nine tasks. Chart interpretation, diagram understanding and document question answering were not evaluated — and those are areas where a general model would be expected to do well and a parser to do poorly, because a parser does not attempt them.

Test both on your own documents

This is the only comparison that settles it. Send us a representative sample — ideally including the worst material you have — and we will run it and show you the output. Run the same pages through Gemini yourself and compare directly.

Send a sample →   Read the methodology

Scope. Vendor-conducted evaluation on four of the nine KITAB-Bench tasks, 5,949 samples. Gemini 2.0 Flash figures quoted from the published benchmark paper (Heakl et al., Findings of ACL 2025, arXiv:2502.14949), not re-run by YaiGlobal. Image-to-text aggregates are unweighted macro averages; the sample-weighted CER for YaiGlobal Parser is 14.08%. Gemini 2.0 Flash is a product of Google. Full methodology and limitations.