PenGPT generates handwriting and sketches from text with small transformers
Original title: PenGPT: A Generative Transformer for Handwriting and Sketches
A 6M-parameter model copies unseen hands from a few words; a 54M model draws from SigLIP 2 embeddings.
Sam Greydanus describes PenGPT, two decoder transformers that emit pen strokes as short move tokens. Handwriting training used 495,590 words by 1,255 writers reconstructed from scans; drawings used 477,670 sketches from ten public datasets. Ablations found data volume and augmentation mattered more than BPE merges, pen position, or doubling parameters. The datasets are not released; an appendix explains how to rebuild them.
- Handwriting data came from research collections plus public letters and diaries.
- Between a third and a half of traced words survived quality checks.
- Quick, Draw! contributed the best 0.5% of its 50 million sketches.
- Style rank fell from 1.9 to 6.0 when each sequence held one word.
- Displayed drawings were picked by eye from the best third of samples.
From the original article
8 min read at greydanus.github.ioA small transformer that writes and sketches from text. The effort was 80% data, 15% speed and 5% architecture: my first project that follows the Bitter Lesson. Left.
By smusamashah · greydanus.github.io
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.