Abstract
Standard Conditional Variational Auto-encoders (CVAEs) in neural response generation often suffer from "model collapse," where the decoder ignores the latent variable, resulting in generic, repetitive responses. We present the Variational Autoregressive Decoder (VAD), a novel framework that replaces the single global latent variable with a sequence of latent variables. By incorporating a "future-looking" backward RNN and a sequential bag-of-words (SBOW) loss, VAD ensures that latent variables remain informative throughout the generation process, significantly improving response diversity and relevance.
Introduction: The Challenge of Multimodality
Open-domain dialogue generation is inherently multimodal; a single query like "How was your day?" can elicit a wide variety of valid responses, ranging from "Splendid day!" to "Nothing blew up." Traditional Sequence-to-Sequence (Seq2Seq) models often fail to capture this diversity, defaulting to safe, "universal" responses such as "I don't know."
While CVAEs attempt to model this multimodality using a latent variable $z$, they frequently encounter two major hurdles: model collapse and a lack of expressiveness for long-term semantic shifts. Standard models use one single $z$ to represent an entire response, which is often too simplistic to capture the shifting semantics of a long sentence.
Methodology: The Variational Autoregressive Decoder
The VAD architecture introduces three primary innovations to overcome the limitations of standard CVAEs:
- Sequential Latent Variables: Instead of a single $z$ for the entire response, VAD samples a new latent variable $z_t$ at every time step $t$. This allows the model to adjust its "intent" word-by-word, navigating a more complex probability landscape.
- Backward RNN for Inference: To accurately estimate the latent variables during training, a backward RNN processes the response from end to beginning. This provides $z_t$ with information about future words, acting as a "look-ahead" mechanism that teaches the model to pick latent variables consistent with a long-term plan.
- Sequential Bag-of-Words (SBOW) Loss: To mitigate model collapse, an auxiliary task requires each $z_t$ to predict the "bag of words" (the vocabulary) that makes up the remainder of the sentence. This ensures each latent variable carries meaningful semantic weight about the upcoming content.
Experimental Evaluation
The model was evaluated on two standard dialogue datasets: OpenSubtitles (movie scripts) and Reddit (informal social media interactions). Conversations were filtered for quality, maintaining sentence lengths between 6 and 40 words.
Key Results
VAD demonstrated superior performance across multiple metrics compared to Seq2Seq and standard CVAE baselines:
- Diversity: On the Reddit dataset, VAD achieved a Dist-2 score of 0.391, nearly doubling the performance of standard CVAE (0.097) and significantly outperforming the CVAE+BOW baseline (0.282).
- Relevance: Using the RUBER metric, VAD consistently scored higher than all baselines, indicating that its responses were contextually appropriate.
- Human Evaluation: In head-to-head matchups, human judges preferred VAD's responses over the CVAE+BOW baseline 68.5% of the time, citing better fluency and relevance.
- Response Length: VAD generated longer, more informative responses, averaging ~14 words on Reddit compared to 10.8 words for the CVAE+BOW baseline.
Conclusion and Future Work
The Variational Autoregressive Decoder successfully addresses the model collapse problem by anchoring sequential latent variables to future sentence content via SBOW loss and a backward RNN. While the per-step sampling introduces some computational overhead, it offers a significant leap in generating diverse and relevant dialogue. Future work may explore incorporating linguistic features like Part-of-Speech tags and extending this sequential approach to multi-turn dialogue memory.
Summary updated