arXiv:2611.01635cs.CVNov 2026

Manuscript Offprint

arXiv:2611.01635

Benchmarking Vision-Language Models for Urdu Nastaliq Handwriting Recognition

Haseeb Yaqoob, Fatima Azfar, Emaan Arif Khan

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).

References (23)