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.

Introduction

In open-domain human-computer conversation, Sequence-to-Sequence (seq2seq) models have become the standard architecture. However, they suffer from a notorious "safe response" bias. Because these models are typically trained to maximize the likelihood of the next word, they gravitate toward high-frequency phrases found in training data. The result is a chatbot that offers "universal replies"—boring, generic responses like "I don't know" or "Me too"—that lack substance or specific relevance to the user's query.

The authors argue that the root of the problem is twofold: first, the query might not contain enough information to steer the decoder toward a specific topic; and second, once a decoder starts a sentence with a generic word (like "I" or "The"), it becomes mathematically difficult to pivot into a concrete, content-rich concept later in the sequence.

Methodology

To address these issues, the researchers propose a content-introducing approach consisting of two main phases: keyword prediction and the seq2BF model.

Phase I: Keyword Prediction

Instead of letting the decoder wander aimlessly, the system first picks a "gist" for the reply. It uses Pointwise Mutual Information (PMI) to find a noun that is highly associated with the words in the user's query but isn't a "universal" word itself. PMI effectively penalizes common words (like "it" or "is") and rewards words that share a strong, specific statistical bond with the input.

Phase II: The seq2BF Model

Standard decoders generate text from left to right. To ensure the predicted keyword actually appears in the reply, the authors developed the seq2BF (sequence to backward and forward) model.

The two-step architecture: PMI-based keyword prediction followed by the seq2BF generation process.
  • Backward Generation: Starting from the predicted keyword, the model generates the first half of the sentence in reverse order (moving from the keyword back to the start of the sentence).
  • Forward Generation: Once the "backward" half is complete, a second decoder generates the remainder of the sentence (from the keyword to the end).

The authors specifically used an asynchronous B/F approach, where the forward generator is "aware" of the backward half, ensuring the final sentence is fluent and coherent despite being built from the middle out.

Experimental Setup

The model was trained and evaluated on a massive Chinese dataset crawled from Baidu Tieba, a popular communication forum. The researchers used 500,000 query-reply pairs for training the seq2BF model and a much larger set of 100 million pairs to calculate the PMI statistics for keyword prediction. While keywords were predicted as full Chinese terms (nouns), the seq2BF model operated at the character level to improve efficiency and handle the vast vocabulary of the Chinese language.

Results and Discussion

The researchers compared their seq2BF+ (with keywords) against standard seq2seq and a seq2BF- (without keywords) baseline.

Quantitative Performance

  • Human Evaluation: In pairwise tests, the seq2BF+ model won 49.3% of the time, compared to only 24.7% for standard seq2seq.
  • Information Content (Entropy): The entropy of the generated replies—a measure of how much information they contain—increased by approximately 30% over the baseline. This quantitatively proves that the model generates more diverse and less predictable text.

Qualitative Success

Case studies demonstrate the model's ability to move from generic responses to specific, content-rich ones. By anchoring the sentence to a specific noun, the model avoids the "drift" into generic territory that often happens in long-sequence generation.

Qualitative comparison of generated replies, showing how seq2BF+ introduces specific content compared to generic baselines.

Conclusion

By starting with a keyword and generating "inside-out," the seq2BF model forces a commitment to a specific topic immediately. While successful, the paper notes that future work could explore introducing multiple keywords or different parts of speech (like verbs) to create even richer responses. Additionally, the system currently focuses on single-turn short-text conversations and relies heavily on the quality of the initial PMI-predicted keyword.

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