Humor in Word Embeddings: Cockamamie Gobbledegook for Nincompoops

Limor Gultchin, Genevieve Patterson, Nancy Baym, Nathaniel Swinger, Adam Tauman Kalai

TL;DR

This paper demonstrates that word embeddings, a core NLP technique, can capture nuanced aspects of single-word humor. By analyzing these embeddings, the authors show they can predict individual humor preferences and even uncover demographic differences in humor taste, suggesting humor might be more computationally tractable than previously thought.

What Problem Does This Paper Address?

Humor is notoriously difficult for AI to grasp, largely because it's subjective and multifaceted. While NLP has made strides in areas like translation, understanding humor has lagged. This paper tackles the challenge of computationally modeling single-word humor, a more constrained problem than full sentence or situational humor. The authors aim to bridge the gap between established humor theories and modern NLP techniques like word embeddings, investigating whether these embeddings can capture the underlying mechanisms that make certain words funny and how these relate to individual and group preferences.

Methods

The core of the paper's methodology involves leveraging pre-trained word embeddings (like GNEWS, WebSubword, and WebFast) and correlating them with humor ratings and theoretically-derived humor features.

  • Humor Vector Identification: They first identified a "humor vector" within the embedding space by performing linear regression to predict mean humor ratings from word embeddings. This vector, though not inherently funny itself, represents a direction in the embedding space that correlates with humor.
  • Humor Feature Annotation: To go beyond simple humor ratings, they annotated a dataset of words based on six theoretically-motivated humor features (e.g., humorous sound, juxtaposition, sexual connotation, scatological connotation, insults, colloquialisms).
  • Predictive Modeling: They used supervised learning (linear regression) to predict these humor features from word embeddings, assessing how well embeddings capture these specific aspects of humor.
  • Sense-of-Humor Embeddings: For individual differences, they proposed representing a person's sense of humor as an average of the embeddings of words they find funny. This "sense-of-humor vector" was then used for clustering and prediction tasks.
  • Clustering and Demographic Analysis: They clustered raters based on their sense-of-humor embeddings to identify distinct groups and analyzed demographic differences (gender, age) within these clusters.

Datasets

The paper utilizes and introduces several datasets:

  • Engelthaler & Hills (EH) Dataset: A publicly available dataset of mean humor ratings for approximately 5,000 words, with breakdowns by gender and age. This served as an initial benchmark.
  • Original Crowdsourced Datasets:
    • A large dataset of 120,000 common words and phrases, filtered from GNEWS embeddings.
  • A subset of 8,120 words identified as most humorous from the 120k set.
  • A final set of 216 highly-rated words, meticulously rated by over 1,500 crowd workers using a comparative judgment task.
  • Annotations for six humor features on 1,500 words, collected from multiple workers.

Key Insights and Ideas

  • Word Embeddings Capture Humor: The most striking insight is that word embeddings, despite being trained on general text, capture significant aspects of single-word humor. This suggests that the statistical patterns in language that make words funny are reflected in their vector representations.
  • Linearity in Humor: The paper demonstrates that simple linear directions in embedding space can correlate strongly with humor ratings and specific humor features. This implies that some fundamental mechanisms of humor might be computationally simpler than previously assumed.
  • Individual Humor is Embeddable: A person's unique sense of humor can be approximated by averaging the embeddings of words they find funny. This "sense-of-humor vector" is surprisingly predictive of their preferences for new, unrated words.
  • Demographic Differences in Humor: Clustering these sense-of-humor vectors revealed distinct groups that correlated with demographic factors like gender and age, showing that humor preferences are not uniform across populations.
  • Humor Features are Represented: Word embeddings can capture specific humor features (like "funny sounding" or "insulting") to varying degrees, with some features being more predictable than others.

Key Results

  • High Correlations: Linear regression models achieved Pearson correlation coefficients of up to 0.768 (with cross-validation) between predicted humor ratings and actual EH humor ratings, demonstrating a strong link between embeddings and humor.
  • Feature Predictability: Several humor features were predictable from embeddings, with "funny sounding" words showing the highest correlation with mean humor ratings. "Juxtaposition" was the most difficult feature to predict.
  • Sense-of-Humor Prediction: The "know-your-audience" test showed success rates of up to 78.1% in predicting which of two words a participant would find funnier, based solely on their sense-of-humor embedding derived from a small set of rated words.
  • Demographic Correlations: Significant differences in age and gender were observed between clusters of raters, even though demographic information was not used in the clustering process itself. For instance, one cluster was significantly female-skewed (70.3% female) and another was older (mean age 42.3).

Limitations and Future Work

  • Single-Word Focus: The study primarily focuses on single-word humor. While this is a necessary simplification, it doesn't fully capture the complexity of humor in phrases, sentences, or broader contexts.
  • Subjectivity of Humor: Despite the success in modeling, humor remains inherently subjective. The paper acknowledges that the "humor vector" is a statistical artifact, not a direct representation of funniness.
  • Data Limitations: While the paper introduces new datasets, the EH dataset is limited in scope. The authors note that many of the funniest words they identified were not present in EH.
  • Future Work: The authors suggest extending this work to phrases and sentences, exploring other humor theories, and investigating the role of phonotactic, morphological, and orthographic features alongside embeddings. They also propose applications in creative writing tools and AI assistants for tailoring humor.

Summary updated

BibTeX
@inproceedings{gultchin2019humor,
  author = {Limor Gultchin and Genevieve Patterson and Nancy Baym and Nathaniel Swinger and Adam Tauman Kalai},
  title = {{Humor in Word Embeddings: Cockamamie Gobbledegook for Nincompoops}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=SJEtHhZdZr},
}
Figure