Knowledge-Grounded Dialogue Generation with Pre-trained Language Models

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

Introduction

Open-domain chatbots often suffer from "blandness," frequently providing generic responses such as "I don't know" or "That's interesting." While large-scale Pre-trained Language Models (PLMs) like DialoGPT have improved conversational fluency, they still struggle when a dialogue requires specific, factual knowledge. This paper introduces KnowledGPT, a framework designed to bridge the gap between massive PLMs and external knowledge sources. By employing an unsupervised, reinforcement-learning-based approach to select relevant facts, KnowledGPT generates dialogue that is significantly more informative and contextually relevant than standard chatbots.

The primary challenges addressed are capacity constraints and the lack of labeled data. Models like GPT-2 have strict token limits, making it difficult to process large volumes of external knowledge alongside conversation history. Furthermore, most datasets lack explicit labels indicating which specific facts were used by humans to formulate responses, making supervised training for knowledge selection difficult.

Methods

KnowledGPT consists of two primary components: a Knowledge Selection Module and a Response Generation Module.

The KnowledGPT architecture, featuring a BERT-based knowledge selector and a GPT-2 response generator.

The architecture utilizes BERT as a "Context-Aware Knowledge Encoder" to model the relationship between chat history and external facts. A sequential selector then identifies the most relevant sentences. Subsequently, GPT-2 consumes these selected facts and the chat history to generate a response.

To overcome the lack of ground-truth labels for knowledge selection, the authors implement a three-step unsupervised joint optimization strategy:

  1. Pseudo Ground-Truth: The model is "warmed up" by assuming the correct knowledge is the sentence most similar to the actual human response.
  2. Reinforcement Learning (RL): The selection module is refined using a reward signal based on the GPT-2 module's ability to generate the target response using the chosen facts.
  3. Curriculum Learning: Training gradually transitions from using "easy" pseudo-labels to the model's own "harder" predicted selections, preventing early-stage errors from derailing the learning process.

Datasets and Evaluation

The model was evaluated on two major benchmarks: Wizard of Wikipedia (WoW), where participants use Wikipedia articles to inform their conversation, and CMU Document Grounded Conversations (CMU_DoG), which features conversations centered around movie-related wiki documents.

Key Results

KnowledGPT achieved new state-of-the-art results across both benchmarks. As shown in the results table, the model significantly outperforms previous baselines in automatic metrics.

Performance comparison of KnowledGPT against baseline models on the Wizard of Wikipedia dataset.

On the Wizard of Wikipedia "Test Seen" set, KnowledGPT achieved an F1 score of 22.0, surpassing the original Transformer Memory Network (15.9) and specialized models like SKT (19.3). Human evaluations also favored KnowledGPT for its superior knowledge relevance and context coherence. The model proved that a smaller GPT-2 (117M parameters) equipped with a smart selection module could outperform much larger models that lacked grounded knowledge.

Key Insights

  • Selection as a Bottleneck: Simply truncating and feeding as much text as possible into a PLM introduces noise that distracts the model. Precise selection is critical for performance.
  • Response as a Proxy: Using the similarity between a fact and the final human response serves as an effective "weak supervision" signal when manual labels are missing.
  • Architectural Synergy: Leveraging BERT for selection and GPT-2 for generation allows the framework to capitalize on the unique strengths of both architectures.

Limitations and Future Work

While KnowledGPT advances the state of the art, it currently assumes relevant documents have already been retrieved, focusing on selection rather than broad-scale search. Future work includes adapting the approach to structured knowledge graphs or multi-modal data. Additionally, while grounding reduces genericness, the risk of "hallucination" remains if the selection module provides slightly irrelevant information.

Summary updated

BibTeX
@inproceedings{zhao2020knowledge,
  author = {Xueliang Zhao and Wei Wu and Can Xu and Chongyang Tao and Dongyan Zhao and Rui Yan},
  title = {{Knowledge-Grounded Dialogue Generation with Pre-trained Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.272},
}
Figure