A Document-grounded Matching Network for Response Selection in Retrieval-based Chatbots

Xueliang Zhao, Chongyang Tao, Wei Wu, Can Xu, Dongyan Zhao, Rui Yan

Introduction

Retrieval-based chatbots typically select responses based on conversation history. However, human dialogue often relies on external knowledge—such as personal profiles, news articles, or technical documents. Current systems face a "knowledge gap" because they struggle to integrate this unstructured external information effectively.

The authors identify three primary challenges in closing this gap:

  1. Contextual Grounding: Determining when a document is actually relevant to the current turn (e.g., greetings vs. factual queries).
  2. Document Redundancy: Filtering out noise in long documents that may be irrelevant to a specific turn.
  3. Information Asymmetry: Bridging the gap between short, casual chat utterances and long, structured documents.

To address these, the Document-Grounded Matching Network (DGMN) was developed. DGMN uses a hierarchical interaction mechanism to dynamically ground responses in external documents, significantly improving performance over traditional models.

The DGMN Architecture

The DGMN model is structured into four functional layers that facilitate the integration of conversation context with external knowledge.

The DGMN architecture consists of four layers: Encoding, Fusion, Matching, and Aggregation.
  • Encoding Layer: Utilizes self-attention and linear layers to transform the document, conversation context, and candidate response into high-dimensional vector representations.
  • Fusion Layer: Employs cross-attention to generate "document-aware context" and "context-aware document" representations. This step ensures the model interprets the conversation through the lens of the available knowledge and vice versa.
  • Matching Layer: This core component uses a hierarchical interaction mechanism. It compares the response against individual sentences within the document rather than the document as a whole. A key innovation is the ability to decide if grounding is necessary; for casual turns like greetings, the model can prioritize the original context over the document.
  • Aggregation Layer: A Convolutional Neural Network (CNN) extracts matching signals from the various interactions to produce a final ranking score for the candidate response.

Experimental Evaluation

The model was evaluated on two benchmark datasets: PERSONA-CHAT, which focuses on maintaining consistency with short personal profiles, and CMUDoG (CMU Document Grounded Conversation), which involves more complex discussions based on Wikipedia articles about movies.

Key Results

DGMN demonstrated substantial improvements over state-of-the-art baselines, including standard Transformers and Key-Value Profile Memory networks.

Performance comparison of DGMN against baseline models on PERSONA-CHAT and CMUDoG datasets.

On the PERSONA-CHAT "Revised Persona" test set, DGMN achieved an r@1 (Hits@1) of 58.8%, a significant increase from the Transformer's 42.1%. In the CMUDoG task, it reached an r@1 of 65.6%, outperforming the Transformer baseline of 60.3%. Ablation studies (DGMN(t), etc.) confirmed that both document-aware context and context-aware document representations are critical for these gains.

Discussion and Insights

A major strength of DGMN is its Dynamic Grounding capability. By evaluating whether a document is relevant to a specific turn, the model avoids forcing irrelevant facts into casual conversation. Furthermore, its Sentence-Level Granularity allows it to pinpoint specific facts within a document that validate a response.

The researchers also noted Dataset Sensitivity: while longer documents provided beneficial semantic overlap for Wikipedia-based tasks (CMUDoG), they introduced noise in simpler tasks like Persona-Chat where profiles are short and specific.

Conclusion and Future Work

DGMN represents a significant step forward in creating more knowledgeable and context-aware chatbots. While highly effective, the model's complexity introduces higher computational costs. Future research could explore integrating DGMN with large-scale pre-trained language models or developing more efficient document "skimming" techniques to handle extremely long or redundant texts.

Summary updated

BibTeX
@inproceedings{zhao2019document,
  author = {Xueliang Zhao and Chongyang Tao and Wei Wu and Can Xu and Dongyan Zhao and Rui Yan},
  title = {{A Document-grounded Matching Network for Response Selection in Retrieval-based Chatbots}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/756},
}
Figure