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

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

TL;DR

Researchers have developed an automated framework to help social chatbots move beyond robotic, literal responses by generating novel metaphors. By identifying "connecting words" in vector space and mining web data for explanations, the system creates figurative comparisons (e.g., "Love is as complex as math") that significantly increase user engagement and conversation length in real-world deployments.

What Problem Does This Paper Address?

While traditional chatbots excel at task-oriented goals (like booking a flight), social chatbots aim to build "emotional bonds" with users. To do this effectively, they need to speak more like "virtual friends" and less like information kiosks.

A major gap in current systems is the lack of figurative language. Humans frequently use metaphors to express abstract concepts vividly and to grab attention. However, generating metaphors that are both proper (making sense) and novel (not a cliché) is computationally difficult. This paper tackles the challenge of automatically selecting abstract targets (like "Love"), concrete sources (like "Math"), and the linguistic bridges that connect them to enrich chatbot dialogue.

Methods

The authors propose a three-step metaphor generation framework:

  1. Target and Source Selection:
    • Targets: Abstract concepts (e.g., "Life," "Dream") derived from poetic themes and filtered by frequency in chatbot logs.
  2. Sources: Concrete, perceptible entities (e.g., "Tangerine," "Lottery") identified using a concreteness database and frequency logs.
  3. Discovering Connections: The system uses word embeddings to find "connecting words" ($X$) that link a target ($T$) and a source ($V$). They developed a connecting score formula that prioritizes words that are semantically close to both $T$ and $V$ while maintaining a "balanced" distance between them.
  4. POS-Specific Generation: The system handles three Parts of Speech (POS) differently:
  5. Adjectives: Uses common attributes (e.g., "Love is sweet like a tangerine").
  6. Verbs & Nouns: These are more complex. The system queries search engines for snippets containing the target and source to find human-written explanations. For example, if the target is "Soul" and the source is "Football fan," it might find a snippet to generate: "Soul is like a football fan, silently screaming."

The system can deliver these in one round (the whole metaphor at once) or two rounds (a teaser comparison followed by an explanation after the user asks "Why?").

Datasets

  • Chatbot Conversation Logs: Used to identify frequently discussed concepts and ensure the generated metaphors are relevant to real users.
  • Poetic Themes: 122 themes used as a starting point for target concepts.
  • Brysbaert Concreteness Database: A dataset of 40,000 English words rated by how "perceptible" they are, used to select concrete source concepts.
  • Web Snippets: 10,000 snippets per query from search engines were used to mine natural language explanations for verb and noun-based metaphors.

Key Insights and Ideas

  • The "Safety" of Adjectives: Adjective-based metaphors (e.g., "Time is sweet") are the most "smooth" and grammatically correct, but they often lack the "wow" factor of novelty.
  • The Richness of Nouns and Verbs: Metaphors built on nouns and verbs tend to be more novel and provide richer explanations, even if they are harder to generate correctly.
  • The Power of the "Two-Round" Strategy: In real-world testing, the two-round approach (Comparison $\rightarrow$ User asks "Why?" $\rightarrow$ Explanation) performed best. This mimics natural human curiosity and encourages the user to stay in the conversation.
  • Connectivity vs. Balance: A good connecting word isn't just "near" the target and source; it must sit in the middle. If it's too close to one and far from the other, the metaphor feels lopsided or literal.

Key Results

  • Human Evaluation: Adjective-based metaphors achieved a 92% "smoothness" rate, while noun and verb metaphors were rated significantly higher for novelty.
  • User Engagement: In a controlled study, users rated metaphor-enabled responses as higher in "dialogue quality" and "friendliness" compared to literal sentences.
  • Real-World Impact: When deployed to 924 real users, the follow-up rate (the percentage of users who kept talking) for two-round metaphors was 41%, compared to only 22% for literal sentences. This nearly doubled the engagement level.

Limitations and Future Work

  • Syntactic Constraints: The current system only handles a few specific patterns (subject-verb and subject-predicate-object). It cannot yet generate more complex or poetic structures.
  • Noise in Web Data: Relying on web snippets for explanations can sometimes introduce "noisy" or nonsensical sentences if the search results are poor.
  • Context Sensitivity: While the paper mentions a classifier to trigger metaphors when they fit the topic, more work is needed to ensure metaphors feel deeply integrated into the specific emotional context of a conversation rather than just being "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, the usage of a commonly used rhetorical device – metaphor – is investigated for social chatbot. Our work first designs a metaphor generation framework, which generates topic-aware and novel figurative sentences. 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},
}

Loading related content...

Figure