PenGPT learns a stranger's handwriting from just a few words

PenGPT: A Generative Transformer for Handwriting and Sketches

PenGPT learns a stranger's handwriting from just a few words

A 6M-parameter transformer writes print and cursive and picks up the hand of a writer it has never seen from one to three real words; a 54M-parameter sibling draws from typed prompts. The author rebuilt the handwriting data from 495,590 scanned words by 1,255 writers and 477,670 public sketches, then ablated the design. Data and augmentation carried the result; the clever tokenizer and extra parameters barely moved it.

The BPE merges I was proud of make the score slightly worse; they buy speed (sequences are 3.2x shorter) and that's all.

More from this day

2026-11-25