Training Millions of Personalized Dialogue Agents.

Pierre-Emmanuel Mazaré, Samuel Humeau, Martin Raison, Antoine BordesarXiv 2018

Abstract

Current dialogue systems are not very engaging for users, especially when trained end-to-end without relying on proactive reengaging scripted strategies. Zhang et al. (2018) showed that the engagement level of end-to-end dialogue models increases when conditioning them on text personas providing some personalized back-story to the model. However, the dataset used in Zhang et al. (2018) is synthetic and of limited size as it contains around 1k different personas. In this paper we introduce a new dataset providing 5 million personas and 700 million persona-based dialogues. Our experiments show that, at this scale, training using personas still improves the performance of end-to-end systems. In addition, we show that other tasks benefit from the wide coverage of our dataset by fine-tuning our model on the data from Zhang et al. (2018) and achieving state-of-the-art results.

Introduction

Most end-to-end dialogue systems suffer from a "personality crisis." Because they are often trained on massive, unlabelled datasets, they lack consistency—answering "I have a dog" in one turn and "I don't like pets" in the next. While previous research, such as the PERSONA-CHAT dataset, demonstrated that conditioning models on a specific "persona" (e.g., "I am a vegetarian who loves jazz") makes them more engaging and consistent, those datasets were small and synthetic, created by workers on Amazon Mechanical Turk. This paper addresses the data scarcity and lack of diversity in personalized dialogue by extracting millions of real-world personas from social media.

Methods

The authors treat dialogue as a next-utterance retrieval task: given a persona and a conversation history, the model must pick the correct response from a set of candidates.

Model Architecture

The researchers evaluated three types of encoders: Bag-of-Words (BOW), LSTMs, and Transformers. To integrate the persona with the conversation context, they employed a "1-hop Memory Network." In this setup, the conversation context acts as a query that retrieves relevant segments of the persona to inform the selection of the best response.

The model architecture uses separate encoders for persona, context, and response, integrated via a memory network.

Persona Extraction

To build their dataset, they scraped Reddit for comments where users naturally reveal facts about themselves. They used simple heuristics to identify persona sentences, requiring them to contain "I" or "my," be between 4 and 20 words, and include at least one verb and one noun/pronoun/adjective. This was further refined using a classifier to distinguish "persona-like" sentences from random noise.

Datasets

The study utilizes two primary datasets:

  • Reddit (New): A massive dataset extracted from 1.7 billion comments, containing over 5 million unique personas and 700 million dialogue exchanges.
  • PERSONA-CHAT: A smaller, high-quality dataset of 1,000 personas used for evaluation and fine-tuning. This remains the standard benchmark in the field.

Key Results

The primary metric used was hits@1 (the percentage of times the model picked the exact correct response out of 100 candidates).

Impact of Scale and Personas

Adding a persona consistently improved performance. For the Transformer model on the Reddit task, hits@1 increased from 69.1% to 74.4%. The results demonstrate that scale trumps curation; despite the "noise" in Reddit data, its volume allows models to learn a wider variety of linguistic patterns.

State-of-the-Art Performance

The most significant finding was the power of transfer learning. The model pre-trained on the massive Reddit corpus and then fine-tuned on the clean PERSONA-CHAT data (FT-PC) achieved a new state-of-the-art result of 60.7% hits@1 on the PERSONA-CHAT benchmark, nearly doubling the previous best of 35.4%.

Performance comparison across different training and validation sets, showing the effectiveness of fine-tuning (FT-PC) on the PERSONA-CHAT benchmark.

Discussion and Limitations

While the results are promising, several challenges remain. Personas extracted from real users can be contradictory over time, and some sentences may reflect transient states (e.g., "I am feeling happy today") rather than stable traits. Furthermore, this work focuses on retrieval; moving to generative models introduces additional complexities like repetitive phrasing or factual "hallucinations." Future work will explore more sophisticated strategies for selecting relevant persona components during a conversation.

Summary updated

BibTeX
@misc{mazare2018training,
  author = {Pierre-Emmanuel Mazaré and Samuel Humeau and Martin Raison and Antoine Bordes},
  title = {{Training Millions of Personalized Dialogue Agents.}},
  year = {2018},
  eprint = {1809.01984},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.01984},
}
Figure