Submitted:
12 October 2026
Posted:
13 October 2026
You are already at the latest version
Abstract
Large collections of Uzbek books and dissertations exist only as scans, and general-purpose OCR confuses the Uzbek Cyrillic letters ў, қ, ғ and ҳ with their Russian look-alikes. We present uzocr-8b, an open full-page OCR model for Uzbek Cyrillic and Latin obtained by staged LoRA adaptation of Qwen3-VL-8B-Instruct on exactly labelled synthetic pages and pseudo-labelled real scans. We formalise the model and training objective, a repetition-loop criterion and retry policy, and a conservative lexicon rule for the four Uzbek-specific letters. We describe a page-level benchmark of 300 pages (61,370 reference words) from 11 held-out typeset and letterpress Uzbek documents printed between 1999 and 2023, with a reference checked against the scans, and an evaluation protocol with fixed normalisation, corpus-level error rates and bootstrap confidence intervals. On the 284 pages retained by a coverage filter, uzocr-8b reaches a normalised word error rate of 1.42% without post-processing, 1.74% on Cyrillic and 0.65% on Latin pages, against 11.98% for its base model, 7.91% for Qwen3.6-35B-A3B and 25.64% for Tesseract 5; on all 300 pages, 4.03% against 14.65%, 10.16% and 27.53%. The synthetic-only checkpoint reaches 3.17%. One RTX 5090 processes a page in about 1.2–2.0 s. The weights are released under Apache-2.0.
Keywords:
optical character recognition
; vision-language models
; Uzbek
; low-resource languages
; Cyrillic script
; LoRA
; parameter-efficient fine-tuning
; repetition loops
; evaluation benchmark
; document digitisation
1. Introduction
Scanned Uzbek scholarly documents (monographs, doctoral dissertations and their abstracts, known as avtoreferat) are difficult for general-purpose OCR. Many were typed on typewriters and are written in Uzbek Cyrillic, which uses the letters ў, қ, ғ and ҳ; these letters do not occur in Russian. Since the 1990s Uzbek has also been written in a Latin alphabet that uses the modifier letters U+02BB and U+02BC. A single collection therefore mixes two scripts, several decades of print and typewriter technology, and scan quality ranging from clean digital output to blurry photocopies.
Two error types are prominent when such pages are read by the open systems we evaluated: the Uzbek-specific letters are replaced by their Russian look-alikes (ў/қ/ғ/ҳ read as у/к/г/х), and a rare word is “corrected” into a familiar one (for example пoлисемемия → пoлисемия). In a development measurement, the ABBYY FineReader 2014 text layer of one such PDF had a WER of 76.6% on a 10-page sample (Appendix A); we did not survey text layers systematically.
Commercial cloud vision-language models (VLMs) can transcribe such pages. At the list prices of October 2026, with the roughly 3000 input and 1000 output tokens that a page costs uzocr-8b under vLLM (the prompt-token count of the benchmark run; llama.cpp counts about 2600 input tokens, and cloud providers count image tokens differently, so this is an approximation), a page costs about 0.014 USD with GPT-5 (1.25 and 10 USD per million input and output tokens), 0.018 USD with Gemini 3.1 Pro (2 and 12 USD) and 0.003 USD with Gemini 2.5 Flash (0.30 and 2.50 USD) [1,2], before retries and before any hidden reasoning tokens. One collection we work with holds about 97,000 documents (1.7 TB); its page count is only estimated, at 5–15 million. At these prices the corpus would cost roughly 15,000–270,000 USD to transcribe once, before retries and reasoning tokens. Many of the documents are under copyright, so sending them to a cloud service may not be permissible. We therefore aim at an OCR model that runs on local hardware.
1.0.0.1. Contributions.
- 1.
- 2.
- A formal description of the components that determine the model’s output in practice: the training objective, a repetition-loop criterion and retry policy at decoding time, and a conservative lexicon rule for restoring ў, қ, ғ and ҳ, each stated exactly as implemented (Section 3).
- 3.
- A page-level benchmark of 300 pages (61,370 reference words) from 11 held-out Uzbek documents, with a reference checked page by page against the scans and then audited automatically, and an evaluation protocol with a fixed normalisation, explicit scope rules, and page-level, document-level and paired bootstrap intervals (Section 5).
- 4.
- A comparison with the base model, a larger open VLM and Tesseract 5 on the benchmark, a training-stage ablation that compares the synthetic-only checkpoint with the checkpoints trained on synthetic and real pages (Section 6), and speed measurements with a simple throughput approximation (Section 7).
The model is used inside a page-to-Word conversion pipeline and a distributed system of volunteer GPU workers. Their software engineering (document-structure reconstruction, the Word writer and the worker dispatcher) is described separately; this paper covers only the parts that affect the recognised text.
2. Related Work
Classical and neural OCR.
Tesseract [3] remains the most widely available open OCR engine and provides Uzbek Cyrillic and Latin models. Transformer-based recognisers such as TrOCR [4] operate on text-line images and require a separate layout stage. Post-OCR correction, from lexicon and statistical methods to neural sequence models, is surveyed by Nguyen et al. [5] and was benchmarked in the ICDAR 2019 competition [6]; our lexicon rule (Section 3.5) belongs to the conservative, lexicon-based end of this family. Viana [7] compares conventional OCR, LLM-assisted correction and direct multimodal transcription on historical Portuguese surveys with manually verified references and finds direct multimodal transcription most accurate, with measurement expressions in tables as the persistent risk; our results on Uzbek are consistent with the first observation; the second we cannot test, because table cells are outside our reference scope.
End-to-end document models.
Donut [8] and Nougat [9] map a page image directly to structured text, the latter to Markdown for academic papers. General VLMs built on an instruction-tuned language model with a vision encoder [10,11,12], and in particular the Qwen-VL family [13,14,15,16,17], accept page images at native resolution and can be prompted to transcribe them. OCR-specialised models and document-parsing systems built on such VLMs include Florence-2 [18], GOT-OCR2 [19], olmOCR [20], MinerU [21], DeepSeek-OCR [22] and PaddleOCR-VL [23]; they are trained mainly on English and Chinese documents, and, to our knowledge, none of them reports results on Uzbek Cyrillic or Latin. Recognition errors propagate to downstream tasks: Zhang et al. [24] measure how OCR noise degrades retrieval-augmented generation, which is why we report error rates on the body text that a downstream system would consume, after the fixed normalisation of Section 5.3 and within the scope of Section 5.2; document structure and formatting are not scored. Parameter-efficient adaptation with LoRA [25] makes it possible to adapt an 8B-parameter model on a single consumer GPU.
Serving.
Synthetic and real training data.
Combining synthetic and real images for low-resource historical OCR was studied for Manchu word images, comparing synthetic-only, real-only, joint and sequential synthetic-to-real training of VLMs and a CRNN [38]. Our setting differs in script and language (Uzbek Cyrillic and Latin), in granularity (full pages rather than word images) and in output (Markdown page transcriptions); our training is sequential, synthetic first and then mixed with real pages (Section 3.3).
3. Problem Formulation and Method
3.1. Page Transcription as Conditional Generation
Let be a greyscale page image (replicated to three channels at the model input) and let , , be the token sequence of its Markdown transcription, where is the vocabulary of the base model’s tokenizer. A fixed instruction (Section 3.4) accompanies every page.
Visual tokens and dynamic resolution.
The image is resized, preserving its aspect ratio, to pixels such that
where MP is the serving setting (training used 2.0, 2.6 and 2.9 MP in the three stages, Section 3.3). The vision encoder maps the resized image to a sequence of visual tokens
so that each visual token covers about a pixel area. At this gives visual tokens; at , about 196. Pages are rendered at 300 dpi with the long side capped at 2048 pixels before this resizing.
Autoregressive decoder.
The language model with parameters defines
where is the end-of-turn token.
3.2. Low-Rank Adaptation
We keep the base weights fixed and learn a low-rank update [25] for selected linear maps of the language model. For a frozen weight the adapted map is
with rank , scaling (so ), dropout probability on the input of A, and no bias. The update is applied to the query, key, value and output projections of self-attention and to the gate, up and down projections of the feed-forward blocks, in every layer of the language model only; the vision encoder , including its projector, is frozen. Let be the set of adapted matrices. The number of trainable parameters is
where the second form holds when all L decoder layers have the same shapes. After training, the update is merged, , and the merged model is stored in bf16.
3.3. Training Objective and Curriculum
A training example is a pair . The model input is the chat-formatted sequence of system instruction, image and user line, followed by the label and the end-of-turn marker. Let be the set of positions of these answer tokens; all prompt and image positions are masked out of the loss. The per-example loss is the mean negative log-likelihood over answer tokens,
and each optimiser step uses a micro-batch of one example and gradient accumulation over examples, so that the update minimises
Equation (7) weights examples equally, not tokens; this is the implemented objective. Optimisation uses AdamW without weight decay, gradient clipping at norm 1.0, bf16 arithmetic, SDPA attention and gradient checkpointing. The learning rate follows a cosine schedule with linear warm-up over the first 3% of the S steps of a stage,
with peak rates , and in the three stages. A sample that runs out of GPU memory is retried with a smaller pixel budget (2.0, then 1.4 MP) or skipped.
Curriculum.
Training proceeds in three stages, each initialised from the adapter of the previous stage (Table 1). Stage 1 uses only synthetic pages; stages 2 and 3 mix synthetic pages with real pages repeated three times per epoch. The released model is the last checkpoint of stage 3 (internally v3b). Total compute was about 17.6 GPU-hours on one RTX 5090; every stage used a single random seed.
3.4. Decoding, Repetition Loops and Retries
Prompt.
The system instruction asks for a verbatim transcription in Markdown without translation, paraphrase or spelling modernisation; the U+02BB/U+02BC code points for Latin Uzbek; [?] after uncertain words; #/## headings only for visual headings; footnotes as [⌃n] markers with definitions [⌃n]: at the end; Markdown tables; [rasm: ...] for images; and separate HEADER:/FOOTER: lines for running heads and page numbers. One user line states the script of the document (Cyrillic or Latin). The same instruction is used in training and inference.
Greedy decoding.
Decoding is greedy,
(temperature 0, top-k 1, no repetition penalty on the first attempt), with at most 4096 output tokens under vLLM.
Repetition-loop criterion.
Greedy autoregressive decoding sometimes enters a loop, especially on dot leaders and typewriter pseudo-graphic tables. Let be the whitespace-separated words of the text generated so far. The tail-loop indicator is
that is, the text ends in at least consecutive copies of a chunk of p words, with
The larger M for symbol-only chunks tolerates the naturally repetitive empty cells of tables. The constants M, n and c below were set on development pages (Appendix A) and were not tuned on the benchmark. For the n-gram criterion, let be the words of the lines that are not table rows, footnote definitions, numbered items, formulas or HEADER/FOOTER lines (lines beginning with |, [⌃x]:, a number such as 1. or 2.3), $, \[, HEADER: or FOOTER:). With and threshold ,
where is the set of word n-grams of u. The loop indicator is . During streaming, is evaluated each time the generated text has grown by more than 400 characters since the last check; if , the connection is closed and generation stops. Generation is also counted as a loop if it ends because the token limit is reached, or if on the final text.
Page state.
The output of an attempt receives a state : loop as above; empty if it contains no non-space character; wrong script if, after removing formulas, links, footnote definitions and citation-like lines, it has more than 50 letters of which more than 15% are in the other script; too short if Tesseract reads the page with mean confidence at least 60 and more than 300 non-space characters while the output has fewer than half as many; and ok otherwise.
Retry policy.
Let denote the states of the attempts below. The policy is
- 1.
- greedy decoding as in Eq. (9); accept if ;
- 2.
- greedy decoding with a repetition penalty (1.1 under llama.cpp; vLLM caps it at 1.05 because it also penalises the prompt) and a logit bias that forbids the dot-leader token(s); accept if ;
- 3.
- split the image into an upper and a lower part at the blank row closest to the middle within the band (with a 20-pixel overlap), transcribe each part with the logit bias of step 2, and concatenate; the page is accepted as ok (split) if both parts are ok, and is otherwise marked for manual handling.
The retry is triggered by any state other than ok, not only by loops.
3.5. Restoration of Uzbek-Specific Letters
For Cyrillic documents, a lexicon rule addresses the confusion of ў/қ/ғ/ҳ with у/к/г/х. Let J be the involution on letters

