Generating Multiple Diverse Responses for Short-Text Conversation

Jun Gao, Wei Bi, Xiaojiang Liu, Junhui Li, Shuming Shi

Abstract

Traditional sequence-to-sequence models for short-text conversation often fail to capture the inherent one-to-many nature of human dialogue, resulting in generic and repetitive outputs. We propose a novel framework that utilizes interpretable "latent words" to anchor diverse response generation. By treating response generation as a joint optimization over a "bag" of potential replies and employing a reinforcement learning framework with a minimum loss strategy, our model significantly improves both the quality and semantic diversity of generated responses compared to existing baselines.

Introduction

In social media contexts, a single input post can trigger a wide variety of valid responses. However, standard Sequence-to-Sequence (Seq2seq) models are typically trained using a 1-to-1 mapping, which forces them to find a "safe" average, leading to dull outputs like "I don't know." While techniques like Conditional Variational Autoencoders (CVAE) attempt to introduce diversity via latent variables, they often suffer from "mode collapse," where the model ignores the latent noise. The core challenge lies in effectively modeling the 1-to-n relationship between a query and its potential responses.

Proposed Framework

Our approach addresses the 1-to-n challenge by introducing a two-component architecture that leverages discrete, interpretable latent variables.

Architecture of the Latent Word Inference and Generation Networks.
  1. Latent Word Inference Network: Instead of abstract vectors, this network predicts a probability distribution over the vocabulary to select a "latent word" (e.g., "beach" for a vacation post). This provides an interpretable anchor for the response.
  2. Generation Network: This component uses the input post and the selected latent word to produce a final response, utilizing an attention mechanism to focus on relevant parts of the input.

To train this system, we utilize the REINFORCE algorithm, treating the selection of a latent word as an action. A key innovation is the "minimum loss" strategy: rather than forcing a latent word to explain every response in a target "bag," the model is rewarded if the generated response matches at least one ground-truth response well. This prevents the model from being penalized for not matching every possible diverse response simultaneously.

Experimental Results

The model was evaluated on the Weibo (4M pairs) and Twitter (750k pairs) datasets. We compared our "Ours(Min)" variant against several baselines, including Beam Search (BS), CVAE, and the cue-word-based HGFU model.

Performance comparison across various metrics on the Weibo dataset.

As shown in the table above, Ours(Min) achieves superior performance in diversity metrics (distinct-1 and distinct-2) while maintaining competitive BLEU scores. Human evaluation further confirmed these results; on the Weibo dataset, the "Good" response ratio for our model reached 20.9%, a massive improvement over the HGFU baseline (7.1%). Our model also achieved a diversity score of 1.436, significantly higher than standard Seq2seq methods (~0.68).

Conclusion

By anchoring generation in interpretable latent words and optimizing over a bag of responses via reinforcement learning, we successfully model the 1-to-n nature of short-text conversation. This approach effectively mitigates mode collapse and produces responses that are both relevant and diverse. Future work will explore extending this framework to multi-turn dialogues and reducing the dependency on pre-constructed candidate sets for latent words.

Summary updated

BibTeX
@inproceedings{gao2019generating,
  author = {Jun Gao and Wei Bi and Xiaojiang Liu and Junhui Li and Shuming Shi},
  title = {{Generating Multiple Diverse Responses for Short-Text Conversation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33016383},
}
Figure