Manuscript Offprint
arXiv:2611.01635Benchmarking Vision-Language Models for Urdu Nastaliq Handwriting Recognition
Haseeb Yaqoob
Department of Computer Science NED University of Engineering & Technology Karachi, Pakistan haseeb.yaqoob201@gmail.com
Fatima Azfar
Department of Computer Science NED University of Engineering & Technology Karachi, Pakistan Fatimaazfar08@gmail.com
Emaan Arif Khan
Department of Computer Science NED University of Engineering & Technology Karachi, Pakistan eamyarifkhan@gmail.com
Abstract—Handwritten Urdu is hard to recognize because the cursive Nastaliq script has no fixed baseline and no clear character boundaries. We benchmark six systems on the Urdu Nastaliq Handwritten Dataset (UNHD): Tesseract (default configuration), a script-specific recognizer trained on printed Urdu (UTRNet-Large), two open-source vision-language models (VLMs), and two commercial VLMs. All six systems are evaluated without fine-tuning on 2,465 single-line images (Part A), and the four VLMs receive the same fixed prompt (decoding uses temperature 0 where configurable, except for Claude Sonnet 5, whose decoding cannot be configured). Both commercial VLMs reach lower error than the printed-Urdu recognizer and the open-source VLMs. We do not compare against handwriting-trained recognizers, which would likely do better in-domain; we characterize zero-shot behavior, not state of the art. We also describe three distinct failure modes among the ranked systems. In one of them, a commercial model explicitly declines to transcribe a few very hard-to-read images instead of guessing. In a second study (Part B), VLMs correct the output of a separate OCR system using both the source image and the noisy text. Once separated from each model's own reading ability, the benefit is small on Tesseract's output (0.7% to 7.4%) and larger (17.9% and 21.9%) only for the two commercial correctors given UTRNet's text. It appears to depend on how legible the supplied text already is, and a weaker corrector can make a more legible text worse.
Index Terms—handwritten text recognition, Urdu, Nastaliq, vision-language models, zero-shot OCR, benchmarking
I. INTRODUCTION
Urdu is written in the Nastaliq script. Nastaliq is cursive and flows diagonally, and the shape of a character depends on its position in the word and on its neighbors. These properties make it hard to split a line into characters, which makes handwritten Urdu text recognition (HTR) difficult. Existing work trains script-specific recognizers on the few public datasets available [1]–[3].
General-purpose vision-language models (VLMs) are trained on broad multilingual and multimodal data, and we apply them without any Urdu-specific fine-tuning of our own.
We study two research questions:
- RQ1: Can zero-shot, general-purpose VLMs match or exceed Tesseract and a recognizer trained for printed Urdu on handwritten Urdu Nastaliq? Which accuracy and failure characteristics distinguish them?
- RQ2: Can VLMs improve a separate OCR system's output as a zero-shot correction layer, given both the source image and that system's noisy transcription, rather than replacing that system outright?
Although multimodal language models have been benchmarked for handwritten text recognition across several languages, their performance on Urdu Nastaliq remains less explored. We evaluate general-purpose vision-language models on the Urdu Nastaliq Handwritten Dataset (UNHD) under a controlled zero-shot protocol and investigate whether these models can improve existing OCR outputs when provided with both the source image and the initial transcription.
We answer RQ1 in Part A, a controlled benchmark of six systems on the Urdu Nastaliq Handwritten Dataset (UNHD) (Sections IV and V). A ranking of systems does not answer RQ2. RQ2 is a separate question that matters for deployment, and we study it in Part B (Section VI).
More recent work uses transformers: convolution-transformer hybrids and unified printed-and-handwritten models [4], [5], an efficient transformer reporting state-of-the-art CER [6], a paragraph-level ViT-decoder with a language model [7], and a CRNN baseline on the historical UKHD dataset [8]. All are trained for this task; we do not fine-tune the VLMs we evaluate for Urdu HTR.
The OCR ability of general-purpose VLMs has been benchmarked across scripts and tasks [9], mostly on Latin-script and high-resource text. Two studies compare zero-shot multimodal LLMs with specialized HTR models on non-English or historical scripts, with mixed results: proprietary models excel on modern English handwriting but show no consistent advantage on historical non-English text [10], and zero-shot Gemini is only comparable to a minimally trained TrOCR baseline on historical correspondence [11]. Neither covers Urdu Nastaliq, which we address here.
III. DATASET
We use the Urdu Nastaliq Handwritten Dataset (UNHD) [1]. The raw corpus has 7,610 scanned single-line images and 7,396 ground-truth files. After resolving orphaned pairs and removing 37 groups of exact duplicate images (re-checking labels where duplicates disagreed), 7,319 valid pairs remain, spanning 849 unique sentence templates, consistent with earlier work showing that UNHD's nominal line count overstates its diversity [3].
Our evaluation set takes 2–3 distinct writers per sentence. To avoid counting one physical writer twice, we manually grouped writer IDs that seemed to belong to the same person into clusters. When a sentence had too few distinct writers, we drew an extra sample from a cluster already used for it (a “same-cluster fallback writer”; 16 sentences). Twelve sentences with fewer than two available writers even with this fallback were excluded. The final set has 2,465 image/ground-truth pairs across 837 sentences and 336 distinct writers. Evaluating on all UNHD samples without limiting repetition can be dominated by a few heavily repeated templates, so our protocol limits the influence of repeated sentences and writers (the writer clustering was manual and approximate).
IV. METHODOLOGY
Fig. 1 shows the Part A pipeline. The four VLMs receive the same fixed prompt, while Tesseract and UTRNet-Large run with their default or official settings. Decoding is greedy or temperature 0 (or a fixed default) for every system except Claude Sonnet 5, which does not expose decoding parameters (see below). Raw predictions are normalized, scored with CER and WER, and analyzed for failure modes (Table II).
A. Model Roster
The systems span an untrained general-purpose OCR engine, a script-specific supervised recognizer, and two tiers of zero-shot VLMs, which tests how far generic multimodal pretraining can replace Urdu-specific supervision. Six systems were evaluated end to end and ranked (Table I):
- Tesseract [12] (version 4.1.1): a widely used open-source OCR engine, run with the urd language pack and default settings (pytesseract.image_to_string(img, lang="urd"))), with no image preprocessing and no page-segmentation override. Tesseract's default full-page mode was therefore applied to single-line images, which likely understates its best performance.

