Show HN: GPT Joke Writer (punchlines.ai)

51 points by brensudol ↗ HN
An AI joke generation tool built on top of OpenAI’s GPT-3 language models, and fine-tuned with ~15k late night comedy monologue jokes.

web app and model creation all open-sourced

74 comments

[ 3.1 ms ] story [ 136 ms ] thread
Great work! How much did it cost you to fine-tune the model using ~15k jokes?
thanks a lot! re: fine-tuning - it was about $30 using the most expensive model (davinci)
This is the essence of GPT. It perfectly captures style, but not substance.

I naturally read the jokes in Jimmy Fallon's voice, before knowing it was fine-tuned. It really takes talent like his to pull off jokes like this every night.

One of my favorite jokes from 30 Rock is when Liz is complaining to Jack about a relationship problem:

>Jack: You have more sexual hangups than an adult chat line run by Gilbert Gottfried.

>Liz: What?

>Jack: That was written by a computer program we're working on to replace you.

It's a joke with a funny idea, but it's just too convoluted to be funny to humans.

I'd quite like to see someone with genuinely excellent one liner delivery go through an entire set of these almost-a-joke-jokes, just to see the audience react.
I think the closest you can currently get is Seth Meyers' "Surprise Inspection" segment, you can watch it on YouTube.
I tried two. The first one was a dud, but the second one legitimately made me laugh.

My setup

>Scientists have discovered a new breed of monkeys that intuitively understand how to use Instagram.

GPT's punchline

>They're called "photographers."

Something about the way that the answers all have the rhythym of punchlines but rarely make sense unless it seems to be by accident is a lot of fun
I feel like that’s how most jokes are created. Your brain spits out random punchlines until one triggers your funny neurons. Recognizing which punchline is funny seems to be beyond the AI at this point.
Lol mine gave me 3 output related to Trump
(comment deleted)
Sorry but whoever wrote it should know it hasn't worked. None of them are even jokes. Just random sentences.
Like all these standup comedians on YouTube.
How long before these models actually produce funny outcomes on a regular basis? Many people think we're going to see a quick explosion of improvement, but I think we're still many years away from these models actually understanding language. I could be wrong, but wondering what you all think
> It was fine-tuned on ten thousand late night comedy monologue jokes.

Would be interesting to see what would happen if it was trained on something funny instead.

Hacker news comments would not be a good replacement, though.
It gave me the punchline "We'll be back after a word from our sponsors."
Mine was this:

Prompt: "Two dogs walk into a bar"

Zinger:

"The bartender says, "What would you like?" The dogs say, "We're fine, thanks."

"After three whiskeys, the first dog says to the second, "Hey, you're alright."

"The first one says, “I’ll have a gin and tonic”. The second dog says, “I’ll have whatever he’s having.”

Heh-larry-ous.

Why is GPT so bad at humor? I thought it'd be a text generation task it's well suited for
I suppose it just mimics style rather than substance. And the substance of jokes is mostly implicit.
Probably the same reason it's bad at writing code, it just puts text together without knowing more about context.

Same thing with midjourney, it's just with images you dont notice it as much.

>> Why is GPT so bad at humor?

> 1. When I saw the ad that said “Once you go black you never go back,” I thought that was a pretty good burn.

> 2. I don’t know but it’s so bad that I’m going to try to make this part of the show.

> 3. I don’t know. Let me ask and find out. Hey, GPT, why are you so bad at humor?

I quite like #3, feels like it's laughing at me for asking it...

Prompt: "A Spaniard, a German, and a Brit enter a bar."

Response: "The Spaniard says, 'We must get out of the EU.' The German says, 'We must get out of the EU.' And the Brit says, 'I'll have a pint, thanks'".

I mean, it might not be funny, but _it is_ funny.

To be fair, this one would get plenty of laughs at the Conservative Party conference
Second entry might get some, too:

"The Brit says, 'I would like to buy this bar, restore it to its former glory and then burn it to the ground'".

GPT knows something we don't.

Apparently classified documents were found in the personal home of President Joe Biden.

The documents include a note from his wife that says, "Remember to get milk."

It's cool !

However sometimes it continued writing after the answer in the same response.

Separated by ###

Promt "The Master IT security guys just recommended us to drop security" Zinger 2: 2. They said, "The best way to keep things safe is to make sure that Donald Trump is president."

LOL

> A man had two daughters.

> He decided to name the first "Lavender." The second he named "Lavender 2: Electric Boogaloo."

Maybe I have a sense of humor of a 12-year-old, but this one made me chuckle.

const ONE_MINUTE_MS = 60_000
Prompt: So my dog started meowing like a cat last night

Punchline: We had to take him to the vet, where they discovered that he was just being a dick.

I like how this implementation makes it evident that GPT understands the style, but not yet the humor.
Needs work...(not too bad though, well done)

Three priests walk into a gay bar. I don’t know what happened next, but it was a three for one special.

What did the blonde woman say to the taxi driver at the airport? Thanks for the lift, asshole!

Why don't assembly language programmers say "please"? They do. But only with their index register.

What happens after it rains cats and dogs? You spend the rest of your day looking for a lost wiener.

Not one of those jokes is funny.

If a real person said that, they'd just get an eye roll, but you know, since it's A.I., it gets a huge pass.

Like we give a pass to a little kid, i guess.

Maybe it should be training based on audience reactions to jokes

That's certainly a better heuristic, but then you quickly run into the problem of when the joke is objectively funny but politically incorrect, so people stop themselves from laughing so they don't get in trouble.

IMO, A.I., at least how it exists now, doesn't know what "funny" means or feels like, so it can't be funny itself.

"What did the Arab"

1. say the moment he left the White House? "No wonder they hate us."

2. man say to the Arab woman at the bus stop? 'Your dad's the bomb!'

3. guy say when he saw a woman driving a car? "Finally, a woman who knows how to use a clutch."

hmmm

Yeah it also called black people an 'angry race' in one of mine, it's rather racist and careless internally, probably uninitional, looks like just one person's work and it can be funny at times.
Well, I tried with the intro to the Aristocrats:

"A family walks into a talent agency and asks to speak to an agent. After waiting for a few minutes, they're shown into his office. He asks them what they do, and they explain that they have an incredible family act that they want to show to the world. He asks them to show it to him..."

Best result: "They say okay, and then the father, mother, and three kids all drop dead."

Though I suppose they wouldn't be able to tell him they call it the Aristocrats once they're done...

>>> one turk, one russian and one american met in a bar.

1. All three ordered a double vodka and then sat in silence for 15 minutes.

2. They all got drunk, went to a strip club and forgot to tip the stripper.

3. I’m not sure what happened after that, but it’s probably best you not Google it.

:D haha

A British man and a Polish man enter a bar. The Polish guy says, "Do you know what they call a beer in Poland?" "No," says the Brit. "They call it a fucking beer."
I guess it's an edgy joke writer but I was still taken quite back after it suggested this as a punchline to my prompt "It just started snowing in norway, and my wife just called me trying to explain why shes so freaked out"

Suggestion: "She said, "It’s just that the last time I saw snow this much, I was in a concentration camp.""