pebble

Learning conversational humor

How do you reward a model for being funny in conversation?

Paper available on arXiv.

Conversational humor could make language models more engaging partners and help people work through frustration, ambiguity, and disagreement. A well-timed humorous response can acknowledge a difficulty, expose an inconsistency, or make competing perspectives easier to discuss.

Our goal was a model that could be good-humored in an ordinary conversation: notice an absurd detail, respond to teasing, or turn frustration into a joke while staying with a shared task. That raises a practical question: how can we reward humor without rewarding superficial substitutes?

What we tried

We set up simulated conversations between two models about shared office tasks. One participant sometimes joked, complained, or teased; the model being trained was asked to reply naturally.

We tested two ways to score humor automatically. One looked for replies that were surprising but still made sense. The other used a separate language model as an audience, measuring how likely it was to respond with laughter. The training reward also encouraged staying on topic and discouraged repetition.

How the rewards could be fooled

In controlled tests, shuffling the words of a reply could satisfy the surprise score as readily as a witty response. A fluency check caught the nonsense, but it also rejected some witty replies. We did not use that combined reward for training.

The audience score had a different weakness: adding laughter cues such as “Haha” could raise the score. Laughter in either participant’s messages affected it. Removing covered cues from both speakers’ text before scoring blocked those attacks, though some expressions still got through. These tests exposed shortcuts; they do not show that the trained model discovered every shortcut itself.

What changed after training

Across three training runs, we revised the reward and tested the results. The final run improved the combined evaluation score and reduced conversations scoring zero by 40%. Its humor-specific improvement still fell short of our target. The study does not establish that people would find the trained model funnier.

The broader lesson concerns automated rewards. A defense needs to do two things: stop the shortcut and preserve the behavior we wanted to reward. A better score is only useful if it still measures that behavior.

The paper

Comedic Fool’s Gold: Reward Exploits and Countermeasures in Conversational Humor
Sam Larson, Pebble ML.

arXiv:2610.00197 · Read the PDF · BibTeX

Project repository

Back to research