Nominal Metaphor Generation with Multitask Learning

Yucheng Li, Chenghua Lin, Frank Geurin

TL;DR

This paper introduces a novel multitask learning framework for generating Chinese nominal metaphors under data-scarce conditions. By combining an automated self-training pipeline with a fine-grained metaphor weighting mechanism, the model successfully learns to generate highly creative and contextually consistent metaphors from limited labeled data.

What Problem Does This Paper Address?

Metaphor generation is crucial for making natural language generation (NLG) systems—like story generators and chatbots—more engaging and human-like. However, teaching machines to generate nominal metaphors (e.g., "Lilies smell like a bottle of perfume") faces two major hurdles:

  1. Data Scarcity: Existing annotated metaphor datasets are tiny, making it difficult to train data-hungry deep learning models.
  2. Diluted Attention: Standard auto-regressive language models try to learn the entire sequence of a sentence equally. Because metaphorical expressions often occupy only a small fraction of a long sentence, models waste capacity learning literal context rather than the actual creative mapping.

The authors tackle these challenges by finding a way to leverage massive unlabelled text corpora while forcing the model to focus its attention on the figurative parts of a sentence.

Methods

The authors propose a multitask framework built on top of a pre-trained Chinese GPT-2 model. It introduces two key innovations:

  • Self-Training via an Embedded Teacher: To bypass data scarcity, the framework embeds a metaphor identification module that acts like an attention mechanism. It automatically scores unlabelled sentences from a massive literature corpus based on their probability of being metaphorical, allowing the model to safely learn from pseudo-labeled data.
  • Metaphor Weighting Mechanism: Instead of treating all tokens equally, the model calculates the exact contribution of each word to the sentence's overall metaphoricity. It does this by measuring the change in metaphorical probability as each word is added sequentially ($p_i - p_{i-1}$). Words that drive up the metaphor score receive higher weights in the loss function, forcing the model to focus on the core creative components (the tenor, vehicle, and comparator).
Figure 1: The overall framework of our method. The metaphor identification module performs self-training and metaphorical word identification.

Datasets

The framework relies on two distinct datasets:

  • Chinese Metaphor Corpus (CMC): A newly curated and annotated dataset containing 2,703 metaphor examples and 3,554 literal sentences (6,257 total). It covers diverse metaphorical patterns beyond simple "A is like B" structures.
  • Chinese Literature Corpus (CLC): A massive, unlabelled corpus of 6.98 million sentences (202 million tokens) compiled from children's literature, native Chinese literature, and translated works, used to power the self-training pipeline.

Key Insights and Ideas

  • The 27% Rule: The authors analyzed their dataset and found that only about 27% of the words in a metaphorical sentence are actually related to the metaphor itself. This quantitative insight justifies why standard language modeling fails—it spends 73% of its effort on the wrong tokens.
  • Incremental Probability as an Importance Metric: By tracking how the metaphor probability shifts word-by-word (e.g., seeing the score jump from 0.32 to 0.66 when the word "like" appears), the framework elegantly identifies figurative keywords without needing token-level human annotations.
Figure 2: Metaphorical words identification by computing its contribution to metaphor probability.

Key Results

  • Automatic Metrics: The proposed model achieved a Perplexity (PPL) of 26.79, drastically outperforming baselines like standard GPT-2 (57.88), BART (48.58), and the state-of-the-art English simile generator SCOPE (92.32). It also scored highest in output diversity (Dist-1 and Dist-2).
  • Human Evaluation: In blind tests judged by humans on a 1–5 scale, the model achieved a 4.55 for Fluency, 4.23 for Consistency, and 3.80 for Creativity, beating all baselines by significant margins. It excelled at generating complex, poetic, multi-word metaphorical descriptions rather than cliché single-word substitutions.

Limitations and Future Work

  • Noise in Self-Training: Because the metaphor identification module isn't perfect, it occasionally misidentifies literal sentences as metaphors during the unsupervised self-training phase. This introduces noise, slightly lowering the pure "metaphoricity" ratio compared to models trained strictly on clean, narrow datasets.
  • Future Directions: The authors plan to extend this work to generate metaphors with even richer, more complex linguistic constructs and adapt the multitask framework to other languages.

Summary updated

BibTeX
@misc{li2022nominal,
  author = {Yucheng Li and Chenghua Lin and Frank Geurin},
  title = {{Nominal Metaphor Generation with Multitask Learning}},
  year = {2022},
  eprint = {2206.05195},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.05195},
}
Figure