Diversifying Topic-Coherent Response Generation for Natural Multi-turn Conversations

Fei Hu, Wei Liu, Ajmal Saeed Mian, Li LiarXiv 2019

Introduction

Building conversational agents capable of natural, multi-turn dialogue remains a significant challenge in NLP. Standard Sequence-to-Sequence (Seq2Seq) models frequently succumb to the "safe reply" trap—the tendency to produce generic, high-frequency phrases like "I don't know" or "Thank you." While these responses are statistically likely, they lack information and stall the conversation.

Existing diversification techniques often suffer from two primary issues: context blindness, where models lose the thread of long-term dialogue, and topic drift, where attempts at diversity lead to irrelevant responses. This paper introduces the Topic-coherent Hierarchical Recurrent Encoder-Decoder (THRED) model, designed to generate responses that are simultaneously diverse and topic-coherent.

The THRED Architecture

THRED extends the Hierarchical Recurrent Encoder-Decoder (HRED) framework by incorporating two distinct types of contextual information to guide response generation:

  1. Global Contextual Distribution: Leveraging a Variational HRED (VHRED) approach, the model utilizes a latent variable ($z$) to capture high-level discourse knowledge, representing the general "vibe" and flow of the conversation.
  2. Local Topic Distribution: To ensure topical relevance, the authors construct a word-topic correlation matrix using Positive Pointwise Mutual Information (PPMI). To manage sparsity and ensure stability, Non-negative Matrix Factorization (NMF) is applied to compress this into a dense topic matrix.
The THRED architecture integrates global latent variables and local topic offsets to guide the decoder toward diverse yet relevant responses.

During training, the model is jointly optimized to predict the target sequence while minimizing Topic Divergence (TopicDiv)—a metric measuring the semantic distance between the context and the generated response.

Experimental Evaluation

The model was evaluated on two multi-turn datasets: Daily Dialogs (high-quality social conversations) and Ubuntu Dialogs (technical support logs). To evaluate the trade-off between diversity and relevance, the authors propose a combined F-score ($F_{Dist}$). This metric balances "Distinct" (diversity) and "TopicDiv" (coherence) using a parameter $\beta$. A lower $\beta$ favors diversity, while a higher $\beta$ favors topic coherence.

Results and Discussion

THRED consistently outperformed Seq2Seq, HRED, and VHRED baselines across both datasets and diversification levels (unigram and bigram).

F-scores across Ubuntu and Daily Dialog datasets. THRED (yellow) consistently maintains superior performance across varying weights of diversity vs. topic coherence.

Key findings include:

  • Stability via NMF: Raw word-level topic matrices proved too sparse for effective training. NMF-based clustering provided a dense topic space that significantly stabilized the learning process.
  • Qualitative Improvements: In technical contexts (Ubuntu), THRED generated specific, relevant terms (e.g., software package names) where baseline models defaulted to generic responses.
  • The Diversity-Perplexity Trade-off: Diversification inherently increases perplexity, as the model intentionally avoids the most statistically frequent (but boring) tokens.

Conclusion

THRED effectively addresses the "safe reply" problem by grounding diverse response generation in local topic modeling. While the model occasionally produces semantically invalid responses, it represents a significant step toward more engaging and contextually aware conversational AI. Future work will focus on improving semantic grounding to ensure responses are not only on-topic but also logically sound.

Summary updated

BibTeX
@misc{hu2019diversifying,
  author = {Fei Hu and Wei Liu and Ajmal Saeed Mian and Li Li},
  title = {{Diversifying Topic-Coherent Response Generation for Natural Multi-turn Conversations}},
  year = {2019},
  eprint = {1910.11161},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.11161},
}
Figure