Sequence to Backward and Forward Sequences: A Content-Introducing Approach to Generative Short-Text Conversation

Lili Mou, Yiping Song, Rui Yan, Ge Li, Lu Zhang, Zhi Jin

Abstract

Using neural networks to generate replies in human-computer dialogue systems is attracting increasing attention over the past few years. However, the performance is not satisfactory: the neural network tends to generate safe, universally relevant replies which carry little meaning. In this paper, we propose a content-introducing approach to neural network-based generative dialogue systems. We first use pointwise mutual information (PMI) to predict a noun as a keyword, reflecting the main gist of the reply. We then propose seq2BF, a “sequence to backward and forward sequences” model, which generates a reply containing the given keyword. Experimental results show that our approach significantly outperforms traditional sequence-to-sequence models in terms of human evaluation and the entropy measure, and that the predicted keyword can appear at an appropriate position in the reply.

1. Introduction

The development of neural dialogue systems has been hindered by the "Universal Reply" problem. Standard Sequence-to-Sequence (seq2seq) models, which are trained to maximize the likelihood of a response given a query, frequently produce generic, high-frequency phrases such as "I don't know" or "Me too." While these responses are technically appropriate in many contexts, they lack informative content and fail to engage users.

This phenomenon occurs primarily because the standard objective function favors common words and the chronological, left-to-right decoding process. Once a model begins a sentence with a generic word, it often becomes statistically "trapped," making it difficult to introduce specific, meaningful concepts later in the sequence.

2. The Content-Introducing Approach

We propose a two-stage framework designed to inject substance into dialogue generation by anchoring the response around a specific keyword.

2.1 Keyword Prediction via PMI

Instead of allowing the decoder to determine the entire sentence structure from scratch, our system first selects a "gist" word—specifically a noun—to serve as the semantic core of the reply. We utilize Pointwise Mutual Information (PMI) to identify nouns with strong statistical associations to the query. By calculating the ratio of the joint probability of a word and the query to their individual probabilities, PMI effectively rewards informative words while penalizing ubiquitous ones like "the" or "it."

2.2 The seq2BF Model

To ensure the chosen keyword is naturally integrated into the final response, we developed the Sequence to Backward and Forward (seq2BF) model. This architecture breaks the traditional chronological constraint of decoding:

  1. Backward Sequence: Starting from the predicted keyword, the model generates words in reverse order until it reaches the beginning of the sentence.
  2. Forward Sequence: The model then generates the remainder of the sentence from the keyword to the end, conditioned on both the original query and the previously generated backward segment.

This non-linear approach allows the keyword to appear at any appropriate position—beginning, middle, or end—within the reply, avoiding the "generic start" trap of standard models.

The content-introducing framework: Step I uses PMI for keyword prediction, and Step II employs the seq2BF model for non-linear response generation.

3. Experimental Evaluation

The model was trained on 500,000 query-reply pairs harvested from Baidu Tieba. PMI statistics were derived from a significantly larger corpus of 100 million pairs to ensure robust keyword association.

A key insight of our study is that traditional metrics like BLEU are often inadequate for evaluating dialogue quality. In our tests, valid human-written replies often received a BLEU score of zero due to lack of n-gram overlap with a single reference. Consequently, we prioritized human evaluation and entropy (a measure of information density) as our primary metrics.

4. Results and Discussion

Our proposed model, seq2BF+, demonstrated substantial improvements over standard seq2seq baselines.

4.1 Quantitative Performance

In pairwise human comparisons, seq2BF+ was preferred in 49.3% of cases, compared to only 24.7% for the standard seq2seq model. Furthermore, the entropy of the generated replies—reflecting their diversity and informativeness—rose from 6.96 in the baseline to 9.14 in our model.

4.2 Qualitative Analysis

Qualitative results highlight the model's ability to move beyond generic responses. For example, when responding to a query about a university exam, the standard model might offer a simple "Me too!", whereas seq2BF+ introduces the keyword "score" to ask a relevant follow-up question.

Qualitative comparison showing how the seq2BF+ model introduces specific content (bolded keywords) compared to generic seq2seq outputs.

5. Conclusion

By utilizing nouns as semantic anchors and employing a bi-directional decoding strategy, the seq2BF model effectively addresses the universal reply problem in short-text conversation. Future research will explore more sophisticated neural keyword prediction and the extension of this framework to multi-turn dialogues and external knowledge integration.

Summary updated

BibTeX
@inproceedings{mou2016sequence,
  author = {Lili Mou and Yiping Song and Rui Yan and Ge Li and Lu Zhang and Zhi Jin},
  title = {{Sequence to Backward and Forward Sequences: A Content-Introducing Approach to Generative Short-Text Conversation}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2016},
  url = {https://openreview.net/forum?id=J_PHF3siKS},
}
Figure