Improving Factual Consistency for Knowledge-Grounded Dialogue Systems via Knowledge Enhancement and Alignment

Boyang Xue, Weichao Wang, Hongru Wang, Fei Mi, Rui Wang, Yasheng Wang, Lifeng Shang, Xin Jiang, Qun Liu, Kam-Fai Wong

Introduction

Knowledge-Grounded Dialogue Systems (KDS) are designed to generate responses that are both conversationally engaging and factually accurate, typically by conditioning outputs on external documents such as Wikipedia. However, a persistent challenge in these systems is factual inconsistency. Despite being provided with "gold standard" knowledge, models often "hallucinate" details or default to outdated information stored within their internal pre-trained weights—a phenomenon known as the "Prior Knowledge Trap."

This research addresses these inconsistencies by targeting the architectural components where factual knowledge is stored: the Feed-Forward Networks (FFNs). The authors introduce a dual-method approach—K-DIAL and RLFC—to ensure models prioritize external evidence over internal biases.

Methodology

The core insight of this work is that FFNs in Transformer models act as a key-value memory for factual knowledge. To improve consistency, the authors propose a two-stage training strategy combining explicit architectural enhancement and implicit preference alignment.

K-DIAL: Explicit Knowledge Enhancement

K-DIAL (Knowledge Enhancement) is an explicit method that introduces additional, "extended" FFN modules into the top layers of the Transformer. These modules are specifically trained to activate when the model encounters entity tokens (such as names, dates, or specific locations) within the provided external knowledge. By providing a dedicated "fact-checking" memory bank, K-DIAL allows the model to override its default, pre-trained responses with the most relevant information from the current context.

RLFC: Implicit Alignment via Reinforcement Learning

RLFC (Reinforcement Learning for Factual Consistency) serves as an implicit alignment method. Using a reward model based on Natural Language Inference (NLI), the system evaluates whether a generated response is logically supported by the provided gold knowledge. The model is "rewarded" for generating entailments and "punished" for hallucinations. This process encourages the model to align its internal reasoning with the external facts provided during inference.

Experimental Setup

The researchers evaluated their methods using GPT2-Medium, Large, and XL models across two primary benchmarks:

  • Wizard of Wikipedia (WoW): A dataset involving knowledge-driven conversations based on Wikipedia snippets.
  • CMU_DoG (CMU Document Grounded Conversations): A complex dataset requiring movie discussions based on extensive Wikipedia documents.

To train the NLI-based reward models for RLFC, the authors utilized human-annotated factual consistency datasets, including BEGIN and DialFact.

Results and Discussion

The combination of RLFC and K-DIAL yielded significant improvements in factual accuracy across all tested models. On the WoW dataset, the proposed methods improved the "Fact." metric—a fine-grained NLI measure—by 8.64% over the standard GPT2-Large baseline. Additionally, the Q² metric, which utilizes automated question-answering to verify grounding, saw an absolute improvement of 6.18%.

Human evaluations corroborated these automated metrics. Raters found that the proposed methods produced responses that maintained the fluency and coherence of the baselines while being significantly more factually accurate, with scores ranging from 0.74–0.76 compared to 0.65–0.69 for the baseline models.

Key Insights

  1. FFNs as Knowledge Neurons: The study reinforces the theory that while self-attention mechanisms manage context and grammar, FFN layers are the primary repository for factual data. Modifying these layers is an effective way to update a model's knowledge without full retraining.
  2. Complementary Strategies: K-DIAL is highly effective at the direct expression of specific knowledge snippets, while RLFC ensures the overall response feels natural and logically sound.

Conclusion and Future Work

While the K-DIAL and RLFC framework significantly reduces hallucinations, the authors note certain limitations. The current approach assumes the provided external knowledge is 100% accurate; if a retrieval system fetches incorrect data, the model will confidently repeat that error. Furthermore, while effective on the GPT2 series, future research is needed to scale these techniques to massive Large Language Models (LLMs) like GPT-4 or Llama-3.

Future directions include developing more precise methods to locate the specific causes of inconsistency within a model's parameters and exploring parameter-efficient techniques for scaling these factual alignment methods.

Summary updated

BibTeX
@inproceedings{xue2023improving,
  author = {Boyang Xue and Weichao Wang and Hongru Wang and Fei Mi and Rui Wang and Yasheng Wang and Lifeng Shang and Xin Jiang and Qun Liu and Kam-Fai Wong},
  title = {{Improving Factual Consistency for Knowledge-Grounded Dialogue Systems via Knowledge Enhancement and Alignment}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.525},
}
Figure