TL;DR
This paper presents a comprehensive cross-dataset evaluation of Vision-Language Models (VLMs) for Arabic manuscript recognition, revealing that no single model or pipeline dominates all scenarios. The authors introduce the "OCR-prior recoverability principle," demonstrating that using traditional OCR to condition a VLM improves transcription accuracy only when the OCR output preserves a fundamentally readable textual anchor.
What Problem Does This Paper Address?
Transcribing historical Islamic manuscripts is an open challenge in the digital humanities. Unlike Latin text, Arabic script is inherently cursive and context-sensitive—the shape of a letter changes based on its position, and tiny dots or diacritics (tashkeel) completely alter a word's meaning.
Historical documents compound these linguistic challenges with complex layouts (like marginal glosses and commentary wrapped around a central text) and physical degradation, such as ink fading, bleedthrough, and paper yellowing. While modern VLMs have shown remarkable success in end-to-end transcription of historical Latin documents, their zero-shot capabilities and optimal deployment strategies for diverse Arabic scripts remain poorly understood.
Methods
The authors conduct a rigorous zero-shot evaluation comparing three paradigms:
- Traditional OCR: Tesseract 5.
- Standalone VLMs: General-purpose (Qwen2.5-VL-7B-Instruct) and Arabic-specialized models (Fanar-2-Oryx-IVU, QARI-OCR).
- OCR-Conditioned VLM Correction: A hybrid pipeline where Tesseract first generates a noisy text prior. This text, along with the original image, is fed into a VLM with instructions to fix OCR errors while verifying against the visual evidence.
The study also investigates the impact of standard image preprocessing techniques (binarization, denoising, sharpening) and evaluates prompt calibration strategies for structured metadata extraction.
Datasets
The study evaluates performance across eight distinct datasets (totaling over 7,700 samples) representing different deployment conditions:
- Historical Manuscripts: Muharaf (predominantly Naskh script, line-level) and Madinah (ancient manuscripts, page-level).
- Maghribi Script: RASAM 2 (historical manuscripts from North Africa).
- Handwriting: KHATT (controlled modern handwriting) and Students Essays (an in-house dataset of realistic, messy student handwriting).
- Printed Arabic: SARD (synthetic clean print), KITAB-Bench (multi-domain benchmark), and QNL Books (an in-house dataset of aged printed books from the Qatar National Library).
Key Insights and Ideas
- The OCR-Prior Recoverability Principle: Passing OCR text to a VLM is a double-edged sword. It acts as a helpful constraint when the text is a noisy but recoverable approximation of the image (e.g., clean print, aged print, or standard Naskh script). However, if the OCR engine encounters an out-of-domain style like Maghribi script or messy handwriting, it produces a systematically misleading prior that actively degrades VLM performance.
- Aggressive Preprocessing Backfires: Traditional image cleanup steps like binarization and denoising, which typically help standard OCR engines, actually harm VLM performance. They smooth out or erase the fine visual cues (dots and diacritics) that VLMs rely on to distinguish Arabic characters. Only image sharpening consistently helped.
- The Diacritics Penalty: VLMs frequently attempt to generate Arabic diacritics but often misplace them, which heavily penalizes their raw Character Error Rate (CER). Ironically, Tesseract achieves a competitive raw CER simply by omitting diacritics entirely.
- Decoding Vulnerabilities: Page-level VLM transcription is highly sensitive to decoding configurations. Restrictive token budgets cause artificial text truncation, while greedy decoding triggers catastrophic repetition loops in roughly 28% of handwritten pages.
Key Results
- Line-Level vs. Page-Level: On line-level historical text (Muharaf), standalone Qwen2.5-VL achieved a 70.4% CER, performing closely to Tesseract (69.2% CER) once diacritics were normalized. On full-page images (Madinah), the VLMs outperformed Tesseract (39.6% vs 51.0% CER), indicating that page-level context helps VLMs reason better.
- Hybrid Pipeline Gains: The Tesseract$\rightarrow$Qwen corrector pipeline achieved the best results on Muharaf, reducing CER to 60.6% (a 12.4% relative improvement). The highest single-dataset gain occurred on aged print (QNL Books), where the corrector reached 15.5% CER.
- Corrector Failures: On RASAM 2 (Maghribi) and Students Essays (handwriting), the corrector significantly worsened performance compared to standalone VLMs due to misleading OCR priors.
Limitations and Future Work
The study focuses strictly on local, open-weight models to ensure reproducibility, leaving commercial frontier APIs (like GPT-4o or Claude) unevaluated. Additionally, the metadata extraction pilot was exploratory and lacked expert ground-truth labels for a rigorous precision/recall analysis.
The authors conclude that a universal "one-size-fits-all" model does not yet exist for historical Arabic. Instead, they recommend building adaptive workflows that use automated routing mechanisms to send pages to standalone VLMs, traditional OCR, or corrector pipelines based on script type, image quality, and length diagnostics.
Summary updated