Abstract
Conditioned dialogue generation aims to create conversational agents that can adopt specific personas or topics. However, the scarcity of labeled (Dialogue History, Condition, Response) triplets often hinders performance. This paper proposes a multi-task learning (MTL) framework that leverages abundant, easily obtainable labeled non-dialogue text. By jointly training a condition-aware Transformer on dialogue and related text, the approach achieves state-of-the-art performance, particularly in low-resource settings.
Introduction
Building chatbots that maintain a consistent persona or stick to a specific topic is a fundamental challenge in Natural Language Processing. While general conversational data is plentiful, high-quality datasets containing specific conditions paired with dialogue history and responses are rare. Previous methods often rely on massive pre-training on unlabeled data, which may not capture the specific nuances of a given condition, such as a user's unique linguistic style or a niche topic's vocabulary.
This paper addresses the data bottleneck by effectively utilizing non-conversational text related to a condition—such as social media posts or Wikipedia articles. The core challenge lies in integrating this "non-dialogue" information to enhance "conversational" performance without losing the model's ability to converse naturally.
Methodology
The proposed framework relies on three main components: Multi-Task Learning, a Condition-aware Transformer architecture, and specialized masking techniques.
Multi-Task Learning (MTL)
The model jointly optimizes three tasks within every training batch to prevent catastrophic forgetting:
- Conditioned Dialogue Generation (CDG): The primary task where the model generates a response given a dialogue history and a condition.
- Conditioned Language Encoding (CLE): The model learns condition representations by predicting masked words in labeled non-dialogue text using bidirectional attention.
- Conditioned Language Generation (CLG): The model learns to generate condition-consistent text from scratch.
Condition-aware Transformer Block
The standard Transformer architecture is modified to include a non-parametric attention-based gating mechanism. This gate allows the model to dynamically balance "general" language features with "condition-specific" features at each generation step. Being non-parametric, it is more training-efficient than traditional gating mechanisms.
TF-IDF Based Masking
To focus the model on condition-defining vocabulary, the authors employ TF-IDF based masking during training on non-dialogue text. Instead of random masking, tokens with high TF-IDF scores—which are more likely to be characteristic of the persona or topic—are prioritized for masking.
Experimental Setup
The approach was evaluated on two primary datasets:
- Persona Reddit: Filtered from Reddit (2015–2019), treating users as personas. It includes 250k dialogue pairs and 500k non-dialogue posts for 2,000 distinct personas.
- Topic Dialogue: Based on a conversational dataset where 190 topics were predicted using Latent Dirichlet Allocation (LDA). It consists of 250k dialogue pairs and 500k related texts.
Results and Discussion
The proposed model consistently outperformed strong baselines, including the Speaker Model and GPT-based variants.
Performance in Data-Scarce Scenarios
A key finding is the model's robustness when dialogue data is limited. By leveraging related non-dialogue text, the performance gap caused by small dialogue datasets is significantly narrowed compared to standard two-step fine-tuning (FT) methods.
Key Insights
- Encoding vs. Generation: The Conditioned Language Encoding (CLE) task was found to be more beneficial for the final dialogue task than the Generation (CLG) task. The bidirectional attention in CLE helps the model learn superior representations of how conditions manifest in language.
- Data Ratios: MTL is most effective when the ratio of text-to-dialogue data is balanced. If the non-dialogue corpus is excessively large (e.g., >6.7x the dialogue data), sequential fine-tuning may eventually become more competitive.
- Human Evaluation: Human judges preferred the proposed model's responses for both appropriateness and condition consistency. For the Persona task, it achieved a consistency score of 1.24, significantly higher than the 0.85 achieved by the state-of-the-art C-Trans-Dec.
Conclusion
This multi-task learning approach provides a simple and efficient way to improve conditioned dialogue generation by tapping into the abundance of non-conversational labeled text. While the current work focuses on "loosely-conditioned" tasks (e.g., categorical topics), future research could extend this framework to "strictly-conditioned" scenarios requiring external knowledge grounding or explore the use of continuous embeddings for more complex conditions.
Summary updated