arXiv:2608.22316cs.LGAug 2026

Manuscript Offprint

arXiv:2608.22316

Does a Modern-Handwriting Warm-Up Help Historical Arabic OCR? A Reproducible, Compute-Matched Evaluation on Muharaf and KHATT

Sumaih Almarshad, Maram Alamri, Dona Aloraini, Fares Altuwaim, AlJawharh AlOtaibi, Reem Alyabis, Rayah Aldawsari

Abstract

Whether an intermediate stage of modern Arabic handwriting helps or hurts historical Arabic handwritten text recognition (HTR) is usually decided from one implementation and one comparison, which is too thin a basis for a claim in either direction. We test how stable that effect is by running the same nominal ablation four times inside a single project, letting the base checkpoint, encoder-freezing strategy, epoch budget, numerical precision, and learning-rate schedule vary as they naturally did during development, while holding the normalization policy, the scorer, and the interval estimation fixed. Each run compares intermediate training on modern handwriting (KHATT) followed by fine-tuning on historical manuscripts (Muharaf) against fine-tuning on Muharaf directly. Across the four runs the estimated effect swings from -17.64 to +14.52 CER points and reverses sign. That range is not evidence of a chaotic ablation: the two extremes are exactly the two runs with an identifiable confound. One lowers the target-stage learning rate fivefold in the staged arm; the other builds on a checkpoint of undisclosed provenance. The two runs without either problem land at -0.25 and +0.94, that is, no effect. The lesson is that a tight interval from one implementation says nothing about the next. We then run a compute-matched experiment with identical warm-up and target-stage budgets over three seeds. There, KHATT warm-up is +2.42 CER points worse than a compute-matched same-domain control (paired seed-level 95% interval [+0.60, +4.25]); measured against a disjoint slice of real target data, the part of that gap specific to the modern-handwriting domain is only about 0.6 points. We read this as a small negative effect under this configuration, not a universal result. We release a SaudiHeritage-OCR package containing the shared normalizer and interval scorer, a verified KHATT coded-label decoder, experimental manifests, VLM baselines, and an edition-alignment protocol for future Saudi heritage data, so the result can be checked independently. The single Al-Mahd inscription line is held strictly out and is not offered as a benchmark. The contribution is a controlled transfer-learning result together with the infrastructure to test how far it travels.

All authors contributed equally to this work.

Index Terms: Arabic handwritten text recognition, OCR, historical manuscripts, epigraphy, vision-language models, LoRA, data schedule, intermediate-task transfer, reproducibility, confidence intervals, Saudi heritage, implementation variance, ablation study.

1 Introduction

In June 2026 the Saudi Heritage Commission announced 1,774 archaeological finds from the Al-Mahd survey in the Madinah region, among them 461 Islamic and 34 Thamudic inscriptions and a rare early Hijazi rock inscription invoking the name of the Caliph ‘Umar ibn al-Khattab [1, 2, 3]. Discoveries like these are arriving faster than they can be read. Backed by Saudi Vision 2030 work on cultural-heritage preservation and digitization, the documented corpus of historical Arabic text keeps growing, and its scale and variety strain any transcription effort that runs through epigraphists and codicologists by hand.

Automated HTR is one way to relieve that pressure. Transformer-based systems now reach single-digit character error rates (CERs) on historical Arabic manuscripts [4], and large vision-language models (VLMs) transcribe Arabic well without task-specific training [5, 6]. For anyone adapting such a model to Saudi heritage material, a concrete question about resources follows: given limited annotation and compute, does an intermediate stage on a larger, more available corpus of modern Arabic handwriting help once the model is fine-tuned on a smaller historical target?

The transfer-learning literature gives no blanket answer. An intermediate stage helps in some settings and

Figure

Normalized CER (%) on Muharaf, lower is better

Figure 1: The central result. Four separately configured implementations: one project, one month, the same two corpora, one normalizer, one scorer, one question. Does a KHATT warm-up before Muharaf fine-tuning help? Each row runs from the single-stage result (hollow) to the staged result (filled); Δ\DeltaCER is at right. Rows are sorted by Δ\DeltaCER, matching Table 9. The effects span 32.16 points and the sign flips. Read carefully, the spread is driven by the two rows with identifiable confounds. I1 lowers its target-stage learning rate fivefold in the staged arm, and I2 builds on a checkpoint of undisclosed provenance. I3 and I4 (black) agree on “no effect.” Viewed in isolation, individual rows would support materially different conclusions.

hurts in others, depending on how the intermediate and target domains relate and on the training configuration around them [19, 20, 21, 22]. Yet conclusions on this question in Arabic HTR usually rest on a single reported ablation, which leaves open whether the observed effect belongs to domain transfer or to one implementer's choices.

We look at that question through four implementations of the same nominal ablation. They were not built as a replication study; they came out of parallel development and differed in base checkpoint, encoder-freezing strategy, epoch budget, numerical precision, and learning-rate schedule, which are the ordinary degrees of freedom anyone adapting an HTR system meets in practice. We use independent in exactly that sense: separately configured runs, sharing the datasets and the final evaluation code but not a common checkpoint, schedule, freezing policy, precision, or manifest. What stayed fixed was the comparison itself, KHATT warm-up then Muharaf fine-tuning against direct fine-tuning on Muharaf, and the evaluation, which passed every run through one normalizer and one interval-based scorer. Even so, the measured effect moved across roughly 32 CER points and changed sign (Fig. 1).

It is tempting to read that spread as an inherently unstable ablation. The more accurate reading is narrower, and we prefer it because it is what the numbers support. The two rows at the extremes are the two runs with a concrete problem. One (I1) trained the staged arm at a learning rate five times lower than its own baseline, a stabilization choice that suppresses adaptation whatever came before. The other (I2) builds on a community checkpoint of undisclosed provenance, so its absolute level cannot be trusted. The two runs with neither problem, I3 and I4, both with a frozen encoder, sit at -0.25 and +0.94: essentially no effect. So the matrix does not show a coin-flip ablation. It shows that different configurations give different answers, that two of those differences are explained, and, most usefully, that a precise interval inside any one run is silent about the others.

That last point is the methodological core, and it is worth stating plainly because the field's current practice hides it. In I1, KHATT warm-up produced a +14.52-point mean increase in CER (paired-line bootstrap point estimate +14.58), with an interval of [+13.97,+15.19][+13.97, +15.19] that excludes zero. Nothing about that interval is wrong. It quantifies uncertainty over the lines sampled within that run, and it does so correctly. What it cannot see is the variation introduced by a different but equally reasonable training configuration. A clean estimate from one implementation can therefore be an incomplete, even misleading, basis for a broad claim whenever implementation-level variation is large, as it is here.

We treat that cross-implementation variability as a finding in its own right, then ask whether the direction of the effect can be pinned down under control. A fifth run was built for that: warm-up and target-stage budgets fixed, three shared seeds, domain of the warm-up corpus the only quantity allowed to move. There, KHATT warm-up was worse than a compute-matched same-domain control by 2.42 CER points, consistently across seeds, which is evidence for a small negative effect within this configuration. It is not a universal effect, and, as Section 6.4 shows, most of even that small gap disappears once the comparison is made against a disjoint slice of real target data rather than against extra passes over the target.

The broad implication is about evidence, not about Arabic OCR. A transfer-learning conclusion in this setting should not rest on the confidence interval of a single implementation; evaluation uncertainty and implementation variability are different things and deserve to be reported apart. Keeping them apart gives a more honest reading of whether modern Arabic handwriting is a useful intermediate domain for historical HTR, and it leaves behind a reproducible way to test such strategies on Saudi heritage material.

References (29)