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:
- Candidate Generation: Utilizing the Microsoft Web Language Model, the system identifies words that syntactically and contextually fit a given blank.
- 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.
- Human-in-the-Loop Selection: The AI presents the top 20 ranked "funny" candidates to a human player, who makes the final creative decision.
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).
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