AmbiPun: Generating Humorous Puns with Ambiguous Context

Anirudh Mittal,Yufei Tian,Nanyun Peng
DOI: https://doi.org/10.48550/arXiv.2205.01825
2022-05-04
Abstract:In this paper, we propose a simple yet effective way to generate pun sentences that does not require any training on existing puns. Our approach is inspired by humor theories that ambiguity comes from the context rather than the pun word itself. Given a pair of definitions of a pun word, our model first produces a list of related concepts through a reverse dictionary. We then utilize one-shot GPT3 to generate context words and then generate puns incorporating context words from both concepts. Human evaluation shows that our method successfully generates pun 52\% of the time, outperforming well-crafted baselines and the state-of-the-art models by a large margin.
Computation and Language,Artificial Intelligence,Machine Learning
What problem does this paper attempt to address?
The problem that this paper attempts to solve is how to generate homographic puns, that is, to create humorous effects by using the multiple meanings of a word. Due to the lack of large - scale training data, existing methods often rely on complex neural network models, which do not directly use pun sentences for training. The paper proposes a new method to improve the success rate and interestingness of generating puns by introducing context words related to different meanings of the pun words. Specifically, this method first uses a reverse dictionary to generate words related to different meanings of the target pun word, and then obtains context words through different techniques (such as extraction - based methods, similarity - based methods and generation - based methods), and finally uses these context words to generate sentences containing puns. Experimental results show that this method is significantly superior to existing methods in both automatic evaluation and manual evaluation, especially in terms of the proportion of successfully generated puns and the degree of humor.