Abstract
Variational Encoder-Decoders (VEDs) are powerful tools for dialogue generation but frequently suffer from the "KL-vanishing" problem, where the decoder learns to ignore the latent variable. This paper introduces the Collaborative Variational Encoder-Decoder (CO) framework, which decouples the training process into two distinct phases: autoencoding text into a continuous space and modeling that space with a latent variable. Combined with a Scheduled Sampling (SS) strategy, the CO framework effectively forces the decoder to utilize latent information, resulting in significantly more diverse and semantically relevant dialogue responses.
Introduction: The KL-Vanishing Problem
In dialogue systems, Recurrent Neural Networks (RNNs) often produce generic, "safe" responses like "I don't know." While VEDs aim to introduce diversity via a latent variable $z$, they often fail due to the KL-vanishing problem. Because RNN decoders are highly expressive, they can minimize the training loss by relying solely on previous ground-truth words, effectively setting the KL-divergence to zero and ignoring the noisy latent representation. Traditional solutions, such as word dropout, often compromise the quality of the generated text.
Methodology: The Collaborative Framework
The proposed Collaborative (CO) approach addresses this by splitting the architecture into two iteratively trained modules:
- Autoencoder (AE) Module: This module learns to map discrete dialogue utterances into a continuous embedding space ($\tilde{z}$) and then reconstruct them. Crucially, it is constrained to ensure this embedding space is "friendly" and easy for the second module to model.
- CVAE Module: This module learns the distribution of these embeddings. Instead of forcing the latent variables to follow a simple Gaussian distribution from the start, it learns to generate latent variables that match the embeddings produced by the AE.
Scheduled Sampling (SS)
To transition from the "perfect" embeddings of the AE to the "noisier" variables of the CVAE, the authors employ Scheduled Sampling. As training progresses, the probability $p = \max(1 - i/k, 0)$ of using the AE embedding decreases, forcing the decoder to become robust to the latent distribution.
Experimental Evaluation
The model was evaluated on the DailyDialog and Switchboard datasets. Quantitative results showed that the CO+SS model achieved the lowest Negative Log-Likelihood (NLL) and highest topic similarity scores (Average, Greedy, and Extrema) compared to baselines like HRED and KL-annealing (KLA). For instance, on DailyDialog, CO+SS achieved an NLL of 213.2 compared to 229.1 for the HRED baseline.
Visual and Human Evidence
Human evaluations confirmed that CO+SS produces the most fluent responses (89% fluency) while maintaining high coherence. Crucially, t-SNE visualizations of the latent space demonstrate that the CO framework achieves a much better overlap between prior and posterior distributions than standard VHRED models, which tend to show distinct, non-overlapping clusters.
Conclusion
By decoupling representation learning from distribution modeling, the Collaborative Variational Encoder-Decoder framework provides a robust solution to the KL-vanishing problem. This flexibility allows the model to capture the multi-modal nature of human conversation more effectively than rigid, standard VAE architectures. Future work may extend this framework to other sequence-to-sequence tasks such as translation and summarization.
Summary updated