PenGPT: A Generative Transformer for Handwriting and Sketches
195 points by smusamashah 7 hours ago | 33 comments

keyle 6 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

reply
stingraycharles 5 hours ago
As the saying goes, “more data beats clever algorithms, but better data beats more data”.
reply
eli_gottlieb 3 hours 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?
reply
samgreydanus 3 hours 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

reply
yasindce1998 18 minutes ago
When I first heard the name. I thought it's for penteration testing.
reply
SebastianSosa 3 hours ago
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.
reply
gouterz 55 minutes ago
i really love this. i think there's something fun and refreshing in seeing human writing and drawing for some reason
reply
Aeroi 2 hours ago
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.
reply
Tadpole9181 5 hours 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.
reply
samgreydanus 3 hours ago
Author here.

The post text (except the conclusion) was written entirely by Claude.

All my other posts are handwritten. I wish I had written it by hand, and I apologize for doing it this way. I did put a lot of effort into the code/dataset/ablations/figures.

All I can say is that I HAD to get this post up in time. Won't do it that way in the future (and might go back and rewrite in my style over Christmas break) :)

reply
gfaure 2 hours ago
The post text, yes, but the paper was almost entirely Claudish, which I found particularly hard to read in my search for implementation details.
reply
pickledish 2 hours ago
I appreciate your transparency about it!

Using Claude + being honest >>> using Claude + pretending you didn't at least (and FWIW I didn't find it too offensive here either)

reply
mwillis 4 hours ago
Huh. It read 100% human to me.
reply
gyomu 4 hours 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”

reply
mk12 4 hours ago
"Everything else is a plain decoder that cross-attends to what it's told."

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

reply
dofm 3 hours 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.
reply
gyomu 4 hours 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.

reply
samgreydanus 3 hours ago
Author here. This is the first time I wrote the body text with Claude. It was a misjudgement and I apologize. Won't do it that way in the future (and might go back and rewrite in my style over Christmas break)

I did put a lot of effort into the code/dataset/ablations/figures. And for what it's worth, if you look at the rest of the work on my blog (including work from before LLMs existed) you will see that I have been competent at building these kinds of models for years.

reply
leobg 2 hours ago
I don’t get the complaints.

Yes, LLM text may indicate that an author who didn’t take the time to do the writing also didnt put much effort into the project itself. But that is, if anything, a rule of thumb, and it is proven wrong here by the results.

In my view, it’s much better that you spent your limited time on the building rather than on the writing. If yiu had waited for Christmas, who knows if you had posted it at all, with life and new ideas getting in the way. It’s better that it exists than it be certified Claude free, in my view.

Thank you for the post!

reply
lukan 2 hours ago
"Because people who make these things understand only a fraction of it ... It truly is cringe inducing"

Cringe to me are rather shallow dismissals of whole projects, while I never see anything amazingly humanly hand crafted from them (and given away for free).

reply
abound 4 hours ago
[dead]
reply
alanwreath 6 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.
reply
seantang001 5 hours ago
Seems like for some input it stops prematurely.

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

reply
jimbobbam 5 hours ago
Oh this is great! I’ve been working an app to teach handwriting with Rokid glasses. I’ll give it a shot
reply
fraywing 4 hours ago
"Stroke tokens" stood out to me
reply
charcircuit 6 hours ago
It bothers me how it doesn't know the proper strokes for cursive characters.
reply
muqsitnawaz 5 hours ago
[flagged]
reply
ex1fm3ta 3 hours ago
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.
reply
k2xl 6 hours ago
Amazing this fits in 50MB.
reply
tarpitt 5 hours 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.
reply
mitthrowaway2 60 minutes ago
Yeah. If we sent it back in time to the University of Toronto in 2013 it might look like this: https://www.cs.toronto.edu/~graves/handwriting.html
reply
wat555 5 hours ago
Very cool! Not so good at drawing a pelican riding a bicycle
reply
asa123 6 hours ago
Neat!
reply
mindmaster098 5 hours ago
very impressive
reply
Alex5758 4 hours ago
[flagged]
reply
Xinti 6 hours ago
[flagged]
reply
cush 5 hours ago
I wonder if this model would have performed better if it wasn’t trained on awful 2000’s handwriting.
reply