Fig. 1: Part A pipeline.
-
UTRNet-Large [13]: an HRNet-based recognizer trained for Urdu script, run with its official inference configuration. UTRNet was proposed and evaluated for printed Urdu. Here we use it across domains as a handwriting baseline.
-
Qwen2.5-VL-7B-Instruct [14] and Qwen3-VL-8B-Instruct [15]: open-source VLMs, run with vLLM with 4-bit bitsandbytes quantization in fp16 on a single NVIDIA Tesla T4 GPU.
-
Gemini 3.5 Flash-Lite [16] and Claude Sonnet 5 [17]: commercial VLMs, run through their official APIs with metered, pay-per-use batch inference.
We also evaluated two further open-source VLMs, MiniCPM-V-4.5 [18] and InternVL3.5-8B [19], both as 4-bit quantized checkpoints. We excluded them from the ranking (Section V-C).
B. Fixed Prompt and Decoding Policy
We want a zero-shot capability comparison, not a per-model prompt-tuning exercise. Every VLM therefore received the same instruction, delivered as the system message (or the API's system-instruction field) with the image in the user turn:
"This image contains a single line of handwritten Urdu text in the Nastaliq script. Transcribe exactly what is written, character for character, including any diacritics. Output ONLY the transcribed Urdu text, with no translation, no explanation, and no extra commentary."
The open-source models used greedy, deterministic generation (temperature 0), a repetition penalty of 1.05, and a 128-token cap. Some models fell into repetition loops. The mild penalty was the only repetition control we used under vLLM; a stronger setting (penalty 1.3 with a no-repeat-3-gram constraint) was tried in an early transformers pilot and discarded because it induced hallucinated commentary. The penalty was applied identically to all open-source models and was not per-model tuning.
Gemini 3.5 Flash-Lite ran at temperature 0 with max_output_tokens = 128 and its default thinking setting; outputs averaged 19.8 tokens (maximum 40), so none reached the cap. Claude Sonnet 5 ran through the Anthropic Batch API at the high-resolution image tier (2576px maximum edge) with max_tokens = 1024. Its model generation does not allow temperature, top_p, or top_k to be set (setting them returns an error), so its decoding relies on built-in behavior.
Extended thinking is on by default for Sonnet 5, and an explicit thinking: {"type": "disabled"} request did not always take effect in preliminary tests. The 1024-token cap is therefore a shared budget for thinking and output. The first pass used max_tokens = 128, and 294 responses were truncated because thinking consumed the whole budget; those rows were resubmitted with the larger cap and all recovered. This matters for the empty/refusal rate in Table I and the unusable-output rate in Section VI-E. The API model IDs were gemini-3.5-flash-lite and claude-sonnet-5.
Implementation details. The open-source models ran under vLLM 0.25.1 on a single Kaggle Tesla T4 with each model's default image processor, a 4096-token maximum length, and batches of 16 images. UTRNet-Large used the authors' released checkpoint with the official preprocessing (grayscale, height 32, left-right flip). Each system was run once; API outputs at temperature 0 need not be identical across runs, and Claude Sonnet 5's run-to-run variance is not quantified because its decoding cannot be fixed. Gemini rows that failed on quota errors (320) were resubmitted unchanged. All reported numbers come from the common scoring script in Section IV-C.
C. Evaluation Metrics
Our primary metrics are diacritic-sensitive CER and WER, each the edit distance divided by the reference length, computed per image and averaged over images from each system's raw prediction file. We recomputed all aggregates independently from the raw per-image CSVs, checking row counts, unique image identifiers, and the absence of unexplained errors.
The scoring script decodes ground truth with utf-8-sig, which strips the byte-order mark at the start of about 51% of raw ground-truth files, and applies Unicode NFC normalization to predictions and ground truth before alignment. Skipping either step would add a small systematic error to every system that comes from encoding artifacts.
To check whether differences are more than sampling noise, we report 95% confidence intervals from a 10,000-resample paired percentile bootstrap over images [20]. Images are resampled with replacement, jointly across the two quantities being compared, so per-image pairing is preserved. Each interval runs from the 2.5th to the 97.5th percentile of the statistic (mean CER, or CER reduction as a percentage of the baseline).
V. PART A: BENCHMARKING RESULTS
A. Aggregate Accuracy
Table I reports mean CER, WER, and empty or refusal rates for the six ranked systems.
Both commercial VLMs outperformed the printed-Urdu recognizer and the open-source VLMs. Gemini 3.5 Flash-Lite had the lowest CER and Claude Sonnet 5 was next. Every adjacent-rank difference was statistically significant under paired image-level bootstrap resampling, so the ranking is unlikely to come from image-sampling variability. The smallest gap was between Claude Sonnet 5 and UTRNet-Large (paired difference -0.043, 95% CI [-0.051, -0.033]). Section VII reports a sentence-level check of this comparison.
Claude Sonnet 5's CER leaves out the five images it refused (Section V-B). If those images are scored as maximal error (CER = 1.0), its CER is 0.2671. This does not change the ranking.
Both commercial VLMs beat UTRNet-Large, a recognizer trained on printed Urdu, without any Urdu-specific fine-tuning on our part. This suggests that broad multimodal pretraining can offset much of the need for task-specific training, although we cannot rule out that UNHD appeared in their pretraining data (Section VII).
B. Qualitative Failure Modes
Beyond the ranking, the six systems show three distinct failure modes (Table II). Gemini 3.5 Flash-Lite showed none of them on this evaluation set.
Claude Sonnet 5's behavior stands out. On 5 of 2,465 images (0.20%), it explicitly declined to transcribe instead of guessing, each time with an English explanation that the handwriting was too hard to read. Each was retried once and none recovered, so the refusals appear repeatable, though we retried only once. Table I counts them as refusals, not empty output. We inspected the five images by hand: they were unusually hard to read even for a fluent Urdu reader, which suggests real uncertainty and not an instruction-following failure.
Repetition-loop rates in Table II count outputs in which a phrase of one to four words repeats three or more times in a row. They are Part A rates, and are not directly comparable to the Part B rates in Section VI-E, which use a separate detector on corrector outputs.
C. Negative Results: MiniCPM-V-4.5 and InternVL3.5-8B
We evaluated two further open-source VLMs and left them out of Table I. InternVL3.5-8B (third-party AWQ 4-bit checkpoint) obtained a mean CER of 1.0633 (WER 1.3206) on all 2,465 images, worse than an empty prediction; a partial rerun with the official checkpoint under bitsandbytes (n = 152) gave 1.0779. MiniCPM-V-4.5 (official int4 checkpoint) was tested only on a small pilot because of its failure pattern: a handful of images under vLLM (CER about 1.5–3.2, often with unrequested English commentary) and three through its native transformers interface (CER 0.71–0.78), so we report no full-set CER. InternVL3.5-8B produces fluent, grammatical
TABLE I: Part A results (). CER and WER are diacritic-sensitive. CIs are 10,000-resample paired bootstrap intervals.
| System | Category | CER | 95% CI (CER) | WER | Empty / refusal |
|---|---|---|---|---|---|
| Tesseract | Traditional OCR | 0.7215 | [0.7145, 0.7286] | 1.1793 | 5.1% |
| Qwen2.5-VL-7B | Open-source VLM | 0.6464 | [0.6343, 0.6592] | 0.9495 | 0% |
| Qwen3-VL-8B | Open-source VLM | 0.4861 | [0.4737, 0.4990] | 0.8380 | 0% |
| UTRNet-Large | Trained (script-specific) | 0.3084 | [0.3017, 0.3153] | 0.7827 | 0% |
| Claude Sonnet 5 | Commercial VLM | 0.2656 | [0.2550, 0.2769] | 0.5225 | 0.20% |
| Gemini 3.5 Flash-Lite | Commercial VLM | 0.1718 | [0.1633, 0.1805] | 0.3772 | 0% |
TABLE II: Failure modes and their rates in Part A.
| Failure mode | Seen in | Description | Rate |
|---|---|---|---|
| Empty output | Tesseract | Likely full-page mode on single lines (single-line mode untested) | 5.1% |
| Repetition loop | Qwen2.5-VL, Qwen3-VL | Phrase repeated until the generation cap | 1.66% / 0.81% |
| Refusal on hard images | Claude Sonnet 5 | Explicit decline to transcribe | 0.20% |
| None observed | Gemini 3.5 Flash-Lite | No empty or refused output | 0% |
Urdu unrelated to the handwritten source, a failure mode we call confident hallucination. The MiniCPM-V-4.5 pilot is too small and unstable to say whether it shows the same pattern. The InternVL result likely reflects a capability limit on this task, although quantization and integration effects cannot be fully ruled out.
VI. PART B: ZERO-SHOT CORRECTION
Text-only LLM correctors trained on synthetic noise can greatly reduce CER on conventional OCR output [21], but a study on historical English and Finnish found the benefit neither universal nor guaranteed [22]. Multimodal correction, which also gives the corrector the source image, outperformed text-only correction on historical German city directories and reached sub-1% CER without fine-tuning [23]. We apply that design to zero-shot Urdu Nastaliq and find a real but more conditional benefit (Section VI-C).
A. Experimental Setup
Part B asks whether VLMs can improve a separate OCR system's output when given both the source image and that system's noisy transcription. All correctors use the image-plus-text setting: the source image and the noisy OCR text, with no other context. (A text-only ablation, reported in Section VII, withholds the image.) All correctors, on both input sources, receive the same correction instruction as the system prompt:
"You are correcting the output of a low-quality OCR system that transcribed a single line of handwritten Urdu text in the Nastaliq script. The OCR system's guess is often wrong – garbled, incomplete, or entirely incorrect. Your job is to produce the correct transcription. Output ONLY the corrected Urdu text – no explanation, no commentary."
The user turn contains the source image and the line "OCR guess: <text>" (image first for the Qwen models and Claude
Sonnet 5, text first for Gemini). The open-source correctors used temperature 0, a repetition penalty of 1.05, and a 128-token cap, as in Part A, and Gemini ran at temperature 0 with the same cap. Claude Sonnet 5 ran through the Anthropic Batch API under the same model ID as in Part A, with the instruction as the system prompt, the original PNG sent base64-encoded without client-side resizing, and max_tokens = 1024 from the first pass to avoid the Part A truncation problem. As in Part A, no temperature or thinking setting was passed, so its decoding relies on built-in behavior and run-to-run variance is not quantified. Rows that returned an API error, an empty output, or an English non-transcription response were resubmitted once in a targeted retry and merged; rows still empty after the retry are the unusable outputs counted in Section VI-E.
We test four correctors: Qwen2.5-VL-7B-Instruct, Qwen3-VL-8B-Instruct, Gemini 3.5 Flash-Lite, and Claude Sonnet 5. Each corrects two inputs. The first is Tesseract's Part A predictions, the weakest baseline. The second is UTRNet-Large's Part A predictions, a much more accurate baseline. The second input tests whether the effect, and its direction, still hold when the text prior is already considerably more legible. We keep each corrector's own image-only CER from Part A, on the same images, as a reference point.
B. What Does "Percent Reduction" Actually Measure?
A CER reduction measured against the input source mixes the corrector's own OCR ability with any benefit from the supplied text: Gemini and Sonnet 5 already read the image far better than Tesseract or UTRNet, while the Qwen models read it better than Tesseract but worse than UTRNet. We therefore report two figures for all eight corrector and input combinations (Table III, Fig. 2): the reduction relative to the input source, and the reduction relative to the corrector's own Part A CER on the same images, which isolates whether the supplied text helped. Reductions use unrounded per-image CERs on the images answered in both settings, so they can differ slightly from the rounded table CERs. For Claude Sonnet 5 on Tesseract input the table CER (0.2578, ) includes the five images it refused in Part A; on the 2,459 images answered in both settings the CERs are 0.2655 and 0.2574, giving the reported 3.1%.
C. The Same Metric Choice Can Mislead in Either Direction
Table III and Fig. 2 show a pattern that neither metric reveals alone. Gemini 3.5 Flash-Lite and Claude Sonnet 5 are strong independent readers in Part A. Given UTRNet's more legible
TABLE III: Part B results. CER reduction vs. the input source and vs. the corrector's own Part A CER (PtA), with 95% bootstrap CIs. Sonnet 5 rows exclude unusable empty outputs ( and ).
| Corrector | Input | CER | Reduction vs. input (%) [95% CI] | Reduction vs. own PtA (%) [95% CI] |
|---|---|---|---|---|
| Qwen2.5-VL-7B | Tesseract | 0.5984 | 17.1 [15.0, 19.0] | 7.4 [5.0, 9.8] |
| Qwen2.5-VL-7B | UTRNet | 0.3363 | -9.0 [-11.1, -7.2] | 48.0 [46.5, 49.5] |
| Qwen3-VL-8B | Tesseract | 0.4829 | 33.1 [31.3, 34.7] | 0.7 [-2.1, +3.3] |
| Qwen3-VL-8B | UTRNet | 0.2963 | 3.9 [2.7, 5.2] | 39.0 [37.4, 40.7] |
| Gemini 3.5 Flash-Lite | Tesseract | 0.1613 | 77.6 [76.5, 78.7] | 6.1 [3.9, 8.3] |
| Gemini 3.5 Flash-Lite | UTRNet | 0.1410 | 54.3 [52.4, 56.1] | 17.9 [15.7, 20.2] |
| Claude Sonnet 5 | Tesseract | 0.2578 | 64.3 [63.1, 65.4] | 3.1 [0.4, 6.1] |
| Claude Sonnet 5 | UTRNet | 0.2075 | 32.6 [31.1, 34.2] | 21.9 [19.4, 24.5] |

Fig. 2: CER reduction vs. the input source and vs. each corrector's own Part A CER.
text, both gain by both measures, and all four intervals exclude zero by a wide margin.
For the Qwen models the own-Part-A-relative figures on UTRNet input look even larger (48.0% and 39.0%), but this is largely mechanical: UTRNet's text is far better than either model's own zero-shot reading, so adopting it looks like a big gain whether or not correction adds value. The reduction-vs-input column exposes this directly. Given UTRNet's text, Qwen2.5-VL-7B's corrected output is on average worse than UTRNet's raw prediction (-9.0%, 95% CI [-11.1%, -7.2%]). Per image, 1,027 of 2,465 (41.7%) got worse and 997 (40.4%) improved: an almost even split with a small but statistically confirmed net loss. Qwen3-VL-8B's gain over UTRNet's text is small (+3.9%). We computed per-image counts only for Qwen2.5-VL-7B.
Two results are easy to misread. Qwen3-VL-8B's own-Part-A-relative gain on Tesseract input (+0.7%, CI spanning zero) means correction does not measurably improve on its own zero-shot reading. Claude Sonnet 5's gain on Tesseract input (3.1%, 95% CI [+0.4%, +6.1%]) is the smallest statistically significant effect in the table, and a cluster-aware bootstrap could widen it (Section VII); Sonnet 5 already reads the image well compared with Tesseract's noisy text, so the text adds little.
No single metric shows whether correction works. Reduction relative to the input is inflated when the corrector reads much better than the input source; reduction relative to the corrector's own Part A score is inflated in the opposite case. Taking both together, only Gemini and Sonnet 5 show statistically distinguishable gains on both input sources: clear on UTRNet's more legible text and marginal on Tesseract's
poor output.
D. The Correction Benefit Appears to Depend on Input Legibility
We also asked how the benefit depends on the legibility of the input text. For the four correctors tested on Tesseract output, we binned each image by how legible Tesseract's guess was: decent (CER ≤ 0.5), bad (0.5 < CER ≤ 0.9), or very poor (CER > 0.9). In each bin we measured each corrector's own-Part-A-relative gain (Table IV).
The benefit of a noisy OCR prior tends to be larger when the prior is more legible, though not for every corrector. The gain is largest in the decent bin for all four correctors, and for Qwen2.5-VL and Gemini it shrinks as input quality drops. Significant gains appear in the decent bin for Qwen2.5-VL, Gemini and Claude Sonnet 5, in the bad bin only for Qwen2.5-VL and Gemini, and in the very poor bin () for none, so the sign of the very-poor effect for any single corrector should not be over-interpreted. Qwen3-VL shows no significant gain in any bin, and Claude Sonnet 5 is not strictly monotone, though its bad- and very-poor-bin intervals overlap almost completely. Binning by Tesseract's CER also partly bins by image difficulty, so a legibility effect cannot be separated from an easy-image effect with this design.
We did not run this breakdown for UTRNet input (mean CER 0.3084, in the decent range); the larger Gemini and Sonnet 5 gains relative to that input are consistent with the pattern but only suggestive.
TABLE IV: Correction gain by Tesseract input legibility, as percent CER reduction relative to each corrector's own Part A CER (95% bootstrap CIs).
| Tesseract quality | n | Qwen2.5-VL | Qwen3-VL | Gemini | Claude Sonnet 5 |
|---|---|---|---|---|---|
| Decent (CER ≤ 0.5) | 266 | +31.7 [27.0, 36.3] | +1.8 [-9.0, 11.3] | +14.0 [7.1, 20.4] | +7.7 [0.7, 14.3] |
| Bad (0.5–0.9) | 1849 | +5.9 [3.0, 8.6] | +0.9 [-2.3, 4.0] | +6.5 [4.4, 9.3] | +2.6 [-0.1, 5.5] |
| Very poor (CER > 0.9) | 350 | -0.4 [-7.4, 6.0] | -1.0 [-8.5, 5.8] | +1.8 [-3.5, 6.7] | +3.3 [-5.5, 14.8] |
E. Catastrophic Failures Were Rarer for the Commercial Correctors
In the image-plus-text setting, both open-source correctors sometimes fall into repetition loops. On Tesseract input, loops occurred in 3.37% of outputs for Qwen2.5-VL-7B, 1.42% for Qwen3-VL-8B, and 0.00% for Gemini 3.5 Flash-Lite. Here a loop is an output in which a phrase of two to four words occurs three or more times. Gemini's only failures are one empty output per input source (1 of 2,465 each). Claude Sonnet 5 shows no repetition loops; its failures are empty responses that survived a targeted retry (1 of 2,465 images for Tesseract input and 2 of 2,465 for UTRNet input).
Sonnet 5's unusable empty outputs are excluded from the reported averages, as the five refusals were in Part A. Gemini's two empty outputs and the Qwen repetition-loop outputs are scored as returned, so loops raise the Qwen CERs. Treating the unusable Sonnet or Gemini outputs either way changes a mean CER by under 0.001, so this does not affect any comparison. The shape of the failure differs by model family and rates were lowest for the commercial correctors, but model family, quantization, and serving setup are confounded with corrector strength, so we do not claim a causal trend.
VII. LIMITATIONS AND FUTURE WORK
Scope of the comparison. Results are zero-shot under one English prompt, one run per system, and a single version of each commercial model (the API IDs in Section IV). The open-source models ran 4-bit quantized with a 128-token cap, which may understate their full-precision performance. We ran no handwriting-trained recognizer; their published error rates use other datasets or splits, and in-domain they would likely outperform zero-shot VLMs.
Data and statistics. We use one public dataset, so we cannot speak to historical or less controlled handwriting, and UNHD may appear in the VLMs' pretraining data. Six images (036_2, 036_3, 036_4, 029_002_8, 077_002_8, 096_002_8) have ground-truth labels that do not match the handwriting (three truncated, three from a different sentence; UTRNet-Large and Gemini agree with the image); we kept them in all scores. Our bootstrap treats images as independent, though images sharing a sentence or writer may have correlated errors. The closest Part A comparison (Claude Sonnet 5 vs. UTRNet-Large) was essentially unchanged under a bootstrap over the 837 sentence templates (same interval to three decimals, ); we ran no cluster-aware bootstrap for Part B or over writer clusters.
Part B. A text-only ablation for Qwen3-VL-8B on Tesseract input gave no improvement over Tesseract's own output (CER 0.7321 vs. 0.7215), suggesting the image does the work, but we did not repeat it for the other correctors. The legibility breakdown covers only Tesseract input and cannot separate legibility from image difficulty. The correction prompt also calls the OCR guess low-quality and often wrong, even for UTRNet's more legible text, which may push correctors to over-edit.
Future work. Natural next steps are comparing against handwriting-trained recognizers, testing Urdu-language and neutral correction prompts, repeating the legibility analysis on UTRNet input with cluster-aware intervals, and evaluating on historical or less controlled handwriting.
VIII. CONCLUSION
Without task-specific fine-tuning, both commercial VLMs achieve lower error than a printed-Urdu recognizer and two open-source VLMs on Urdu Nastaliq handwriting; we did not compare against handwriting-trained recognizers. Aggregate accuracy hides how differently the systems fail: empty output (likely a segmentation mismatch), repetition loops, and explicit refusal on very hard-to-read images, plus confident hallucination in one further open-source VLM (InternVL3.5-8B); a second (MiniCPM-V-4.5) was too unstable to evaluate in full, and both were excluded from the ranking (Section V-C).
In the correction study, reporting CER reduction against a weak OCR baseline greatly overstates the benefit of supplying its text. Measured against each corrector's own image-only reading, the gain on Tesseract's text is small, and the smallest (Claude Sonnet 5) is the most sensitive to resampling assumptions. Larger gains that are not mechanical artifacts appear only for the two strongest correctors given UTRNet's more legible text. The benefit appears to depend on the legibility of the supplied text, a weaker corrector can make an already fairly legible text worse, and catastrophic failures were rarer for the commercial correctors.
REFERENCES
[1] S. B. Ahmed, S. Naz, S. Swati, and M. I. Razzak, “Handwritten Urdu character recognition using one-dimensional BLSTM classifier,” Neural Computing and Applications, vol. 31, no. 4, pp. 1143–1151, 2019.
[2] N. ul Sehr Zia, M. F. Naeem, S. M. K. Raza, M. M. Khan, A. Ul-Hasan, and F. Shafait, “A convolutional recursive deep architecture for unconstrained Urdu handwriting recognition,” Neural Computing and Applications, vol. 34, no. 2, pp. 1635–1648, 2022.
[3] A. F. Ganai and F. Khursheed, “Computationally efficient holistic approach for handwritten Urdu recognition using LRCN model,” International Journal of Intelligent Systems and Applications in Engineering, vol. 11, no. 4s, pp. 536–551, 2023.
[4] N. Riaz, H. Arbab, A. Maqsood, K. Nasir, A. Ul-Hasan, and F. Shafait, “Conv-transformer architecture for unconstrained off-line Urdu handwriting recognition,” International Journal on Document Analysis and Recognition (IJDAR), vol. 25, no. 4, pp. 373–384, 2022.
[5] A. Maqsood, N. Riaz, A. Ul-Hasan, and F. Shafait, "A unified architecture for Urdu printed and handwritten text recognition," in Document Analysis and Recognition, ICDAR 2023, LNCS vol. 14190, Springer, Cham, 2023, pp. 116–130.
[6] A. Hamza, S. Ren, and U. Saeed, “ET-Network: A novel efficient transformer deep learning model for automated Urdu handwritten text recognition,” PLoS ONE, vol. 19, no. 5, e0302590, May 2024.
[7] S. Dey, A. Alaei, and P. P. Roy, “Handwritten text recognition for low resource languages,” arXiv preprint arXiv:2512.01348, 2025.
[8] R. Basharat and M. U. Ali, “Urdu Katib Handwritten Dataset: A historical document dataset for offline Urdu handwritten text recognition with CRNN-based baseline evaluation,” arXiv preprint arXiv:2606.19139, 2026.
[9] Y. Liu, Z. Li, M. Huang, B. Yang, W. Yu, C. Li, X.-C. Yin, C.-L. Liu, L. Jin, and X. Bai, “OCRBench: On the hidden mystery of OCR in large multimodal models,” Science China Information Sciences, vol. 67, no. 12, art. 220102, 2024.
[10] G. Crosilla, L. Klic, and G. Colavizza, “Benchmarking large language models for handwritten text recognition,” Journal of Documentation, vol. 81, no. 7, pp. 334–354, 2025.
[11] L. Li, “Handwriting recognition in historical documents with multimodal LLM,” in Proc. Computational Humanities Research Conf. (CHR 2024), 2024. Also available as arXiv preprint arXiv:2410.24034.
[12] R. Smith, “An overview of the Tesseract OCR engine,” in Ninth International Conference on Document Analysis and Recognition (ICDAR 2007), vol. 2, Curitiba, Brazil, 2007, pp. 629–633.
[13] A. Rahman, A. Ghosh, and C. Arora, “UTRNet: High-resolution Urdu text recognition in printed documents,” in Document Analysis and Recognition, ICDAR 2023, LNCS vol. 14191, Springer, Cham, 2023, pp. 305–324.
[14] Qwen Team, “Qwen2.5-VL technical report,” arXiv preprint arXiv:2502.13923, 2025.
[15] Qwen Team, “Qwen3-VL technical report,” arXiv preprint arXiv:2511.21631, 2025.
[16] Google DeepMind, “Gemini 3.5 Flash-Lite Model Card,” Jul. 2026. [Online]. Available: https://deepmind.google/models/model-cards/gemini-3-5-flash-lite/ (accessed Oct. 10, 2026).
[17] Anthropic, “System Card: Claude Sonnet 5,” Jun. 30, 2026. [Online]. Available: https://www.anthropic.com/claude-sonnet-5-system-card (accessed Oct. 10, 2026).
[18] T. Yu, Z. Wang, C. Wang, F. Huang, W. Ma, Z. He, T. Cai, W. Chen, Y. Huang, Y. Zhao, et al., “MiniCPM-V 4.5: Cooking efficient MLLMs via architecture, data, and training recipe,” arXiv preprint arXiv:2509.18154, 2025.
[19] W. Wang, Z. Gao, L. Gu, H. Pu, L. Cui, X. Wei, Z. Liu, L. Jing, S. Ye, J. Shao, et al., “InternVL3.5: Advancing open-source multi-modal models in versatility, reasoning, and efficiency,” arXiv preprint arXiv:2508.18265, 2025.
[20] B. Efron and R. J. Tibshirani, An Introduction to the Bootstrap. New York: Chapman & Hall, 1993.
[21] S. Guan, C. Xu, M. Lin, and D. Greene, “Effective synthetic data and test-time adaptation for OCR correction,” in Proc. 2024 Conf. Empirical Methods in Natural Language Processing (EMNLP), Miami, FL, USA, 2024, pp. 15412–15425.
[22] J. Kanerva, C. Ledins, S. Käpyaho, and F. Ginter, “OCR error post-correction with LLMs in historical documents: No free lunches,” in Proc. Third Workshop on Resources and Representations for Under-Resourced Languages and Domains (RESOURCEFUL-2025), Tallinn, Estonia, 2025, pp. 38–47.
[23] G. Greif, N. Griesshaber, and R. Greif, “Multimodal LLMs for OCR, OCR post-correction, and named entity recognition in historical documents,” arXiv preprint arXiv:2504.00414, 2025.