Filtering before Iteratively Referring for Knowledge-Grounded Response Selection in Retrieval-Based Chatbots

Jia-Chen Gu, Zhen-Hua Ling, Quan Liu, Si Wei, Xiaodan Zhu

Abstract

Retrieval-based chatbots often struggle to effectively integrate external background knowledge into conversation history. This paper introduces FIRE (Filtering before Iteratively REferring), a framework designed to enhance response selection by first filtering irrelevant knowledge and then performing deep, iterative matching between context, knowledge, and response candidates. FIRE achieves state-of-the-art results on major benchmarks, demonstrating the importance of precise knowledge grounding and multi-pass reasoning.

Introduction: The Challenge of Knowledge-Grounded Dialogue

In retrieval-based dialogue systems, the goal is to select the most appropriate response from a predefined set. While standard models rely on conversation history (context), knowledge-grounded systems must also leverage external facts, such as user personas or document-based information.

The authors identify two primary limitations in existing approaches:

  1. Poor Grounding: Models often encode context and knowledge independently, failing to distinguish which specific facts are relevant to the current turn. This introduces noise from irrelevant background data.
  2. Shallow Matching: Most models use a single-pass matching mechanism, which is insufficient for capturing the complex, multi-layered relationships between dialogue history and external knowledge.

The FIRE Framework

To address these gaps, the FIRE model introduces a two-stage process: filtering followed by iterative referral.

Architecture of the FIRE framework, showcasing the Context/Knowledge Filters and the Iteratively Referring Network.

1. Context and Knowledge Filters

Before the matching phase, FIRE "cleans" its inputs to ensure focus on relevant information:

  • Context Filter: Employs global attention to make the conversation history "knowledge-aware," identifying which parts of the dialogue refer to specific background facts.
  • Knowledge Filter: This component makes the knowledge "context-aware" and includes a critical selection operation. It calculates relevance scores for knowledge entries; those falling below a threshold ($\gamma$) are discarded. This prevents the model from being distracted by irrelevant facts (e.g., ignoring a movie's director when the conversation is about the cast).

2. Iteratively Referring Network

Rather than a single comparison, FIRE uses an iterative process ($L$ iterations) to refine its understanding:

  • In each step, the response "refers" to the filtered context and knowledge, and vice versa.
  • The outputs of one iteration serve as inputs for the next, allowing the model to extract "deep matching features" that a single pass would overlook.
  • Finally, features from all iterations are aggregated and processed through a Multi-Layer Perceptron (MLP) to score response candidates.

Experimental Evaluation

The model was evaluated on two prominent benchmarks:

  • PERSONA-CHAT: Conversations where participants have specific persona traits. Tests were conducted on both original and revised (paraphrased) versions.
  • CMU_DoG (Document Grounded): Knowledge-intensive conversations about movies based on Wikipedia articles.

Performance Comparison

FIRE achieved new state-of-the-art (SOTA) performance across all tested datasets, particularly in the R@1 (Recall at 1) metric.

Performance comparison of FIRE against baseline models on PERSONA-CHAT and CMU_DoG datasets.

As shown in the results table, FIRE consistently outperforms previous models like DIM and DGMN. Specifically, it achieved:

  • 81.6% R@1 on PERSONA-CHAT (Original), a 2.8% improvement over DIM.
  • 74.8% R@1 on PERSONA-CHAT (Revised), a 4.1% improvement.
  • 81.8% R@1 on CMU_DoG, a 3.1% improvement.

Analysis and Insights

  • The Power of Filtering: Ablation studies confirmed that removing the filters leads to a significant performance drop. Discarding irrelevant knowledge is not just an optimization but a core mechanism for effective attention.
  • Iterative Depth: Setting the number of iterations to $L=3$ consistently yielded the best results. This suggests that the relationship between a response and its grounding facts is too complex for shallow networks.
  • Efficiency: Despite its iterative nature, FIRE is more time-efficient than some predecessors (like DIM) because it replaces heavy recurrent units in the aggregation stage with lighter non-linear transformations.

Conclusion and Future Directions

The FIRE framework demonstrates that "filtering before referring" is a highly effective strategy for knowledge-grounded dialogue. While the current model uses BiLSTMs, future work could involve integrating large-scale pre-trained language models like BERT or GPT. Additionally, extending these filtering and iterative matching concepts to generative dialogue models remains a promising area for research.

Summary updated

Abstract

The challenges of building knowledge-grounded retrieval-based chatbots lie in how to ground a conversation on its background knowledge and how to match response candidates with both context and knowledge simultaneously. This paper proposes a method named Filtering before Iteratively REferring (FIRE) for this task. In this method, a context filter and a knowledge filter are first built, which derive knowledge-aware context representations and context-aware knowledge representations respectively by global and bidirectional attention. Besides, the entries irrelevant to the conversation are discarded by the knowledge filter. After that, iteratively referring is performed between context and response representations as well as between knowledge and response representations, in order to collect deep matching features for scoring response candidates. Experimental results show that FIRE outperforms previous methods by margins larger than 2.8% and 4.1% on the PERSONA-CHAT dataset with original and revised personas respectively, and margins larger than 3.1% on the CMU_DoG dataset in terms of top-1 accuracy. We also show that FIRE is more interpretable by visualizing the knowledge grounding process.
BibTeX
@inproceedings{gu2020filtering,
  author = {Jia-Chen Gu and Zhen-Hua Ling and Quan Liu and Si Wei and Xiaodan Zhu},
  title = {{Filtering before Iteratively Referring for Knowledge-Grounded Response Selection in Retrieval-Based Chatbots}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.127},
}
Figure