Abstract
Standard meta-learning for dialogue generation focuses on finding optimal model parameters within a fixed architecture. This paper introduces CMAML (Customized Model Agnostic Meta-Learning), an algorithm that customizes the model structure itself for each task. By pruning a private neural module for specific personas or emotions, the model achieves significantly better task consistency and response quality in few-shot scenarios.
Introduction
Building open-domain dialogue systems that adapt to a new user's personality or specific emotions with minimal examples is a significant challenge. Current state-of-the-art methods typically employ Model-Agnostic Meta-Learning (MAML) to find a "meta-initialization" of parameters for quick fine-tuning.
However, MAML maintains a static model structure. Given the discrete nature of language data, small gradient updates from a few sentences are often insufficient to significantly alter a fixed-structure model's output. To capture unique task characteristics—such as a specific user's speaking style—the model requires the flexibility to adapt its internal architecture, not just its weights.
Methods
The authors propose the Seq2SPG architecture and the CMAML training framework to address these limitations.
The Seq2SPG Architecture
The model consists of three primary components:
- Shared Module: A standard Sequence-to-Sequence (Seq2seq) model learning general language generation rules common to all tasks.
- Private Module: A multi-layer perceptron (MLP) unique to each task, starting from a shared initialization but differentiating into a unique structure.
- Gating Module: A mechanism determining the information flow from shared versus private modules to generate the final word distribution.
The CMAML Training Process
The training process involves two stages:
- Pre-training: Vanilla MAML is used to establish an initial parameter set for all modules.
- Customized Model Training: This stage involves Private Network Pruning using L1 regularization to encourage sparsity, followed by an "up-to-bottom" pruning strategy to remove unimportant edges. This results in a unique, lean network structure for every task. Finally, Joint Meta-learning re-trains the models using MAML, where similar tasks can share overlapping pruned structures to enrich limited training data.
Experiments and Results
The approach was evaluated on two benchmarks: Persona-chat (personalized dialogue) and MojiTalk (emotional dialogue generation).
The CMAML-Seq2SPG model outperformed all baselines, including standard MAML and fine-tuning methods. Key findings include:
- Task Consistency: On Persona-chat, CMAML improved the C score (persona consistency) by 22.2% over MAML-Seq2seq.
- Response Quality: Human evaluations rated CMAML higher in both quality and consistency compared to other meta-learning approaches.
- Model Diversity: High "Diff Scores" confirmed that CMAML successfully customized models for different tasks rather than producing generic responses.
- Few-shot Robustness: CMAML maintained high performance even with only 100 utterances, whereas non-meta-learning methods often collapsed into generating random word sequences.
Discussion and Conclusion
CMAML demonstrates that in low-data regimes, structural customization is more effective than parameter updates alone. The pruned private module acts as an implicit memory for task-specific information. By allowing pruned structures to overlap, the model naturally handles task similarity.
While effective, the two-stage training and pruning heuristics introduce computational overhead and require careful threshold tuning. Future work may explore scaling these structural customization strategies to larger Transformer-based architectures where pruning strategies are more complex.
Summary updated