and for a lowercased word let . The candidate set contains the words obtained by applying J at one or two positions,

where replaces by for . The directions ў→у and ҳ→х are excluded because in development tests they mainly damaged correct words; the remaining substitutions are у→ў, х→ҳ and both directions of к/қ and г/ғ.
The lexicon has two parts with frequencies: a corpus lexicon of 149k word forms with counts , and a book lexicon of the words that occur at least three times in the current document’s output, with counts . To avoid admitting an error that the model repeats consistently, a word is removed from if one of its variants in occurs in the book at least five times as often. Let , with for words absent from both parts, and let . A word token w is eligible if
where is the set of capitalised word tokens inside a sentence (likely proper names), and its supported candidates are . The decision rule is
so that nothing is changed when no candidate or more than one candidate is supported (for example when two variants are both valid words). In the default setting, a change is applied only if the candidate is frequent in the document itself, ; otherwise w is left unchanged and highlighted for review. The original capitalisation is carried over letter by letter. The rule is applied to body text and footnotes of Cyrillic documents.
3.6. Other Text-Level Post-Processing
The pipeline that wraps the model also (i) replaces isolated Latin homoglyphs inside Cyrillic words (a, e, o, p, c, x, y) by their Cyrillic counterparts; (ii) normalises the Uzbek Latin apostrophes to U+02BB/U+02BC; (iii) joins words hyphenated at line ends and reconstructs paragraphs; (iv) removes running heads and page numbers; and (v) compares the output with Tesseract word by word and highlights disagreements for review on pages where the two agree on at least 70% of words. Step (v) does not change the text. Document-structure reconstruction and Word output are described separately. In Section 6, the benchmark run of uzocr-8b uses the raw output of Eq. (9) without the retry policy and without these steps; the effect of the steps is measured separately there.
4. Training Data
Synthetic pages.
Clean Uzbek text is rendered as a typewriter or print page, degraded, and stored with its Markdown label; the label is exact because it is the generator’s own input. The text source is 10,734 passages (5734 Cyrillic, 5000 Latin) taken from digital dissertation abstracts; each synthetic page renders one passage. Each page has a degradation strength , clipped to ; every degradation parameter is interpolated piecewise linearly between three anchor settings at , and . The operations are ink spread (erosion), uneven ribbon fading, bleed-through of a mirrored reverse page (on half of the pages), paper yellowing with an uneven background, stains and specks, Gaussian blur, Gaussian noise, rotation, simulated binarisation by an old scanner, ink breaks and dust at high strength, resampling to 300 or 200 dpi, and JPEG compression. Table 2 lists the anchor values of the main parameters. For stage 3, 6000 synthetic pages were generated in 10 fonts. One font was removed because it lacks ў, қ, ғ and ҳ. Some of the fonts used are proprietary; the synthetic images are not distributed.
Real pages.
The real-page set contains 778 scanned pages (719 for training and 59 for validation in stage 3, 476 and 30 in stage 2; 599 Cyrillic and 179 Latin) from 43 document chunks. Their transcriptions are pseudo-labels produced by two large commercial cloud vision-language models (662 and 116 pages), not human-verified. Cleaning removed pages marked unreadable or with more than three uncertain spans, pages under 15 words, and pages transcribed from memory rather than from the image, and restored the typewriter letter “I” used for the digit “1”. For one batch, 33 Cyrillic pages that agreed with an independent open model (Qwen3.6-35B-A3B) on less than 95% of words were removed. In stage 2, a defect in the “I”/“1” restoration produced two large incorrect samples and lost 23 pages, and 7 samples were skipped for memory reasons, so the figure of 476 real pages for stage 2 is nominal.
Leakage control.
Training texts are compared with test sources using 10-word shingles: a text is excluded if at least 20% of its shingles, or at least 30 shingles, occur in a test source. In the most recent data build this removed 105 of 11,335 candidate texts. The benchmark documents (Section 5.1) were sampled from PDFs that were not used for training or tuning and have 0–1.5% shingle overlap with training text.
5. Benchmark and Evaluation Methodology
5.1. Benchmark Pages
The benchmark is drawn from a held-out set of 12 documents (1519 pages, 10 strata) sampled with a fixed seed from the 147,493 PDFs of the collections available to us (including the collection of Section 1) that were not used for training or tuning. The pipeline was frozen and hashed before it was run on this set. We excluded the one Russian-language document, the Russian-language pages inside Uzbek documents (such as Russian summaries and reference lists), handwritten and Arabic-script pages, and pages with fewer than 20 words. From the remaining pages we drew a stratified random sample (seed 20261007) of 21–29 pages per document. The benchmark has 300 pages and 61,370 reference words from 11 Uzbek documents in Cyrillic and Latin script: dissertations, dissertation abstracts, a textbook, a monograph and technical text with formulas and tables, printed between 1999 and 2023 and including one low-quality scan (Table 3).
Reference.
The reference was checked by the authors and their team page by page against the scans in repeated passes, then audited automatically: the text was compared with Tesseract output and with lexicons of 149k and 79k words; the 50 flagged words were checked against 200-dpi scans, and 44 further errors on 26 pages were corrected. Words whose printed form is a typographical error in the source are kept as printed (including the source’s own spellings without ў or қ); words printed with a broken glyph are transcribed as the intended word.
Availability of the benchmark.
The benchmark pages are parts of dissertations and related documents and are kept private. Only aggregate results are reported: error rates, page and word counts, and coarse document descriptors.
5.2. Scope
The main body text of each page is evaluated. Footnotes and Word equation objects are excluded for all systems. For raw VLM outputs, the markup requested by the prompt is removed identically for all systems: HEADER: and FOOTER: lines, [rasm: ...] placeholders, footnote markers and footnote definition lines, and [?] marks. A page is used if the reference and the raw output of the uzocr-8b benchmark run agree in word count within ; this holds for 284 of the 300 pages, and all systems are evaluated on the same 284 pages. Of the 16 excluded pages (two in e06, four in e07, eight in e09, two in e12), 14 are pages on which the raw output contains more words than the body-text reference (on inspection mostly table cells and formula lines outside the reference scope; over-generation was not counted separately) and two (one page of e06 at the threshold and one of e07) are pages on which every system reads less than the reference. Because the rule uses the output of the evaluated model, Table 4 reports every system on the excluded pages and on all 300 pages; the filter lowers all error rates by 1.9–2.7 points and changes no ranking, but it removes about two thirds of uzocr-8b’s word errors and only 11–25% of the baselines’, so ratios between systems should also be read on all 300 pages. Adding the two under-read pages gives, on 286 pages, 1.861% for uzocr-8b, 8.306% for Qwen3.6-35B-A3B, 12.565% for the base model and 26.190% for Tesseract 5. With the base model’s output as the counting transcription the rule would exclude 36 pages (15 of them among the 16), and with Tesseract’s output 68.
5.3. Normalisation
Both hypothesis and reference are mapped by a normalisation function that applies, in order: lowercasing; Unicode NFKC normalisation (so that superscript and subscript digits such as “2” and “2” become “2”); unescaping of HTML character entities; removal of the characters _ and ⌃; mapping of the apostrophe variants U+02BB, U+02BC, U+2019, U+2018 and the grave accent to the ASCII apostrophe; and removal of all punctuation except an apostrophe or hyphen inside a word. The result is split on whitespace into a word sequence ; denotes the character sequence of the normalised text with words joined by single spaces. Because punctuation removal splits tokens such as slash- or dash-joined compounds, is slightly larger than the whitespace token count of y: the 284 evaluated pages have 58,968 whitespace tokens (the counts of Table 3) and 60,827 normalised words; every error rate below uses the normalised count as denominator.
5.4. Error Rates
For sequences and , the Levenshtein distance [39] is given by the recurrence
counting deletions, insertions and substitutions with unit cost. For page j with hypothesis and reference we define word-level and character-level distances and lengths
Over a page set , the error rates are aggregated at corpus level (sum of distances over sum of reference lengths), not as a mean of page rates:
Because insertions are counted, WER can exceed 100% on a page, and a looping output is penalised in proportion to the text it adds. A page is error-free if .
5.5. Confidence Intervals
Page bootstrap.
Let . For with , draw independently and uniformly from and compute
The 95% interval is the percentile interval of ; CER is treated in the same way.
Document (cluster) bootstrap.
Pages of one document share typeface, scan quality and layout, so they are not independent. Let be the documents, each a set of pages. For each b, draw documents with replacement from and compute
with the percentile interval as above. With 11 clusters this interval is coarse and is reported alongside the page interval.
Paired differences.
For two systems X and Y evaluated on the same pages, the difference is resampled with the same indices for both systems,
which removes the variation that is common to both systems (page difficulty). We report the percentile interval of and the share of resamples with [40]; paired differences are resampled over pages.
5.6. Systems and Settings
- uzocr-8b: the released model (vLLM, bf16, 16 concurrent requests) with the same prompt as the other VLMs, with plain greedy decoding (no retry policy) and without post-processing, and with markup removed as for all VLMs; we also call this the benchmark run or model-only run.
- Qwen3-VL-8B-Instruct (base): the unadapted base model with the same vLLM settings (bf16, maximum model length 8192, pixel budget 200,704 to 2.6 MP) and the same prompt.
- Qwen3.6-35B-A3B: a larger open mixture-of-experts VLM, UD-Q4_K_XL GGUF quantisation, run with llama.cpp with 8 slots and 1024–2600 image tokens, with thinking disabled through the chat template as during development. A first run with the default thinking mode left 73 of 300 answers empty and was discarded.
- Tesseract 5: uzb_cyrl or uzb according to the page’s script, page segmentation mode 3, at 200 dpi.
The VLM outputs are scored after the markup removal of Section 5.2. Each system was run once, on one RTX 5090.
6. Results
Main results.
Table 5 and Figure 1 report corpus-level error rates on the 284 evaluated pages. Among the models evaluated with the identical prompt, the fine-tuned uzocr-8b has the lowest error: a normalised WER of 1.419% (page CI [1.039, 1.862]; document CI [0.980, 1.914]) and a CER of 0.505%. Figure 2 shows the distribution of page-level WER (40% of pages are error-free for uzocr-8b, at most 3% for the other systems), and Table 6 and Figure 3 give the WER per document, on each of which uzocr-8b is lowest. Its base model, with the same architecture, engine and prompt, reaches 11.982%, so fine-tuning reduced WER by a factor of 8.4 on the 284 filtered pages (3.6 on all 300 pages, Table 4). Qwen3.6-35B-A3B, which has about four times as many parameters in total, reaches 7.909%, and Tesseract 5 25.640%. The paired intervals (Table 7) exclude zero for all three comparisons with uzocr-8b: points for the base model, for Qwen3.6-35B-A3B and for Tesseract 5, with in all 2000 resamples. By script (Table 8), the WER of uzocr-8b is 1.743% on the 201 Cyrillic pages and 0.649% on the 83 Latin pages; every system is better on Latin, and the gap between uzocr-8b and the base model is larger on Cyrillic (13.473% against 1.743%) than on Latin (8.441% against 0.649%). Table 9 counts the confusions of the four Uzbek-specific letters among single-letter word substitutions on the Cyrillic pages: for the base model 1785 of its 2232 single-letter substitutions replace an Uzbek letter by its Russian look-alike (қ→к alone 1027 times), that is, the base model systematically drops the Uzbek letters. After fine-tuning the residual confusions are few (97 and 70 in the two directions) and roughly symmetric, which suggests reading errors on individual words rather than a systematic bias.
Text-level post-processing.
Table 10 measures the text-level steps of Section 3.5 and Section 3.6 by applying them cumulatively to the saved raw outputs of the benchmark run. On uzocr-8b they correct 34 word errors and introduce none in the default setting (WER 1.419% to 1.363%; error-free pages 114 to 119), and the lexicon rule without the condition corrects 18 more but introduces 13, which is why the condition is the default. On the base model the same steps correct about 670 errors, mostly hyphenation and Latin homoglyphs, and the lexicon rule is nearly inactive in the default setting because the document lexicon is built from the base model’s own, much noisier, output. On this benchmark the text-level steps are therefore worth about 0.06 points of WER on uzocr-8b (with document lexicons built from the sampled pages only) and do not change the comparison with the baselines.
Raw versus normalised scores.
Raw WER, which keeps case and punctuation, is much higher than normalised WER for the raw VLM outputs (9.271% against 1.419% for uzocr-8b model only, 20.947% against 11.982% for the base model, 17.420% against 7.909% for Qwen3.6-35B-A3B). We attribute the difference mainly to Markdown formatting and casing conventions in raw outputs rather than to recognition errors; we did not decompose it. Normalised WER is therefore the primary metric.
Training-stage ablation.
Table 11 evaluates the checkpoint of each training stage under the model-only protocol. Synthetic pages alone (stage 1) reduce the WER of the base model from 11.982% to 3.166% (3.8 times fewer errors) and raise the number of error-free pages from 2 to 73, so most of the gain is already present after the synthetic-only stage. The later stages, which add real pages together with new synthetic pages, more steps and a larger pixel budget, improve recognition further: on the 271 pages on which no checkpoint looped, the WER falls from 2.265% (stage 1) to 1.413% (stage 3), the median page WER from 0.95% to 0.45%, and the number of error-free pages rises to 114. The stage-2 checkpoint, however, falls into repetition loops on 8 pages (four of them formula pages of e09), which raises its corpus-level WER to 8.633% and gives it the wide interval [2.953, 16.219]; the stage-1 checkpoint loops on one page (a token-limit stop) and the released stage-3 checkpoint on none. Applied offline to the final text of these raw outputs, the loop criterion of Section 3.4 flags 4 of the 8 stage-2 loop pages. Over the raw outputs of the four checkpoints and Qwen3.6-35B-A3B (which loops on 7 pages), with “more than 1.5 times the reference word count or token limit” as ground truth (22 positives), it gives 4 true positives, 1 false positive, 18 false negatives and 1397 true negatives, that is, precision and recall ; the outputs it misses are duplicated table rows, which the n-gram criterion excludes by design, and non-repetitive over-generation, which is outside its definition. In the pipeline, the token-limit state catches token-limit stops; the other over-generation cases are not detected by any current state, which we list as a limitation. Loop behaviour therefore differs between checkpoints in a way that is not monotone in training progress, and it is a property of the checkpoint that an aggregate error rate hides; this is why the released model is wrapped in the loop criterion and retry policy of Section 3.4. The paired difference between stage 3 and stage 1 is points (CI [0.559, 3.716]; in 99.9% of resamples). This ablation varies the training stages as run; it does not isolate the amount of real data from the other differences between stages (pixel budget, number of steps, learning rate), which were not varied independently.
Remaining error types.
The errors we observed are single-letter confusions on faint or broken print (н/п, е/с, ф/с), missing ў, қ, ғ or ҳ where the scan has them, an added қ or ў where the scan has plain к or у, and the fusion or splitting of words.
Faithfulness to the printed source.
The model generally reproduces the source as printed, including the source’s own misspellings and non-standard spellings without ў, қ, ғ or ҳ (the 70 Rus.→Uzb. confusions of Table 9 are the exceptions). This agrees with the transcription rule of the reference and with the instruction not to modernise spelling. It also interacts with the lexicon rule of Section 3.5: a non-standard spelling that is out of vocabulary and has exactly one supported variant is a candidate for change, and the requirement in the default setting limits such changes to variants that are frequent in the same document.
7. Speed
Unless stated otherwise, measurements were taken on one RTX 5090 under Windows with uzocr-8b in bf16. All are single runs without repeats, so no variance is reported.
Measurements.
With vLLM at 24 concurrent requests, a 60-page test ran at 1.58 s/page (a repeat gave 1.57), and 1.70 s/page in the production memory setting; 12, 16, 20, 28 and 32 concurrent requests gave 2.03, 1.81, 1.60, 1.62 and 1.65 s/page (Figure 4). A 128-page run through a remote worker took 1.39 s/page. The full 1519-page held-out set took 50 min 18 s, or 1.99 s/page end to end (per-document range 1.24–3.90). With llama.cpp and the Q8_0 GGUF model on a 12 GB RTX 3060 under Linux with two parallel slots, a 20-page run took 32 s/page. The per-page times in the last column of Table 5 come from the benchmark runs themselves (300 pages; 16 concurrent requests for the model-only run) and are lower than those of the 60-page test because the benchmark pages produce shorter outputs (906 output tokens per page on average, against about 1190 for the Cyrillic pages of the 60-page test); times from different runs and page sets are not directly comparable.
Throughput approximation.
A page costs about 3000 input tokens under vLLM (2601 under llama.cpp) and 1190 (Cyrillic) or 820 (Latin) output tokens. Its processing time has a component that does not shrink with batching, image encoding and prefill, and an autoregressive decoding component whose cost is shared across concurrent sequences, because decoding is limited by memory bandwidth rather than by arithmetic. As an empirical approximation, the time per page at N concurrent requests is
We do not fit and . The measured quantities are: in a single llama.cpp request, image encoding and prefill took 0.92 s for 2601 tokens and decoding took 7.75 s for 1135 tokens; and at 12 llama.cpp slots, the comparison with a variant that produced 43% fewer output tokens attributes about 1.6 s per page to the fixed component and about 1.2 s to decoding (2.80 s/page in total). Equation (23) explains why concurrency helps until approaches the fixed component, and the vLLM measurements level off at 1.57–1.65 s/page between 20 and 32 concurrent requests. The two engines differ, so this agreement is qualitative.
8. Limitations
Single run and single seed.
All benchmark results come from one inference run per system or checkpoint, and every training stage used a single random seed; we cannot separate model differences from seed variation.
Baseline conditions.
The baselines do not run under identical numerical conditions: uzocr-8b runs in bf16 with vLLM, while Qwen3.6-35B-A3B runs with Q4_K_XL quantisation under llama.cpp, with thinking disabled, and Tesseract 5 reads 200-dpi renderings with page segmentation mode 3. The per-page times of the systems were measured in different runs. Several relevant systems (a current ABBYY version, cloud OCR services and other open OCR-specialised models) were not evaluated, and the only ablation is over the training stages as run (Table 11); the amount of real data, adapter placement and LoRA rank were not varied independently.
Scope of evaluation.
Footnotes and equations are excluded for all systems, so the benchmark does not measure footnote or formula recognition; document structure is also not scored. Pages whose reference and the raw output of the benchmark run differ in word count by more than 15% (16 of 300) are excluded, so the main page set depends on the evaluated model’s output; Section 5.2 and Table 4 give the results without the filter. The benchmark covers Uzbek documents printed between 1999 and 2023; it contains no Soviet-era Uzbek documents, no typewritten pages (although typewritten documents motivated the work and are present in the synthetic training data), no Russian-language pages and no handwriting, and 11 documents give coarse document-level intervals.
Pseudo-labels.
The real-page training labels are pseudo-labels from commercial cloud models and were not verified by a human, so the model is in part distilled from those models on real pages, and label errors may be learned. The quality of these labels has not been audited.
Known failure modes.
Repetition loops inside tables can reach the output, because the n-gram criterion excludes table rows by design and the tail criterion does not always fire (recall 0.18 in the offline evaluation of Section 6). On typewriter pseudo-graphic tables the model can loop; in development runs such pages were marked for manual handling by the retry policy (Appendix A), which was not measured on the benchmark, as it contains no typewritten pages. Pages that mix scripts can be transliterated into the dominant script, and English references and LaTeX can trigger false wrong-script states.
9. Conclusion
We presented uzocr-8b, a LoRA adaptation of Qwen3-VL-8B-Instruct for full-page OCR of scanned Uzbek Cyrillic and Latin documents, together with an exact description of its training objective, a repetition-loop criterion and retry policy, and a conservative lexicon rule for the Uzbek-specific letters. We also defined a 300-page benchmark from 11 held-out documents with a reference checked against the scans, and an evaluation protocol with explicit normalisation, scope rules and page, document and paired bootstrap intervals. On the 284 pages retained by a coverage filter based on the word count of the evaluated model’s own output, uzocr-8b reaches a normalised WER of 1.42%, significantly lower than its base model (11.98%), a larger open model, Qwen3.6-35B-A3B (7.91%), and Tesseract 5 (25.64%); on all 300 pages the rates are 4.03%, 14.65%, 10.16% and 27.53%. The comparison is limited to these systems under the stated inference conditions. The main open issue identified by the offline evaluation of the loop criterion is its low recall on repetition loops inside tables, which the n-gram criterion excludes by design.
Data Availability Statement
The model weights are publicly available: uzocr-8b (bf16 merged weights, Apache-2.0) at https://huggingface.co/JahongirB/uzocr-8b, DOI 10.57967/hf/10800 [41], and uzocr-8b-GGUF (Q8_0 language model and F16 vision projector for llama.cpp, Apache-2.0) at https://huggingface.co/JahongirB/uzocr-8b-GGUF, DOI 10.57967/hf/10801 [42]. The model is intended to be used with the system instruction published in the model card and with greedy decoding. The evaluation code (normalisation, error rates and bootstrap intervals) and the synthetic-page generator are in a GitHub repository that will be made public on acceptance. The benchmark pages and reference texts are parts of dissertations and related documents and are not distributed; only aggregate results are reported.
Acknowledgments
During the preparation of this manuscript, the authors used Claude (Claude Code, Anthropic, San Francisco, CA, USA; September–October 2026) for English language editing, LaTeX formatting and assistance with the evaluation and figure-generation code. Apart from the pseudo-labelling of training pages by commercial vision-language models described in Section 4, generative AI tools were not used in model training, benchmark construction, evaluation, data analysis or the interpretation of results. The authors have reviewed and edited all outputs and take full responsibility for the content of this publication.
Conflicts of Interest
The authors declare no conflicts of interest. This research received no external funding.
Appendix A Development-Time Measurements (Superseded)
The measurements in this appendix were made during development, before the benchmark of Section 5 existed. Their references are an AI-generated transcription that has not been verified by a human (Rahm. 1–10), agreement with a commercial cloud model, or synthetic pages. They informed development decisions and are reported only for transparency. They are superseded by Section 5Section 6 and are not used for any claim in this paper. They also use a different metric and different pages, so they are not comparable with the benchmark figures.
A.1 Metric
The development metric is the share of reference words matched by a Ratcliff–Obershelp alignment [43] (Python difflib) after lowercasing and removing punctuation; we call it correct words (A). It does not penalise inserted or hallucinated text. WER and CER were computed only for some baselines. Confidence intervals are 95% block-bootstrap intervals (, blocks of words, not aligned to page boundaries). No CI or paired test was computed for uzocr, the ensemble or the vLLM runs.
A.2. Development Data
Rahm. 1–10.
Pages 1–10 of a 1992 typewritten Cyrillic monograph, 1768 words. The reference was typed by an AI model via a web interface and is not human-verified. Of 128 disagreements between systems and reference examined during development, 45 were measurement artefacts; about 40 were checked against the 300 dpi scan by an AI model, which found one reference error, and a second error was found later; both were corrected. These ten pages informed more than 60 development decisions, so they are not a held-out set. Because the reference was produced by a model from the same family as the cloud model in Table 12, that model’s score may be favoured. On this reference, 31.2% of words contain one of the four Uzbek-specific letters.
Agreement sets.
Rahm. 11–15, a 1996 dissertation with tables and diagrams (pages 65–84 of a document whose pages 5–64 were used in training, so it is only partly held out), a blurry 1999 document, and a 2023 printed Latin document. Their reference is the output of a commercial cloud VLM, so scores on them measure agreement with that model, not accuracy. These documents were also used as validation data for choosing adapters.
A.3. Synthetic sets.
Twenty synthetic pages for each combination of script (Cyrillic, Latin) and degradation level (good, medium, bad), with exact references. The medium level is not calibrated to real scans: on it Tesseract scores 60.7 and the base model 90.1, against 42.4 and 80.3 on Rahm. 1–10. The synthetic test sets share text with training data on 1–2 pages, with an estimated effect of at most 0.2 points.
Development Results
Table 12 summarises the development measurements and Table 13 the quantisations. The following observations guided development. Each rests on the AI-generated Rahm. 1–10 reference or on agreement with a cloud model, and none is a claim of this paper.
- Legacy text layers and Tesseract. On Rahm. 1–10, the ABBYY FineReader 2014 text layer scored 43.6 correct words (WER 76.6%, CER 28.3%), and Tesseract 5 with uzb_cyrl and page segmentation mode 6 scored 42.4 (WER 77.8%, CER 37.5%).
- Fine-tuning versus the base model. uzocr v3b scored about 16 points above its base model on Rahm. 1–10, above the upper end of the base model’s CI (90.2). The share of this difference due to the pipeline rather than the adapter was not separated.
- Open baselines. uzocr scored 96.3–96.8 on Rahm. 1–10, inside the CI of Qwen3.6-35B-A3B [94.2; 96.9], so on this sample it was comparable to, not better than, that model. Conditions differed: Qwen3.6 ran at Q4, uzocr at Q8 or bf16; at Q4_K_M, uzocr v2 scored 95.6.
- Cloud model. A commercial cloud VLM scored 99.8 on Rahm. 1–10 at an estimated cost of about 0.25 USD per page; the reference was produced by a model of the same family.
- Synthetic data. v1, trained only on synthetic pages, scored 94.1; v2 and v3b, with real pages added, scored 96.3–96.8. The benchmark ablation of Table 11 supersedes these figures.
- Degraded pages. On synthetic Cyrillic medium/bad pages, uzocr v3b scored 98.6/81.3 (llama.cpp Q8) and 98.7/81.9 (vLLM pipeline); on Latin, 99.4/92.3 and 99.5/92.4.
- Validation loss and adapter selection. The stage-3 checkpoint with the lowest validation loss (step 100) scored 96.6 on Rahm. 1–10 but 84.7 on the blurry 1999 document, because of a repetition loop, against 95.4 for the last checkpoint (Table 12) (one document, one run).
- Alignment artefacts. On the 1996 dissertation, the vLLM pipeline scored 92.6 when the whole document was aligned at once and 97.4 when aligned page by page.
- Extended tokenizer (v4). A variant with 5918 added Uzbek tokens (vocabulary 157,854) reduced output tokens per page from 1004 to 574 () and llama.cpp time from 2.80 to 2.28 s/page (), but scored 94.9/92.7 on the two real-scan development sets, against 96.3–96.8/96.2–96.3 for v3b in Table 12 (separate runs). It was not deployed.
- Inference engine. llama.cpp with 12 slots scored 96.3/96.2 and vLLM at 24 concurrent requests 96.8/96.3 on the development sets.
- Pipeline steps. Feeding pre-processed (binarised/cleaned) images lowered the score from 95.7 to 93.8. Replacing Latin homoglyphs in Cyrillic words added 0.2 points (95.7 → 95.9). The lexicon step, applied to Qwen3.6-35B-A3B output, made 12 changes, all correct, giving 96.6. Tesseract with typewriter pre-processing flagged 70% of VLM errors on real scans, but only 15% of its flags were real errors (485 flags over 1793 words).
- Loop handling. On a 464-page development set, the loop criterion and retry policy reduced the number of pages marked for manual handling from 17 to 2 (both genuine loops on pseudo-graphic tables), and a loop was caught after 7 s instead of 194 s.
- Confidence flags. The median minimum token probability was 0.99 for correct words, 0.91 for errors in ў/қ/ғ/ҳ and 0.65 for substitutions by a familiar word. As an error flag on real scans, it reached 31% precision and 57% recall.
Table 12.
Development measurements (superseded; not used for claims). Correct words (%). Rahm. 1–10 uses an AI-generated, non-human-verified reference; Rahm. 11–15 measures agreement with a commercial cloud model. “–”: not measured. All results are single runs.
Table 12.
Development measurements (superseded; not used for claims). Correct words (%). Rahm. 1–10 uses an AI-generated, non-human-verified reference; Rahm. 11–15 measures agreement with a commercial cloud model. “–”: not measured. All results are single runs.
| System | Rahm. 1–10 | Rahm. 11–15 | Other sets | 95% CIc |
|---|---|---|---|---|
| Qwen3-VL-8B base | 80.3 | – | synth. Cyr. med. 90.1 | [67.9; 90.2] |
| uzocr v1 (synthetic only) | 94.1 | 90.9 | none | |
| uzocr v2 | 96.4 | 95.9 | none | |
| uzocr v3b, llama.cpp Q8 | 96.3 | 96.2 | 1999: 95.4; 2023 Lat.: 99.8 | none |
| uzocr v3b, vLLM bf16 | 96.8 | 96.3 | none | |
| uzocr v3b, vLLM, full pipeline | 96.8 | 96.4 | 1999: 95.3; 2023 Lat.: 99.9 | none |
| Ensemble v3b + Qwen3.6a | 98.1 | 97.8 | 1999: 95.6 | none |
| Qwen3.6-35B-A3B (Q4) | 95.6 | 96.1 | [94.2; 96.9] | |
| Qwen3-VL-32B | 90.8 | – | [87.9; 93.4] | |
| Qwen3.8-27B | 84.9 | 87.8 | none | |
| DeepSeek-OCR Gundam | 77.3 | – | [74.6; 79.8] | |
| DeepSeek-OCR Large | 75.0 | – | [71.7; 78.4] | |
| PaddleOCR-VL 1.6 | loops on 10 of 15 pages; not usable | |||
| Gemma-3-27B | 53.5 | – | none | |
| Tesseract 5 (uzb_cyrl, psm 6) | 42.4 | – | synth. Cyr. med. 60.7 | [31.4; 53.8] |
| ABBYY FineReader 2014 text layer | 43.6 | – | [36.1; 50.5] | |
| Commercial cloud VLMb | 99.8 | – | synth. Cyr. m/b 99.3/96.9 | [99.7; 100.0] |
a Optional word-level ensemble with Qwen3.6-35B-A3B; its weights were chosen on test pages, so the figure is optimistic. b The Rahm. 1–10 reference was produced by a model of the same family. c Block bootstrap on Rahm. 1–10.
Table 13.
Development measurements (superseded): GGUF quantisations of v2 (llama.cpp, Rahm. 1–10, full pipeline). Single runs; the accuracy reference is AI-generated.
Table 13.
Development measurements (superseded): GGUF quantisations of v2 (llama.cpp, Rahm. 1–10, full pipeline). Single runs; the accuracy reference is AI-generated.
| Quantisation | Correct words (%) | s/page |
|---|---|---|
| Q8_0 | 96.8 | 3.4 |
| Q8_0, 20 slots, q8 KV cache | 97.0 | 3.1 |
| Q6_K | 96.0 | 3.0 |
| Q4_K_M | 95.6 | 2.9 |
References
- OpenAI. API pricing. Available online: https://developers.openai.com/api/docs/pricing (accessed on 8 October 2026).
- Google. Gemini Developer API pricing. Available online: https://ai.google.dev/gemini-api/docs/pricing (accessed on 8 October 2026).
- Smith, R. An Overview of the Tesseract OCR Engine. In Proceedings of the Ninth International Conference on Document Analysis and Recognition (ICDAR 2007), 2007; pp. 629–633. [Google Scholar] [CrossRef]
- Li, M.; Lv, T.; Chen, J.; Cui, L.; Lu, Y.; Florencio, D.; Zhang, C.; Li, Z.; Wei, F. TrOCR: Transformer-Based Optical Character Recognition with Pre-trained Models. Proc. Proc. AAAI Conf. Artif. Intell. 2023, Vol. 37, 13094–13102. [Google Scholar] [CrossRef]
- Nguyen, T.T.H.; Jatowt, A.; Coustaty, M.; Doucet, A. Survey of Post-OCR Processing Approaches. ACM Comput. Surv. 2021, 54, 1–37. [Google Scholar] [CrossRef]
- Rigaud, C.; Doucet, A.; Coustaty, M.; Moreux, J.P. ICDAR 2019 Competition on Post-OCR Text Correction. In Proceedings of the 2019 International Conference on Document Analysis and Recognition (ICDAR), 2019; pp. 1588–1593. [Google Scholar] [CrossRef]
- Viana, C.M. Reframing Historical Text Extraction: A Cross-Pathway Validation of OCR, LLM-Assisted Correction, and Direct Multimodal Transcription. Information 2026, 17, 722. [Google Scholar] [CrossRef]
- Kim, G.; Hong, T.; Yim, M.; Nam, J.; Park, J.; Yim, J.; Hwang, W.; Yun, S.; Han, D.; Park, S. OCR-Free Document Understanding Transformer. Proc. Eur. Conf. Comput. Vis. (ECCV 2022) 2022, Vol. 13688, 498–517. [Google Scholar] [CrossRef]
- Blecher, L.; Cucurull, G.; Scialom, T.; Stojnic, R. Nougat: Neural Optical Understanding for Academic Documents, 2023. arXiv arXiv:cs.
- Liu, H.; Li, C.; Wu, Q.; Lee, Y.J. Visual Instruction Tuning. In Proceedings of the Advances in Neural Information Processing Systems 36 (NeurIPS 2023), 2023. [Google Scholar]
- Chen, Z.; Wu, J.; Wang, W.; Su, W.; Chen, G.; Xing, S.; Zhong, M.; Zhang, Q.; Zhu, X.; Lu, L.; et al. InternVL: Scaling up Vision Foundation Models and Aligning for Generic Visual-Linguistic Tasks. arXiv 2023, arXiv:cs. [Google Scholar]
- Beyer, L.; Steiner, A.; Pinto, A.S.; Kolesnikov, A.; Wang, X.; Salz, D.; Neumann, M.; Alabdulmohsin, I.; Tschannen, M.; Bugliarello, E.; et al. PaliGemma: A versatile 3B VLM for transfer. arXiv 2024, arXiv:cs. [Google Scholar]
- Bai, J.; Bai, S.; Chu, Y.; Cui, Z.; Dang, K.; Deng, X.; Fan, Y.; Ge, W.; Han, Y.; Huang, F.; et al. Qwen Technical Report. arXiv 2023, arXiv:cs. [Google Scholar]
- Wang, P.; Bai, S.; Tan, S.; Wang, S.; Fan, Z.; Bai, J.; Chen, K.; Liu, X.; Wang, J.; Ge, W.; et al. Qwen2-VL: Enhancing Vision-Language Model’s Perception of the World at Any Resolution. arXiv 2024, arXiv:cs. [Google Scholar]
- Bai, S.; Chen, K.; Liu, X.; Wang, J.; Ge, W.; Song, S.; Dang, K.; Wang, P.; Wang, S.; Tang, J.; et al. Qwen2.5-VL Technical Report. arXiv 2025, arXiv:cs. [Google Scholar]
- Bai, S.; Cai, Y.; Chen, R.; Chen, K.; Chen, X.; et al. Qwen3-VL Technical Report. arXiv 2025, arXiv:cs. [Google Scholar]
- Yang, A.; Li, A.; Yang, B.; Zhang, B.; Hui, B.; Zheng, B.; Yu, B.; Gao, C.; Huang, C.; Lv, C.; et al. Qwen3 Technical Report. arXiv 2025, arXiv:cs. [Google Scholar]
- Xiao, B.; Wu, H.; Xu, W.; Dai, X.; Hu, H.; Lu, Y.; Zeng, M.; Liu, C.; Yuan, L. Florence-2: Advancing a Unified Representation for a Variety of Vision Tasks, 2023. arXiv arXiv:cs.
- Wei, H.; Liu, C.; Chen, J.; Wang, J.; Kong, L.; Xu, Y.; Ge, Z.; Zhao, L.; Sun, J.; Peng, Y.; et al. General OCR Theory: Towards OCR-2.0 via a Unified End-to-end Model. arXiv 2024, arXiv:cs. [Google Scholar]
- Poznanski, J.; Rangapur, A.; Borchardt, J.; Dunkelberger, J.; Huff, R.; Lin, D.; Rangapur, A.; Wilhelm, C.; Lo, K.; Soldaini, L. olmOCR: Unlocking Trillions of Tokens in PDFs with Vision Language Models. arXiv 2025, arXiv:cs. [Google Scholar]
- Wang, B.; Xu, C.; Zhao, X.; Ouyang, L.; Wu, F.; Zhao, Z.; Xu, R.; Liu, K.; Qu, Y.; Shang, F.; et al. MinerU: An Open-Source Solution for Precise Document Content Extraction. arXiv 2024, arXiv:cs. [Google Scholar]
- Wei, H.; Sun, Y.; Li, Y. DeepSeek-OCR: Contexts Optical Compression. arXiv 2025, arXiv:cs. [Google Scholar]
- Cui, C.; Sun, T.; Liang, S.; Gao, T.; Zhang, Z.; Liu, J.; Wang, X.; Zhou, C.; Liu, H.; Lin, M.; et al. PaddleOCR-VL: Boosting Multilingual Document Parsing via a 0.9B Ultra-Compact Vision-Language Model. arXiv 2025, arXiv:cs. [Google Scholar]
- Zhang, J.; Zhang, Q.; Wang, B.; Ouyang, L.; Wen, Z.; Li, Y.; Chow, K.H.; He, C.; Zhang, W. OCR Hinders RAG: Evaluating the Cascading Impact of OCR on Retrieval-Augmented Generation. arXiv 2024, arXiv:cs. [Google Scholar]
- Hu, E.J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; Chen, W. LoRA: Low-Rank Adaptation of Large Language Models. In Proceedings of the International Conference on Learning Representations (ICLR), 2022. [Google Scholar]
- Kwon, W.; Li, Z.; Zhuang, S.; Sheng, Y.; Zheng, L.; Yu, C.H.; Gonzalez, J.E.; Zhang, H.; Stoica, I. Efficient Memory Management for Large Language Model Serving with PagedAttention. In Proceedings of the Proceedings of the 29th Symposium on Operating Systems Principles (SOSP ’23), 2023; pp. 611–626. [Google Scholar] [CrossRef]
- Gerganov, G. llama.cpp contributors. llama.cpp: LLM inference in C/C++. Available online: https://github.com/ggml-org/llama.cpp (accessed on 7 October 2026).
- Mukhiddinov, M.; Akmuradov, B.; Djuraev, O. Robust Text Recognition for Uzbek Language in Natural Scene Images. In Proceedings of the 2019 International Conference on Information Science and Communications Technologies (ICISCT); IEEE, 2019; pp. 1–5. [Google Scholar] [CrossRef]
- Makhmudov, F.; Mukhiddinov, M.; Abdusalomov, A.; Avazov, K.; Khamdamov, U.; Cho, Y.I. Improvement of the End-to-End Scene Text Recognition Method for “Text-to-Speech” Conversion. Int. J. Wavelets Multiresolut. Inf. Process. 2020, 18, 2050052. [Google Scholar] [CrossRef]
- Gagnier, H.; Gagnier, S.; Kirubakaran, A. KazakhOCR: A Synthetic Benchmark for Evaluating Multimodal Models in Low-Resource Kazakh Script OCR. In Proceedings of the Proceedings of the 2nd Workshop on NLP for Languages Using Arabic Script (AbjadNLP 2026), 2026; pp. 60–65. [Google Scholar] [CrossRef]
- Gagnier, H. Large Language Model-Based Post-OCR Correction for Low-Resource Kazakh Scripts. In Proceedings of the Proceedings of the Third Workshop on Computation and Written Language (CAWL 2026), 2026; pp. 79–88. [Google Scholar] [CrossRef]
- Alikulova, M. Typology of Linguistic Distortions Occurring in OCR-Generated Texts. Proc. Int. Conf. Soc. Sci. Humanit. 2026, Vol. 2, 58–61. [Google Scholar] [CrossRef]
- Dauletov, A.; Muminov, B.; Matyakubova, N.; Abdurahmonova, U.; Bakhriyeva, K.; Fayzieva, M. Development of a Software Model for Classification and Automatic Cataloging of Archive Documents. Information 2026, 17, 341. [Google Scholar] [CrossRef]
- Mussakhojayeva, S.; Dauletbek, K.; Yeshpanov, R.; Varol, H.A. Multilingual Speech Recognition for Turkic Languages. Information 2023, 14, 74. [Google Scholar] [CrossRef]
- Balabayev, Z.; Biloshchytska, S.; Abdikenov, B.; Zhaksylyk, T.; Ayanbayev, B.; Rakishev, D. Navigating the Digitization Gap: An Indirect Evidence Synthesis of AI Methods for Low-Resource Chagatai Manuscripts. Information 2026, 17, 681. [Google Scholar] [CrossRef]
- Mussa, A.; Tuimebayev, Z.; Mansurova, M.; Shihab, A.H. When Does Fine-Tuning Matter for a Low-Resource Language? Evaluating Open-Weight LLMs on Kazakh Benchmarks. Information 2026, 17, 921. [Google Scholar] [CrossRef]
- Kim, R. Comparing LoRA, DoRA, and OFT for Extremely Low-Resource English–Sango Machine Translation: Adaptation Performance and Out-of-Domain Retention. Information 2026, 17, 1001. [Google Scholar] [CrossRef]
- Chung, Y.H.M.; Wang, H. Combining Synthetic and Real Data for Low-Resource Historical OCR: A Manchu Case Study, 2026. arXiv arXiv:cs.
- Levenshtein, V.I. Binary codes capable of correcting deletions, insertions, and reversals. Sov. Phys. Dokl. 1966, 10, 707–710. [Google Scholar]
- Efron, B.; Tibshirani, R.J. An Introduction to the Bootstrap; Chapman & Hall: New York, 1993. [Google Scholar]
- Boltayev, J. uzocr-8b: OCR for scanned Uzbek documents, 2026. Model weights, Apache-2.0. DOI registered. 2026. [Google Scholar] [CrossRef] [PubMed]
- Boltayev, J. uzocr-8b-GGUF: GGUF quantization of uzocr-8b for llama.cpp, 2026. Model weights, Apache-2.0. DOI registered 2026-10-07 via DataCite. [CrossRef]
- Ratcliff, J.W.; Metzener, D.E. Pattern Matching: The Gestalt Approach. Dr. Dobb’s J. 1988, 13. [Google Scholar]
Figure 1.
Normalised WER on the 284 evaluated benchmark pages with 95% page-bootstrap intervals. uzocr-8b in blue; the other systems in the colours of Figure 3.
Figure 1.
Normalised WER on the 284 evaluated benchmark pages with 95% page-bootstrap intervals. uzocr-8b in blue; the other systems in the colours of Figure 3.

