PenGPT learns a stranger's handwriting from just a few words

PenGPT: A Generative Transformer for Handwriting and Sketches

PenGPT learns a stranger's handwriting from just a few words

A 6M-parameter transformer writes print and cursive and picks up the hand of a writer it has never seen from one to three real words; a 54M-parameter sibling draws from typed prompts. The author rebuilt the handwriting data from 495,590 scanned words by 1,255 writers and 477,670 public sketches, then ablated the design. Data and augmentation carried the result; the clever tokenizer and extra parameters barely moved it.

The BPE merges I was proud of make the score slightly worse; they buy speed (sequences are 3.2x shorter) and that's all.
  1. keyle

    The most interesting part to me is this mention of the Bitter Lesson [1]

    "The results are interesting and the project was a pleasure to work on. And yet there was no clever architectural idea behind it. About 80% of my effort went into building the biggest, cleanest datasets possible and doing lots of quality control on them."

    I spend way too much time on trying to out-clever existing solutions, when a clean application of known approaches would serve best.

    [1] http://www.incompleteideas.net/IncIdeas/BitterLesson.html

  2. samgreydanus

    Author here! Given that I only trained these on an 8xH100 it's not exactly the most spectacular illustration of the Bitter Lesson. All I can say is that historically I always wanted to impress people with better model architectures or training techniques.

    This time I just put all my energy into data. Agentic workflows + good open weight vision models + cheap multimodal AI APIs make data quality filtering / caption generation really smooth

  3. yasindce1998

    When I first heard the name. I thought it's for penteration testing.

  4. SebastianSosa

    This is amazing. I've been building a presentation model and will definitely be digging deep into this.

    I feel like graphical real-time presentation is an essential part of learning and transferring knowledge and it's completely missed by existing models.

  5. gouterz

    i really love this. i think there's something fun and refreshing in seeing human writing and drawing for some reason

More from this day

2026-11-25