File size: 30,471 Bytes
ef20cbe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7a10a50
ef20cbe
7a10a50
ef20cbe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7a10a50
ef20cbe
 
 
 
 
 
 
 
 
 
 
 
 
7a10a50
ef20cbe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7a10a50
ef20cbe
 
 
7a10a50
ef20cbe
7a10a50
 
ef20cbe
7a10a50
 
 
 
ef20cbe
 
7a10a50
ef20cbe
7a10a50
ef20cbe
7a10a50
ef20cbe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
---
language:
- chg
- fa
tags:
- ocr
- htr
- evaluation
- chagatai
- persian
- manuscripts
pretty_name: "ocr-wp: Whole-Page OCR for Chagatai and Persian Manuscripts"
---

# ocr-wp: Whole-Page OCR for Chagatai and Persian Manuscripts

This repository holds an evaluation report, not data. It describes an independent measurement of the model [Qwen3.8-27B-ocr-whole-page-v2-r4-fp8](https://huggingface.co/shbaydadaev/Qwen3.8-27B-ocr-whole-page-v2-r4-fp8).

*Saidrasul Usmankhujaev · MIZANEX · 23 November 2026*

## Abstract

`ocr-wp` reads held-out Chagatai manuscript at 20–27% character error rate, about half the error of the base model, and is still far from text that can be used unchecked.

The model is Qwen3.8-27B with a rank-32 LoRA adapter for whole-page transcription of Chagatai and Persian, merged and quantised to FP8. We measured it independently of its author on five sets: textbook facsimiles held out by page, pages of the ATMO source manuscripts, Arabic-script reference pages, and unpublished archive scans. Readers were compared both as single calls and inside a production pipeline.

Inside the pipeline, CER on manuscript lines falls from 45.1% for the base model to 27.1%, and on manuscript passages from 43.6% to 20.2%; typeset Chagatai is read at 1.6%. Word error rate on manuscript remains 66–81%. Persian reference pages are not harmed. Called directly, the model ran into a repetition loop on 4 of 121 whole pages; the pipeline's loop guard absorbs it.

Two cautions apply. The training data is undisclosed, and in four ATMO manuscripts most pages are read at 5% CER or less, which points to training exposure; six other ATMO manuscripts are read at 22–38%. And no verified transcription exists for the chancery hands the model is meant for, so its accuracy on real archive pages is unmeasured.

## 1. Introduction

General vision-language models read modern print well and fail on Chagatai manuscripts. On held-out Chagatai manuscript lines, the base Qwen3.8-27B model scores 45% character error rate (CER) inside our full reading pipeline. On unpublished archive pages it often writes fluent text that is not on the page.

Chagatai, also called Turki or old Uzbek, was the written Turkic language of Central Asia until the 1920s. It is written in Arabic script, mostly in nastaliq and shikasta hands, with unstable spelling and few dots in fast chancery writing. Persian was used beside it in the same chanceries. The archive pages we work with have no verified transcription.

`ocr-wp` is a fine-tune of Qwen3.8-27B for whole-page transcription of Chagatai and Persian. It was trained by Shokhrukh Baydadaev and is published as [`Qwen3.8-27B-ocr-whole-page-v2-r4-fp8`](https://huggingface.co/shbaydadaev/Qwen3.8-27B-ocr-whole-page-v2-r4-fp8) under Apache-2.0. The model card reports 33.6% CER on 233 Chagatai validation pages.

This report adds four things to the model card:

- An independent measurement on material outside the author's validation split: a textbook's manuscript facsimiles, pages of the source manuscripts, Persian archive pages, and real archive scans.
- A comparison with the base model and with the previous fine-tune, both called directly and inside a production pipeline.
- An account of failure modes that matter in production: repetition loops, pages that never reach the model, and uncertainty marks.
- A statement of what remains unknown, above all the composition of the training data.

## 2. Related work

Published Chagatai recognition is line-level and rests on one source of transcriptions; we found no published page-level result for the language.

**Chagatai.** Both peer-reviewed systems use transcriptions from the ATMO project, which put 107 Jarring Collection manuscripts online and transcribed 15 of them \[ATMO\]. The Astana benchmark fine-tunes TrOCR on 2,531 lines from five manuscripts and reports 9.82% CER and 33.27% WER, against 18.07% CER for a CRNN trained from scratch \[Balabayev 2026b\]. CTR-Net, a U-Net and ResNet18 encoder with a Transformer, reports 5.65% CER and 16.59% WER on 292 lines of its LSHC set of 563 pages \[Pan 2026\]. Both split by page, so the test hands also appear in training, and the two test sets differ. A PRISMA review of 50 studies calls the Chagatai literature nascent \[Balabayev 2026a\].

**Neighbouring scripts.** Line-level results on historical Arabic-script handwriting sit between 8% and 15% CER on each dataset's own test split: Muharaf 14.9% \[Saeed 2024\], HATFormer 8.6% \[Chan 2024\], Persian PHTD about 10% \[Al-azzawi 2026\]. Results on manuscripts outside a model's training collections are worse: 23–36% CER on Persian manuscripts in MAKHZAN and 9.8–20% on Ottoman ones \[Kiessling 2026\]. Layout analysis is described as the limiting factor for Arabic script, with slanted and curved baselines as typical failures \[Kiessling 2019\].

**Page-level reading.** Segmentation-free recognisers read a paragraph or a page in one pass \[Yousef 2020; Coquenet 2023\]. CHURRO fine-tunes a 3B vision-language model on 99,491 pages from 155 collections and beats Gemini 2.5 Pro on handwriting overall, but its data has no Chagatai, 417 Persian pages and one Ottoman manuscript \[Semnani 2025\]. Zero-shot vision-language models gain more on Arabic pages than on lines, and no approach dominates across eight Arabic datasets \[Farazi 2026\].

**Failure modes.** Fluent hallucination, silent spelling normalisation and repetition until the token limit are documented for vision-language OCR \[Semnani 2025; Gardella 2026; Vesalainen 2026\]. Nougat loops on 1.5% of its test pages and more out of domain \[Blecher 2023\]; olmOCR 2 retries at rising temperature when no end token arrives \[Poznanski 2025\]. The underlying effect is the known degeneration of likelihood-maximising decoding \[Holtzman 2020\].

**Fine-tuning and serving.** LoRA trains a low-rank update that merges into the base weights at no inference cost \[Hu 2021\]. FP8 weights are reported as effectively lossless on language benchmarks \[Kurtic 2025; Micikevicius 2022\], but we found no measurement of FP8 on character accuracy in OCR. vLLM serves the model \[Kwon 2023\].

**Scoring.** There is no standard normalisation for Arabic-script error rates, and the choice moves CER by whole points; recent work recommends reporting raw and normalised scores together \[Farazi 2026; Almarshad 2026\]. For review routing, agreement between two readings is reported as more informative than token probabilities alone \[Kumar 2026; Zhang 2025\].

## 3. Model

`ocr-wp` is Qwen3.8-27B with a rank-32 LoRA adapter merged into the weights and quantised to FP8. All facts in this section come from the two model cards and the provenance files published with the weights.

| Item | Value |
| --- | --- |
| Base model | Qwen/Qwen3.8-27B, pinned revision `37561816`, native BF16 |
| Adapter | LoRA, rank 32, alpha 64, dropout 0.05 |
| Training | Two epochs of whole-page transcription; checkpoint 1,500 chosen by the mean CER of the two languages (0.306 on the selection set) |
| Merge | PEFT `merge_and_unload(safe_merge=True)`, 54.71 GB of BF16 tensors in 14 shards |
| Quantisation | 400 weight matrices in FP8 (E4M3) with FP32 scales per 128 × 128 block; 784 tensors kept in BF16; 30.39 GB in total |
| Image budget | At most 4,194,304 pixels per page |
| Licence | Apache-2.0 |
| Software | torch 2.14.1, transformers 5.20.2, peft 0.21.2 |

**Prompt and answer.** The model takes one page image followed by a fixed instruction, with thinking disabled and greedy decoding. It answers with one JSON object: `text`, `language` (`chg` or `fa`) and `script` (`Arab`). The published prompt asks for reflowed paragraphs (`lines=reflow`). The training code also defines a variant that keeps physical line breaks (`lines=physical`), and the model follows it equally well (section 6.5).

**Serving.** We call the FP8 build through vLLM's OpenAI-compatible chat endpoint under the served name `ocr-wp`, with a context of 16,384 tokens and `max_tokens` 8,192. The base model runs on the same server and is the reader for every other script.

**The author's own measurement.** On 500 validation pages the FP8 build scores 33.6% CER and 66.7% WER on Chagatai (233 pages) and 12.3% CER and 24.1% WER on Persian (267 pages). Eighteen answers hit the 4,096-token limit and were scored as empty. The LoRA adapter on the BF16 base scores 31.5% and 11.4% CER on the same pages, but with a repetition stop that the FP8 run did not use, so the gap mixes quantisation with decoding settings. Seventy-two of the 500 pages were also used to select the checkpoint.

## 4. Training data

The composition of the training set is not published, and this is the largest gap in what we can say about the model.

**What the model card states.**

- The task is whole-page transcription with the page's source transcript as the target.
- The validation split has 2,393 pages: 233 Chagatai and 2,160 Persian. An earlier version of the card described the Persian pages as Persian Wikisource.
- A held-out test split of 3,775 pages exists and has no recorded score for this model.
- Hashes of the training, validation and metadata manifests are published; the manifests are not.
- The technical report linked from the card is in a repository that is not publicly readable.

**What is not stated.** The number of training pages, the Chagatai sources, the share of manuscript against print, and how pages were assigned to splits.

**What our measurements suggest.** Most pages of four ATMO manuscripts are read at 5% CER or less, an accuracy the model reaches on no other manuscript we tried (section 6.2). The base model reads the same manuscripts at 39–44%. The most likely explanation is that these manuscripts were in the training set. The textbook we use for sets A and B shows no such effect.

This matters for anyone comparing the model with the published line-level systems, because both of them are also built on ATMO transcriptions.

## 5. Evaluation setup

We measured five sets of images with six readers on 22–23 November 2026, all with greedy decoding and thinking disabled.

### 5.1 Test sets

| Set | Items | Content | Reference text |
| --- | --- | --- | --- |
| A. Textbook, held-out split | 47 | Facsimiles from Schluessel's *An Introduction to Chaghatay*: 18 single words, 23 manuscript lines (Jarring Prov. 1 and a Baburnama codex), 3 manuscript passages of 6–17 lines, 3 typeset blocks | The textbook author's printed transcription, moved to Unicode and checked against the PDF text layer; 45 items verified, 2 not reviewed |
| B. Textbook, other split | 28 | 6 manuscript passages and 22 typeset blocks from the same book | Same; used only to test for memorisation |
| C. ATMO pages | 92 | 800-pixel page facsimiles of Jarring Collection manuscripts, evenly spaced through each manuscript | ATMO diplomatic transcription of the main text block |
| D. Arabic-script reference pages | 5 | Four Persian pages (print, lithograph, manuscript) and one Arabic page | Manual transcription |
| E. Archive scans | 24 | Unpublished chancery manuscript pages: registers, letters, decrees and petitions | None: behaviour only |

Sets A and B share one source and partly the same manuscripts, so A is held out by page, not by manuscript. Set E has no reference; for it we report loops, routing and marks, and agreement with unreviewed draft transcriptions, which is not accuracy.

### 5.2 Text normalisation and metrics

Both the reading and the reference pass through the same orthographic normalisation before scoring. It applies NFKC, removes bidi controls, tatweel, zero-width joiners and short-vowel marks, folds yeh, kaf and heh variants, folds hamza seats and alef forms, maps teh marbuta to heh, converts digits to ASCII, and drops punctuation.

CER is the Levenshtein distance in characters divided by the reference length, pooled over a group. WER is the same on whitespace-separated words. The model card reports raw CER without this folding, so its numbers and ours are not directly comparable: ours are lower for the same output.

### 5.3 Readers

| Reader | What it is |
| --- | --- |
| `ocr-wp` direct | One call with the published prompt (`lines=reflow`) |
| `ocr-wp` direct, physical | One call with `lines=physical` |
| Base direct | Qwen3.8-27B-FP8, one call with the same instruction family |
| Pipeline, base | The production pipeline with the base model: orientation, first reading, second reading, word check against Tesseract, loop guard, uncertainty marks |
| Pipeline + `ocr-wp` | The same pipeline with `ocr-wp` as the first reader, with and without routing by script |
| `ocr-ab` | The author's previous Chagatai and Persian fine-tune, measured on 10 November 2026 on sets A and D; no longer served |

## 6. Results

`ocr-wp` cuts the character error rate on held-out Chagatai manuscript from about 45% to 20–27% inside the pipeline, and on these fragments it does not loop, as the previous fine-tune did on one passage. Word error stays between 66% and 81%, far from our acceptance targets of 5% CER and 10% WER.

### 6.1 Held-out textbook fragments (set A)

Pipeline CER in percent on set A (base model and `ocr-wp` measured 22–23 November 2026, `ocr-ab` on 10 November 2026):

| Fragments | Items | Base model | `ocr-ab` | `ocr-wp` |
| --- | --- | --- | --- | --- |
| Manuscript lines | 23 | 45.1 | 40.4 | 27.1 |
| Manuscript passages | 3 | 43.6 | 33.5 | 20.2 |
| Typeset blocks | 3 | 4.3 | 1.9 | 1.6 |

Each fine-tune lowers the error on manuscript, and `ocr-wp` lowers it most; on typeset text all three readers are below 5%.

Direct calls give the same picture as the pipeline. The table lists CER / WER in percent for one call per fragment.

| Fragments | Items | `ocr-wp` | `ocr-wp`, physical | Base | `ocr-ab` (10 Nov) |
| --- | --- | --- | --- | --- | --- |
| Manuscript lines | 23 | 27.1 / 81.0 | 27.2 / 84.5 | 48.3 / 120.1 | 37.9 / 90.8 |
| Manuscript passages | 3 | 19.5 / 65.4 | 17.5 / 61.4 | 48.6 / 138.3 | looped on 1 of 3 |
| Typeset blocks | 3 | 1.6 / 13.0 | 1.6 / 13.0 | 4.2 / 15.8 | 1.8 / 10.3 |
| Single words | 18 | 68.4 / 94.4 | 64.9 / 94.4 | 124.6 / 111.1 | 77.2 / 88.9 |

Pipeline WER follows the same order: 117.8% for the base model, 93.1% with `ocr-ab` and 80.5% with `ocr-wp` on lines; 101.3%, 82.2% and 66.2% on passages. Without orthographic folding the `ocr-wp` figures rise by about one point, to 28.3% CER on lines and 20.1% on passages.

Single words of three to six letters are not read by any reader. A whole-page model has no context on such crops, and they are not a realistic input.

### 6.2 ATMO manuscript pages (set C)

The ATMO pages split into two groups: four manuscripts in which `ocr-wp` reads most pages almost without error, and six that it reads like any other unseen manuscript. The table gives pooled CER / WER in percent on whole pages, one direct call per page; readings that ran to the token limit are counted as loops and left out of the rates.

| Manuscript | Pages | `ocr-wp` | `ocr-wp` loops | Base model | Base loops |
| --- | --- | --- | --- | --- | --- |
| Jarring Prov. 2 | 25 | 5.9 / 16.4 | 0 | 38.7 / 94.2 | 1 |
| Jarring Prov. 3 | 2 | 0.2 / 0.9 | 0 | 38.8 / 91.6 | 0 |
| Jarring Prov. 4 | 13 | 5.0 / 15.1 | 0 | 43.6 / 99.3 | 0 |
| Jarring Prov. 5 | 14 | 10.5 / 27.2 | 0 | 38.8 / 82.2 | 0 |
| Jarring Prov. 8 | 4 | 32.9 / 65.9 | 1 | 56.4 / 94.4 | 1 |
| Jarring Prov. 9 | 4 | 23.1 / 52.6 | 0 | 57.4 / 123.1 | 1 |
| Jarring Prov. 24 | 6 | 30.9 / 71.6 | 0 | 59.7 / 118.4 | 2 |
| Jarring Prov. 56 | 12 | 21.9 / 55.8 | 0 | 59.7 / 133.5 | 3 |
| Jarring Prov. 351 | 11 | 38.3 / 80.1 | 0 | 58.1 / 108.4 | 3 |
| Jarring Prov. 461 | 1 | 31.9 / 75.3 | 0 | 46.7 / 91.4 | 0 |

On Prov. 2, 3, 4 and 5 the fine-tune reads 31 of 54 pages at 5% CER or less and scores 0–11% pooled, where the base model scores 39–44%. On the other six manuscripts no page is read below 5%, and pooled CER is 22–38%, in line with set A and with the model card's validation figure. Nothing else in this report comes close to the first group's accuracy, so most pages of those four manuscripts were very probably part of training.

Seven pages of the first group are read at more than 15% CER. Either those pages were held out while their neighbours were trained on, which would mean a split by page, or they are simply harder. If the author confirms which manuscripts and pages were excluded, the second group is a fair test of 22–38% CER on unseen book hands, and the first group must not be used for evaluation.

The table covers 92 pages: an evenly spaced sample of up to 14 pages per manuscript, plus the first folios of Prov. 2. Pages with fewer than five lines are left out, as are the pages of Prov. 29, on which the inference server timed out for both models. The base model ran to the token limit on 11 of the 92 pages, `ocr-wp` on one.

### 6.3 The textbook's other split (set B)

Pages of the same book that we did not hold out are read no better than the held-out ones, so we see no sign that the model memorised this book. On six manuscript passages `ocr-wp` scores 30.1% CER and 80.3% WER against 49.0% and 107.0% for the base model. On 22 typeset blocks it scores 4.2% CER against 5.6%, but its WER is higher, 35.4% against 25.8%.

### 6.4 Arabic-script reference pages (set D)

On the five reference pages the pipeline with `ocr-wp` scores 24.3% CER pooled, with a median of 3.9% per page. The previous fine-tune scored 25.4% on 10 November. The base pipeline scores 95.2% pooled in this run, because the base model looped on the manuscript page and returned 13,240 characters; its median is 3.7%.

| Page | Base pipeline | Pipeline + `ocr-wp` |
| --- | --- | --- |
| Persian print | 3.7 | 3.9 |
| Persian lithographed newspaper | 69.5 | 44.5 |
| Persian manuscript | 444.8 | 65.5 |
| Persian print | 3.5 | 2.8 |
| Arabic print | 2.7 | 3.0 |

The two hard pages stay hard: 45% and 66% CER. Called directly, `ocr-wp` looped on the lithographed newspaper.

### 6.5 Prompt variants

Asking for physical lines instead of reflowed paragraphs changes nothing measurable: 27.2% against 27.1% CER on lines, 17.5% against 19.5% on passages, 1.6% on typeset blocks in both. With `lines=physical` a passage comes back with its line breaks; with the published prompt it comes back as one paragraph.

### 6.6 Archive scans without reference (set E)

| Observation on 24 pages | Base pipeline | Pipeline + `ocr-wp` |
| --- | --- | --- |
| Pages read by `ocr-wp` | 0 | 22 |
| Readings cut short | 5 | 3 |
| Pages with fewer than 100 characters returned | 4 | 2 |
| Words marked as uncertain | 92% | 99% |
| Distance to unreviewed drafts | 79.1% | 54.8% |

The last row is agreement with draft transcriptions that no specialist has checked. It shows that the two readers differ and that `ocr-wp` is closer to an independent reading; it is not an error rate. Called directly, `ocr-wp` answered 22 of 24 pages in 3–25 seconds, with a median of 11 seconds, and ran to the token limit on the other two.

### 6.7 Comparison with the model card

The model card reports 33.6% raw CER on 233 Chagatai validation pages. Our 20–28% on set A is the same order of magnitude on different material, with fewer and shorter items. The two measurements agree that Chagatai manuscript is read at roughly one error in every three to five characters.

## 7. Use in a production pipeline

Inside the pipeline `ocr-wp` keeps its direct-call accuracy and loses its loops, but two design choices decide which pages it ever sees.

**Routing by script.** The fine-tune reads only pages whose first reading by the base model is mostly Arabic letters. We adopted this rule after the previous fine-tune read every page for 18 minutes in production: Russian print went from 6.1% to 10.4% CER and Uzbek from 1.9% to 2.5%. The rule costs one extra base-model call per Arabic-script page.

**Routing depends on the weaker reader.** A page whose base reading loops or comes back empty is never routed. On set E this kept 2 of 24 pages with the base model, and both came back with almost no text. `ocr-wp` reads one of them directly and returns 1,622 characters. Single-word crops in set A show the same effect: 193% CER with routing against 81% without.

**Loop guard.** Called directly, `ocr-wp` ran to the token limit on 2 of 24 archive pages and on one lithographed newspaper page of set D, each taking 75–185 seconds. The pipeline detects the repetition, retries at a higher temperature and keeps the text read so far. No pipeline reading with the fine-tune ended in a loop on sets A or D.

**Uncertainty marks.** A second reading marks the words it does not confirm. On Chagatai manuscript 95–99% of words are marked, against 17% on typeset Chagatai and about 50% on set D. Every Chagatai manuscript page therefore goes to a specialist, and the marks carry little information there.

**Line breaks.** With `lines=physical` the transcription keeps the manuscript's lines, so a reviewer can compare it with the image line by line. Accuracy is the same as with the published prompt (section 6.5).

**Review loop.** A page approved by a specialist enters the training export automatically. This is the only source of verified archive data we have, and at the time of writing it is empty for Chagatai.

## 8. Limitations and open questions

The measurements show a clear gain over the base model and cannot yet show how the model reads the archive material it is meant for.

- **Training overlap is unresolved.** We cannot rule out that any public Chagatai page was seen in training. Set A shows no sign of it; the ATMO pages show strong signs. An honest test needs manuscripts the author confirms were excluded.
- **The held-out set is small and held out by page.** Set A has 23 lines and 3 passages from a textbook, written in book hands. Some of its manuscripts also appear in set B.
- **No ground truth for archive pages.** Chancery shikasta, registers with numerals, seals and marginal notes are the real target and have no verified transcription. Set E measures behaviour only.
- **Loops remain.** Direct calls ran to the token limit on 3 of 29 whole pages in sets D and E. The pipeline hides this at the cost of extra calls.
- **Routing loses pages.** A page the base model cannot read at all never reaches `ocr-wp`.
- **Uncertainty marks do not discriminate on Chagatai.** With 95–99% of words marked, the marks cannot direct a reviewer's attention.
- **Quantisation is confounded.** The author's FP8 and BF16 runs differ in decoding settings, and we measured only the FP8 build.
- **Normalisation.** Our scores use orthographic folding and the model card's do not. Folding lowers `ocr-wp`'s CER by about one point on set A; on other material the effect can be larger.
- **Lithographs.** We have no Chagatai lithograph with a reference. The one Persian lithograph in set D is read at 45% CER.
- **Line-level comparison is missing.** The published line-level systems report 6–10% CER on ATMO lines. We did not run them, and `ocr-wp` has probably seen those manuscripts, so no fair comparison exists yet.

## 9. Conclusion and next steps

`ocr-wp` is the best reader of Chagatai manuscript available to us and is now the first reader for Arabic-script pages in production, with every such page still going to a specialist.

It roughly halves the base model's character error on held-out manuscript fragments, keeps typeset text below 2% CER, and does not hurt the Persian reference pages. It does not produce text that can be used unchecked: four words in five on a manuscript line still contain an error.

Next steps, in order of value:

1. Ask the author for the list of training manuscripts and build a test set from manuscripts outside it.
2. Have specialists verify archive pages starting from `ocr-wp` drafts, so that the first ground truth for chancery hands exists.
3. Route by a cheaper signal than a full base-model reading, so that pages the base model cannot read still reach `ocr-wp`.
4. Measure the published line-level systems and `ocr-wp` on the same unseen manuscripts.
5. Replace word marks on Chagatai pages with a signal that separates right from wrong words, for example agreement between two independent readings.
6. Fine-tune on verified archive pages once a few hundred exist.

## References

Sources were opened on 23 November 2026. For entries marked *abstract*, only the abstract or the bibliographic record was read.

- \[Al-azzawi 2026\] Al-azzawi S., Barney E., Liwicki M. [Cross-Lingual Learning within Arabic Script for Low-Resource HTR](https://arxiv.org/abs/2605.02089). arXiv:2605.02089. *Abstract.*
- \[Almarshad 2026\] Almarshad S. et al. [Does a Modern-Handwriting Warm-Up Help Historical Arabic OCR?](https://arxiv.org/abs/2608.22316) arXiv:2608.22316.
- \[ATMO\] Dwyer A. M. (dir.) et al. Annotated Turki Manuscripts from the Jarring Collection Online, 2015–2022. [Archived site](https://wayback.archive-it.org/219/20260916124811/https://uyghur.linguistics.indiana.edu/atmo.html); [licence page](http://web.archive.org/web/20261006183658/https://uyghur.linguistics.indiana.edu/2015/atmo-licensing.xhtml).
- \[Balabayev 2026a\] Balabayev Z. et al. [Navigating the Digitization Gap: An Indirect Evidence Synthesis of AI Methods for Low-Resource Chagatai Manuscripts](https://doi.org/10.3390/info17070681). Information 17(7), 681. *Abstract.*
- \[Balabayev 2026b\] Balabayev Z. et al. [Scratch-Trained CRNNs vs. Pretrained Vision Transformers: A Controlled Benchmark of Augmentation and Model Scale in Low-Resource Chagatai HTR](https://doi.org/10.3390/info17111085). Information 17(11), 1085. *Abstract.* Data: [Chagatai-HTR-Snippets-v1.0](https://huggingface.co/datasets/chagatai-htr/Chagatai-HTR-Snippets-v1.0).
- \[Baydadaev 2026\] Baydadaev S. Model cards of [Qwen3.8-27B-ocr-whole-page-v2-r4-fp8](https://huggingface.co/shbaydadaev/Qwen3.8-27B-ocr-whole-page-v2-r4-fp8) and [Qwen3.8-27B-ocr-whole-page-v2-r4-bf16](https://huggingface.co/shbaydadaev/Qwen3.8-27B-ocr-whole-page-v2-r4-bf16), with provenance and metric files.
- \[Blecher 2023\] Blecher L., Cucurull G., Scialom T., Stojnic R. [Nougat: Neural Optical Understanding for Academic Documents](https://arxiv.org/abs/2308.13418). arXiv:2308.13418.
- \[Chan 2024\] Chan A. et al. [HATFormer: Historic Handwritten Arabic Text Recognition with Transformers](https://arxiv.org/abs/2410.02179). arXiv:2410.02179.
- \[Coquenet 2023\] Coquenet D., Chatelain C., Paquet T. [DAN: a Segmentation-free Document Attention Network for Handwritten Document Recognition](https://arxiv.org/abs/2203.12273). IEEE TPAMI.
- \[Farazi 2026\] Farazi M. et al. [When Do VLMs Help Arabic Manuscript OCR? A Cross-Dataset Study](https://arxiv.org/abs/2608.22366). arXiv:2608.22366.
- \[Gardella 2026\] Gardella M. et al. [When Low CER is Not Enough: An Analysis of Hallucinations in Vision-Language OCR Systems on Historical Uruguayan Documents](https://arxiv.org/abs/2607.24077). arXiv:2607.24077.
- \[Holtzman 2020\] Holtzman A. et al. [The Curious Case of Neural Text Degeneration](https://arxiv.org/abs/1904.09751). ICLR 2020.
- \[Hu 2021\] Hu E. J. et al. [LoRA: Low-Rank Adaptation of Large Language Models](https://arxiv.org/abs/2106.09685). arXiv:2106.09685.
- \[Kiessling 2019\] Kiessling B., Stökl Ben Ezra D., Miller M. T. [BADAM: A Public Dataset for Baseline Detection in Arabic-script Manuscripts](https://doi.org/10.1145/3352631.3352648). HIP 2019.
- \[Kiessling 2026\] Kiessling B. [A Free Lunch? Adapting PP-OCRv6 for Historical Text Recognition](https://arxiv.org/abs/2609.20064). arXiv:2609.20064.
- \[Kumar 2026\] Kumar N. [Beyond Logprobs: A Multi-Signal Confidence Engine for LLM-Based Document Field Extraction](https://arxiv.org/abs/2606.24420). arXiv:2606.24420.
- \[Kurtic 2025\] Kurtic E. et al. ["Give Me BF16 or Give Me Death"? Accuracy-Performance Trade-Offs in LLM Quantization](https://arxiv.org/abs/2411.02355). ACL 2025.
- \[Kwon 2023\] Kwon W. et al. [Efficient Memory Management for Large Language Model Serving with PagedAttention](https://arxiv.org/abs/2309.06180). SOSP 2023.
- \[Micikevicius 2022\] Micikevicius P. et al. [FP8 Formats for Deep Learning](https://arxiv.org/abs/2209.05433). arXiv:2209.05433.
- \[Pan 2026\] Pan Y. et al. [CTR-Net and LSHC: End-to-End Handwritten Text Recognition for Chagatai Script](https://doi.org/10.1109/AITC70732.2026.11666508). IEEE AITC 2026. *Abstract;* figures from the [code repository](https://github.com/ppgvlv/CTR-Net).
- \[Poznanski 2025\] Poznanski J., Soldaini L., Lo K. [olmOCR 2: Unit Test Rewards for Document OCR](https://arxiv.org/abs/2510.19817). arXiv:2510.19817.
- \[Saeed 2024\] Saeed M. et al. [Muharaf: Manuscripts of Handwritten Arabic Dataset for Cursive Text Recognition](https://arxiv.org/abs/2406.09630). NeurIPS 2024.
- \[Schluessel 2018\] Schluessel E. [An Introduction to Chaghatay: A Graded Textbook for Reading Central Asian Sources](https://doi.org/10.3998/mpub.10110094). Michigan Publishing.
- \[Semnani 2025\] Semnani S. J. et al. [CHURRO: Making History Readable with an Open-Weight Large Vision-Language Model for High-Accuracy, Low-Cost Historical Text Recognition](https://arxiv.org/abs/2509.19768). EMNLP 2025.
- \[Vesalainen 2026\] Vesalainen A. et al. [Error Patterns in Historical OCR: A Comparative Analysis of TrOCR and a Vision-Language Model](https://arxiv.org/abs/2602.14524). arXiv:2602.14524.
- \[Yousef 2020\] Yousef M., Bishop T. E. [OrigamiNet: Weakly-Supervised, Segmentation-Free, One-Step, Full Page Text Recognition by learning to unfold](https://arxiv.org/abs/2006.07491). CVPR 2020.
- \[Zhang 2025\] Zhang Y. et al. [Consensus Entropy: Harnessing Multi-VLM Agreement for Self-Verifying and Self-Improving OCR](https://arxiv.org/abs/2504.11101). arXiv:2504.11101.

## Appendix: reproducing the measurements

Each reader was called once per image with greedy decoding, thinking disabled and a limit of 8,192 output tokens. Direct calls go to the inference server's OpenAI-compatible chat endpoint; pipeline readings go through the reading service started from the same code as production. Scores come from one script that applies the normalisation of section 5.2 to the reading and the reference alike.

The textbook images of sets A and B derive from a CC BY-NC-ND publication and are not redistributed. The ATMO transcriptions are CC BY-SA 4.0; the page images belong to Lund University Library. The archive scans of set E are unpublished.