A Model-agnostic Data Manipulation Method for Persona-based Dialogue Generation

Yu Cao, Wei Bi, Meng Fang, Shuming Shi, Dacheng Tao

Abstract

Maintaining consistency in persona-based chatbots remains a significant challenge in natural language processing. This paper discusses $D^3$, a model-agnostic data manipulation framework designed to enhance persona consistency without altering model architecture. By employing a three-stage pipeline of Data Distillation, Data Diversification, and Data Curriculum, the framework simplifies the mapping between persona facts and responses. Experimental results on the PersonaChat dataset demonstrate that $D^3$ significantly improves consistency scores (C-score) and human evaluation ratings for both standard Transformer and GPT-2 models.

1. Introduction

Building chatbots that exhibit a stable and consistent personality is a long-standing goal in the field of dialogue systems. Ideally, a model assigned a specific persona—such as "I am a veterinarian"—should not contradict this fact in subsequent turns. However, current models often struggle with "persona drift" or ignore persona constraints entirely.

Researchers have identified that the primary obstacles are not necessarily the model architectures themselves, but rather the nature of the training data. This paper introduces $D^3$, a framework that focuses on manipulating training data to clarify the relationship between persona facts and dialogue responses, making it easier for models to learn reliable mappings.

2. The Challenges of Persona-based Dialogue

The authors identify two fundamental hurdles in training consistent persona-based models:

  1. Data Scarcity: High-quality persona-based datasets, such as PersonaChat, are labor-intensive to collect. With approximately 162,000 utterances, these datasets are orders of magnitude smaller than general dialogue corpora like OpenSubtitles, which contain millions of samples.
  2. Mapping Complexity: In a standard training sample, a response typically relates to only one specific persona sentence out of several provided. Furthermore, the response is often most relevant to the immediate preceding turn rather than the entire dialogue history. Standard training objectives often fail to distinguish these relevant signals from the surrounding "noise" of irrelevant persona facts and historical context.

3. The $D^3$ Framework

The proposed $D^3$ framework addresses these challenges through a three-stage pipeline: Data Distillation, Data Diversification, and Data Curriculum.

3.1 Data Distillation

To reduce noise and simplify the learning task, the authors use Natural Language Inference (NLI) models to identify which specific persona sentence entails a given response. The training data is then "distilled" by stripping away all non-entailed persona facts and keeping only the most recent dialogue turn. This creates a "clean" mapping that forces the model to focus on the direct association between a fact and a response.

3.2 Data Diversification

Because distillation reduces the complexity and volume of the data, the authors replenish the dataset through automated augmentation. They use BERT and GPT-2 to "edit" persona sentences (e.g., changing "I have a dog" to "I have a golden retriever") and then align the responses to match these new facts. Additionally, Back Translation is employed to introduce linguistic variety into the dialogue history.

3.3 Data Curriculum

Training exclusively on simplified data can lead to poor performance on complex, real-world inputs. To mitigate this, $D^3$ employs a curriculum learning strategy. The model is first "warmed up" on the easy, distilled, and augmented data to learn the core persona-to-response mappings. It is then fine-tuned on the original, complex data to ensure it can handle multiple persona facts and longer histories during inference.

4. Key Insights and Results

One of the most significant findings is the effectiveness of "Hard Attention" via data removal. Rather than modifying the model to pay more attention to relevant facts, simply removing the irrelevant ones during the initial training phase proved highly effective. This is supported by the observation that in Transformer models, the attention weight on the last utterance of a dialogue history is 45% higher than the average of other turns, justifying the focus on the most recent turn during distillation.

4.1 Quantitative Performance

The $D^3$ method was evaluated using a standard Transformer (encoder-decoder) and a pre-trained GPT-2 on the PersonaChat benchmark.

  • Consistency (C-score): The Transformer model saw a dramatic improvement, with its C-score jumping from 0.235 to 0.485. GPT-2 also saw gains, moving from 0.518 to 0.557.
  • Diversity: Metrics such as Distinct-n and Entropy indicated that $D^3$-enhanced models produced more varied and interesting responses compared to baselines like CVAE-based augmentation.

4.2 Human Evaluation

Professional annotators rated the $D^3$ models higher across three key dimensions: Fluency, Coherence, and Persona Consistency. This suggests that the data manipulation strategy translates well to perceived quality by human users.

5. Limitations and Future Work

While effective, the $D^3$ framework has limitations. The distillation process is heavily dependent on the accuracy of the pre-trained NLI model; errors in NLI can lead to noisy distilled data. Furthermore, the current approach assumes a response usually maps to a single persona fact. Future research could explore more complex scenarios where a single response must synthesize multiple persona elements simultaneously.

6. Conclusion

$D^3$ demonstrates that significant improvements in persona consistency can be achieved through strategic data manipulation rather than architectural changes. By simplifying the initial learning task and gradually introducing complexity, the framework allows models to build a more robust understanding of how personal facts should influence dialogue, leading to more coherent and consistent artificial personas.

Summary updated

BibTeX
@inproceedings{cao2022model,
  author = {Yu Cao and Wei Bi and Meng Fang and Shuming Shi and Dacheng Tao},
  title = {{A Model-agnostic Data Manipulation Method for Persona-based Dialogue Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.550},
}
Figure