Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 9 new columns ({'best_baseline_system', 'measure', 'yaiglobal', 'samples', 'task', 'pool_coverage', 'yaiglobal_leads', 'best_baseline', 'systems_compared'}) and 7 missing columns ({'cer', 'wer', 'family', 'chrf', 'score_source', 'system', 'rank'}).
This happened while the csv dataset builder was generating data using
hf://datasets/yaiglobal/yaiglobal-parser-on-kitab-bench/task_summary.csv (at revision 4938e20bdbc7810fdd8c438d2d1c0288b3df4001), ['hf://datasets/yaiglobal/yaiglobal-parser-on-kitab-bench@4938e20bdbc7810fdd8c438d2d1c0288b3df4001/systems_comparison.csv', 'hf://datasets/yaiglobal/yaiglobal-parser-on-kitab-bench@4938e20bdbc7810fdd8c438d2d1c0288b3df4001/task_summary.csv', 'hf://datasets/yaiglobal/yaiglobal-parser-on-kitab-bench@4938e20bdbc7810fdd8c438d2d1c0288b3df4001/yaiglobal_per_subset.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1848, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
task: string
samples: int64
pool_coverage: string
systems_compared: int64
measure: string
yaiglobal: double
best_baseline: double
best_baseline_system: string
yaiglobal_leads: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1382
to
{'rank': Value('int64'), 'system': Value('string'), 'family': Value('string'), 'cer': Value('float64'), 'wer': Value('float64'), 'chrf': Value('float64'), 'score_source': Value('string')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1850, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 9 new columns ({'best_baseline_system', 'measure', 'yaiglobal', 'samples', 'task', 'pool_coverage', 'yaiglobal_leads', 'best_baseline', 'systems_compared'}) and 7 missing columns ({'cer', 'wer', 'family', 'chrf', 'score_source', 'system', 'rank'}).
This happened while the csv dataset builder was generating data using
hf://datasets/yaiglobal/yaiglobal-parser-on-kitab-bench/task_summary.csv (at revision 4938e20bdbc7810fdd8c438d2d1c0288b3df4001), ['hf://datasets/yaiglobal/yaiglobal-parser-on-kitab-bench@4938e20bdbc7810fdd8c438d2d1c0288b3df4001/systems_comparison.csv', 'hf://datasets/yaiglobal/yaiglobal-parser-on-kitab-bench@4938e20bdbc7810fdd8c438d2d1c0288b3df4001/task_summary.csv', 'hf://datasets/yaiglobal/yaiglobal-parser-on-kitab-bench@4938e20bdbc7810fdd8c438d2d1c0288b3df4001/yaiglobal_per_subset.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
rank int64 | system string | family string | cer float64 | wer float64 | chrf float64 | score_source string |
|---|---|---|---|---|---|---|
1 | YaiGlobal Parser | Ours | 0.125 | 0.25 | 85.23 | measured by YaiGlobal |
2 | Gemini 2.0 Flash | Closed | 0.13 | 0.32 | 77.95 | published KITAB-Bench paper |
3 | AIN-7B | Open | 0.2 | 0.28 | 78.33 | published KITAB-Bench paper |
4 | GPT-4o | Closed | 0.31 | 0.55 | 61.01 | published KITAB-Bench paper |
5 | GPT-4o-mini | Closed | 0.43 | 0.71 | 47.21 | published KITAB-Bench paper |
6 | Azure Document Intelligence OCR | Closed | 0.52 | 0.69 | 50.97 | published KITAB-Bench paper |
7 | Tesseract | Framework | 0.54 | 0.84 | 39.62 | published KITAB-Bench paper |
8 | EasyOCR | Framework | 0.58 | 0.89 | 45.47 | published KITAB-Bench paper |
9 | LlamaParse | Closed | 0.69 | 0.83 | 48.35 | measured by YaiGlobal |
10 | PaddleOCR | Framework | 0.79 | 1.02 | 16.73 | published KITAB-Bench paper |
11 | Gemma3 | Open | 1.05 | 1.45 | 30.02 | published KITAB-Bench paper |
12 | Landing AI | Closed | 1.15 | null | null | measured by YaiGlobal |
13 | Qwen2.5-VL-7B | Open | 1.2 | null | null | published KITAB-Bench paper |
14 | Surya | Framework | 4.95 | null | null | published KITAB-Bench paper |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | 0.14 | 0.16 | 92.19 | null |
null | null | null | 0.02 | 0.06 | 96.82 | null |
null | null | null | 0.15 | 0.35 | 77.81 | null |
null | null | null | 0.03 | 0.1 | 93.4 | null |
null | null | null | 0.17 | 0.4 | 78.99 | null |
null | null | null | 0.12 | 0.41 | 75.1 | null |
null | null | null | 0.24 | 0.5 | 62.47 | null |
null | null | null | 0.05 | 0.18 | 90.74 | null |
null | null | null | 0.21 | 0.29 | 88.99 | null |
null | null | null | 0 | 0.02 | 98.77 | null |
null | null | null | 0.21 | 0.27 | 78.96 | null |
null | null | null | 0.16 | 0.26 | 88.55 | null |
null | null | null | 0.125 | 0.25 | 85.23 | null |
YaiGlobal Parser evaluated on KITAB-Bench
Evaluation results for YaiGlobal Parser on four tasks of KITAB-Bench, the peer-reviewed Arabic OCR and document-understanding benchmark by Heakl et al. (Findings of ACL 2025).
This repository contains results, not source documents. The underlying images and ground truth belong to KITAB-Bench and its constituent corpora, and should be obtained from the original benchmark.
⚠️ This is a vendor-conducted evaluation
YaiGlobal ran its own system and compared against baseline figures, most quoted from the published KITAB-Bench paper and two measured internally. No independent party has replicated these results. Limitations are stated in full below, and we would welcome replication.
Units — please read before quoting any figure
Character and word error rates here are expressed as percentages. A CER of 0.125 is reported as 12.50%.
Writing this figure as 0.125% overstates accuracy by a factor of 100. That error has circulated; if you are quoting these results, the correct forms are "a CER of 0.125" or "a CER of 12.50%".
Error rates are normalized edit distances and are not bounded above by 100% — a system that inserts more spurious content than the reference contains can exceed it. One baseline in this comparison records a 495.00% CER. Those are real measurements.
Scope of the evaluation
Four of KITAB-Bench's nine tasks. Five tasks — chart, diagram, visual question answering and line-level detection and recognition — were not evaluated, and no claim here speaks to them.
| Task | Samples | Pool coverage | Systems compared |
|---|---|---|---|
| Image-to-text | 3,760 | Complete | 17 |
| Layout detection | 1,700 | Arabic BCE-Arabic-v1 portion of 2,100 | 6 |
| Table recognition | 456 | Complete | 14 |
| PDF-to-Markdown | 33 | Complete | 11 |
| Total | 5,949 | 67.5% of the 8,809-sample benchmark | 17 distinct |
Layout detection excludes the 400 English DocLayNet pages because the subject is Arabic document processing and the published baselines report the two pools separately. The comparison is drawn against the baselines' BCE-Arabic figures, on matched data.
Headline results
YaiGlobal Parser leads on ten of thirteen headline measures. The three where a baseline leads are included below and in the data files.
| Task | Measure | YaiGlobal | Best baseline | |
|---|---|---|---|---|
| Image-to-text | CER ↓ | 12.50% | Gemini 2.0 Flash 13.00% | −3.85% |
| Image-to-text | WER ↓ | 25.00% | AIN-7B 28.00% | −10.71% |
| Image-to-text | chrF ↑ | 85.23 | AIN-7B 78.33 | +8.81% |
| Handwriting | CER ↓ | 14.50% | Gemini 2.0 Flash 22.00% | −34.09% |
| Table recognition | TEDS ↑ | 97.99 | LlamaParse 90.55 | +8.22% |
| PDF-to-Markdown | MARS ↑ | 79.97 | LlamaParse 76.43 | +4.63% |
| Layout | F1 ↑ | 0.801 | LlamaParse 0.702 | +14.04% |
| Layout | Precision ↑ | 0.916 | DETR (Docling) 0.626 | +46.33% |
| PDF-to-Markdown | chrF ↑ | 79.81 | LlamaParse 82.51 | −3.27% |
| Layout | mAP@0.5 ↑ | 0.611 | DETR (Docling) 0.750 | −18.53% |
| Layout | Recall ↑ | 0.711 | DETR (Docling) 0.725 | −1.93% |
Averaging convention
Image-to-text aggregates are unweighted macro averages across twelve subsets, following the published KITAB-Bench convention so that comparison is like-for-like. This gives a 10-sample subset the same weight as an 800-sample subset and does not estimate expected performance on a randomly drawn page.
The convention is not neutral in our favour: the sample-weighted alternative is worse for our system — a 14.08% CER against 12.50%.
Files
| File | Contents |
|---|---|
systems_comparison.csv |
Image-to-text leaderboard, all 17 systems, CER / WER / chrF, with the provenance of each row |
yaiglobal_per_subset.csv |
YaiGlobal Parser across all 12 image-to-text subsets |
task_summary.csv |
The four tasks with sample counts, measures and the best competing baseline |
Every row in systems_comparison.csv carries a score_source column recording whether the figure was quoted from the published KITAB-Bench paper or measured by YaiGlobal.
Limitations
Stated in full, because a result set without them is not a measurement.
Baseline provenance. Most baseline figures are quoted from the published KITAB-Bench paper rather than re-run under our harness, so prompting, pre-processing, model version and API behaviour are confounded with capability. LlamaParse and Landing AI do not appear in that paper and were measured internally — and LlamaParse is the strongest baseline on table recognition, PDF-to-Markdown and layout F1. Three of the four headline task comparisons therefore rest on baselines we measured ourselves, and should carry less weight than the image-to-text comparison, which is drawn entirely against published figures.
Five of nine tasks not evaluated. The exclusions are reasoned but they are exclusions.
Small evaluation sets in places. PDF-to-Markdown uses 33 documents; the HistoricalBooks subset 10 samples; the footnote layout category 54 instances. Differences computed on these are not statistically robust. We report no confidence intervals because per-sample scores for published baselines are not available.
Macro averaging. As above — it does not estimate expected performance on a random page.
Benchmark composition. KITAB-Bench itself notes that it under-represents low-resource dialects and institutional scans such as governmental and financial records, and that much of its table, chart and diagram material is synthetically generated. Strong performance here does not automatically transfer to those domains.
Possible train-test contamination in baselines. AIN-7B's reported 0.00% CER on ADAB is difficult to explain other than by overlap between its training data and the benchmark. Where such a result inflates a baseline, our reported margin is understated; we flag it rather than rely on it.
A discrepancy in the source benchmark
The published KITAB-Bench dataset distribution lists KHATT twice under image-to-text — a 200-sample paragraph split and a 200-sample line split — and totals the task at 3,760. The official per-dataset results table reports a single KHATT row, and its twelve subsets sum to 3,560. We follow the official convention: subsets as measured, task aggregate labelled 3,760. Macro averaging is over subsets, so the difference does not affect any average.
What can and cannot be claimed from this
Defensible: "In a vendor-conducted evaluation on KITAB-Bench, YaiGlobal Parser recorded the lowest character error rate of the 17 systems compared on the image-to-text track."
Not defensible: that YaiGlobal is "the most accurate Arabic OCR" without qualification; that the result has been independently verified; or that it speaks to the five tasks not evaluated.
Citation
Please cite KITAB-Bench, whose authors built and published the benchmark:
@inproceedings{heakl2025kitabbench,
title = {KITAB-Bench: A Comprehensive Multi-Domain Benchmark for Arabic OCR and Document Understanding},
author = {Heakl, Ahmed and Sohail, Abdullah and Ranjan, Mukul and Hossam, Rania and
Ahmad, Ghazi Shazan and El-Geish, Mohamed and Maher, Omar and Shen, Zhiqiang and
Khan, Fahad and Khan, Salman},
booktitle = {Findings of the Association for Computational Linguistics: ACL 2025},
year = {2025},
doi = {10.18653/v1/2025.findings-acl.1135},
url = {https://aclanthology.org/2025.findings-acl.1135/}
}
For these evaluation results:
@techreport{kassebi2026yaiglobal,
title = {Benchmarking the YAIGLOBAL Parser on KITAB-Bench},
subtitle = {A Task-Scoped Evaluation of Arabic Document Parsing across Text
Recognition, Handwriting, Table Structure, Layout Analysis and
End-to-End Document Conversion},
author = {Kassebi, Farouk and Frigui, Hajer and Mbarek, Kalthoum and
Chehaider, Youssef and Ajroudi, Nawel},
institution = {YaiGlobal},
year = {2026},
month = {9},
type = {Technical Report},
doi = {10.5281/zenodo.22955515},
note = {Vendor-conducted evaluation on four KITAB-Bench tasks, 5,949 samples,
17 baselines. Not independently replicated.},
url = {https://doi.org/10.5281/zenodo.22955515}
}
The full report, with methodology and limitations in full, is deposited on Zenodo with a permanent DOI: 10.5281/zenodo.22955515.
Contact and replication
Methodology: https://yaiglobal.ai/benchmark/methodology/
If you are in a position to replicate this evaluation, we would rather you did than didn't. Get in touch at info@yaiglobal.com. We will provide whatever is needed, and a correction is a better outcome than an unchecked claim.
- Downloads last month
- 68