ArEssays: Towards Robust Arabic Handwritten Text Understanding in Educational Settings
Organizations: Qatar Computing Research Institute, Hamad Bin Khalifa University, Doha, Qatar
Abstract
Automated understanding of handwritten Arabic student essays remains challenging due to script complexity and high variability in children's writing. We introduce ArEssays, a large-scale dataset of authentic essays from primary to secondary students across Egypt, with both verbatim transcriptions and linguistically corrected versions. We benchmark 34 vision-language and OCR models, including fine-tuned systems, and find large performance gaps on real student handwriting. We release the dataset, training pipelines, and results to support research in Arabic OCR, document understanding, and educational NLP.
Figures & tables
| Target | Attribute | Values | % |
|---|---|---|---|
| Student | Stage | Primary (G4-G6) | 22 |
| Preparatory (G7-G9) | 47 | ||
| Secondary (G10-G12) | 31 | ||
| Student | Gender | Female | 57 |
| Male | 32 | ||
| Unspecified | 11 |
| Model Identifier | Category | Exact WER | Corrected WER |
|---|---|---|---|
| Specialized Document OCR Engines | |||
| olmOCR-2-7B-1025 | OCR Tool | 74.0% | 70.4% |
| PaddleOCR-VL-1.5 | OCR Tool | 101.7% | 94.2% |
| olmOCR-7B-0225-preview | OCR Tool | 91.5% | 102.5% |
| PaddleOCR-VL | OCR Tool | 115.6% | 126.0% |
| dots_ocr | OCR Tool | 121.3% | 112.1% |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| CPU | INTEL(R) XEON(R) PLATINUM 8568Y |
| GPU | Nvidia H200-141GB |
| Memory | 512GB |
| OS | Ubuntu 20.04.5 LTS |
| Decoding parameter | Value |
|---|---|
| Decoding strategy | Greedy search ( do_sample=False ) |
| Max new tokens | 1,024 |
| Repetition penalty | model-specific † |
| Beam size | 1 |
| Random seed | N/A (deterministic) |
| Image preprocessing | Resize to max resolution, RGB convert |
| Model | Model-specific setting |
|---|---|
| Qwen2.5-VL / Qwen3-VL | No system prompt; standard greedy generate |
| Qwen3.5 / Qwen3.6 | System prompt: “You are an OCR engine…”; enable_thinking=False |
| Gemma-3 family | No additional flags; default generate() |
| olmOCR | rep. penalty=1.15 ; no_repeat_ngram=20 |
| PaddleOCR-VL | Prompt override: “ OCR: ”; rep. penalty=1.15 ; no_repeat_ngram=20 |
| dots.ocr | Layout-JSON prompt; custom KV-cached greedy decode; text extracted from JSON |
| Setting | Value |
|---|---|
| Optimizer | AdamW (fused) |
| Precision | bfloat16 |
| LR scheduler | cosine with warm-up |
| Warm-up ratio | 0.05 |
| Weight decay | 0.05 |
| Gradient clipping | 1.0 (max norm) |
| Hyperparameter | Baseer-3B | Qwen3.5-4B | Gemma4-26B-A4B |
|---|---|---|---|
| LoRA rank ( ) | 64 | 64 | 64 |
| LoRA | 128 | 128 | 128 |
| Learning rate | |||
| Effective batch size | 16 | 16 | 16 |
| Per-device batch size | 2 | 1 | 1 |
| Gradient accumulation steps | 8 | 16 | 16 |
| Hyperparameter | Baseer-3B | Qwen3.5-4B | Gemma4-26B-A4B |
|---|---|---|---|
| Stage-1 adapter merging | yes | yes | yes |
| LoRA rank ( ) | 32 | 32 | 16 |
| LoRA | 64 | 64 | 32 |
| Learning rate | |||
| Effective batch size | 16 | 16 | 16 |
| Per-device batch size | 2 | 2 | 2 |
Document Image Understanding
Document image understanding turns page images into recognized text, layout, structured data, and answers grounded in visual evidence.
See all 159 papers