Utterance-to-Utterance Interactive Matching Network for Multi-Turn Response Selection in Retrieval-Based Chatbots

Jia-Chen Gu, Zhen-Hua Ling, Quan Liu

TL;DR

The Utterance-to-Utterance Interactive Matching Network (U2U-IMN) improves how retrieval-based chatbots select the best reply by treating both the conversation history and the candidate response as sequences of individual utterances. By performing global, bidirectional matching between every sentence in the context and every sentence in the response, the model achieves new state-of-the-art results across major benchmarks like the Ubuntu and Douban corpora.

What Problem Does This Paper Address?

In retrieval-based chatbots, the goal is to pick the most appropriate response from a pre-defined database given a conversation's history (the "context"). Previous models typically used two approaches:

  1. Context-to-Response: Lumping the entire history into one long string and matching it against a single-string response.
  2. Utterance-to-Response: Breaking the history into separate sentences but still treating the candidate response as one block.

The authors argue that these methods are too "coarse." In real-world datasets (like Ubuntu troubleshooting), a single response often contains multiple sentences—perhaps an answer to a question followed by a follow-up instruction. If you treat the response as a single block, you lose the fine-grained relationships between specific parts of the history and specific parts of the reply.

Methods

The U2U-IMN architecture follows a sophisticated pipeline to capture these granular relationships:

  • Sentence Encoding: Each utterance is first processed using a BiLSTM. To capture long-term dependencies within a sentence, the authors add a Self-Attention layer with a Gaussian prior, which helps the model focus on semantically related adjacent words.
  • Interactive Matching: This is the core innovation. Instead of matching the whole context to the whole response, the model performs a global, bidirectional interaction. Every word in the context is compared to every word in the response, regardless of utterance boundaries.
  • Distance-Based Prior: The authors introduce an exponential decay function to weight the matching. This encodes the intuition that utterances closer to the end of the conversation (the most recent turns) are generally more important for selecting the next response.
  • Hierarchical Aggregation: The model aggregates information at two levels. First, it pools word-level information into utterance representations. Second, it uses either an RNN or an Attention mechanism to aggregate these into final "Context" and "Response" vectors for the final classification.

Datasets

The model was evaluated on four diverse public datasets:

  • Ubuntu Dialogue Corpus V1 & V2: English-language technical support logs. V2 is particularly important here because it explicitly segments responses into multiple utterances.
  • Douban Conversation Corpus: A Chinese social media dataset featuring open-domain, multi-turn conversations.
  • E-commerce Dialogue Corpus: Chinese customer service logs from a major e-commerce platform.

Key Insights and Ideas

  • Responses aren't monolithic: The "Aha!" moment is realizing that the internal structure of a response matters just as much as the structure of the history. Treating a three-sentence response as three distinct units allows the model to "align" different parts of the reply to different turns in the conversation.
  • Global vs. Local Matching: The authors found that "Global" matching (allowing words to attend to any word in the other sequence across utterance boundaries) outperformed "Local" matching (matching utterance-by-utterance). This suggests that context often flows across turn boundaries.
  • The Recency Heuristic: By adding a distance-based prior, the model mathematically favors more recent information without completely discarding the older context, which mimics how humans track a conversation.

Key Results

U2U-IMN outperformed all previous baseline models (including SMN, DAM, and DUA) across all metrics on all four datasets:

  • Ubuntu V2: Achieved an R10@1 of 0.762, a significant jump over the previous state-of-the-art.
  • Douban: Reached a MAP (Mean Average Precision) of 0.564, demonstrating that the architecture works well even in open-domain, non-technical settings.
  • E-commerce: Achieved an R10@1 of 0.616, showing strong performance in task-oriented Chinese dialogues.

The ablation studies confirmed that the "Utterance-to-Utterance" framework was specifically responsible for the gains in the Ubuntu V2 dataset, where multi-utterance responses are common (about 30% of the data).

Limitations and Future Work

While highly effective, the authors note a few areas for improvement:

  • External Knowledge: The current model relies entirely on the text provided. Integrating "persona" descriptions (knowing who the speakers are) or external knowledge bases could make responses even more accurate.
  • Pre-trained Models: The paper was written as Large Language Models were beginning to surge. The authors suggest that integrating pre-trained representations (like BERT or similar) could further boost the "Sentence Encoding" phase.
  • Computational Complexity: Global word-to-word attention across multiple utterances is computationally expensive; future work might look at more efficient ways to achieve similar "interactive" depth.

Summary updated

BibTeX
@article{gu2020utterance,
  author = {Jia-Chen Gu and Zhen-Hua Ling and Quan Liu},
  title = {{Utterance-to-Utterance Interactive Matching Network for Multi-Turn Response Selection in Retrieval-Based Chatbots}},
  journal = {IEEE ACM Trans. Audio Speech Lang. Process.},
  year = {2020},
  url = {https://openreview.net/forum?id=bWmiUkOC4GR},
}
Figure