← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

PenGPT: A Transformer Model for Generating Handwriting and Sketches from Text

🔄 Updated 1d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • PenGPT uses a transformer to generate handwriting and sketches.
  • A 6M-parameter model handles handwriting, adapting to new styles.
  • A 54M-parameter model generates drawings from text prompts.
  • Data collection and preparation were 80% of the project effort.

Introduction to PenGPT

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.

Model Architecture and Capabilities

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.

Data Collection and Processing

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!.

Training Insights

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 →

The daily brief

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.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 26

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Primary sources

GitHub greydanus/pengpt

Reporting from

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.