Content Selection Network for Document-grounded Retrieval-based Chatbots

Yutao Zhu, Jian-Yun Nie, Kun Zhou, Pan Du, Zhicheng Dou

Introduction

Retrieval-based chatbots aim to select the most appropriate response from a predefined candidate pool based on the current dialogue context. To enhance informativeness, these systems are often "grounded" in external documents, such as Wikipedia articles or user profiles. However, effectively utilizing this external knowledge presents two significant challenges: document noise and context evolution.

Document noise refers to the fact that grounding documents often contain vast amounts of information, only a small portion of which is relevant to a specific conversational turn. Standard "soft" attention mechanisms often fail to sufficiently suppress irrelevant information, leading to "cumulative noise" that can degrade response quality. Furthermore, as conversations evolve, the relevance of different document segments shifts, requiring the model to track the current topic dynamically.

A document-grounded conversation example showing how different responses relate to specific document segments, illustrating the challenges of noise and context evolution.

The Content Selection Network (CSN)

To address these issues, we propose the Content Selection Network (CSN). The core innovation of CSN is an explicit gating mechanism that performs "hard selection" at both the sentence and word levels, effectively filtering out irrelevant data rather than just assigning it lower weights.

The CSN architecture, illustrating the multi-level selection process (sentence and word level) and the dually interactive matching framework.

Explicit Gating and History Decay

Unlike traditional models that rely on soft attention, CSN employs a gate that filters out segments with relevance scores below a specific threshold ((\gamma)). This ensures the model focuses exclusively on pertinent data. To handle context evolution, a history decay factor ((\eta)) is applied to the conversation history. This mechanism prioritizes recent utterances, which are typically the strongest indicators of what information is needed next, while still maintaining long-term context.

Dually Interactive Matching

Once the relevant content is selected, the model utilizes a dual matching process. It independently matches the response candidate against the conversation context and the filtered document content. These interactions are captured via self-attention and cross-attention mechanisms, then aggregated through CNN and LSTM layers to produce a final ranking score. This separation allows the model to capture fine-grained semantic relationships between the document, the context, and the candidate response.

Experimental Evaluation

The CSN was evaluated on two benchmark datasets: PersonaChat and CMU Document Grounded Conversations (CMUDoG).

  • PersonaChat: CSN achieved a state-of-the-art R@1 of 78.1 on the original version, significantly outperforming previous models like DIM (75.5).
  • CMUDoG: On this more complex dataset featuring longer grounding documents, CSN reached an R@1 of 70.1, a substantial improvement over the previous best of 65.6 (DGMN).

Ablation studies confirmed that the explicit filtering mechanism is the primary driver of success; performance significantly degraded when the threshold (\gamma) was set to zero, effectively disabling the hard selection and allowing noise to accumulate.

Conclusion

The Content Selection Network demonstrates that in document-grounded dialogue, "filtering is better than weighting." By explicitly removing irrelevant document noise and accounting for context evolution through history decay, CSN provides a more robust framework for informative retrieval-based chatbots. Future work may explore higher-level semantic clustering for content selection and the application of these techniques to generative dialogue models.

Summary updated

BibTeX
@inproceedings{zhu2021content,
  author = {Yutao Zhu and Jian-Yun Nie and Kun Zhou and Pan Du and Zhicheng Dou},
  title = {{Content Selection Network for Document-grounded Retrieval-based Chatbots}},
  booktitle = {ECIR},
  year = {2021},
  url = {https://openreview.net/forum?id=JA3oRJdNAl2},
}
Figure