Reinforcing Coherence for Sequence to Sequence Model in Dialogue Generation

Hainan Zhang, Yanyan Lan, Jiafeng Guo, Jun Xu, Xueqi Cheng

Introduction

A persistent challenge in open-domain dialogue systems is the "generic response" problem. Standard Sequence-to-Sequence (Seq2Seq) models often default to safe, high-probability but uninformative phrases such as "I don't know" or "That's interesting." This behavior stems from the training objective: Maximum Likelihood Estimation (MLE). MLE minimizes the Kullback–Leibler (KL) divergence between the model's distribution and the training data. Because KL divergence is asymmetric, it fails to sufficiently penalize the model for assigning high probability to generic responses that appear frequently across diverse contexts, leading the model to treat them as a statistical "safe bet."

Methodology: Reinforcing Coherence

To address this, researchers propose a Reinforcement Learning (RL) framework that prioritizes semantic coherence. Instead of relying solely on MLE, the model is trained to maximize a "reward" based on how well a response relates to the input prompt.

The study explores three primary methods for measuring this coherence reward:

  1. Unlearned Similarity: Using cosine similarity between vector embeddings of the post and response.
  2. Pretrained Semantic Matching: Utilizing models like GRU Bilinear for global sentence representation or MatchPyramid for local word-level interactions.
  3. Dual Learning Architecture: An end-to-end approach where two agents interact. One generates a response from a post, while the other attempts to reconstruct the original post from that response. The success of this reconstruction provides the coherence reward.
The proposed Reinforcement Learning frameworks: (a) shows the standard RL setup with a coherence model environment, while (b) illustrates the novel dual learning architecture.

Experimental Setup and Results

The models were evaluated using two large-scale datasets: the Short Text Conversation (STC) dataset (3.7 million pairs from Weibo) and the OpenSubtitles (OSDb) dataset (3.8 million movie script lines).

While automated metrics like BLEU and Perplexity (PPL) were recorded, the researchers placed a heavy emphasis on human evaluation, as standard metrics often fail to capture conversational quality. In blind tests on the STC dataset, the dual learning model (Seq2SeqCo-dual) significantly outperformed baselines.

Human evaluation results on the STC dataset, comparing the proposed coherence-reinforced models against standard baselines.

As shown in the results, the Seq2SeqCo-dual model achieved an average human score of 3.30, a substantial improvement over the 2.48 score of the standard Seq2Seq model. Furthermore, the model demonstrated increased diversity; on the OSDb dataset, it reached a Distinct-2 score of 6.83, compared to 5.33 for the baseline. Qualitative analysis confirmed that the reinforced models produced more specific, context-aware responses, moving beyond generic platitudes to address the actual subject matter of the prompts.

Discussion and Future Work

The core insight of this research is that semantic coherence serves as an effective proxy for conversational "truth" or relevance. By shifting from pure likelihood to a coherence-based reward, models can be steered away from the "I don't know" loop. The dual learning approach is particularly noteworthy for its ability to improve generation and coherence-checking tasks simultaneously.

However, limitations remain. The current work focuses on single-turn dialogues, whereas real-world interactions require multi-turn coherence. Additionally, the computational overhead of RL and dual-agent training is higher than standard methods. Future research may extend these techniques to multi-turn contexts and explore more nuanced reward functions incorporating emotional or persona-based consistency.

Summary updated

BibTeX
@inproceedings{zhang2018reinforcing,
  author = {Hainan Zhang and Yanyan Lan and Jiafeng Guo and Jun Xu and Xueqi Cheng},
  title = {{Reinforcing Coherence for Sequence to Sequence Model in Dialogue Generation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/635},
}
Figure