PenGPT: A Generative Transformer for Handwriting and Sketches

309 points - today at 12:54 AM

Source

Comments

keyle today at 2:21 AM
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

samgreydanus today at 4:49 AM
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

jlarks32 today at 11:23 AM
Sam is a ripper. Lovely blog post. Good to see his name float back up.

When I was a senior in college working on my eng thesis [1], some of his earlier posts (Scribe: Generating Realistic Handwriting with TensorFlow [2]) were helpful and inspiring to read.

[1]: https://johnlarkin1.github.io/pdfs/Handwriting-Synthesis-E90...

[2]: https://greydanus.github.io/2016/08/21/handwriting/

NitpickLawyer today at 8:57 AM
It's cool, and on the face of it looks impressive (there's a lot of diversity in styles) but I noticed a "tell" that once you see it, is really obvious. Lots of straight lines (Is, Ls, Fs, As, Ms, etc) have wobbles in them that look artificial. There's something about lines that this didn't capture correctly (or oversampled from someone with wobbly lines).
thrance today at 1:30 PM
I don't know how I should feel about the fact that pushing the "neat/loose" cursor all the way to "loose" still outputs something prettier than my own handwriting.
andai today at 8:10 AM
Wow. Don't forget to try the Draw mode, artificial doodles!

It can do penguins, pelicans (kinda), and bicycles, but pelican on bike makes it generate bizarre semi-abstract art. Looks like it doesn't know how to combine things together.

That's so cool, and a lot of fun to play with.

Tadpole9181 today at 3:10 AM
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.
LytraX today at 7:57 AM
How would this made posible to write in other languages? Would it have to re-trained on real hadwritten papers on other languages or it could adopt to other languages glyph shapes?
SebastianSosa today at 5:11 AM
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.
gouterz today at 6:33 AM
i really love this. i think there's something fun and refreshing in seeing human writing and drawing for some reason
lastdong today at 8:19 AM
Really neat. Also makes it easy to add your own handwriting and drawings.
yasindce1998 today at 7:10 AM
When I first heard the name. I thought it's for penteration testing.
alanwreath today at 2:26 AM
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.
seantang001 today at 2:53 AM
Seems like for some input it stops prematurely.

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

wat555 today at 2:29 AM
Very cool! Not so good at drawing a pelican riding a bicycle
deleted today at 4:23 AM
jimbobbam today at 2:31 AM
Oh this is great! I’ve been working an app to teach handwriting with Rokid glasses. I’ll give it a shot
Aeroi today at 5:48 AM
this is so cool! the drawing feature is so fun for some reason, although I wish it was just ever so marginally better or smarter. its right there.
k2xl today at 1:50 AM
Amazing this fits in 50MB.
ex1fm3ta today at 4:53 AM
Very nice congratulations. Long road since the first MNIST dataset. This project is useful for me since I am building an OCR model to properly parse hand written posologies. I already have all the data I needed, I could use this to generate synthetic data to strenghten my model.
fraywing today at 4:10 AM
"Stroke tokens" stood out to me
charcircuit today at 2:21 AM
It bothers me how it doesn't know the proper strokes for cursive characters.
asa123 today at 2:15 AM
Neat!
mindmaster098 today at 2:55 AM
very impressive
Alex5758 today at 3:58 AM
[flagged]
Xinti today at 1:44 AM
[flagged]
cush today at 2:58 AM
I wonder if this model would have performed better if it wasn’t trained on awful 2000’s handwriting.