Researchers are using cartoons to teach AI about humor

Researchers taught AI to analyze the mismatch and resolution behind cartoon jokes, helping it predict caption preferences more accurately.

Joseph Shavit
Shy Cohen
Writer: Shy Cohen/
Editor: Joseph Shavit
Add as a preferred source in Google
Illustrative scene of a cartoonist and an AI system analyzing the visual details and unexpected connections behind a humorous caption.

Illustrative scene of a cartoonist and an AI system analyzing the visual details and unexpected connections behind a humorous caption. (CREDIT: The Brighter Side of News)

Artificial intelligence can describe a cartoon, read its caption and compare words with an image. The harder task is explaining why one caption works while another falls flat. Humor often depends on subtlety in meaning, a cultural reference or a connection that is obvious only after the joke has been understood.

Researchers from Koç University and Hacettepe University have developed a training method aimed at that gap. Working with cartoonist Bob Mankoff, a former cartoon editor at The New Yorker, they taught AI models to analyze the reasoning behind visual jokes instead of ranking captions by pattern matching alone.

Their best model correctly predicted which of two captions readers preferred 76.1% of the time. Non-expert human participants averaged 65.6%, while an AI model without the specialized training scored 55.6%. The findings appear in the proceedings of the Conference on Empirical Methods in Natural Language Processing, but the researchers stress that preference prediction is not the same as human-like understanding.

Illustration outlines the Incongruity-Resolution Supervision (IRS) framework, designed to help artificial intelligence understand humor through structured reasoning. (CREDIT: Aykut Erdem et al, Computational simulation/modeling 2026)

Why humor is difficult for AI

A cartoon joke often combines two ideas that do not normally belong together. A giant amoeba sitting in an airplane might be treated as an ordinary passenger, for example, allowing a complaint about buying two seats to connect a biological fact with a familiar travel frustration.

To understand that joke, a system must recognize what is unusual in the drawing, identify the everyday situation being referenced and see how the caption joins the two. Object recognition alone is not enough. The model must also use context, language and shared expectations.

This is one reason humor is a useful stress test for AI. It requires visual interpretation, ambiguity resolution and sensitivity to what a speaker leaves unsaid, much like systems designed to understand human speech.

The researchers built their work around incongruity-resolution theory, a long-standing explanation of humor. In this view, a joke first violates an expectation and then offers an unexpected interpretation that makes the violation coherent. The laugh comes from resolving the mismatch in a way that feels surprising but fitting. It also addresses a broader challenge for AI: recognizing meaning rather than matching surface patterns.

Teaching a model to find the mismatch

The team called its framework Incongruity–Resolution Supervision, or IRS. It divides humor understanding into three linked tasks: locating the unusual feature in a scene, finding a plausible humorous interpretation and deciding which interpretation best matches people’s preferences.

An example illustrates how an AI model uses structured reasoning to select the most appropriate caption for a cartoon from five possible choices (A–E). (CREDIT: Aykut Erdem et al, Computational simulation/modeling 2026)

The training material included books about cartooning, caption-writing guides and editorial discussions describing how professional writers develop and judge ideas. Those materials helped the researchers turn an intuitive creative process into structured examples that a model could evaluate.

The model made intermediate reasoning explicit by examining the scene, identifying the unexpected connection and considering language features such as wordplay and punchline placement.

This approach differs from simply showing a model many examples labeled funny or not funny. Instead of learning only a final score, the system receives guidance about the steps that lead to that score. That distinction reflects a broader effort to make AI reasoning more inspectable rather than treating every answer as a black box.

It may also reduce overconfident AI agreement, although the study did not test that outcome.

The model outperformed the comparison groups

The researchers evaluated the system using data from The New Yorker Cartoon Caption Contest. Each test involved two captions written for the same cartoon, and the model had to predict which one readers had preferred.

The IRS model reached 76.1% accuracy. Non-expert human participants averaged 65.6%, and the comparison AI model without IRS training reached 55.6%. The result suggests that adding humor-specific reasoning helped the model make better judgments than either of those baselines on this task.

Curated visual references support perception alignment within the Incongruity-Resolution Supervision (IRS) framework. (CREDIT: Aykut Erdem et al, Computational simulation/modeling 2026)

The researchers also tested the method on two other humor-related benchmarks, YesBut and DeepEval. Models trained with IRS performed better than their unmodified versions without receiving additional training on those datasets. That result suggests the method may transfer some reasoning strategies beyond the contest material, similar to tests of AI generalization in other settings.

