Abstract
Conditioned dialogue generation aims to produce responses that adhere to specific personas or topics. However, the scarcity of labeled dialogue-condition pairs often limits performance. This paper proposes a multi-task learning framework that leverages abundant non-dialogue text data to enhance dialogue models. By jointly optimizing for dialogue generation, language encoding, and language generation using a novel TF-IDF masking strategy and non-parametric gating, the model achieves state-of-the-art results, particularly in low-resource settings.
Introduction
Building chatbots capable of mimicking specific personas or maintaining topical consistency is a significant challenge in Natural Language Processing (NLP). While large-scale pre-trained models like GPT provide fluency, they often lack the fine-grained control needed for conditioned generation due to the difficulty of collecting large-scale labeled conversation data.
Conversely, labeled non-dialogue text (e.g., forum posts, blog entries) is often plentiful. This work addresses the gap by effectively utilizing this auxiliary text to improve dialogue models without compromising conversational ability or becoming inefficient due to complex architectural additions.
Methods
The authors propose a multi-task learning approach based on a pre-trained Transformer. Instead of training on a single objective, the model optimizes for three tasks simultaneously:
- Conditioned Dialogue Generation: Learning to generate a response given a history and a condition.
- Conditioned Language Encoding: Using a Masked Language Modeling (MLM) objective on non-dialogue text to learn condition-specific representations.
- Conditioned Language Generation: An auto-regressive task on non-dialogue text to learn the "style" of the condition.
Key Innovations
- TF-IDF Based Masking: Instead of masking random words, the model prioritizes masking words that are highly characteristic of the condition (determined by TF-IDF scores). This forces the model to focus on learning the unique vocabulary of a persona or topic.
- Non-parametric Attention-based Gating: A lightweight mechanism helps the model decide at each step whether to generate a "general" word or a "condition-related" word. Being non-parametric, it is more training-efficient than standard linear gates.
Experimental Setup
The researchers evaluated their approach on two primary datasets:
- Persona Reddit: A dataset where 2,000 active users are treated as distinct personas.
- Topic-related Dialogue: A conversational dataset with 190 topics, where labels were predicted using Latent Dirichlet Allocation (LDA).
- Scale: Testing was performed on both large-scale (3M samples) and small-scale (250K–500K samples) versions to assess effectiveness when data is limited.
Results and Discussion
The proposed model consistently outperformed strong baselines, including standard BERT fine-tuning and specialized architectures. On the Persona Reddit dataset, the model achieved a BLEU-1 score of 14.052, significantly higher than standard fine-tuning (12.928).
A key insight is the model's robustness to data scarcity. As shown in the perplexity analysis, the improvement was even more pronounced in small-scale experiments. When dialogue data was limited, leveraging extra text data provided a substantial performance jump compared to models that only used dialogue. Human evaluators also rated the model higher in both appropriateness and condition consistency.
Conclusion
This research demonstrates that non-dialogue text can serve as a powerful proxy for learning style and topic in dialogue systems. By mixing tasks within the same training batches, the model avoids catastrophic forgetting and improves generation quality. Future work may extend this framework to other conditions, such as emotions or specific situational contexts, and integrate it with larger pre-trained models.
Summary updated