Figure 2.
Cumulative distribution of page-level WER (log scale; error-free pages are drawn at the left edge). The height of each curve at the left edge is the share of error-free pages: 40% for uzocr-8b, against 3%, 1% and 0% for the other systems.
Figure 2.
Cumulative distribution of page-level WER (log scale; error-free pages are drawn at the left edge). The height of each curve at the left edge is the share of error-free pages: 40% for uzocr-8b, against 3%, 1% and 0% for the other systems.

Figure 3.
Normalised WER per benchmark document (log scale). uzocr-8b has the lowest WER of the four systems on every document.
Figure 3.
Normalised WER per benchmark document (log scale). uzocr-8b has the lowest WER of the four systems on every document.

Figure 4.
Seconds per page of uzocr-8b with vLLM on one RTX 5090 against the number of concurrent requests (60-page test, single runs).
Figure 4.
Seconds per page of uzocr-8b with vLLM on one RTX 5090 against the number of concurrent requests (60-page test, single runs).

Table 1.
Training stages. Real pages were repeated three times per epoch.
| Stage | Init | Data | Steps | Wall time | |
|---|---|---|---|---|---|
| 1 (v1) | base | 8000 synthetic pages | 987 | 6.9 h | |
| 2 (v2) | stage 1 | 2400 synthetic + 476 real (); 30 real validation pages | 478 | 4.3 h | |
| 3 (v3b) | stage 2 | 2400 synthetic + 719 real (); 59 real validation pages | 570 | ∼6.4 h |
Table 2.
Anchor values of the main degradation parameters; values for intermediate strength s are interpolated linearly between neighbouring anchors.
Table 2.
Anchor values of the main degradation parameters; values for intermediate strength s are interpolated linearly between neighbouring anchors.
| Parameter | |||
|---|---|---|---|
| Gaussian blur (px) | 0.6 | 1.2 | 2.0 |
| Gaussian noise std (grey levels) | 4 | 10 | 18 |
| Rotation range (degrees, ±) | 0.3 | 1.0 | 2.0 |
| JPEG quality | 92 | 75 | 50 |
| Bleed-through opacity | 0 | 0.06 | 0.12 |
| Ribbon fading | 0 | 0.08 | 0.20 |
| Paper yellowing | 0.03 | 0.10 | 0.20 |
| Number of stains | 0 | 40 | 150 |
Table 3.
Benchmark documents. Type and field are coarse descriptors; “scan” is a visual assessment. Pages: total in the document / in the 300-page sample / evaluated after the coverage filter of Section 5.2; words: reference words on the evaluated pages. The twelfth held-out document, in Russian (132 pages), is not part of the benchmark; with it the held-out set has 1519 pages.
Table 3.
Benchmark documents. Type and field are coarse descriptors; “scan” is a visual assessment. Pages: total in the document / in the 300-page sample / evaluated after the coverage filter of Section 5.2; words: reference words on the evaluated pages. The twelfth held-out document, in Russian (132 pages), is not part of the benchmark; with it the held-out set has 1519 pages.
| Doc. | Year | Type (field) | Script | Production and scan | Pages | Sample | Eval. | Words |
|---|---|---|---|---|---|---|---|---|
| e02 | 1999 | DSc dissertation (medicine) | Cyr. | computer-typeset; photographed scan, medium quality; diagrams | 115 | 29 | 29 | 5,259 |
| e03 | 2003 | PhD abstract (political science) | Cyr. | letterpress, small type; footnotes | 22 | 21 | 21 | 6,174 |
| e04 | 2005 | PhD abstract (economics) | Cyr. | letterpress; diagrams, footnotes | 23 | 21 | 21 | 4,963 |
| e05 | 2005 | DSc dissertation (medicine) | Cyr. | computer-typeset; poor scan: perspective distortion, curved lines; tables | 120 | 29 | 29 | 5,523 |
| e06 | 2007 | DSc dissertation (medicine) | Cyr. | computer-typeset; diagrams | 115 | 29 | 27 | 5,866 |
| e07 | 2011 | PhD dissertation (tourism) | Cyr. | computer-typeset; tables, footnotes | 175 | 29 | 25 | 5,222 |
| e08 | 2020 | textbook (psychology) | Lat. | letterpress; clean scan; footnotes | 280 | 29 | 29 | 6,321 |
| e09 | 2021 | PhD dissertation (mech. engineering) | Cyr. | computer-typeset; formulas, figures, tables | 125 | 29 | 21 | 2,945 |
| e10 | 2022 | monograph (economics) | Cyr. | computer-typeset; tables, footnotes | 134 | 28 | 28 | 5,026 |
| e11 | 2023 | PhD dissertation (philosophy) | Lat. | computer-typeset; footnotes in Cyrillic | 146 | 28 | 28 | 6,414 |
| e12 | 2023 | PhD dissertation (linguistics) | Lat. | computer-typeset; diagrams, footnotes | 132 | 28 | 26 | 5,255 |
| Total | 1,387 | 300 | 284 | 58,968 | ||||
Table 4.
Effect of the coverage filter. Normalised WER (%) on the 284 evaluated pages, on the 16 excluded pages and on all 300 pages (16 pages: 2,402 whitespace tokens, 2,567 normalised words; 300 pages: 61,370 and 63,394). On the excluded pages the raw output of the uzocr-8b benchmark run differs from the body-text reference in word count by more than 15% (over-length output on 14 pages, mostly table and formula pages; under-read output on 2), so every system scores 64–78% there. The ranking of the systems is the same on all three sets.
Table 4.
Effect of the coverage filter. Normalised WER (%) on the 284 evaluated pages, on the 16 excluded pages and on all 300 pages (16 pages: 2,402 whitespace tokens, 2,567 normalised words; 300 pages: 61,370 and 63,394). On the excluded pages the raw output of the uzocr-8b benchmark run differs from the body-text reference in word count by more than 15% (over-length output on 14 pages, mostly table and formula pages; under-read output on 2), so every system scores 64–78% there. The ranking of the systems is the same on all three sets.
| System | 284 pages | 16 excluded pages | all 300 pages |
|---|---|---|---|
| uzocr-8b (model only) | 1.419 | 65.797 | 4.026 |
| Stage 1 (v1) | 3.166 | 65.018 | 5.671 |
| Stage 2 (v2) | 8.633 | 67.628 | 11.022 |
| Qwen3.6-35B-A3B | 7.909 | 63.576 | 10.163 |
| Qwen3-VL-8B (base) | 11.982 | 77.834 | 14.648 |
| Tesseract 5 | 25.640 | 72.419 | 27.534 |
Table 5.
Results on the 284 evaluated benchmark pages (58,968 whitespace tokens; 60,827 normalised reference words, the WER/CER denominator; 11 documents). WER and CER in %; normalised unless marked raw (raw keeps case and punctuation). CIs are 95% percentile intervals from the page bootstrap and the document (cluster) bootstrap. Error-free: pages with no word error, of 284. Shading per column: dark green, best (bold); light green, second best; red, worst. s/page: wall-clock time of the benchmark run. Single runs on one RTX 5090.
Table 5.
Results on the 284 evaluated benchmark pages (58,968 whitespace tokens; 60,827 normalised reference words, the WER/CER denominator; 11 documents). WER and CER in %; normalised unless marked raw (raw keeps case and punctuation). CIs are 95% percentile intervals from the page bootstrap and the document (cluster) bootstrap. Error-free: pages with no word error, of 284. Shading per column: dark green, best (bold); light green, second best; red, worst. s/page: wall-clock time of the benchmark run. Single runs on one RTX 5090.
| WER, normalised | WER | CER, normalised | ||||||
|---|---|---|---|---|---|---|---|---|
| System | WER | CI pages | CI docs | raw | CER | CI pages | Error-free | s/page |
| uzocr-8b | 1.419 | [1.039, 1.862] | [0.980, 1.914] | 9.271 | 0.505 | [0.330, 0.697] | 114 (40%) | 1.15 |
| Qwen3-VL-8B (base) | 11.982 | [10.090, 14.079] | [8.431, 15.963] | 20.947 | 5.476 | [4.096, 6.958] | 2 | 1.27 |
| Qwen3.6-35B-A3B | 7.909 | [6.375, 9.642] | [5.554, 10.608] | 17.420 | 4.317 | [3.051, 5.753] | 8 | 2.34 |
| Tesseract 5 | 25.640 | [22.923, 28.477] | [19.539, 31.701] | 29.954 | 13.742 | [11.894, 15.634] | 0 | – |
Table 6.
Normalised WER (%) per benchmark document. Page and word counts per document are given in Table 3. Shading per row: dark green, lowest WER (bold); light green, second lowest; red, highest.
Table 6.
Normalised WER (%) per benchmark document. Page and word counts per document are given in Table 3. Shading per row: dark green, lowest WER (bold); light green, second lowest; red, highest.
| Doc. | uzocr-8b | Base (Qwen3-VL-8B) | Qwen3.6-35B-A3B | Tesseract 5 |
|---|---|---|---|---|
| e02 | 1.730 | 9.853 | 6.789 | 38.211 |
| e03 | 1.301 | 26.417 | 14.228 | 23.976 |
| e04 | 1.676 | 13.268 | 6.045 | 9.038 |
| e05 | 1.775 | 4.712 | 4.285 | 43.428 |
| e06 | 1.294 | 9.294 | 3.489 | 34.945 |
| e07 | 1.029 | 13.502 | 4.968 | 29.170 |
| e08 | 0.460 | 3.568 | 3.267 | 11.751 |
| e09 | 4.266 | 14.208 | 13.021 | 20.237 |
| e10 | 2.099 | 16.633 | 16.753 | 20.812 |
| e11 | 0.201 | 7.688 | 10.834 | 22.195 |
| e12 | 1.423 | 15.193 | 6.165 | 23.615 |
Table 7.
Paired differences in normalised WER (percentage points), = WER of the system minus WER of uzocr-8b, with 95% percentile intervals from paired page resampling (, Eq. (22)). The last column is the share of resamples with . Green: the interval excludes zero, i.e. uzocr-8b is significantly better.
Table 7.
Paired differences in normalised WER (percentage points), = WER of the system minus WER of uzocr-8b, with 95% percentile intervals from paired page resampling (, Eq. (22)). The last column is the share of resamples with . Green: the interval excludes zero, i.e. uzocr-8b is significantly better.
| System | vs. uzocr-8b | 95% CI | Share |
|---|---|---|---|
| Qwen3.6-35B-A3B | [4.878, 8.325] | 1.000 | |
| Qwen3-VL-8B (base) | [8.704, 12.794] | 1.000 | |
| Tesseract 5 | [21.601, 26.973] | 1.000 |
Table 8.
Results by script on the 284 evaluated pages: Cyrillic (8 documents, 201 pages, 42,797 normalised reference words, 40,978 whitespace tokens) and Latin (3 documents, 83 pages, 18,030 and 17,990). Normalised WER and CER in %.
Table 8.
Results by script on the 284 evaluated pages: Cyrillic (8 documents, 201 pages, 42,797 normalised reference words, 40,978 whitespace tokens) and Latin (3 documents, 83 pages, 18,030 and 17,990). Normalised WER and CER in %.
| Cyrillic | Latin | |||
|---|---|---|---|---|
| System | WER | CER | WER | CER |
| uzocr-8b | 1.743 | 0.654 | 0.649 | 0.174 |
| Qwen3.6-35B-A3B | 8.367 | 4.289 | 6.822 | 4.380 |
| Qwen3-VL-8B (base) | 13.473 | 5.343 | 8.441 | 5.774 |
| Tesseract 5 | 28.455 | 15.180 | 18.957 | 10.531 |
Table 9.
Confusions of the Uzbek-specific letters on the 201 Cyrillic pages. Counted over word substitutions that differ from the reference word in exactly one letter (“single-letter”); the other columns give how many of these are a substitution of a Russian look-alike for an Uzbek letter (ў→у, қ→к, ғ→г, ҳ→х) or the reverse. Arrows read reference→output.
Table 9.
Confusions of the Uzbek-specific letters on the 201 Cyrillic pages. Counted over word substitutions that differ from the reference word in exactly one letter (“single-letter”); the other columns give how many of these are a substitution of a Russian look-alike for an Uzbek letter (ў→у, қ→к, ғ→г, ҳ→х) or the reverse. Arrows read reference→output.
| System | Single-letter | Uzb.→Rus. | Rus.→Uzb. | қ→к | ҳ→х | к→қ | х→ҳ |
|---|---|---|---|---|---|---|---|
| uzocr-8b | 227 | 97 | 70 | 62 | 22 | 38 | 26 |
| Qwen3.6-35B-A3B | 745 | 299 | 240 | 128 | 107 | 108 | 92 |
| Qwen3-VL-8B (base) | 2232 | 1785 | 129 | 1027 | 670 | 62 | 36 |
| Tesseract 5 | 919 | 359 | 87 | 289 | 46 | 44 | 32 |
Table 10.
Controlled post-processing ablation: the text-level steps of Section 3.5 and Section 3.6 applied cumulatively to the same saved raw outputs of the model-only run (284 pages). “Corrected” and “introduced” count word errors removed and added by each step relative to the previous row. The lexicon rule uses the document lexicon built from each document’s sampled pages (21–29 per document, 300 in total), not from the whole document as in the pipeline. “Default” is the rule of Section 3.5 with the condition ; “unconditional” drops that condition.
Table 10.
Controlled post-processing ablation: the text-level steps of Section 3.5 and Section 3.6 applied cumulatively to the same saved raw outputs of the model-only run (284 pages). “Corrected” and “introduced” count word errors removed and added by each step relative to the previous row. The lexicon rule uses the document lexicon built from each document’s sampled pages (21–29 per document, 300 in total), not from the whole document as in the pipeline. “Default” is the rule of Section 3.5 with the condition ; “unconditional” drops that condition.
| Raw output of | Step | WER | Error-free | Corrected | Introduced |
|---|---|---|---|---|---|
| uzocr-8b | raw | 1.419 | 114 | – | – |
| + de-hyphenation | 1.388 | 118 | 19 | 0 | |
| + Latin homoglyphs | 1.388 | 118 | 0 | 0 | |
| + lexicon rule (default) | 1.363 | 119 | 15 | 0 | |
| + lexicon rule (unconditional) | 1.355 | 120 | 18 | 13 | |
| Qwen3-VL-8B (base) | raw | 11.982 | 2 | – | – |
| + de-hyphenation | 11.416 | 2 | 348 | 4 | |
| + Latin homoglyphs | 10.900 | 2 | 314 | 0 | |
| + lexicon rule (default) | 10.896 | 2 | 4 | 2 | |
| + lexicon rule (unconditional) | 10.696 | 2 | 132 | 10 |
Table 11.
Training-stage ablation on the 284 evaluated benchmark pages: the checkpoints of the three stages of Table 1, run under the model-only protocol (same prompt, vLLM, bf16, greedy decoding, no retry policy, no post-processing). Loop pages: pages whose output has more than 1.5 times the reference word count or hit the token limit. The last two columns use the 271 pages on which no listed checkpoint looped (13 distinct pages; two of them loop under both the base model and the stage-2 checkpoint), so that they compare recognition quality without the loops. CIs: page bootstrap.
Table 11.
Training-stage ablation on the 284 evaluated benchmark pages: the checkpoints of the three stages of Table 1, run under the model-only protocol (same prompt, vLLM, bf16, greedy decoding, no retry policy, no post-processing). Loop pages: pages whose output has more than 1.5 times the reference word count or hit the token limit. The last two columns use the 271 pages on which no listed checkpoint looped (13 distinct pages; two of them loop under both the base model and the stage-2 checkpoint), so that they compare recognition quality without the loops. CIs: page bootstrap.
| Checkpoint | Training data | WER | CI pages | CER | Error-free | Loop pages | WER (271) | CER (271) |
|---|---|---|---|---|---|---|---|---|
| Qwen3-VL-8B (base) | – | 11.982 | [10.090, 14.079] | 5.476 | 2 | 6 | 10.382 | 4.317 |
| Stage 1 (v1) | synthetic only | 3.166 | [2.008, 5.191] | 2.031 | 73 | 1 | 2.265 | 1.103 |
| Stage 2 (v2) | + 476 real pages | 8.633 | [2.953, 16.219] | 6.186 | 95 | 8 | 2.375 | 1.412 |
| Stage 3 (v3b) | + 719 real pages | 1.419 | [1.039, 1.862] | 0.505 | 114 | 0 | 1.413 | 0.506 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.