Knock knock. Who’s there? An AI that’s learning to understand jokes
Think artificial intelligence has no sense of humour? Researchers have developed a new way to teach machines what makes a joke funny, and their approach has helped an AI model outperform non-expert humans at picking the better cartoon caption.
The research team, led by scientists from Koç University in Turkey, worked with Bob Mankoff, a cartoonist and former cartoon editor of The New Yorker, to teach AI models how to interpret visual humour. Instead of simply asking machines to identify the funniest caption, the researchers trained them to understand the unexpected connections and wordplay that make a joke work.
The best-performing model correctly predicted which of two competing cartoon captions readers preferred 76.1% of the time. That was higher than the 65.6% average accuracy achieved by non-expert human participants. An AI model without the specialised training managed just 55.6%.
The findings were presented in a paper titled Learning to Think Like a Cartoon Captionist: Incongruity–Resolution Supervision for Multimodal Humor Understanding, published in the proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing (EMNLP).
Researchers want AI to understand why a joke works
The approach, called Incongruity–Resolution Supervision (IRS), draws on a theory from cognitive science that explains how humour often works. A joke creates an unexpected situation, then gives the audience a way to reinterpret it that makes sense in a surprising way.
Consider a cartoon featuring a giant amoeba taking up a seat on an airplane. The humour comes from applying an everyday passenger complaint about limited legroom to a microscopic, single-celled organism. A caption making a joke about the amoeba needing to buy two seats connects the biological meaning of ‘single-celled’ with an airline’s seating rules.
The researchers broke this reasoning into three stages: identifying something unusual in an image, finding a meaningful and humorous interpretation, and judging which caption people are more likely to find funny.
The team used material from cartooning books, caption-writing guides and professional cartoonists’ discussions to train the models. It also used reinforcement learning to reward explanations grounded in visual details, wordplay, metaphors and punchline placement.
Can AI really understand humour like humans?
The results suggest that teaching AI how humour works can improve its performance without simply making the model bigger. The researchers also found improvements on two additional humour benchmarks, YesBut and DeepEval, without further training on those datasets.

However, there is a catch. Predicting which caption people prefer does not necessarily mean an AI understands humour as a human does. The models can still misread images, miss cultural references, and produce convincing explanations based on incorrect assumptions.
The researchers also acknowledge that their training material is largely rooted in English-language and American humour. Whether the approach works across different languages and cultures remains an open question.
For now, AI may be getting better at explaining the punchline. Whether it can genuinely appreciate the joke is another matter.






