Generating Multiple Diverse Responses for Short-Text Conversation.

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

TL;DR

This paper tackles the challenge of generating multiple, diverse, and relevant responses for a single short text input, moving beyond the typical one-to-one mapping of traditional conversational AI. They introduce a novel model that jointly considers a set of responses and uses a reinforcement learning approach to effectively learn from a large, interpretable latent space.

What Problem Does This Paper Address?

Current neural generative models for short-text conversations excel at producing a single, relevant response to an input post. However, in real-world scenarios like social media, a single post often elicits multiple, varied replies. Existing methods either struggle to generate truly diverse responses or rely on post-hoc re-ranking, which can be suboptimal. This paper aims to bridge this gap by developing a model that can simultaneously generate a set of high-quality, distinct responses for a given input.

Methods

The core of the proposed method is a joint response generation model that treats an input post and its associated multiple responses as a "bag of instances." Instead of a one-to-one mapping, it learns a latent variable distribution for each post. By sampling different values from this learned distribution, the model can generate multiple diverse responses.

Key components include:

  • Latent Word Inference Network: This network estimates the probability distribution of latent words for a given input post. These latent words are designed to be interpretable, acting as guides for response generation.
  • Response Generation Network: This network takes the input post and a sampled latent word to generate a response. It's designed to leverage the latent word to produce more meaningful and contextually relevant outputs.
  • Reinforcement Learning (RL) for Optimization: Due to the large and interpretable latent space (words in the vocabulary), directly computing gradients is intractable. The authors employ an RL approach, specifically the REINFORCE algorithm, to train the latent word inference network. The generation network is updated via standard backpropagation.
  • Two-Step Sampling Scheme: To manage the large latent space and ensure diversity, a two-step sampling strategy is used. First, a candidate set of latent words is identified for each post. Then, these candidates are clustered, and sampling is performed across clusters to encourage distinct latent word selections.
  • Minimum Loss Function: To aggregate the loss from multiple responses, the authors propose using the minimum loss among the responses, arguing it's more suitable than averaging when not all responses might be equally relevant to a single latent word.

Datasets

The authors evaluate their model on two short-text conversation datasets:

  • Weibo: A Chinese social media dataset with approximately 4 million training pairs.
  • Twitter: An English social media dataset with around 750,000 training pairs.

Both datasets are characterized by having input posts associated with multiple output sequences.

Key Insights and Ideas

  • Latent words as interpretable guides: The idea of using words from the vocabulary as latent variables is powerful because it provides a degree of interpretability. This allows researchers to understand why certain responses are generated.
  • Joint modeling of multiple responses: Moving beyond generating one response at a time and instead considering the entire set of potential responses is crucial for capturing the richness of human conversation.
  • RL for large, interpretable latent spaces: The application of RL is a smart way to handle the optimization challenges posed by a large, discrete, and interpretable latent space, which is often difficult to manage with standard gradient-based methods.
  • Diversity through latent variable sampling: The core hypothesis is that by sampling different latent words, the model can naturally generate diverse responses, as these words can steer the generation towards different semantic directions.

Key Results

The proposed model, particularly the "Ours(Min)" variant, consistently outperforms existing state-of-the-art methods on both Weibo and Twitter datasets across various metrics.

  • Quality: Human evaluations show a significant improvement in "acceptable" and "good" response ratios. For example, on Weibo, "Ours(Min)" achieved a ~195% improvement in the "good" ratio over HGFU and on Twitter, a 70% increase over MMI and 126% over MultiMech.
  • Diversity: Automatic metrics like Distinct-1/2 and human evaluations for diversity show substantial gains. "Ours(Min)" achieved higher diversity scores compared to baselines like BS, DBS, MMI, MultiMech, and HGFU.
  • Latent Space Size: Experiments indicate that a larger latent space is critical for achieving good performance, with scores dropping significantly when the latent space is reduced.

Limitations and Future Work

  • Latent Space Size: While a large latent space is beneficial, it also increases computational complexity. The paper notes that using the entire vocabulary as the latent space is impractical.
  • Keyword Extraction for Pre-training: The initial pre-training of the latent word inference network relies on keyword extraction tools, which might introduce biases or limitations based on the quality of these tools.
  • Future Work: The authors suggest exploring more sophisticated methods for inferring latent variables and potentially incorporating discourse-level information for more complex conversational scenarios. They also highlight the potential for further research into interpretable latent variable models.

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