Generating Persona Consistent Dialogues by Exploiting Natural Language Inference

Haoyu Song, Wei-Nan Zhang, Jingwen Hu, Ting Liu

Introduction: The "Personality Crisis" in Chatbots

Open-domain dialogue agents have become remarkably proficient at mimicking human conversation. However, they frequently suffer from a "personality crisis." Because most models are trained using Maximum Likelihood Estimation (MLE)—predicting the most probable next word based on massive datasets—they prioritize statistical likelihood over logical consistency. A bot might claim to have a dog in one sentence and deny having any pets in the next.

While previous attempts to solve this involved re-ranking pre-generated responses, this research addresses the root cause: integrating logical consistency directly into the generation process.

Methods: Reinforcement Learning based Consistent Dialogue Generation (RCDG)

The authors propose the RCDG framework, which treats persona consistency as a Natural Language Inference (NLI) problem. The architecture utilizes a "critic" to provide feedback during the generation phase.

The RCDG architecture uses an Evaluator with Naturalness and Consistency modules to provide rewards to the Generator via Policy Gradient.

The system consists of two primary components:

  1. The Generator: An attention-based encoder-decoder (Seq2Seq) that processes the user's message alongside the agent's "persona" (e.g., "I drive a 2015 Honda").
  2. The Evaluator: This module acts as a critic, containing:
  3. Naturalness Module: An adversarial binary classifier that ensures the generated text maintains human-like flow.
  4. Consistency Module: An NLI-styled classifier that evaluates the (response, persona) pair. It assigns rewards based on whether the response entails (matches), is neutral to, or contradicts the persona.

Because NLI logic is discrete, the authors employ Reinforcement Learning (Policy Gradient). A "rollout policy" allows the model to estimate future rewards for partially generated sentences, effectively "looking ahead" to avoid contradictions before they are fully formed.

Key Results: Slashing Contradictions

The RCDG model was evaluated against several strong baselines, including standard Transformers and Generative Profile Memory Networks (GPMN).

Quantitative comparison showing RCDG's superior entailment and significantly lower contradiction rates compared to baseline models.

As shown in the results, RCDG achieved a significant improvement in persona consistency:

  • Entailment Rate: RCDG reached approximately 19.07%, outperforming the Transformer's 14.20%.
  • Contradiction Rate: Most importantly, RCDG reduced contradictions to 5.56%, whereas baseline models typically ranged between 9% and 13%.

Human evaluations corroborated these findings, with judges rating RCDG responses as more consistent, informative, and relevant. The study also highlighted a "Naturalness-Consistency Trade-off": optimizing solely for consistency can lead to robotic dialogue. By balancing NLI rewards with adversarial naturalness rewards, the researchers achieved a model that is both coherent and engaging.

Limitations and Future Outlook

Despite its success, the RCDG framework faces challenges. The use of Reinforcement Learning with Monte Carlo rollouts is computationally intensive. Furthermore, the system's performance is tethered to the accuracy of the underlying NLI classifier; errors in the classifier can lead to incorrect penalties for the generator.

Future work may involve applying this NLI-reward framework to larger, pre-trained Transformer architectures to further enhance the depth and consistency of AI-driven dialogue.

Summary updated

BibTeX
@inproceedings{song2020generating,
  author = {Haoyu Song and Wei-Nan Zhang and Jingwen Hu and Ting Liu},
  title = {{Generating Persona Consistent Dialogues by Exploiting Natural Language Inference}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i05.6417},
}
Figure