DEAM: Dialogue Coherence Evaluation using AMR-based Semantic Manipulations

Sarik Ghazarian, Nuan Wen, Aram Galstyan, Nanyun Peng

Introduction

Evaluating open-domain dialogue systems, or chatbots, remains one of the most significant hurdles in natural language processing. A truly effective chatbot must be "coherent"—its responses should be logically connected, stay on topic, and maintain internal consistency. Traditionally, automatic evaluators have been trained to distinguish between high-quality human conversations and "bad" examples created through simple text-level heuristics, such as shuffling sentence order or inserting random utterances.

However, modern Large Language Models (LLMs) rarely produce such obvious structural errors. Instead, they fail in more subtle, semantic ways: forgetting a pronoun's referent or contradicting a previously stated preference. To address this, we introduce DEAM (Dialogue coherence Evaluation using AMR-based semantic Manipulations), a metric designed to identify these nuanced logical flaws by operating at the semantic level rather than the surface text.

Methodology: The AMR Pipeline

DEAM shifts the focus from text-shuffling to semantic manipulation using Abstract Meaning Representation (AMR). AMR represents a sentence as a rooted, labeled graph that captures "who is doing what to whom," effectively stripping away syntactic variations to reveal the underlying logic.

The DEAM pipeline: converting text to AMR graphs for semantic manipulation before back-translating to text for model training.

The DEAM pipeline consists of four primary stages:

  1. Parsing: Human-to-human dialogues from datasets like TopicalChat and PersonaChat are converted into AMR graphs using a pre-trained T5 model.
  2. Semantic Manipulation: Specific "logical attacks" are applied directly to these graphs to simulate common chatbot failures.
  3. Back-translation: The corrupted AMR graphs are translated back into natural-sounding, yet incoherent, English text.
  4. Training: A RoBERTa-based classifier is trained to distinguish the original coherent dialogues from these semantically perturbed versions. The model's confidence score for the "coherent" class serves as the final evaluation metric.

Targeted Semantic Attacks

DEAM employs four distinct types of manipulations to create challenging negative examples:

  • Contradiction: Modifying concepts to their antonyms or reversing polarity (e.g., changing "I love" to "I hate").
  • Coreference Inconsistency: Swapping pronouns (e.g., "he" to "they") to break the logical link between sentences.
  • Irrelevancy: Replacing specific semantic nodes with random concepts from elsewhere in the conversation.
  • Decreased Engagement: Removing question-type nodes or detailed information to simulate an evasive or repetitive bot.

Key Insights

The "Nuance Gap"

Traditional text-level shuffling is often too easy for modern models to solve. A classifier might learn to detect a shuffled conversation simply by identifying awkward transitions or discourse markers without ever understanding the topic. By manipulating the AMR graph, DEAM creates "near-miss" examples that maintain fluency while breaking logic, forcing the evaluator to attend to the actual content.

AMR as a Surgical Tool

Using AMR allows for surgical precision. Unlike string-based edits, graph manipulations ensure that the resulting text remains grammatically plausible while becoming logically incoherent. This makes the training data significantly more representative of the errors actually produced by state-of-the-art LLMs.

Results and Performance

DEAM was benchmarked against human judgments in the FED and DSTC9 datasets, which contain real human-chatbot interactions. The results demonstrate that DEAM significantly outperforms existing state-of-the-art metrics like DynaEval.

Comparison of DEAM's prediction scores against human ground truth on the FED coherence dataset, showing a significantly higher correlation than baseline methods.

On the FED dataset, DEAM achieved a Spearman correlation of 0.47 for coherence, a stark improvement over baseline models which often hovered around 0.10 or showed negative correlations. Furthermore, ablation studies revealed that "Irrelevancy" and "Decreased Engagement" manipulations were the most critical for performance, suggesting that these are the flaws human evaluators find most jarring in conversational agents.

Limitations and Future Work

While DEAM represents a leap forward, it remains dependent on the quality of the underlying AMR parser and generator. Errors in the T5 back-translation can occasionally introduce unintended noise. Additionally, DEAM currently struggles with "sensibility" errors—logical flaws that require external world knowledge or common sense not explicitly captured in the dialogue's semantic graph. Future research will focus on integrating external knowledge bases to help the model identify when a bot makes factually impossible or nonsensical claims.

Summary updated

BibTeX
@inproceedings{ghazarian2022deam,
  author = {Sarik Ghazarian and Nuan Wen and Aram Galstyan and Nanyun Peng},
  title = {{DEAM: Dialogue Coherence Evaluation using AMR-based Semantic Manipulations}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.57},
}
Figure