Engagement Undermines Safety: How Stereotypes and Toxicity Shape Humor in Language Models

Atharvan Dogra, Soumya Suvra Ghosal, Ameet Deshpande, Ashwin Kalyan, Dinesh Manocha

TL;DR

Optimizing Large Language Models (LLMs) for engagement and humor creates a dangerous "bias amplification loop." This research demonstrates that both LLM generators and evaluators tend to equate stereotypical and toxic content with higher "funniness," suggesting that harmful tropes are structurally embedded in how these models understand humor.

What Problem Does This Paper Address?

As LLMs transition from simple chatbots to creative collaborators and "personalities," developers are increasingly optimizing them for engagement. Humor is a pinnacle of human engagement, but it often relies on incongruity theory—the idea that humor arises when an expectation is subverted.

The authors identify a critical safety gap: when a model is told to be "funny" or "edgy," does it take a shortcut to surprise by leaning on harmful stereotypes and toxicity? If our evaluation metrics (often trained on human-voted data like Reddit) also reward this behavior, we risk creating a feedback loop that prioritizes "the bit" over safety.

Methods

The researchers cast humor generation as a "safety testbed" using a multi-pronged approach:

  1. Joint Measurement: They evaluated jokes across three dimensions: Humor ($H$), Stereotypicality ($S$), and Toxicity ($T$).
  2. Persona-Driven Prompting: They compared "base" prompts to "personified" prompts, where the LLM was asked to imitate 50 famous comedians (e.g., Robin Williams, George Carlin).
  3. Information-Theoretic Analysis: To look "under the hood," they measured Uncertainty (Shannon entropy) and Surprisal (negative log-likelihood) of the generated punchlines. This helps determine if harmful content is a deliberate "choice" or a structural expectation within the model's probability distribution.
  4. Counterfactual Prompting: They tested a "Non-Offensive" condition ("complete the joke without being offensive") to see if the models could actually decouple humor from harm when explicitly told to do so.

Datasets

  • r/Jokes: A corpus of ~540,000 Reddit jokes used to train humor regressors and provide "neutral" joke setups.
  • Pantheon 2.0: Used to source the 50 most prominent comedian personas.
  • Multi-Grain Stereotype (MGS) & ToxiGen: Datasets used to fine-tune the ALBERT and HateBERT classifiers for detecting harm.
  • Satire-Generation Task (Horvitz et al., 2024): An external dataset used for validation, featuring human-perceived funniness judgments on satirical headlines.

Key Insights and Ideas

  • The Bias Amplification Loop: The study found a "harmfulness-humor coupling." Not only do generators produce more harmful content when trying to be funny, but the evaluators (the models used to score the jokes) give those harmful jokes higher scores.
  • Stereotypes as "Shortcuts to Surprise": Harmful cues widen the predictive uncertainty of a model. Essentially, injecting a stereotype opens up a broader "plausible output space," making it an easy way for the model to generate the incongruity required for humor.
  • Structural Embedding: Most tellingly, for some models (like the OLMo family), stereotypical punchlines actually had lower surprisal than neutral ones. This suggests that stereotypes aren't just a stylistic imitation; they are deeply embedded in the model's learned distribution of what a "joke" looks like.
  • The Limits of Safety Filters: Even when explicitly told to be "non-offensive," models still produced stereotypical content at substantial rates, indicating that these biases are difficult to "prompt away" once a model is optimized for a creative task.

Key Results

  • Higher Scores for Harm: Stereotypical and toxic jokes saw a 10–21% increase in mean humor scores compared to neutral jokes.
  • Persona Effects: Assigning a comedian persona increased stereotypicality by up to 59% and toxicity by 76% (a ~5 percentage point jump over no-role prompts).
  • The "Hilarious" Bin: Among jokes labeled as "Hilarious" by LLM metrics, stereotypical jokes appeared 11% to 28% more often than in less funny categories.
  • Human Validation: In satire tasks, generations perceived as "funny" by humans were up to 10% more likely to contain stereotypical or toxic components than those labeled "not funny."

Limitations and Future Work

  • Dataset Bias: The primary humor regressor was trained on Reddit data (r/Jokes), which carries its own specific cultural biases and community preferences that might not reflect global standards of humor.
  • Coarse Classifiers: The stereotype and toxicity detectors used (ALBERT/HateBERT) are "coarse" and might miss subtle, culturally specific, or nuanced forms of harm.
  • Multi-Objective Future: The authors argue that we cannot continue with "single-objective" optimization for funniness. Future work must focus on multi-objective generation that explicitly trades off engagement against safety constraints during the training or RLHF (Reinforcement Learning from Human Feedback) phase.

Summary updated

BibTeX
@inproceedings{dogra2026engagement,
  author = {Atharvan Dogra and Soumya Suvra Ghosal and Ameet Deshpande and Ashwin Kalyan and Dinesh Manocha},
  title = {{Engagement Undermines Safety: How Stereotypes and Toxicity Shape Humor in Language Models}},
  booktitle = {EACL (Volume 1: Long Papers)},
  year = {2026},
  doi = {10.18653/v1/2026.eacl-long.373},
}
Figure