Filling the Blanks (hint: plural noun) for Mad Libs Humor

Nabil Hossain, John Krumm, Lucy Vanderwende, Eric Horvitz, Henry A. Kautz

Introduction

Computational humor is often cited as an "AI-complete" problem, requiring not just linguistic mastery but also deep world knowledge and an understanding of social subversion. While fully autonomous AI comedians remain a distant prospect, researchers from the University of Rochester and Microsoft Research have identified a productive middle ground: computer-aided humor. Their work introduces Libitum, an algorithmic framework designed to assist humans in transforming ordinary narratives into comedic Mad Libs.

The Challenge of Narrative Humor

Traditional computational humor research has largely focused on isolated structures like puns or "knock-knock" jokes. Mad Libs present a more complex hurdle: narrative context. In a standard Mad Lib, players fill in blanks blindly. This research explores a "context-aware" variant where the player (human or AI) can see the surrounding text. The objective is to achieve "incongruity"—the psychological state where a word is unexpected yet fits the narrative structure just enough to trigger a comedic response.

Methodology: The Libitum Pipeline

The Libitum system (named after the Latin for "pleased") operates through a three-stage pipeline:

  1. Candidate Generation: Utilizing the Microsoft Web Language Model, the system identifies words that syntactically and contextually fit a given blank.
  2. Funniness Classification: A Random Forest classifier ranks these candidates based on their humor potential. The model utilizes ten distinct features, including semantic similarity (via GloVe embeddings), phonetic characteristics (letter n-grams), and probability scores.
  3. Human-in-the-Loop Selection: The AI presents the top 20 ranked "funny" candidates to a human player, who makes the final creative decision.
Relative importance of features used in the funniness classifier.

As shown in the feature importance analysis, semantic similarity to the sentence and the overall story title are the strongest predictors of humor, supporting the theory that incongruity drives comedic value.

Key Insights: Incongruity and Phonetics

The study revealed several critical insights into what makes a word "funny" in context:

  • The Incongruity Principle: Words that are semantically similar to a story's title but dissimilar to the immediate sentence context tend to be the funniest. For instance, in a story about "Batman," the word "obese" is humorous because it relates to a person (the title) but violates the specific expectations of a superhero (the context).
  • Phonetic Potential: The model confirmed that certain words possess inherent "phonetic funniness." The classifier successfully leveraged letter trigrams to identify words with high humor potential regardless of their literal meaning.

Experimental Results

The researchers evaluated three distinct approaches: FreeText (unaided human), LMC (suggestions from a standard Language Model), and Libitum (AI-ranked suggestions).

Mean funniness grades across 30 different stories for Libitum, FreeText, and LMC methods.

The results demonstrate that Libitum-aided humans consistently produced the funniest stories, achieving a mean funniness grade of 1.51, compared to 1.25 for unaided humans and 0.92 for the basic language model. While humans still hold the "ceiling" for the single funniest stories due to their ability to maintain long-term narrative "bits," the AI-human hybrid provides a significantly higher "floor" for consistent humor.

Conclusion and Future Directions

While Libitum significantly enhances human creativity, fully automated humor remains elusive. Without human intervention, Libitum’s performance drops significantly (mean grade of 0.80) due to a lack of "global coherence"—the ability to coordinate jokes across multiple blanks. Future research aims to address this by modeling multi-blank dependencies, teaching AI to set up jokes in one paragraph and deliver punchlines in another.

Reference: Hossain, N., Krumm, J., Vanderwende, L., Horvitz, E., & Kautz, H. (2017). Filling the Blanks (hint: plural noun) for Mad Libs® Humor. Proceedings of EMNLP 2017.

Summary updated

BibTeX
@inproceedings{hossain2017filling,
  author = {Nabil Hossain and John Krumm and Lucy Vanderwende and Eric Horvitz and Henry A. Kautz},
  title = {{Filling the Blanks (hint: plural noun) for Mad Libs Humor}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  doi = {10.18653/v1/d17-1067},
}
Figure