A Mixture-of-Expert Approach to RL-based Dialogue Management

Yinlam Chow, Aza Tulepbergenov, Ofir Nachum, Moonkyung Ryu, Mohammad Ghavamzadeh, Craig Boutilier

Abstract

Despite recent advancements in language models (LMs), their application to dialogue management (DM) problems and ability to carry on rich conversations remain a challenge. We use reinforcement learning (RL) to develop a dialogue agent that avoids being short-sighted (outputting generic utterances) and maximizes overall user satisfaction. Most existing RL approaches to DM train the agent at the word-level, and thus, have to deal with a combinatorially complex action space even for a medium-size vocabulary. As a result, they struggle to produce a successful and engaging dialogue even if they are warm-started with a pre-trained LM. To address this issue, we develop a RL-based DM using a novel mixture of expert language model (MoE-LM) that consists of (i) a LM capable of learning diverse semantics for conversation histories, (ii) a number of specialized LMs (or experts) capable of generating utterances corresponding to a particular attribute or personality, and (iii) a RL-based DM that performs dialogue planning with the utterances generated by the experts. Our MoE approach provides greater flexibility to generate sensible utterances with different intents and allows RL to focus on conversational-level DM. We compare it with SOTA baselines on open-domain dialogues and demonstrate its effectiveness both in terms of the diversity and sensibility of the generated utterances and the overall DM performance.

Introduction

Building a dialogue agent that is both engaging and goal-oriented is a notorious "Goldilocks" problem in AI. Standard Language Models (LMs) are excellent at generating fluent text but often lack long-term direction, leading to "short-sighted" or generic responses—the common "I don't know" loop. Conversely, applying Reinforcement Learning (RL) to dialogue management is mathematically grueling. If an RL agent tries to plan at the word level, it faces a massive action space (the entire vocabulary), often resulting in gibberish or "incomprehensible utterances" as it struggles to find a path to a reward.

This research addresses a critical gap: How can we give an RL agent the power to steer a conversation toward long-term objectives, such as user satisfaction, without breaking the fluency of the underlying language model?

The MoE-LM Architecture

The proposed solution is a Mixture-of-Expert Language Model (MoE-LM). Instead of a monolithic model, the architecture is decomposed into three distinct stages to separate language generation from strategic planning.

Overview of the MoE-LM architecture and the three-step training process.
  1. Primitive Discovery: A "primitive" LM ($LM_0$) is trained using a KL-constrained optimization. This ensures the model learns a rich, diverse latent space that captures the many ways a conversation can go, avoiding the "posterior collapse" common in standard Variational Autoencoders (VAEs).
  2. Expert Construction: A gamut of specialized experts ($LM_i$) is built. These are "plug-and-play" models that share the same core architecture but are fine-tuned to generate utterances with specific attributes—such as being inquisitive, optimistic, or empathetic—using reward maximization.
  3. The Dialogue Manager (DM): This is the RL "brain." At each turn, all experts suggest candidate responses. The DM evaluates the conversation history and the candidates, then selects the optimal one. This shift in the RL action space is significant: by choosing between full utterances rather than individual words, the action space drops from ~50,000 to approximately 10, making the RL problem tractable.

Experimental Results

The models were evaluated on two major open-domain dialogue benchmarks: Reddit Casual and the Cornell Movie Corpus. The Reddit dataset, being three times larger, provided a robust test for the BERT-based architectures.

Superior Diversity and Planning

In comparative experiments, the MoE-4 model (using a BERT-based encoder) achieved significantly higher diversity scores (0.17) compared to a standard Transformer (0.091) and VHRED (0.11) without sacrificing fluency.

Furthermore, RL-managed agents—particularly those using Model-Based RL (MBRL)—outperformed all baselines in terms of User Satisfaction. The MoE-4 MBRL agent achieved a satisfaction score of 0.12, while the standard word-level RL baseline (Trans. RL) actually performed worse than the primitive model (-0.26), highlighting the difficulty of word-level planning.

Latent Space Analysis

A key insight is the importance of modularity and diversity. By forcing the latent space to be "dispersed," the model avoids repetitive responses.

PCA visualization of the MoE-4 Emotion latent space, demonstrating distinct clustering of specialized experts.

As shown in the visualization of the emotion latent space, the MoE approach successfully clusters different intents. This allows the model to generate paraphrases and contextually similar but structurally different responses, showing better generalization than standard Transformers that tend to memorize training data.

Conclusion

The MoE-LM approach transforms the role of the RL agent from a "writer" to a "director." This hierarchy allows for sensible, diverse, and strategically sound dialogue. While current evaluations rely on simulated users, future work aims to extend this framework to more complex, task-oriented domains such as negotiation and information retrieval, and to explore dynamic fine-tuning of experts based on the Dialogue Manager’s evolving objectives.

Summary updated

Abstract

Despite recent advancements in language models (LMs), their application to dialogue management (DM) problems and ability to carry on rich conversations remain a challenge. We use reinforcement learning (RL) to develop a dialogue agent that avoids being short-sighted (outputting generic utterances) and maximizes overall user satisfaction. Most existing RL approaches to DM train the agent at the word-level, and thus, have to deal with a combinatorially complex action space even for a medium-size vocabulary. As a result, they struggle to produce a successful and engaging dialogue even if they are warm-started with a pre-trained LM. To address this issue, we develop a RL-based DM using a novel mixture of expert language model (MoE-LM) that consists of (i) a LM capable of learning diverse semantics for conversation histories, (ii) a number of {\em specialized} LMs (or experts) capable of generating utterances corresponding to a particular attribute or personality, and (iii) a RL-based DM that performs dialogue planning with the utterances generated by the experts. Our MoE approach provides greater flexibility to generate sensible utterances with different intents and allows RL to focus on conversational-level DM. We compare it with SOTA baselines on open-domain dialogues and demonstrate its effectiveness both in terms of the diversity and sensibility of the generated utterances and the overall DM performance.
BibTeX
@inproceedings{chow2023mixture,
  author = {Yinlam Chow and Aza Tulepbergenov and Ofir Nachum and Moonkyung Ryu and Mohammad Ghavamzadeh and Craig Boutilier},
  title = {{A Mixture-of-Expert Approach to RL-based Dialogue Management}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=4FBUihxz5nm},
}
Figure