Introduction
Evaluating the appropriateness of a chatbot's response remains a significant challenge in natural language processing. While modern Large Language Models (LLMs) have improved evaluation capabilities, they often struggle with responses that are lexically similar to the context but semantically incongruous. This paper proposes a novel framework that integrates Abstract Meaning Representation (AMR)—a semantic formalism that graphs "who-did-what" in a sentence—into the evaluation pipeline. By combining a specialized Small Language Model (SLM) with the reasoning power of LLMs, the authors demonstrate a significant leap in the ability to detect subtle, adversarial errors in dialogue.
The Semantic Gap in Dialogue Evaluation
Traditional metrics like BLEU or ROUGE rely on word overlap, which is a poor proxy for semantic coherence. Even embedding-based metrics can be deceived by adversarial negative responses. These are responses designed to share high lexical similarity with the dialogue context while being fundamentally incorrect in meaning.
For instance, consider a user asking about a canyon and a bot responding with a comment about a movie. Both might use the word "worth," leading standard metrics to assign a high score despite the logical disconnect.
As shown in the figure above, the AMR graph explicitly links "worth" to "canyon" in the context and "worth" to "movie" in the response. This "semantic skeleton" allows the model to identify that the entities being discussed do not match, a distinction often missed by models focusing solely on surface-level text.
Methodology: A Dual-Component Framework
The researchers developed a two-stage approach to bridge the gap between structural semantics and high-level reasoning.
1. AMR-Enhanced Small Language Model (SLM)
The SLM serves as a dedicated semantic feature extractor. It utilizes a dual-encoder architecture:
- Sequence Encoder: Captures the raw textual information.
- Graph Encoder: A Graph Transformer designed to process the AMR structural data.
- Gating Mechanism: This component dynamically balances the textual and structural representations to create a unified feature vector.
- Contrastive Learning: The model is trained to minimize the distance between representations of coherent context-response pairs while maximizing the distance for incoherent ones.
2. LLM Integration
The output of the SLM (a classification score) and the raw AMR graph data are integrated into a prompt for a Large Language Model (e.g., GPT-4). This "anchors" the LLM's reasoning in the explicit semantic structure provided by the AMR, preventing it from being misled by superficial word overlaps.
Experimental Results
The framework was tested on three major datasets: DailyDialog++, PersonaChat, and TopicalChat. Evaluation focused on both a "Standard Set" of random responses and an "Adversarial Set" of tricky, lexically-similar responses.
Key findings include:
- Superior Correlation: On the DailyDialog++ Adversarial Set, the proposed framework achieved a Pearson correlation of 0.5628, outperforming G-Eval (GPT-4) which scored 0.4298.
- Structural Importance: Ablation studies revealed that AMR graph information contributes approximately 7.4% more to performance gains than the SLM score alone, confirming that explicit structure is vital.
- Attention to Relationships: Visualization of the Graph Transformer's attention heatmaps indicated that the model successfully ignores misleading word overlaps, focusing instead on the actual relationships between entities.
Conclusion
This research highlights that surface-level text is often a noisy signal for dialogue quality. By explicitly incorporating the "semantic skeleton" of a conversation through AMR, evaluation models can achieve a much deeper understanding of coherence. The synergy between a structure-aware SLM and a reasoning-capable LLM provides a robust solution for evaluating open-domain dialogues, particularly in the face of adversarial challenges. Future work will look toward expanding this framework to capture more subjective dialogue attributes like empathy and style.
Summary updated