PenGPT: A Generative Transformer for Handwriting and Sketches(greydanus.github.io)
395 points by smusamashah 5 days ago | 77 comments
tl;dr: PenGPT is a small transformer (6M params for handwriting, 54M for sketches) that tokenizes pen strokes on a grid with BPE, enabling it to mimic 1,255 writers' handwriting—including unseen hands from just a few sample words—and draw from text prompts via SigLIP embeddings. Ablations show the gains came almost entirely from data quality/scale and training setup rather than architectural cleverness: doubling parameters, adding pen-position info, or expanding vocabulary barely moved the needle. The author frames it as his first real embrace of the Bitter Lesson, with 80% of effort spent on dataset construction.
HN Discussion:
  • ↑Resonates with the Bitter Lesson takeaway, admitting to over-engineering instead of focusing on data
  • ↑Author reinforces that prioritizing data over architecture was the key insight
  • ~Notices artifacts like wobbly straight lines revealing model limitations
  • ~Enjoys playing with the demo but notes it struggles to compose concepts together
  • •Asks about multilingual extensibility and retraining requirements