Table of Contents
Fetching ...

CleanComedy: Creating Friendly Humor through Generative Techniques

Dmitry Vikhorev, Daria Galimzianova, Svetlana Gorovaia, Elizaveta Zhemchuzhina, Ivan P. Yamshchikov

TL;DR

The paper tackles the challenge of generating humorous text by addressing data toxicity and redundancy through CleanComedy, a bilingual English–Russian humor corpus with partial toxicity filtering and a gold-standard humor annotation subset. It introduces a two-stage training pipeline (Supervised Fine-Tuning followed by LLM Alignment) applied to a LoRA-enhanced LLaMA-3.1-8B, using careful data processing (toxicity filtering, deduplication, and topic modeling) and human evaluation to study humor quality and safety. Key contributions include the public release of CleanComedy, the gold annotations, and empirical evidence that alignment with soft humor scores can reduce toxicity while maintaining comedic relevance across languages. The work advances ethical generative humor research and provides practical insights for deploying humor-capable LLMs in culturally diverse settings, while outlining limitations and directions for larger, more adaptive datasets.

Abstract

Humor generation is a challenging task in natural language processing due to limited resources and the quality of existing datasets. Available humor language resources often suffer from toxicity and duplication, limiting their effectiveness for training robust models. This paper proposes CleanComedy, a specialized, partially annotated toxicity-filtered corpus of English and Russian jokes collected from various sources. We study the effectiveness of our data filtering approach through a survey on humor and toxicity levels in various joke groups. In addition, we study advances in computer humor generation by comparing jokes written by humans with various groups of generative jokes, including our baseline models trained on the CleanComedy datasets.

CleanComedy: Creating Friendly Humor through Generative Techniques

TL;DR

The paper tackles the challenge of generating humorous text by addressing data toxicity and redundancy through CleanComedy, a bilingual English–Russian humor corpus with partial toxicity filtering and a gold-standard humor annotation subset. It introduces a two-stage training pipeline (Supervised Fine-Tuning followed by LLM Alignment) applied to a LoRA-enhanced LLaMA-3.1-8B, using careful data processing (toxicity filtering, deduplication, and topic modeling) and human evaluation to study humor quality and safety. Key contributions include the public release of CleanComedy, the gold annotations, and empirical evidence that alignment with soft humor scores can reduce toxicity while maintaining comedic relevance across languages. The work advances ethical generative humor research and provides practical insights for deploying humor-capable LLMs in culturally diverse settings, while outlining limitations and directions for larger, more adaptive datasets.

Abstract

Humor generation is a challenging task in natural language processing due to limited resources and the quality of existing datasets. Available humor language resources often suffer from toxicity and duplication, limiting their effectiveness for training robust models. This paper proposes CleanComedy, a specialized, partially annotated toxicity-filtered corpus of English and Russian jokes collected from various sources. We study the effectiveness of our data filtering approach through a survey on humor and toxicity levels in various joke groups. In addition, we study advances in computer humor generation by comparing jokes written by humans with various groups of generative jokes, including our baseline models trained on the CleanComedy datasets.

Paper Structure

This paper contains 13 sections, 2 equations, 10 figures, 7 tables.

Figures (10)

  • Figure 1: Topic modelling for CleanComedy English.
  • Figure 2: Topic modelling for CleanComedy Russian.
  • Figure 3: Average scores for CleanComedy Gold datasets in English (in the left picture) and Russian (in the right picture). The average score of 5 annotators was computed for each joke.
  • Figure 4: Topic modeling for CleanComedy English.
  • Figure 5: Topic modeling for CleanComedy English.
  • ...and 5 more figures