DialogVED: A Pre-trained Latent Variable Encoder-Decoder Model for Dialog Response Generation

Wei Chen, Yeyun Gong, Song Wang, Bolun Yao, Weizhen Qi, Zhongyu Wei, Xiaowu Hu, Bartuer Zhou, Yi Mao, Biao Cheng, Nan Duan · DOI

Abstract

Generating relevant and diverse responses remains a primary challenge in open-domain dialogue systems. This paper introduces DialogVED, a novel pre-training framework that integrates continuous latent variables into an enhanced encoder-decoder architecture. By leveraging a large-scale dialogue corpus (Reddit) and a multi-task pre-training strategy—including masked language modeling, response generation, bag-of-words prediction, and KL divergence reduction—DialogVED effectively models the "one-to-many" nature of conversation. Experimental results on PersonaChat, DailyDialog, and DSTC7-AVSD benchmarks demonstrate that DialogVED achieves new state-of-the-art (SOTA) performance, significantly improving both the relevance and diversity of generated responses.

Introduction

In open-domain dialogue, a single context can lead to a vast array of appropriate responses, a phenomenon known as the "one-to-many" mapping problem. Traditional sequence-to-sequence (Seq2Seq) models often struggle with this complexity, frequently defaulting to "safe" but generic responses like "I don't know" or "That is interesting." While previous attempts have used discrete latent variables to categorize dialogue intents, they often fail to capture the nuanced, continuous spectrum of human conversation.

DialogVED addresses this by incorporating continuous latent variables into a Transformer-based encoder-decoder pre-training framework. This approach allows the model to map potential responses into a smooth semantic space, enabling the generation of more varied and contextually rich replies.

The DialogVED Framework

Continuous Latent Variables and Memory Scheme

DialogVED represents the unobserved factors of a response as a continuous vector $z$. During training, a prior network (a multi-layer perceptron) estimates the distribution of $z$ based on the dialogue context. To ensure the decoder actively utilizes this latent information—and to avoid the common "posterior collapse" where the model ignores the latent variable—the authors implement a memory scheme. In this scheme, $z$ is mapped to a "memory vector" that acts as an additional key-value pair. The decoder attends to this virtual token at every layer, ensuring the latent variable guides the entire generation process.

Multi-Task Pre-training

The model is pre-trained on approximately 215 million dialogue samples from Reddit using four simultaneous objectives:

  1. Masked Language Model (MLM): The model predicts missing spans in the input context to enhance its linguistic understanding.
  2. Response Generation with n-gram Loss: Drawing inspiration from ProphetNet, the decoder is tasked with predicting $n$ future tokens simultaneously. This encourages the model to plan the trajectory of a sentence rather than merely predicting the next word.
  3. Bag-of-Words (BoW) Loss: This non-autoregressive task requires the latent variable $z$ to predict the set of words present in the target response. This forces $z$ to capture the global semantic content of the reply.
  4. KL Divergence Reduction: This objective minimizes the distance between the predicted distribution of the latent variable and the actual distribution observed during training.

To further capture the nuances of multi-turn interactions, the model incorporates specialized embeddings for turns and roles (identifying which speaker is contributing), providing structural context that standard language models often lack.

Experimental Setup

Datasets

  • Pre-training: A 42GB crawl of Reddit, categorized into "Short" and "Long" subsets to optimize training efficiency.
  • Fine-tuning: The model was evaluated on three major benchmarks:
  • DailyDialog: High-quality human conversations regarding daily life.
  • PersonaChat: Dialogues where agents must maintain consistency with specific persona profiles.
  • DSTC7-AVSD: A conversational task requiring agents to answer questions based on video scenes.

Results and Discussion

Quantitative Performance

DialogVED outperformed previous SOTA models, including PLATO and ProphetNet, across multiple metrics:

  • Relevance: On the DailyDialog dataset, DialogVED achieved a BLEU-2 score of 0.421, a significant improvement over PLATO’s 0.311.
  • Diversity: The model demonstrated a superior ability to generate non-repetitive text. On PersonaChat, it achieved a Distinct-2 score of 0.273, more than doubling the diversity score of the baseline ProphetNet.

Human Evaluation

In head-to-head human evaluations, judges consistently rated DialogVED’s responses as more coherent and informative than those produced by competing models. The results highlighted a classic trade-off in natural language generation: while sampling from the latent space increased the "boldness" and diversity of the responses, it occasionally resulted in a slight decrease in logical coherence compared to deterministic greedy search.

Conclusion

DialogVED represents a significant step forward in open-domain dialogue pre-training. By combining the structural strengths of encoder-decoder models with the flexibility of continuous latent variables, it successfully mitigates the "one-to-many" problem. While the current iteration focuses on general conversation, future work may involve integrating explicit knowledge modeling to further enhance the factual accuracy and depth of the generated responses. The success of DialogVED across diverse benchmarks suggests that continuous latent spaces are a powerful tool for building more human-like conversational agents.

Summary updated

BibTeX
@inproceedings{chen2022dialogved,
  author = {Wei Chen and Yeyun Gong and Song Wang and Bolun Yao and Weizhen Qi and Zhongyu Wei and Xiaowu Hu and Bartuer Zhou and Yi Mao and Weizhu Chen and Biao Cheng and Nan Duan},
  title = {{DialogVED: A Pre-trained Latent Variable Encoder-Decoder Model for Dialog Response Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.333},
}
Figure