PenGPT: A Generative Transformer for Handwriting and Sketches
|
Researchers developed PenGPT, a small transformer model that can generate both handwriting and sketches by learning from text prompts and mimicking individual writing styles from just a few sample words. The model uses a simple tokenization approach based on pen movements on a grid, combined with large datasets of handwritten words (495,590 words from 1,255 writers) and sketches (477,670 images), with the breakthrough insight that success came primarily from data quality rather than architectural innovations. The 6M-parameter version handles handwriting in multiple styles while the 54M-parameter version generates drawings from text descriptions.