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

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

Abstract

Open-domain dialogue generation often suffers from the "one-to-many" problem, where models produce generic, safe responses. DialogVED addresses this by incorporating continuous latent variables into a large-scale pre-trained encoder-decoder framework. By combining Variational Autoencoder (VAE) techniques with four distinct pre-training objectives, DialogVED achieves state-of-the-art results on major benchmarks, effectively balancing response relevance with semantic diversity.

Introduction

A primary challenge in open-domain dialogue is the inherent diversity of valid responses to a single context. Standard sequence-to-sequence models often converge to high-probability but uninformative "generic" responses. While recent pre-trained language models (PLMs) have improved fluency, they frequently struggle with the trade-off between relevance and diversity. Previous work, such as the PLATO model, utilized discrete latent variables to capture response styles. DialogVED proposes that continuous latent variables offer a more expressive space for capturing the nuanced semantics of human conversation.

Methodology

DialogVED utilizes a 12-layer Transformer backbone enhanced with a continuous latent space. To mitigate "posterior collapse"—a common issue where the model ignores the latent variable—the authors implement several architectural and objective-based innovations.

The DialogVED architecture illustrating the encoder-decoder structure, latent variable sampling, and the four pre-training tasks.

Continuous Latent Space and Memory Scheme

The model maps dialogue context to a distribution in a latent space, from which a variable $z$ is sampled. Instead of simple concatenation, DialogVED employs a "memory scheme" where $z$ is transformed into additional key-value pairs that the decoder attends to across all layers, ensuring the latent information consistently guides generation.

Pre-training Objectives

The model is optimized using four simultaneous tasks:

  1. Masked Language Spans: Encourages the encoder to understand inter-turn relationships by masking contiguous spans of text.
  2. Response Generation with n-gram Loss: Uses an n-stream self-attention mechanism to predict multiple future tokens, improving long-term planning.
  3. KL Divergence Reduction: Aligns the latent distribution of the context with that of the target response.
  4. Bag-of-Words (BOW) Loss: Forces the latent variable to predict the response vocabulary non-autoregressively, ensuring it captures significant semantic weight.

Experimental Setup

The model was pre-trained on a massive 42GB Reddit corpus comprising 215 million samples. For evaluation, the authors utilized three diverse benchmarks: DailyDialog (everyday human conversation), PersonaChat (grounded in specific personas), and DSTC7-AVSD (video-based conversational QA).

Results and Discussion

DialogVED established new state-of-the-art (SOTA) performance across all evaluated benchmarks. As shown in the results below, the model significantly improves both relevance (BLEU) and diversity (Distinct) metrics compared to previous models like PLATO and ProphetNet.

Performance comparison of DialogVED against baseline models on the DailyDialog and PersonaChat datasets.

On DailyDialog, DialogVED achieved a BLEU-2 score of 0.421, a substantial improvement over PLATO's 0.311. More importantly, the diversity metrics saw a dramatic increase; on PersonaChat, the Distinct-2 score reached 0.094, nearly six times higher than the standard Seq2Seq baseline. Human evaluations further confirmed these findings, with annotators preferring DialogVED for its superior coherence and informativeness.

Conclusion

DialogVED demonstrates that integrating continuous latent variables into large-scale pre-training is a viable and effective strategy for enhancing dialogue generation. The combination of the BOW loss and the memory scheme successfully prevents posterior collapse, allowing the model to leverage the latent space for more creative and diverse responses. Future work may involve scaling the model further and explicitly incorporating external knowledge bases to improve factual grounding.

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