The improvement does not mean the model has developed a sense of humor. It became better at predicting an audience judgment under controlled conditions. That distinction matters in light of AI reasoning limits.

What cartoonists contributed

Bob Mankoff’s involvement gave the project practical knowledge that is difficult to capture in a conventional dataset. Cartoonists judge whether a caption is concise, visually grounded and understandable.

Those judgments helped the researchers distinguish an odd image from a successful joke. A caption can mention something unexpected without creating a meaningful connection, or use wordplay that ignores the cartoon’s visual details.

The project also connects with research on creative machine systems, where expert judgment helps define what a successful output should achieve.

By combining creative expertise with cognitive science, the team treated humor as a process of interpretation rather than a single label. That interdisciplinary approach resembles work in brain research, where researchers connect observable outputs with hidden steps inside a complex system.

An example from a humor-ranking task highlights the limitations of artificial intelligence in understanding cultural references. (CREDIT: Aykut Erdem et al, Computational simulation/modeling 2026)

The method may be useful beyond cartoons. Metaphors, sarcasm and indirect requests all require systems to infer meaning that is not stated directly. A model that can identify an unexpected connection in an image may eventually become better at handling other forms of implied communication, although the current study did not test those abilities directly.

The limits of machine humor

The researchers found several reasons to be cautious. Models sometimes misread visual details, overlook cultural references or produce confident explanations based on incorrect assumptions. These errors are especially important in humor because a small change in context can reverse the meaning of a joke.

The training material also leaned heavily toward English-language and predominantly American humor. A caption that succeeds in one culture may fail in another because audiences do not share the same references, social expectations or tolerance for particular subjects. That is a familiar concern in language technology.

The contest data brings another limitation. Reader preferences are useful for measuring agreement, but they do not reveal whether a person laughed, understood the joke for the same reason as someone else or simply preferred one writing style. The benchmark therefore measures a narrow but important part of humor understanding.

Future work could include more languages, broader cultural perspectives and tests that ask models to explain cartoons without fixed caption choices. Researchers could compare machine explanations with those from cartoonists and readers.

For now, the study offers a practical lesson about AI development. Systems may perform better when training teaches them how to reason through a task, not only which answer usually scores highest. In cartoons, that means finding the mismatch, resolving it and explaining why the connection works. Related AI learning research explores the same distinction.

Dig deeper into AI and humor understanding.

These resources examine humor theory, computational joke generation and the challenges of interpreting visual and implied meaning.

Learning to Think Like a Cartoon Captionist: Incongruity–Resolution Supervision for Multimodal Humor Understanding: The Koç University-led study introduces IRS training and evaluates whether explicit reasoning improves AI caption preference prediction. (Empirical Methods in Natural Language Processing, 2026)

A Computational Approach to Humor: This foundational study describes how computational systems might generate humor by manipulating expectations and linguistic structure. (Artificial Intelligence, 2002)

Humor and Incongruity: This cognitive account explains how an unexpected interpretation can become humorous when it resolves an apparent mismatch. (Psychological Review, 1992)

Do Androids Laugh at Electric Sheep? Humor “Understanding” Benchmarks from The New Yorker Caption Contest: Researchers use cartoon captions to test whether language models can connect visual context with the social judgments involved in humor. (Empirical Methods in Natural Language Processing, 2020)

SemEval-2021 Task 7: HaHackathon, Humor and Offense Detection: This shared task evaluates systems on humor detection and related judgments, showing why humor classification remains sensitive to context and audience. (International Workshop on Semantic Evaluation, 2021)

Research findings are available online in the journal Computational simulation/modeling.

The original story "Researchers are using cartoons to teach AI about humor" is published in The Brighter Side of News.



Like these kind of feel good stories? Get The Brighter Side of News' newsletter.


Shy Cohen
Shy CohenScience and Technology Writer

Shy Cohen
Writer and Editor

Shy Cohen is a Washington-based science and technology writer covering advances in artificial intelligence, machine learning, and computer science. Having published articles on MSN, AOL News, and Yahoo News, Shy reports news and writes clear, plain-language explainers that examine how emerging technologies shape society. Drawing on decades of experience, including long tenures at Microsoft and work as an independent consultant, he brings an engineering-informed perspective to his reporting. His work focuses on translating complex research and fast-moving developments into accurate, engaging stories, with a methodical, reader-first approach to research, interviews, and verification.