PenGPT: A Generative Transformer for Handwriting and Sketches

(greydanus.github.io)

135 points | by smusamashah 3 hours ago

16 comments

  • samgreydanus 2 minutes ago
    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

  • keyle 2 hours ago
    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

    • stingraycharles 1 hour ago
      As the saying goes, “more data beats clever algorithms, but better data beats more data”.
    • eli_gottlieb 21 minutes ago
      So I'm guessing it's gonna take another major stock-market crash before anyone gives half a damn about learning from small data again?
  • fraywing 40 minutes ago
    "Stroke tokens" stood out to me
  • Tadpole9181 1 hour ago
    The project is impressive, but I've really wondered why so many of these types of blogs are Claudish. Just running it through another SOTA model or two, then reading yourself can clean things up. Compared to the work of the project itself, this seems comparatively painless, but is so often neglected.
    • mwillis 1 hour ago
      Huh. It read 100% human to me.
      • gyomu 1 hour ago
        Then you’re heavily miscalibrated, the whole page is replete with Claudisms (except for the conclusion)

        “Here are the rows I found most interesting; the paper has the rest.”

        “The drawing model blends but doesn’t bind.”

        “Cut the data and everything gets worse. Drop augmentation and the drawing model stops following its prompts entirely”

        • mk12 39 minutes ago
          "Everything else is a plain decoder that cross-attends to what it's told."

          (In Claudeland abstract concepts constantly "say" and "tell" things.)

          • dofm 17 minutes ago
            I recently went looking for linguistics terminology that describes this and found that it is often described as something like: pairing animating verbs with inanimate subjects.
    • gyomu 1 hour ago
      Because people who make these things understand only a fraction of it, and are incapable of describing the details of what they did in their own words; so they resort to Claude for the write up too.

      It truly is cringe inducing but a majority of people seem to not care much, given how widespread this is in blog posts/marketing copy/etc.

    • abound 1 hour ago
      [dead]
  • seantang001 1 hour ago
    Seems like for some input it stops prematurely.

    For example, `!2/23\4/5.4;3;5l=3asfa913k391aslkf9a'a;s.":>"}+-=;.a`

  • alanwreath 2 hours ago
    Interesting, it doesn’t handle Spanish well at all (try Spanish “teach me”: enséñame), that said would be interesting to contribute to other languages.
  • jimbobbam 2 hours ago
    Oh this is great! I’ve been working an app to teach handwriting with Rokid glasses. I’ll give it a shot
  • charcircuit 2 hours ago
    It bothers me how it doesn't know the proper strokes for cursive characters.
  • wat555 2 hours ago
    Very cool! Not so good at drawing a pelican riding a bicycle
  • k2xl 3 hours ago
    Amazing this fits in 50MB.
    • tarpitt 1 hour ago
      Imagine sending this program back in time to 2006 or something. It could probably run on a computer from back then. It's amazing how all of these advances are just software advances that could have been realized decades ago if we poked around the right places.
  • asa123 2 hours ago
    Neat!
  • mindmaster098 1 hour ago
    very impressive
  • Alex5758 53 minutes ago
    [flagged]
  • Xinti 3 hours ago
    [flagged]
  • cush 1 hour ago
    I wonder if this model would have performed better if it wasn’t trained on awful 2000’s handwriting.