Abstract
Generating consistent and personalized dialogue is a significant challenge in AI, particularly when training data is "persona-sparse"—meaning personal traits are rarely explicitly mentioned. We present a novel Transformer-based model that utilizes an Attention Routing mechanism and a Dynamic Weight Predictor to adaptively incorporate persona information. By pre-training on large-scale general corpora and fine-tuning on structured dialogue data, our model achieves superior persona consistency and fluency compared to existing baselines.
Introduction
To make AI feel "human," it needs a consistent persona, such as a stable gender, location, and set of interests. However, real-world conversations are typically persona-sparse. In natural chat history, individuals only mention their specific traits in a small fraction of messages. Standard models trained on such data often treat persona information as noise or, conversely, overfit and force personality into every sentence, leading to unnatural interactions.
Methodology
We propose a Transformer-based encoder-decoder model designed to handle persona-sparse data through three key innovations:
1. Attribute Embeddings
Beyond standard word and positional embeddings, our model incorporates specific "attribute layers" for Gender, Location, and Interest Tags. This ensures the encoder maintains a structural "sense of self" throughout the dialogue processing.
2. Attention Routing and Dynamic Weighting
The core of our decoder is the Attention Routing Module, which replaces standard attention with three distinct routes: target persona, dialogue context, and previously generated words. This is managed by a Dynamic Weight Predictor, a binary classifier that determines the relevance of persona information for the current turn. It generates a weight ($\alpha$) that acts as a "volume knob," controlling the flow of persona-related data into the final response.
3. Training Strategy
The model undergoes a two-stage process: large-scale pre-training on a Chinese novel corpus (0.5 billion tokens) to learn general language patterns, followed by multi-task fine-tuning on the PersonalDialog dataset.
Experimental Results
Our model was evaluated against baselines like TransferTransfo and LConv using the PersonalDialog dataset (5.44 million dialogues from Weibo).
- Persona Accuracy: On biased test sets where persona mention is expected, our model achieved 92.13% accuracy, significantly outperforming the 45.87% achieved by standard TransferTransfo.
- Human Evaluation: Human judges rated our model higher in "Persona Consistency" (1.092 vs. 0.997) while maintaining superior context coherency.
- The Persona-Fluency Trade-off: We observed that forcing maximum persona influence ($\alpha=1$) can degrade fluency. Our dynamic approach allows for a "soft" blending of personality that preserves natural conversation flow.
Conclusion
By implementing a dynamic routing mechanism, our model successfully navigates the challenges of persona-sparse datasets. It maintains a consistent personality without sacrificing the naturalness of the dialogue. Future research will focus on reducing dependency on heuristic scripts for training the weight predictor and expanding the variety of modeled persona attributes.
Summary updated