Wayu Research × Paxa Labs · Technical report · Wayu-Paxa-OCR-Zero
How far can synthetic data take Thai OCR?
Thai has documents everywhere and almost no OCR labels, and the pages worth reading are the ones you least want to send to an API. So we built the supervision instead: 45,723 pages reconstructed from public English documents and rewritten in Thai. Wayu-Paxa-OCR-Zero is a 0.9B recognizer trained on nothing else — median character error 6.64% → 1.24% on printed pages and 74.87% → 20.55% on handwriting against the checkpoint it started from.
Thai OCR reads well — until your constraints show up.
Cloud models read Thai well — well, not great — and only from their own servers. Open models read English and Chinese well and run wherever you put them, but were never taught Thai. Closing that gap yourself hits the same three walls every time: the deployment has to stay local, the customer pages cannot be used, and someone has to pay for every label. The intersection — open, local, good at Thai — is nearly empty, and the reason is labels, not architecture.
The cloud reads Thai
Gemini, GPT and the rest, right now.
Good atlayout, tables, every script — the strongest Thai reading here, and still 11.29 median CER on handwriting
Needsthe document to leave your machine, once per page, forever
Costa per-page bill, and a conversation about what you just uploaded
Open OCR arrived
PaddleOCR-VL, GLM-OCR, Unlimited OCR.
Good atEnglish and Chinese pages, cheaply, on hardware you own
Needsa GPU — or just a laptop, for the quantized builds
CostThai was not in the recipe: the base checkpoint we started from scores 74.87% median CER on Thai handwriting
Thai is label-poor
Documents everywhere, ground truth nowhere.
HasTyphoon OCR, the open Thai frontier — and pseudo-labels that drop characters and reorder marks
Needspage-level Thai labels that are actually correct
Costmanual correction, or a corpus of real documents you may not be allowed to keep
Thai does not transfer from English or Chinese pretraining: no spaces between words, vowels and tone marks stacked above and below the line, combining marks that a PDF text layer will scramble. Documents are abundant; reliable labels are not. PDF extraction and OCR pseudo-labels omit characters, reorder combining marks and corrupt reading order, and manual correction is expensive enough that open Thai OCR datasets stay small.
The pages worth digitising are also the sensitive ones — personnel files, patient forms, invoices, contracts. Under Thailand’s PDPA they are personal data before they are training data, so collecting and labelling a few hundred thousand real pages is a governance problem, not only a budget one. Running the model locally does not answer it; the training corpus still came from somewhere. Synthetic pages do: the label is exact because you rendered it, and if no real Thai page is ever a source there is no collection to govern. That is what this work calls Zero.
Typhoon OCR defines the open Thai frontier: its 2B v1.5 model is state of the art for Thai, built from traditional OCR, VLM restructuring and curated synthetic data. It establishes that Thai-specific adaptation pays. It does not isolate which part of that synthetic supervision did the work.
Four real pages
What it actually reads.
Four public Thai documents, read by the released model. Output shown exactly as it came back.
Released weights · sampled decoding, temperature 0.1 · top-p 0.7 · repetition penalty 1.05pick a document
Show
Just want the model?
Wayu-Paxa-OCR-Zero
0.9B · Thai and English · Apache-2.0 · a region recognizer — the PaddleOCRVL pipeline pairs it with PP-DocLayoutV3
It does — Indic layouts, Manchu word images, Arabic reconstruction, degraded historical scans. But each varies layout, background, typography and training granularity together, leaving “more realistic” as one knob with an unknown mechanism inside it.
Realism is not one property. A synthetic page has a source domain, a non-text context (photographs, rules, seals, scan noise), a typeface distribution, a two-dimensional arrangement of regions, and — for handwriting — a source of strokes. Each can be made realistic on its own, at very different cost: keeping a page’s background is free; building a bank of real handwritten glyphs is a project in itself.
The scientific question
Which properties of synthetic documents actually cause transfer to real Thai OCR?
How Far Can Synthetic Data Take Thai OCR? · Wayu Research × Paxa Labs
The instrument
Reconstruct a real page, one property at a time.
Generating pages from scratch means inventing a layout distribution. We do the opposite: take a document that exists, erase its text pixels, render a Thai label back into the same regions. Everything else stays — and each property can be switched off on its own.
Controlled reconstruction · the same page under each removalstep through it
Each source page arrives with annotated text regions, categories and reading order. For a Thai source we keep the region’s own OCR label; for a non-Thai source we translate it into Thai. We inpaint the source text, shape the label with HarfBuzz, sample a typeface and size independently of the source, and shrink until it fits its original box; a page that still overflows at the minimum size is rejected. The label is exact by construction.
Every variant is trained twice: once as a page-level model that reads the whole document image, once as a crop-level pipeline that reads one region at a time. Both use Qwen3-VL-2B-Instruct, so only the data differ.
Each is scored on three sets: Heldout, 301 real printed Thai pages; Handwriting, 200 photographed study-notebook pages, one per writer; and Easy Handwriting, 200 from the legible end of the same population. Every number below is a per-page median CER in percent, lower better.
What we learned
Four findings, and none of them is “add more realism”.
Same instrument each time: identical labels, regions and reading order, one property changed. The charts are the paper’s tables — pick a regime and an evaluation set.
Finding 1 · source-property ablation, removals are cumulativemedian CER, lower is better
Training
Evaluated on
Finding 1
Visual realism is not one thing.
Removing non-text context does almost nothing: across three evaluation sets and both regimes the median moves by at most 1.62 points, in no consistent direction.
Removing font diversity is the first consistent loss, and it lands on handwriting: +6.70 and +9.48 median points page-level, +11.36 and +13.37 crop-level, against +0.56 and +2.15 on printed pages.
Flattening the two-dimensional layout costs more handwriting in both regimes, and for the crop pipeline printed pages too — Heldout 7.01 → 9.60 — while the page-level model stays at 5.07.
For a generator: skip photoreal backgrounds, spend on typeface coverage and a two-dimensional page.
Finding 2 · out-of-domain vs in-domain reconstructionmedian CER, lower is better
The renderer picks typeface and size independently of the source, so line breaks move. Everything else — the letterhead, the seal, the paper — is the source page’s.
Finding 2
Domain matching is conditional, not universally good.
In-Domain Synthetic reconstructs real Thai printed pages: erase the Thai text, render the page’s own OCR label back into the same boxes, keeping its layout, typeface distribution and scan noise. Page-level that is a large win — Heldout 5.07 → 1.82, handwriting 43.99 → 36.27.
Crop-level it reverses: 5.52 → 15.59 on Heldout, and worse on both handwriting sets. The recognizer never sees the page, but that alone does not explain a threefold difference; the cause is unresolved.
Wayu-Paxa-OCR-Zero is crop-level, so out-of-domain English sources are the better choice for it — and they are what makes “no real Thai page” possible.
Finding 3 · reconstruction against real supervision, page-level, printed HeldoutCER, lower is better
Aggregate
Finding 3
Synthetic print nearly substitutes for real printed supervision.
On printed Thai, page-level, reconstruction gets within half a point of real labels: 1.82 median CER for In-Domain Synthetic against 1.31 for Real Thai (Print), with Out-of-Domain Synthetic at 5.07 and untuned Qwen3-VL-2B-Instruct at 14.47.
Under the character-weighted mean the gap widens — 9.79 against 16.20 and 16.90. The typical page is nearly as good; a few pages fail much harder. The tail is where synthetic supervision still shows.
Finding 4 · where the strokes come frommedian CER, lower is better
Training
Evaluated on
Printed typeface
sampled from the measured Thai profile
+ handwriting typefaces
rendered outlines · one shape per character
+ real glyph instances
sampled ink · a different shape each time
+ handwriting typefaces · the same two lines, magnified
+ real glyph instances · same lines, same labels, different ink
Same OCR label, same regions, same ink height and colour. Only the source of the strokes changes — which is what makes the comparison mean something.
Finding 4
The gap is handwriting — so we rendered real ink.
Adding real Thai handwriting to training takes handwriting CER to 26.05, which no synthetic set reaches. A handwriting typeface only half-closes it: every “ก” on the page is the same outline.
The glyph bank breaks that. From line images in the iApp Thai Handwriting Dataset and our handwritten training split, a class-agnostic detector proposes 5,698,871 candidates; alignment, classifier confirmation and shape filters cut it to 534,404; VLM verification to 12,090; a per-class cap with round-robin over writers leaves 5,953 instances across 76 character classes. On a redrawn page 96.3% of Thai characters come from the bank, each sampled independently.
Handwriting typefaces take page-level handwriting 43.99 → 38.65 and Easy Handwriting 38.90 → 34.84; real glyph instances reach 37.91 and 30.66, and 39.97 / 35.66 crop-level. Since only the source of the strokes differs, that gain is glyph variation itself. On printed pages the page-level model drifts up (5.07 → 5.89 → 6.41) while the crop pipeline improves (5.52 → 4.51 → 4.34).
The gap to real handwriting supervision does not close: 37.91 against 26.05. Whether a bank larger than 5,953 instances closes it is untested.
From findings to a recipe
Four findings, one training set.
Keep the page whole, sample fonts from a measured profile, take out-of-domain sources because the recognizer is crop-level, and spend the difficult effort on ink.
The corpus
Every page is generated from public English document collections and rewritten in Thai. Region annotations and labels come from reconstruction outputs, source annotations, or known template and field strings.
Subset
Pages
Source documents
Text rendering
Base synthetic
39,534
DocLayNet, Crello, PubTabNet
rendered fonts; the 7,131 handwriting pages also appear as real-glyph copies
Handwriting
3,999
DocLayNet-v1.2 pages disjoint from the base set
3,000 pages with stitched glyph instances, 999 with pasted iApp Handwriting Dataset crops
Forms
2,190
CommonForms templates, widget counts matched to real Thai forms
stitched glyph instances in every field value
Total
45,723
The training run
A full fine-tune of every parameter of PaddleOCR-VL-1.6, vision tower included — one epoch, learning rate 3×10⁻⁵ cosine with 0.03 warmup, effective batch 16, bf16, sequence length 16,384. At inference PP-DocLayoutV3 supplies the regions.
The model
Same architecture, same size, different data.
Median CER falls by 73–81% across the three internal sets against the base checkpoint, and the character-weighted mean falls on all three. The architecture is fixed, so that comparison is causal.
Five benchmarks, five systems · CER in percent, lower is betterpick a benchmark
Aggregate
System
Heldout
Handwriting
Easy HW
ThaiOCRBench
SEA-DocBench
Med.
Mean
Med.
Mean
Med.
Mean
Med.
Mean
Med.
Mean
PaddleOCR-VL-1.6 (0.9B, base)
6.64
27.60
74.87
67.90
73.74
69.41
38.0
43.3
8.87
18.54
Wayu-Paxa-OCR-Zero (0.9B)
1.24
14.75
20.55
22.28
14.18
17.08
15.3
25.6
4.86
9.99
Typhoon OCR (7B)
2.54
18.27
43.60
49.36
34.99
45.06
30.6
44.7
9.22
17.57
Typhoon OCR 1.5 (2B)
0.21
5.47
19.36
21.86
9.02
15.74
6.2
16.8
5.81
12.80
Gemini 3.7 Flash
0.00
3.56
11.29
15.04
3.89
7.64
0.9
3.8
5.51
10.62
It reads Thai better than the 7B Typhoon OCR on all three internal sets and on both external benchmarks, and approaches Typhoon OCR 1.5 (2B) on handwriting with fewer than half the parameters. Typhoon OCR 1.5 stays ahead on Heldout, Easy Handwriting and ThaiOCRBench; Gemini 3.7 Flash is strongest on the internal sets and on ThaiOCRBench. On SEA-DocBench’s clean Thai subset it has the lowest CER of the evaluated open systems and is slightly ahead of Gemini 3.7 Flash.