Sequential Match Network: A New Architecture for Multi-turn Response Selection in Retrieval-based Chatbots

Yu Wu, Wei Wu, Ming Zhou, Zhoujun LiarXiv 2016

Introduction

Retrieval-based chatbots aim to select the most appropriate response from a pre-defined database. While single-turn response selection is a well-studied problem, multi-turn response selection—where the context includes a history of previous utterances—presents significant challenges. Traditional approaches often rely on concatenating the conversation history into a single string or compressing it into a fixed-length "context vector." These methods frequently lose fine-grained information, such as specific keyword matches or subtle semantic relationships between the response and earlier parts of the dialogue.

The Sequential Matching Network (SMN) addresses these issues by adopting a "match-then-accumulate" strategy. Instead of compressing the history first, SMN matches the candidate response against each previous utterance individually before aggregating the results, preserving crucial details throughout the process.

Methodology

The SMN architecture consists of three hierarchical layers designed to capture and aggregate relevance at different granularities.

Architecture of the Sequential Matching Network (SMN) showing the three-layer process: Utterance-Response Matching, Matching Accumulation, and Matching Prediction.

1. Utterance-Response Matching

In this layer, the candidate response $r$ is compared against each utterance $u_i$ in the conversation history. For every pair $(u_i, r)$, the model constructs two similarity matrices:

  • Word-level ($M_1$): Captures literal keyword overlaps using raw word embeddings.
  • Segment-level ($M_2$): Captures broader semantic meaning using the hidden states of a Gated Recurrent Unit (GRU).

A Convolutional Neural Network (CNN) then processes these matrices to extract a compact matching vector that represents the local relevance of the response to that specific utterance.

2. Matching Accumulation

The sequence of matching vectors is fed into a second GRU in chronological order. This "Matching Accumulation" layer allows the model to track how the relevance of the response evolves over the course of the conversation. The GRU's gating mechanism acts as a filter, allowing the model to emphasize important utterances while ignoring noise or irrelevant shifts in topic.

3. Matching Prediction

Finally, the hidden states of the accumulation GRU are used to calculate a matching score. The authors explored several variations for this final step, including using only the last hidden state ($SMN_{last}$), a static linear combination ($SMN_{static}$), and an attention-based dynamic mechanism ($SMN_{dynamic}$).

Experimental Setup

The model was evaluated on two major benchmarks:

  • Ubuntu Dialogue Corpus: A large-scale English dataset of technical support logs. It serves as a standard benchmark but uses random negative sampling for incorrect responses.
  • Douban Conversation Corpus: A more challenging Chinese dataset introduced by the authors. Response candidates were retrieved using a real engine and manually labeled by human judges, providing a more realistic test of discernment.

Results and Discussion

SMN demonstrated superior performance over state-of-the-art baselines, including hierarchical models like "Multi-View." On the Ubuntu Corpus, SMN achieved a 6% absolute improvement in $R_{10}@1$. On the Douban Corpus, it improved $R_{10}@1$ by 3% and Precision at 1 ($P@1$) by 4%.

Performance comparison (MAP) across different context lengths, demonstrating SMN's robustness compared to baseline models like LSTM and Multi-View.

A key finding is the model's robustness to conversation length. As shown in the performance analysis, while the accuracy of baseline models typically degrades as the number of turns increases, SMN maintains high performance. Its "match-then-accumulate" approach effectively manages long-term dependencies and filters out irrelevant historical context.

Conclusion

The Sequential Matching Network introduces a powerful paradigm for multi-turn response selection by prioritizing early-stage matching over late-stage representation. By capturing both word-level and segment-level similarities, SMN identifies crucial keywords and semantic patterns that are often lost in traditional compression-based models.

Future work remains in addressing logical consistency—ensuring the model does not contradict established premises—and improving the initial candidate retrieval process, as the "correct" response is sometimes missing from the initial pool provided to the ranker.

Summary updated

BibTeX
@misc{wu2016sequential,
  author = {Yu Wu and Wei Wu and Ming Zhou and Zhoujun Li},
  title = {{Sequential Match Network: A New Architecture for Multi-turn Response Selection in Retrieval-based Chatbots}},
  year = {2016},
  eprint = {1612.01627},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1612.01627},
}
Figure