MERMAID: Metaphor Generation with Symbolism and Discriminative Decoding

Tuhin Chakrabarty, Xurui Zhang, Smaranda Muresan, Nanyun Peng
3/11/2021
cs.CL

Official code: tuhinjubcse/MetaphorGenNAACL2021 (10 stars, Python, last commit 2022-05-02).

Abstract

Generating metaphors is a challenging task as it requires a proper understanding of abstract concepts, making connections between unrelated concepts, and deviating from the literal meaning. In this paper, we aim to generate a metaphoric sentence given a literal expression by replacing relevant verbs.

Show full abstract

Based on a theoretically-grounded connection between metaphors and symbols, we propose a method to automatically construct a parallel corpus by transforming a large number of metaphorical sentences from the Gutenberg Poetry corpus (Jacobs, 2018) to their literal counterpart using recent advances in masked language modeling coupled with commonsense inference. For the generation task, we incorporate a metaphor discriminator to guide the decoding of a sequence to sequence model fine-tuned on our parallel data to generate high-quality metaphors. Human evaluation on an independent test set of literal statements shows that our best model generates metaphors better than three well-crafted baselines 66% of the time on average. A task-based evaluation shows that human-written poems enhanced with metaphors proposed by our model are preferred 68% of the time compared to poems without metaphors.

View on arXivView PDF

Code Implementations(1)

Code for MERMAID : Metaphor Generation with Symbolism and Discriminative Decoding

105Python, CudaMar 11, 20214 years ago

Similar Papers

Cite this paper

@article{chakrabarty2021mermaid,
  title  = {MERMAID: Metaphor Generation with Symbolism and Discriminative Decoding},
  author = {Tuhin Chakrabarty and Xurui Zhang and Smaranda Muresan and Nanyun Peng},
  year   = {2021},
  eprint = {2103.06779},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.06779}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.06779.svg)](https://codeofpaper.com/paper/2103.06779)

Discussion