PenGPT is a new generative transformer model designed to produce both handwriting and sketches based on text input. This project builds upon previous work that trained a small GPT to write cursive, expanding its capabilities to include multiple handwriting styles and drawing from text prompts.
The PenGPT system consists of two main models. A 6-million parameter model generates print and cursive handwriting and can learn the handwriting style of an unseen individual from a few sample words. The second model, with 54 million parameters, is dedicated to generating drawings from text prompts. Both models utilize the same tokenizer for handling handwriting and drawing data. For handwriting, the model receives text input, while for drawings, it uses a SigLIP 2 vector derived from a typed phrase.
A significant portion of the project, 80%, was dedicated to data acquisition and preparation. For handwriting, data was created from scans of 495,590 words by 1,255 writers, sourced from research collections and public archives. A vision-language model transcribed legible pages, which were then segmented into words, and InkSight traced these words into strokes. Approximately one-third to one-half of the processed words survived quality checks. The drawing dataset comprises 477,670 sketches from ten public datasets, including a selection of the top 0.5% from Quick, Draw!.
During training, comparisons were made with older approaches, and individual parameters were adjusted to observe their impact. Key findings indicated that data quantity and presentation were critical. Reducing the dataset size consistently degraded performance. Removing data augmentation caused the drawing model to fail in following prompts. Training on one word at a time also prevented the model from effectively picking up new handwriting styles, with style rank decreasing from 1.9 to 6.0.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
A new transformer model, PenGPT, has been developed to generate handwriting and sketches from text prompts. It includes a 6M-parameter model for print and cursive handwriting that can adapt to new styles, and a 54M-parameter model for generating drawings from text. The project emphasizes data quality and quantity as key factors in its success.