"Love is as Complex as Math": Metaphor Generation System for Social Chatbot

Danning Zheng, Ruihua Song, Tianran Hu, Hao Fu, Jin Zhou

Abstract

As intelligent chatbots become widely adopted in daily life, user demands have evolved from basic task-solving to casual, friend-like communication. To build emotional bonds, social chatbots must incorporate advanced linguistic features like metaphors. This paper presents a metaphor generation framework that produces topic-aware and novel figurative sentences. By embedding this framework into a chatbot, we enable more human-like communication. Human evaluations validate the novelty and appropriateness of the generated metaphors. Furthermore, real-world experiments demonstrate that metaphors effectively arouse user interest, leading to significantly longer human-chatbot conversations.

Introduction: Beyond Literal Responses

Traditional chatbots are designed for efficiency—booking flights or checking weather. However, social chatbots aim for a different goal: companionship. To transition from an information kiosk to a "virtual friend," these systems must master figurative language. Humans frequently use metaphors to express abstract concepts vividly and to grab attention.

The challenge lies in automation. A metaphor must be proper (semantically logical) yet novel (avoiding clichés). This research introduces a framework that automatically selects abstract targets (e.g., "Love"), concrete sources (e.g., "Math"), and the linguistic bridges that connect them to enrich dialogue.

Methodology: The Metaphor Generation Framework

The proposed system follows a three-step pipeline to move from a user's topic to a poetic response.

1. Target and Source Selection

The system identifies abstract targets from poetic themes and frequent chatbot logs. It then pairs these with concrete sources—perceptible entities like "lottery" or "stairs"—identified using the Brysbaert Concreteness Database.

2. Discovering Semantic Connections

To link a target ($T$) and a source ($V$), the system searches for "connecting words" ($X$) in a vector space. A specialized connecting score formula prioritizes words that are semantically close to both while maintaining a balanced distance, ensuring the metaphor doesn't feel lopsided or too literal.

Figure 2: Visualizing connecting words between the target 'love' and source 'lottery' across different parts of speech in vector space.

3. POS-Specific Generation and Delivery

The system handles different Parts of Speech (POS) with varying techniques:

  • Adjectives: Often the most "smooth" and grammatically correct (e.g., "Love is sweet like a tangerine").
  • Verbs & Nouns: These offer higher novelty. The system mines web snippets for human-written explanations to provide depth (e.g., "Soul is like a football fan, silently screaming").

Crucially, the system can deliver these metaphors in two ways: One-round (immediate comparison) or Two-round (a teaser followed by an explanation after the user asks "Why?").

Figure 1: Examples of (a) One-round and (b) Two-round metaphor delivery in a chatbot conversation.

Key Insights and Results

The researchers found a distinct trade-off between linguistic "safety" and "novelty." While adjective-based metaphors achieved a 92% smoothness rate in human evaluations, metaphors built on nouns and verbs were rated significantly higher for novelty.

In real-world testing, the Two-round strategy proved particularly effective. By presenting a comparison and waiting for the user to ask "Why?", the chatbot mimics natural human curiosity and encourages the user to stay in the conversation. In a study of 924 real users, this approach nearly doubled the engagement level, achieving a 41% follow-up rate compared to just 22% for literal responses.

Conclusion and Future Work

By moving beyond literalism, social chatbots can foster deeper emotional connections. While the current system is limited by specific syntactic patterns and occasional noise from web data, it represents a significant step toward more creative AI. Future work will focus on deeper emotional context sensitivity to ensure metaphors feel integrated into the conversation rather than randomly inserted.

Summary updated

Abstract

As the wide adoption of intelligent chatbot in human daily life, user demands for such systems evolve from basic task-solving conversations to more casual and friend-like communication. To meet the user needs and build emotional bond with users, it is essential for social chatbots to incorporate more human-like and advanced linguistic features. In this paper, we investigate the usage of a commonly used rhetorical device by human -- metaphor for social chatbot. Our work first designs a metaphor generation framework, which generates topic-aware and novel figurative sentences. By embedding the framework into a chatbot system, we then enables the chatbot to communicate with users using figurative language. Human annotators validate the novelty and properness of the generated metaphors. More importantly, we evaluate the effects of employing metaphors in human-chatbot conversations. Experiments indicate that our system effectively arouses user interests in communicating with our chatbot, resulting in significantly longer human-chatbot conversations.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Generated metaphor evaluationMetaphor generation system (adjective connecting words)Proper generated metaphor count (properness score ≥1)242 sentencesGenerated from 1965 proper target-source-connecting-word triplets; adjective category. …
Source quote
L209: Each generated sentence was evaluated by three human annotators from the following perspectives: 1) smoothness: if a sentence is clear and grammatically correct; 2) properness: if the comparison and explanation are understandable and make sense; and 3) novelty: if the comparison or explanation is fresh, novel or surprising. Smoothness is a binary metric: 0 (not smooth) or 1 (smooth); properness and novelty are annotated on a 3-point scale: 0 (not at all), 1 (moderately), and 2 (very strongly). These three metrics reflect progressive relationships, i.e., a metaphor cannot be proper unless the sentence is clear, and the novelty score is only meaningful if the comparison is proper. We use the average of three annotators as the final score. Table \ref{tbl:example_sentences} reports the assigned scores of these three metrics for the example metaphors. A sentence with a smoothness score \geq0.7 is considered clear, and a metaphor with a properness score \geq1 is considered proper. We generated 330, 45, 36 smooth sentences and 242, 29, 24 proper sentences with adjectives, verbs, and nouns, respectively.
BibTeX
@inproceedings{zheng2019love,
  author = {Danning Zheng and Ruihua Song and Tianran Hu and Hao Fu and Jin Zhou},
  title = {{"Love is as Complex as Math": Metaphor Generation System for Social Chatbot}},
  booktitle = {CLSW},
  year = {2019},
  url = {https://openreview.net/forum?id=XO6Gu3vgdU},
}
Figure