Dialogue Natural Language Inference.

Sean Welleck, Jason Weston, Arthur Szlam, Kyunghyun Cho · DOI

TL;DR

This paper tackles the problem of consistency in dialogue systems by reframing it as a Natural Language Inference (NLI) task. They introduce a new dataset, Dialogue NLI, and a method to improve dialogue consistency by using an NLI model to re-rank candidate responses, showing significant improvements in both automatic and human evaluations.

What Problem Does This Paper Address?

Dialogue systems, especially those designed for open-ended conversation (chit-chat), often struggle with consistency. This means they might contradict themselves, their stated persona, or previous utterances within the same conversation. For example, a chatbot might say "I'm a lawyer" and later "I'm a doctor." While persona-based dialogue systems aim to mitigate this by conditioning on a persona, they still face consistency issues. The authors argue that existing methods for ensuring consistency are challenging because semantic plausibility alone isn't enough. They propose to leverage the power of Natural Language Inference (NLI) – a task that determines the relationship (entailment, neutral, contradiction) between two sentences – to address this.

Methods

The core of the paper lies in two main contributions:

  1. Dialogue NLI Dataset: The authors create a new dataset specifically for training NLI models on dialogue-related consistency. This dataset is derived from the Persona-Chat dataset and consists of sentence pairs labeled as entailment, neutral, or contradiction. These pairs are generated by associating persona sentences and dialogue utterances with specific "triples" (entity-relation-entity facts) and then creating relationships between them.
  2. NLI-based Re-ranking Method: They propose a method to improve dialogue consistency by integrating a trained NLI model into the dialogue generation process. When a dialogue model generates a set of candidate next utterances, the NLI model is used to score each candidate based on its potential to contradict the agent's persona. Candidates that are predicted to contradict the persona receive a penalty, and their scores are adjusted. This re-ranking process prioritizes more consistent responses.

Datasets

  • Dialogue NLI Dataset (New): This is the primary dataset introduced in the paper. It's derived from the Persona-Chat dataset and contains sentence pairs labeled for entailment, neutral, or contradiction, specifically tailored for dialogue consistency tasks.
  • Persona-Chat Dataset: Used as the source for generating the Dialogue NLI dataset.
  • SNLI Dataset: Used for training and evaluating baseline NLI models to compare performance against the Dialogue NLI dataset.

Key Insights and Ideas

  • Framing Consistency as NLI: The paper's central idea is that dialogue consistency can be effectively modeled as an NLI problem. This provides a powerful, existing framework (NLI) to tackle a long-standing dialogue challenge.
  • Dialogue-Specific NLI is Crucial: NLI models trained on general datasets like SNLI perform poorly when applied to dialogue consistency tasks. This highlights the need for domain-specific NLI datasets that capture the nuances of conversational language and persona interactions.
  • Re-ranking is Effective: Simply re-ranking candidate utterances using an NLI model's contradiction predictions significantly improves dialogue consistency, both automatically and in human evaluations. This suggests that even a simple integration of NLI can yield substantial benefits.
  • Human Evaluation Confirms Automatic Metrics: The human evaluation results align with the automatic metrics, validating the effectiveness of the proposed re-ranking approach and the utility of the developed evaluation sets.

Key Results

  • Dialogue NLI Dataset Performance: NLI models like ESIM and InferSent achieve high accuracy on the Dialogue NLI dataset (e.g., ESIM reaching 92.45% on the gold test set), outperforming models trained on general NLI datasets.
  • Improved Consistency Metrics: The NLI re-ranking method significantly reduces persona contradictions. For instance, the "Contradict@1" metric (proportion of top-ranked candidates that contradict the persona) decreased from 32.5% to 8.96% on the "Haves" evaluation set.
  • Increased Entailment: The re-ranking also increased the proportion of highly ranked candidates that entail the persona, as shown by the "Entail@1" metric improving from 55.2% to 74.6% on the "Haves" set.
  • Human Evaluation Gains: Human evaluators rated conversations with the re-ranked model higher, showing improvements in overall consistency and a reduction in contradictions. The fine-grained consistency score improved from 0.27 to 0.35, and the contradiction score decreased from 0.25 to 0.16.

Limitations and Future Work

  • Focus on Persona Consistency: The current method primarily focuses on persona consistency. The authors suggest future work could also incorporate filtering previous-utterance contradictions (u, u) as well.
  • Generic Contradictions: The paper focuses on contradictions derived from specific triples. Future work could extend to generic contradictions that don't necessarily map to these structured facts.
  • Alternative NLI Integration: The paper uses a re-ranking approach. Future research could explore more deeply integrating NLI components directly into the dialogue model architecture.
  • Dataset Domain: The Dialogue NLI dataset is derived from Persona-Chat. Expanding to other dialogue domains could further generalize the findings.

Summary updated

BibTeX
@inproceedings{welleck2019dialogue,
  author = {Sean Welleck and Jason Weston and Arthur Szlam and Kyunghyun Cho},
  title = {{Dialogue Natural Language Inference.}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1363},
}
Figure