Investigating Robustness of Dialog Models to Popular Figurative Language Constructs

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

Abstract

State-of-the-art dialog models often fail when encountering figurative language, such as metaphors and idioms, due to a "literal trap" where non-compositional phrases are interpreted word-for-word. This study quantifies the resulting performance degradation across multiple architectures and proposes a lightweight mitigation strategy involving a detection-and-translation pipeline. By converting figurative inputs into literal equivalents before processing, we demonstrate significant improvements in response appropriateness, as measured by both automated metrics and human evaluation.

Introduction: The Literal Trap

Human conversation is rich with figurative constructs—metaphors like "we're on thin ice" or idioms like "break a leg"—that are inherently non-compositional. Their meaning cannot be derived from the sum of their parts. However, most contemporary dialog models are trained on massive corpora dominated by literal language. This leads to a systemic "literal bias."

An illustration of the 'literal trap' where a model responds to the literal meaning of a metaphor versus a successful response to a literalized version.

When a user employs a metaphor, the model frequently falls into a "literal trap." For instance, if a user describes a failing marriage as "built on the sand," a model might respond with geological facts about sand rather than addressing the relationship's instability. This paper investigates the severity of this robustness gap and explores methods to bridge it without the need for computationally expensive retraining.

Methodology

The research follows a three-stage approach to analyze and mitigate figurative language failures:

  1. Diagnostic Analysis: Manually identifying figurative language in existing datasets to evaluate model performance on these specific subsets.
  2. Human-in-the-Loop Benchmarking: Collecting human-written "literal equivalents" for figurative sentences to establish a performance ceiling when the literal meaning is explicitly provided.
  3. Automated Mitigation: Implementing a "defense" pipeline consisting of:
  4. Detection: Utilizing a BERT-based classifier for metaphors and a curated lexicon of ~2,000 entries for idioms.
  5. Translation: Leveraging external resources like Wiktionary to replace detected figurative phrases with their literal "glosses" (e.g., "kick the bucket" becomes "die") before the text reaches the dialog model.

Datasets and Benchmarks

The study utilizes two primary open-domain dialog datasets: DailyDialog (DD), which focuses on colloquial conversations, and PersonaChat (PC), where speakers adhere to specific profiles. From these, the authors derived two new benchmarks: DD-Fig and PC-Fig. These subsets contain only figurative instances paired with manually authored literal versions. While only ~2% of individual utterances are figurative, the researchers found that roughly 13% of all dialogs contain at least one figurative construct, highlighting the broad impact of this linguistic challenge.

Results and Discussion: The Performance Cliff

The evaluation reveals that models do not merely "underperform" on figurative language; they often experience a total failure of coherence.

Performance comparison across models on general DailyDialog (DD) vs. the figurative subset (DD-Fig), showing significant metric drops and ranking reversals.

As shown in Figure 2, automated metrics like BLEU-4 dropped by nearly 100% for several models (GPT-2, CVAE, DualEnc) when transitioning from general data to the figurative subset. Furthermore, "ranking reversals" were observed: the model that performs best on general benchmarks is not necessarily the most robust to metaphors. This suggests that current leaderboards may mask significant linguistic weaknesses.

Human evaluation corroborated these findings. GPT-2's responses were rated significantly more appropriate when the model was provided with literal translations. Appropriateness scores improved by 12.1% to 13.7% on the DailyDialog figurative subset. Even the simple Wiktionary-based replacement strategy—which requires no additional model training—yielded a 13.7% boost in human ratings for GPT-2 on detected figurative inputs.

Limitations and Future Work

Despite the success of the mitigation pipeline, several challenges remain. The automated detection system achieved a recall of only 31%, struggling particularly with creative or "novel" metaphors not found in standard dictionaries. Additionally, the metaphor classifier showed sensitivity to domain shifts, performing less effectively on the informal topics of DailyDialog compared to its training data.

Future research should look toward cross-lingual robustness, as figurative language is deeply tied to culture and dialect. Moreover, moving from understanding to generation—enabling models to produce figurative language appropriately—remains a key frontier for creating more human-like AI.

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