Improving Matching Models with Contextualized Word Representations for Multi-turn Response Selection in Retrieval-based Chatbots

Chongyang Tao, Wei Wu, Can Xu, Yansong Feng, Dongyan Zhao, Rui YanarXiv 2018

Introduction

Retrieval-based chatbots select the most appropriate response from a pre-defined pool based on conversation history. Traditionally, these models relied on static word embeddings like Word2Vec or GloVe. While contextualized embeddings like ELMo and CoVe have advanced many NLP tasks, they often struggle with multi-turn dialogues due to structural mismatches—conversations are hierarchical, involving words, utterances, and sessions—and data discrepancies between formal training text and informal chat data.

This paper introduces ECMo (Embeddings from a Conversation Model), a method to improve response selection by using hierarchical contextualized representations. By pre-training on large-scale dialogue data, ECMo captures both word-level nuances and session-level context, significantly outperforming general-purpose embeddings in multi-turn conversation tasks.

Methods: Hierarchical Encoder-Decoder (HED)

The authors propose a hierarchical approach to learning embeddings specifically for dialogue. The architecture, shown in Figure 1, consists of a Hierarchical Encoder-Decoder (HED) pre-trained on millions of human-to-human conversations.

The architecture of the Hierarchical Encoder-Decoder (HED) used to generate ECMo representations.

The HED includes:

  • Utterance-Level Encoder: A bidirectional GRU that captures local word context to produce ECMo_local representations.
  • Context-Level Encoder: A GRU that processes utterance vectors to capture the session-level "global" state, producing ECMo_global representations.

These representations are integrated into existing matching models (e.g., Multi-view and SMN). Local embeddings enhance the input layer, while global embeddings refine the final matching score at the output layer.

Datasets and Evaluation

The approach was evaluated on two major benchmarks:

  1. Ubuntu Dialogue Corpus: Technical support logs. The HED was pre-trained on 10 million Twitter conversations and fine-tuned on Ubuntu data.
  2. Douban Conversation Corpus: A multi-turn Chinese social media dataset. The HED was pre-trained on 5 million Sina Weibo conversations.

Key Results

ECMo consistently outperformed baseline matching models and those enhanced with CoVe or ELMo. As shown in Figure 3, ECMo achieves superior performance across multiple metrics on both corpora.

Performance comparison of ECMo against standard matching models and those enhanced with CoVe or ELMo.

Key findings include:

  • Ubuntu Corpus: Integrating ECMo into the Multi-view model improved the R10@1 metric by 4.3%.
  • Douban Corpus: ECMo improved the Mean Average Precision (MAP) of the SMN model by 2.3%.
  • Superiority over ELMo: Even with fine-tuning on dialogue data, ELMo was outperformed by ECMo, validating the necessity of a hierarchical architecture for conversational tasks.

Discussion and Key Insights

The success of ECMo highlights that context in chat is defined by surrounding turns as much as surrounding words. Separating representations into "local" (sentence-level meaning) and "global" (session-level fit) provides a more robust understanding of relevance. Furthermore, domain adaptation through fine-tuning on specific datasets (like Ubuntu logs) proved crucial for bridging the gap between casual slang and technical jargon.

Limitations and Future Work

The authors noted that "continue-training" HED parameters alongside the matching model can lead to overfitting due to the high number of trainable parameters. Additionally, the reliance on massive dialogue data may be a bottleneck for low-resource languages. Future research may explore more complex hierarchical architectures (like VHRED) or alternative pre-training objectives to further refine these embeddings.

Summary updated

BibTeX
@misc{tao2018improving,
  author = {Chongyang Tao and Wei Wu and Can Xu and Yansong Feng and Dongyan Zhao and Rui Yan},
  title = {{Improving Matching Models with Contextualized Word Representations for Multi-turn Response Selection in Retrieval-based Chatbots}},
  year = {2018},
  eprint = {1808.07244},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.07244},
}
Figure