[Paper Review] Dutch Humor Detection by Generating Negative Examples
This paper proposes a novel method for Dutch humor detection by generating realistic non-joke examples using a text generation algorithm, creating a more challenging benchmark. Unlike prior work using out-of-domain non-jokes, the authors train and evaluate models—including the state-of-the-art RobBERT—on these generated negative examples, showing RobBERT significantly outperforms traditional models, achieving 98.8% accuracy on joke detection, demonstrating the effectiveness of contextualized transformers for humor recognition in low-resource settings.
Detecting if a text is humorous is a hard task to do computationally, as it usually requires linguistic and common sense insights. In machine learning, humor detection is usually modeled as a binary classification task, trained to predict if the given text is a joke or another type of text. Rather than using completely different non-humorous texts, we propose using text generation algorithms for imitating the original joke dataset to increase the difficulty for the learning algorithm. We constructed several different joke and non-joke datasets to test the humor detection abilities of different language technologies. In particular, we compare the humor detection capabilities of classic neural network approaches with the state-of-the-art Dutch language model RobBERT. In doing so, we create and compare the first Dutch humor detection systems. We found that while other language models perform well when the non-jokes came from completely different domains, RobBERT was the only one that was able to distinguish jokes from generated negative examples. This performance illustrates the usefulness of using text generation to create negative datasets for humor recognition, and also shows that transformer models are a large step forward in humor detection.
Motivation & Objective
- To address the lack of robust, context-aware humor detection systems in Dutch by creating a more challenging benchmark.
- To investigate whether traditional models relying on domain-specific vocabulary can be misled by non-jokes that mimic joke structure and vocabulary.
- To evaluate the performance of modern transformer-based models, particularly RobBERT, on a novel, harder humor detection benchmark.
- To demonstrate the utility of text generation for creating realistic negative examples in low-resource NLP tasks like humor detection.
Proposed method
- The authors generate non-joke examples using a dynamic template (DT) algorithm that mimics the lexical and syntactic patterns of a Dutch joke corpus.
- They construct three distinct datasets: one with generated non-jokes, one with news articles, and one with proverbs, all paired with real jokes.
- They fine-tune multiple models—Naive Bayes, LSTM, CNN, and RobBERT—on these datasets for binary joke/non-joke classification.
- For pairwise classification, they compare a joke with its generated non-joke counterpart, using models to determine which is funnier.
- RobBERT is fine-tuned with a sequence classification head, processing both texts in a single input sequence separated by a [SEP] token.
- The evaluation uses accuracy and F1-score with 95% confidence intervals on held-out test sets.
Experimental results
Research questions
- RQ1Can humor detection models trained on out-of-domain non-jokes (e.g., news, proverbs) be misled by non-jokes that are structurally and lexically similar to jokes?
- RQ2To what extent does a modern contextualized language model like RobBERT outperform traditional neural networks (LSTM, CNN) on a challenging, in-domain negative example dataset?
- RQ3Does generating negative examples through a text generation algorithm create a more effective benchmark for evaluating humor detection systems?
- RQ4How does the performance of models change when classifying jokes against generated non-jokes versus out-of-domain non-jokes?
Key findings
- RobBERT achieved 98.8% accuracy and 98.8% F1-score on the generated non-joke dataset, significantly outperforming all other models.
- LSTM and CNN models achieved over 94% accuracy on news and proverb datasets, but dropped to around 47% on the generated non-joke set, indicating they rely on domain cues.
- Naive Bayes performed poorly on all datasets, with accuracy below 60%, highlighting limitations of bag-of-words approaches.
- In the pairwise classification task, RobBERT maintained strong performance (82.5% accuracy), though slightly lower than in the single-classification setting, likely due to input length constraints.
- The generated non-joke dataset proved significantly more challenging than traditional out-of-domain non-jokes, especially for models relying on lexical or domain-specific features.
- RobBERT's performance on the generated non-joke set (89.2% accuracy) was substantially better than other models, indicating its contextual understanding enables better humor detection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.