Abstract
Dialogue generation requires models capable of producing diverse and contextually relevant responses. While Variational Encoder-Decoders (VEDs) aim to capture high-level semantics through latent variables, they often suffer from the "KL-vanishing" problem, where the decoder ignores the latent space. This paper introduces the Collaborative Variational Encoder-Decoder (CO) framework, which decouples text autoencoding from latent prediction. By employing a two-phase iterative training strategy and scheduled sampling, the CO framework enables more flexible latent distributions, resulting in significant improvements in response coherence and diversity.
Introduction
In the field of dialogue generation, standard Recurrent Neural Networks (RNNs) frequently default to "safe" but uninformative responses, such as "I don't know." This occurs because word-level prediction lacks a global semantic plan. Variational Encoder-Decoders (VEDs) attempt to address this by introducing a latent variable $z$ to represent sentence-level meaning. However, a powerful RNN decoder often learns to bypass $z$ entirely—a phenomenon known as KL-vanishing—especially when the latent distribution is restricted to simple Gaussians. The paper identifies that because RNNs are universal function approximators, they will always find the "path of least resistance," bypassing the latent variable if it is difficult to utilize.
Methodology
The proposed Collaborative (CO) approach addresses KL-vanishing by splitting the model into two specialized modules that interact during training. This decoupling of the representation of a sentence from the prediction of that representation allows the model to utilize more complex, non-Gaussian latent distributions.
The Collaborative Framework
- The Autoencoder (AE) Module: This module focuses on the mechanics of language, learning to map a sentence into a continuous embedding ($\tilde{z}$) and then reconstruct the sentence from that embedding.
- The CVAE Module: This module focuses on the logic of the conversation, learning to predict the embedding $\tilde{z}$ based on the conversation history (context).
Key Innovations
- Two-Phase Iterative Training: The model alternates between the AE phase and the CVAE phase rather than training end-to-end simultaneously.
- Constraining the RNN Encoder: To ensure the AE module produces embeddings that the CVAE can learn, a KL-divergence constraint is added to the encoder to prevent the latent space from becoming too chaotic.
- Scheduled Sampling (SS) for Latents: During training, the decoder is initially fed the ground-truth embedding. Over time, the model gradually switches to using the "noisy" embedding generated by the CVAE, helping the decoder remain robust to prediction errors.
Experimental Setup
The researchers evaluated their model on two popular dialogue benchmarks:
- DailyDialog: A dataset of approximately 13,000 high-quality, human-written daily conversations.
- Switchboard: A collection of roughly 2,400 diverse and challenging two-sided telephone conversations.
Results and Analysis
The proposed CO+SS (Collaborative + Scheduled Sampling) model outperformed several baselines, including standard HRED and models using KL-annealing or Bag-of-Words losses.
Quantitative Performance
The model achieved the lowest Negative Log-Likelihood (NLL) and Perplexity (PPL) on both datasets. It also showed significantly higher scores in embedding-based topic similarity metrics (Average, Greedy, and Extrema), indicating more contextually relevant content.
Latent Space Visualization
T-SNE visualizations of latent distributions. The proposed CO+SS model (right) demonstrates a more diverse and overlapping distribution between prior and posterior states compared to traditional VED approaches (left). Improving Variational Encoder-Decoders in Dialogue Generation, page 6
As shown in the T-SNE visualizations, the CO+SS model creates a much more diverse and overlapping latent distribution between the prior (predicted) and posterior (actual) states compared to traditional VHRED. This suggests that the model successfully avoids the posterior collapse associated with KL-vanishing.
Human Evaluation
In blind tests, humans rated the CO+SS responses as more fluent (89%) and coherent (44%) compared to standard Variational models, confirming the practical benefits of the collaborative training approach.
Conclusion and Future Work
The Collaborative Variational Encoder-Decoder framework offers a stable and effective solution to the KL-vanishing problem in dialogue generation. By prioritizing cooperation over competition (unlike adversarial GAN-based approaches), the model achieves high flexibility in the latent space. While the authors acknowledge that human evaluation remains subjective and that VAEs may be theoretically less accurate than GANs at capturing exact distributions, the CO framework shows great promise. Future research will explore the generalization of this framework to other sequence-to-sequence tasks such as summarization and translation.
Summary updated