Investigating Robustness of Dialog Models to Popular Figurative Language Constructs

Harsh Jhamtani, Varun Gangal, Eduard H. Hovy, Taylor Berg-Kirkpatrick

Abstract

Current dialog models exhibit significant brittleness when encountering figurative language, such as metaphors and idioms. This study benchmarks the performance gap on figurative subsets of standard dialog datasets and introduces a "literalization" pipeline. By automatically translating figurative constructs into literal equivalents before processing, model response quality is substantially improved without the need for costly retraining.

Introduction: The "Literal Trap"

While humans use metaphors, similes, and idioms to add color and efficiency to conversation, AI dialog models struggle with these "non-compositional" constructs. Because these models often rely on the literal meaning of individual words, they fail to grasp the underlying intent of figurative phrases.

The authors identify a critical gap: while figurative language might only appear in ~2% of individual utterances, it occurs in over 13% of full conversations. Because dialog is contextual, a single misunderstood metaphor can derail an entire interaction, leading to "atopical" or nonsensical responses.

Figure 1: An illustration of the "Literal Trap" where a model interprets "on the rocks" geologically, and the proposed "Literalize" mitigation strategy.

Methodology

The researchers took a three-pronged approach to quantify and mitigate this robustness gap:

  1. Diagnostic Analysis: Manual annotation of subsets of popular dialog datasets to identify figurative language and compare model performance (GPT-2, CVAE, HRED) on these subsets versus general data.
  2. Literalization Benchmark: Creation of "literal equivalents" for figurative utterances (e.g., changing "on the sand" to "unstable") to evaluate if providing literal meaning directly fixes the performance drop.
  3. Lightweight Mitigation Pipeline: A "defense" pipeline that detects metaphors using a BERT-based classifier and idioms via a curated lexicon (~2,000 entries). It then uses Wiktionary "glosses" (literal definitions) to swap figurative phrases for literal ones before generation.

Datasets

The study utilizes two primary open-domain dialog datasets: DailyDialog (DD) and PersonaChat (PC). From these, the authors introduced DD-Fig and PC-Fig, subsets containing figurative language paired with manually written literal versions, serving as a new benchmark for testing model robustness.

Results and Robustness Analysis

The evaluation revealed a severe performance crash when models were faced with figurative language. Automated metrics like BLEU-4 dropped by nearly 100% for several models on the figurative subsets compared to the full datasets.

Figure 2: Performance metrics across various models on the DailyDialog (DD) and figurative (DD-Fig) datasets, highlighting the significant drop in quality and changes in model rankings.

Key Insights

  • Ranking Flips: The "best" model on a general dataset is not necessarily the best at handling figurative language. Model rankings changed significantly when evaluated specifically on the figurative subsets.
  • Contextual Poisoning: A single figurative construct in the conversation history can "poison" the context, leading the model to generate irrelevant responses for several subsequent turns.
  • Human Evaluation: Human raters found GPT-2 responses to be 17.27% less appropriate when the context was figurative.
  • Mitigation Gains: By replacing figurative text with literal translations, the authors saw massive improvements. BLEU scores increased by up to 5x in some cases, and human appropriateness ratings improved by 12% to 19%.

Discussion and Future Work

The success of simple dictionary-lookup literalization suggests that models possess the underlying capability to respond to the concepts; they simply lack the mapping from figurative surface forms to those concepts.

However, limitations remain. The current strategy relies on a fixed lexicon and struggles with novel, creative metaphors. Additionally, translating spoken figurative language into dictionary-style text can create a stylistic mismatch. Future work should explore integrating dynamic commonsense knowledge bases like COMET to interpret figurative language more flexibly.

Summary updated

BibTeX
@inproceedings{jhamtani2021investigating,
  author = {Harsh Jhamtani and Varun Gangal and Eduard H. Hovy and Taylor Berg-Kirkpatrick},
  title = {{Investigating Robustness of Dialog Models to Popular Figurative Language Constructs}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.592},
}
Figure