PenGPT: A Generative Transformer for Handwriting and Sketches
Web page · https://greydanus.github.io/2026/11/12/pengpt
First seen by Oriel on .
AI summary
PenGPT uses small, ordinary transformers to generate handwriting in unseen styles and prompt-conditioned sketches, with results driven mainly by large, carefully processed datasets rather than architectural innovations.
- The 6M-parameter handwriting model handles print and cursive, while the 54M-parameter drawing model generates sketches from SigLIP 2 prompt vectors.
- Training used 495,590 traced words from 1,255 writers and 477,670 sketches; quality filtering retained only one-third to one-half of candidate handwriting words.
- Pen strokes become grid-based directional moves, then BPE tokens; merging shortens sequences 3.2x but slightly worsens likelihood, while larger vocabularies and doubled model size add little.
- New handwriting styles require no fine-tuning: sequences contain up to four same-writer words, teaching the model to continue a style from several provided examples.
- The drawing model blends concepts but struggles with spatial binding and direction, while sampled handwriting reaches 54% exact OCR legibility versus 66% for real ink.
#transformers #handwriting generation #sketch generation #multimodal learning
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 399, latest observation ; +389 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 77, latest observation ; +77 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50637056 | https://greydanus.github.io/2026/11/12/pengpt/ Read discussion |