Introduction
Retrieval-based chatbots aim to select the most appropriate response from a candidate pool based on conversation history. While current state-of-the-art models often rely on word-level similarity matrices, they frequently fall into "keyword traps"—selecting irrelevant responses that merely repeat phrases from the context without providing a meaningful answer. This paper introduces the Sequential Sentence Matching Network (S2M), which shifts the focus toward high-level sentence semantics to improve robustness and accuracy.
Methodology
The S2M architecture processes dialogue through a four-stage pipeline designed to extract and aggregate sentence-level features rather than relying solely on word-level interactions.
- Semantic Representation Block: For each utterance-response pair, the model uses 1D-CNNs to capture local context (self-representation) and scaled dot-product attention for inter-sentence relationships (cross-representation). These are fused into a unified representation.
- Sentence-Level Extraction: Unlike previous models that maintain word-level matrices, S2M uses pooling operations to compress representations into fixed-length sentence vectors.
- Matching-Oriented Interaction: Interaction features are calculated between utterance ($v_u$) and response ($v_r$) vectors using a combination of concatenation, element-wise subtraction, and multiplication.
- Aggregation: A Gated Recurrent Unit (GRU) processes the sequence of matching features to capture the temporal flow of the conversation, resulting in a final matching score.
The authors also explored integrating S2M with word-level models (like IOI). The most effective strategy involves concatenating features from both sentence and word channels before the final GRU aggregation, suggesting these levels of information are complementary.
Experimental Results
S2M was evaluated on the Ubuntu Dialogue Corpus, Douban Conversation Corpus, and E-commerce Dialogue Corpus. The model achieved state-of-the-art performance across all benchmarks. Notably, on the E-commerce dataset—which specifically targets the "keyword trap"—S2M improved $R_{10}@1$ from 0.563 to 0.619, a 5.6% gain.
Robustness in Long Dialogues
A key finding is that S2M's performance advantage grows as dialogues become longer and more complex. As shown in Figure 5, while word-level models struggle with the noise of accumulated vocabulary in contexts exceeding 10 turns, S2M maintains high precision. This confirms that sentence-level matching provides the semantic consistency necessary to reject decoys that just repeat keywords.
Conclusion
The Sequential Sentence Matching Network effectively addresses the limitations of word-matching models in retrieval-based chatbots. By prioritizing sentence-level semantics and integrating them with fine-grained word features, S2M achieves superior performance and robustness, particularly in challenging, long-form conversational contexts.
Summary updated