Learning to Detect Relevant Contexts and Knowledge for Response Selection in Retrieval-based Dialogue Systems

Kai Hua, Zhiyuan Feng, Chongyang Tao, Rui Yan, Lu Zhang · DOI

Introduction

In retrieval-based dialogue systems, selecting the most appropriate response from a candidate pool relies heavily on the dialogue context and available external knowledge, such as user profiles or documents. However, a significant challenge in multi-turn conversations is Information Overload. As conversations progress, topics shift; earlier utterances may become irrelevant "noise" that confuses matching models. Similarly, only specific parts of external knowledge are typically relevant to a given turn.

An example from the Persona-Chat dataset illustrating how dialogue context and user profiles can contain irrelevant information as topics shift.

To address this, the authors propose RSM-DCK (Response Selection Model that can Detect relevant parts of the Context and Knowledge). This model introduces a specialized selection mechanism to filter dialogue history and external knowledge, focusing only on what is pertinent to the current response.

Proposed Architecture: RSM-DCK

The RSM-DCK architecture is designed to handle the complexities of multi-turn, knowledge-grounded dialogues through a layered approach that prioritizes relevance detection.

The multi-layered RSM-DCK architecture, highlighting the integration of the Selection Layer within the retrieval pipeline.

Multi-Level Representation and Encoding

Words are represented using a combination of general-purpose GloVe embeddings, task-specific Word2vec embeddings, and character-level embeddings to mitigate out-of-vocabulary issues. These representations are then processed by a Bidirectional LSTM (BiLSTM) encoding layer to capture local dependencies.

The Selection Layer

The core innovation of RSM-DCK is the Selection Layer, which identifies relevant information before the matching process begins. It consists of two primary components:

  • Context Selector: This component uses the most recent utterance as a query to perform "multi-hop" selection over previous turns, identifying which past utterances are semantically related to the current topic.
  • Knowledge Selector: Similarly, it employs the recent context to pre-select relevant sentences from the external knowledge base.

Matching and Aggregation

Following selection, a Matching Layer performs cross-attention between the filtered context/knowledge and the response candidate to capture fine-grained token-level similarities. An Aggregation Layer then uses a BiLSTM to capture temporal relationships between dialogue turns. For knowledge, a post-selection step is performed: since knowledge facts are often independent, the model uses the fused representation of context and response to "double-check" the most relevant knowledge piece. Finally, a Multi-Layer Perceptron (MLP) produces the final matching score.

Experimental Evaluation

The model was evaluated on two major benchmarks: Persona-Chat (conversations grounded in user profiles) and CMUDoG (conversations centered around movie documents).

Key Results

RSM-DCK achieved state-of-the-art performance across all metrics ($R_{20}@1, R_{20}@2, R_{20}@5$). On the Persona-Chat (Original) dataset, it reached 79.65% on $R_{20}@1$, a 0.9% absolute improvement over previous best models. On CMUDoG, it achieved 79.25% on $R_{20}@1$. Ablation studies confirmed that both the context and knowledge selectors are critical; removing either led to significant performance degradation, validating the importance of relevance detection.

Conclusion and Future Work

RSM-DCK demonstrates that filtering out irrelevant information is key to improving retrieval-based dialogue systems. Future research directions include adapting the selection mechanism for structured Knowledge Graphs, integrating large pre-trained language models like BERT for deeper semantic understanding, and applying these selection principles to generative dialogue models.

Summary updated

BibTeX
@inproceedings{hua2020learning,
  author = {Kai Hua and Zhiyuan Feng and Chongyang Tao and Rui Yan and Lu Zhang},
  title = {{Learning to Detect Relevant Contexts and Knowledge for Response Selection in Retrieval-based Dialogue Systems}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2020},
  doi = {10.1145/3340531.3411967},
}
Figure