Better Conversations by Modeling, Filtering, and Optimizing for Coherence and Diversity

Xinnuo Xu, Ondrej Dusek, Ioannis Konstas, Verena Rieser

Introduction

Open-domain conversational agents often suffer from the "boring chatbot" problem, where models generate safe but contextually vacuous responses like "I don't know" or "Me too." This issue stems from standard neural encoder-decoder models being trained to maximize the probability of the next word, leading them to favor high-frequency, generic sequences. This paper addresses two primary failings: a lack of coherence (relevance to the topic) and a lack of diversity (lexical variety).

Qualitative comparison of coherent vs. incoherent responses illustrating the 'dull response' problem.

Methodology

The authors propose a unified unsupervised framework that simultaneously addresses data quality, model architecture, and the training objective.

1. Quantifiable Coherence

Coherence is defined as the cosine similarity between the averaged GloVe embeddings of the dialogue context and the response. This provides an unsupervised metric to score topical fit.

2. Coherence-Based Data Filtering

The researchers argue that large-scale datasets like OpenSubtitles (OST) are noisy due to missing multi-modal context. By filtering the corpus to retain only pairs with high coherence scores ($\ge 0.68$), they created a high-quality training set dubbed fOST.

3. The cVAE-XGate Model

The core of the proposed architecture is a conditional Variational Autoencoder (cVAE) featuring two latent variables: $z$ to capture global discourse information (promoting diversity) and $c$ to explicitly encode the coherence score.

Architecture of the cVAE-XGate model during training, showing the integration of the context gate and latent variables.

A key innovation is the XGate (context gate) mechanism. During decoding, this gate dynamically balances the model's focus between the dialogue context and previously generated words, guided by the target coherence signal.

Experimental Results

The model was evaluated on the OST and fOST datasets. Key findings include:

  • Data Quality Impact: Models trained on the filtered fOST dataset consistently outperformed those trained on raw OST data, even when evaluated on noisy test sets. This suggests that "cleaning" data for topicality is more effective than increasing raw volume.
  • Quantitative Gains: The cVAE-XGate model achieved a BLEU score of 4.98 on the filtered test set, nearly doubling the performance of the standard Attention baseline (3.84).
  • Diversity Improvement: The "Distinct-Sent" metric (proportion of unique sentences) rose from 25.6% in the baseline to over 80% in the cVAE models on the OST dataset.
  • Qualitative Success: As shown in the examples in Figure 3, while a standard model might respond to a query about a kitchen with a generic "Let's go for a walk," the cVAE-XGate model provides specific, relevant details like "Specifically the stove."

Conclusion and Future Work

While effective, the current coherence measure relies on a bag-of-words GloVe approach, which may miss nuances like irony or complex syntax. Additionally, the model may penalize natural topic shifts. Future work aims to replace the heuristic measure with a trained discriminator and conduct large-scale human evaluations.

Summary updated

BibTeX
@inproceedings{xu2018better,
  author = {Xinnuo Xu and Ondrej Dusek and Ioannis Konstas and Verena Rieser},
  title = {{Better Conversations by Modeling, Filtering, and Optimizing for Coherence and Diversity}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1432},
}
Figure