Dior-CVAE: Pre-trained Language Models and Diffusion Priors for Variational Dialog Generation

Tianyu Yang, Thy Thy Tran, Iryna Gurevych

Abstract

Open-domain dialog generation faces a significant "one-to-many" challenge, where a single context can lead to numerous valid responses. Traditional Conditional Variational Autoencoders (CVAEs) often fail to capture this diversity due to restrictive Gaussian priors and the "posterior collapse" phenomenon in large pre-trained models. We present Dior-CVAE, a framework that utilizes expressive diffusion priors and a novel memory dropout technique. Our approach demonstrates significant improvements in response diversity and quality on standard benchmarks like DailyDialog and Persona-Chat, while maintaining inference efficiency comparable to standard CVAE models.

Introduction

In open-domain conversation, human responses are inherently diverse. For a statement like "It's rainy, let's go to eat hotpot!", a listener might agree, decline for health reasons, or ask for a specific location. Modeling this variety is a core goal of modern dialog systems.

Standard CVAEs use latent variables to represent these different intents, typically drawn from a simple Gaussian distribution. However, when paired with powerful decoders like BART, these models often ignore the latent variables entirely—a problem known as posterior collapse. This leads to "safe" but generic and repetitive responses. Dior-CVAE addresses these limitations by replacing simple priors with complex diffusion processes that can capture the semantic richness of human language.

Comparison of Gaussian vs. Diffusion Priors for dialog diversity

Methodology

Dior-CVAE introduces three primary technical innovations to enhance dialog generation:

1. Diffusion Priors

Unlike Gaussian priors that assume a simple bell-curve distribution, diffusion priors learn to generate latent variables by reversing a noise-adding process. This allows the model to learn a much more complex and expressive latent space that is compatible with the high-dimensional representations of Pre-trained Language Models (PLMs).

2. Hierarchical Latent Structure

The framework employs a hierarchy of latent variables derived from multiple encoder layers. These variables are infused into corresponding decoder layers, ensuring that latent information is integrated throughout the generation process rather than just at the initial step.

3. Memory Dropout

To combat posterior collapse, we introduce "memory dropout." During training, the model randomly masks the encoder's hidden states (the "memory") that the decoder typically accesses via cross-attention. This forces the decoder to rely on the hierarchical latent variables to reconstruct the response, ensuring the latents remain influential even with a powerful decoder.

Dior-CVAE Architecture Overview including Diffusion and Memory modules

Experimental Results

We evaluated Dior-CVAE on the DailyDialog and Persona-Chat benchmarks, comparing it against several state-of-the-art baselines.

  • Superior Diversity: Dior-CVAE achieved a Distinct-2 score of 35.1 on DailyDialog, significantly outperforming both non-pre-trained models and large-scale pre-trained models like PLATO.
  • Human Preference: In human evaluations, Dior-CVAE was rated higher than the strong DialogVED baseline in both coherence and informativeness.
  • Inference Efficiency: Despite the iterative nature of diffusion, the model maintains high throughput (~124 tokens/sec), which is nearly identical to standard CVAE models (~128-131 tokens/sec). This makes it a practical choice for real-time applications.

Conclusion

Dior-CVAE demonstrates that diffusion models are highly effective for modeling the semantic complexity of human dialog. By combining expressive priors with memory dropout, we successfully mitigate posterior collapse and achieve state-of-the-art diversity in open-domain conversation. Future work will explore adapting these techniques for decoder-only architectures and optimizing noise scheduling for even greater stability.

Summary updated

BibTeX
@inproceedings{yang2023dior,
  author = {Tianyu Yang and Thy Thy Tran and Iryna Gurevych},
  title = {{Dior-CVAE: Pre-trained Language Models and Diffusion Priors for Variational Dialog Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.313},
}
Figure