PenGPT: small transformer learns to write cursive and draw sketches
Researchers introduce PenGPT, a decoder-only transformer that generates pen strokes token by token, writing realistic handwriting and, in a larger variant, drawing sketches from text.
In plain words
PenGPT is a small AI model that learns to produce pen strokes — the sequences of pen positions behind handwriting and drawing. The authors built a simple tokenizer that treats strokes like a walk on a grid, then trained the model on a large merged set of sketch datasets. A 5M-parameter version writes cursive and print, while a 54M-parameter version draws sketches from text descriptions.
What was announced
The team, publishing on arXiv, merged ten public sketch datasets and filtered them for quality, yielding nearly 500,000 diverse line sketches for training. The smaller 5M-parameter model writes realistic cursive and print in many styles and can adopt the style of writers it has not seen before. Ablations of each recipe component showed that the gains come mostly from data and training setup: more data, augmentation, and training on several words at once mattered most, while a BPE vocabulary sixty times larger did not help.
The authors compared both models against recurrent networks in the style of Graves and of sketch-rnn, reporting that a simple GPT-style architecture trained on large amounts of high-quality data gave the best results. The findings are described in the paper's abstract, which presents the work as addressing pen strokes — an area the authors say has received far less attention than text and image generation.
What it does not show
- The evidence is the paper's abstract only; full results, figures and evaluation details are not available for verification.
- Reported comparisons with recurrent networks are the authors' own claims and have not been independently confirmed.
Sources
Source-support review completed 2 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 2 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.