Generate, Delete and Rewrite: A Three-Stage Framework for Improving Persona Consistency of Dialogue Generation

Haoyu Song, Yan Wang, Wei-Nan Zhang, Xiaojiang Liu, Ting Liu

Introduction

Maintaining a consistent personality is a hallmark of human conversation. However, neural dialogue models, often trained on diverse datasets, frequently suffer from an "identity crisis." A model assigned a specific persona might hallucinate contradictory facts, undermining its reliability and user engagement. To address this, researchers from Harbin Institute of Technology and Tencent AI Lab proposed the Generate-Delete-Rewrite (GDR) framework.

The Problem of Persona Inconsistency

In persona-based dialogue generation, models are provided with a set of sentences describing a persona (e.g., "I live in California"). Despite this guidance, standard one-stage models often produce inconsistent responses (e.g., "I live in Colorado"). This happens because the training objective (maximizing likelihood) doesn't explicitly penalize rare but critical persona contradictions. A single incorrect word can break the persona, yet its impact on the overall loss function might be negligible.

The GDR Framework

The GDR framework decomposes the generation process into three specialized stages to ensure both fluency and consistency.

The three-stage GDR framework illustrated with a persona inconsistency example.

1. Generate (Prototype Generator)

The first stage uses a Transformer-based model to create an initial "response prototype." This model employs a tuple-interaction mechanism to capture the relationships between the persona, the user's query, and the generated text. While this prototype is generally fluent, it may still contain persona-inconsistent elements.

2. Delete (Consistency Matching Model)

This stage acts as a "fact-checker." It utilizes a matching model trained on Natural Language Inference (NLI) tasks to identify words in the prototype that contradict the assigned persona. These problematic words are replaced with a <masking> token, creating a "masked prototype."

3. Rewrite (Masked Prototype Rewriter)

The final stage is a Transformer-based decoder that takes the masked prototype and the persona as input. It functions similarly to a denoising autoencoder, "filling in the blanks" to produce a final response that is both polished and strictly consistent with the persona.

Detailed architecture of the Generate, Delete, and Rewrite stages.

Experimental Setup and Results

The framework was evaluated on the Persona-Chat benchmark and the DNLI (Dialogue Natural Language Inference) dataset. The results demonstrate that GDR significantly outperforms existing one-stage baselines across multiple metrics.

  • Persona Consistency: Human evaluations showed a consistency score of 49.2% for GDR, compared to 38.8% for a standard Transformer and 42.7% for the previous state-of-the-art, Per-CVAE.
  • Fluency: GDR achieved a remarkably low Perplexity (PPL) of 16.7, indicating high confidence and accuracy in word choice compared to the standard Transformer's 27.9.
  • Diversity: The model also showed improvements in generating diverse and engaging responses, as measured by Dist-1 and Dist-2 metrics.

Conclusion

The GDR framework effectively addresses persona inconsistency by introducing an explicit "check-and-fix" mechanism. By breaking the generation process into Generate, Delete, and Rewrite stages, the model can target and correct sparse errors that would otherwise compromise the chatbot's identity. Future work will focus on extending this consistency to multi-turn dialogues and optimizing the computational efficiency of the three-stage process.

Summary updated

BibTeX
@inproceedings{song2020generate,
  author = {Haoyu Song and Yan Wang and Wei-Nan Zhang and Xiaojiang Liu and Ting Liu},
  title = {{Generate, Delete and Rewrite: A Three-Stage Framework for Improving Persona Consistency of Dialogue Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.516},
}
Figure