Diverse and Faithful Knowledge-Grounded Dialogue Generation via Sequential Posterior Inference

Yan Xu, Deqian Kong, Dehong Xu, Ziwei Ji, Bo Pang, Pascale Fung, Ying Nian Wu

Introduction

In the pursuit of creating conversational AI that is both engaging and factually accurate, researchers face a persistent trade-off. While Large Language Models (LLMs) excel at generating fluent text, they are prone to "hallucinations"—generating plausible but incorrect information—or falling into repetitive, generic response patterns. Knowledge-Grounded Dialogue (KGD) aims to mitigate these issues by anchoring responses in external factual snippets, such as Wikipedia entries. However, the challenge remains: how can a model effectively select the most relevant knowledge and utilize it faithfully without sacrificing linguistic diversity?

A recent study presented at ICML 2023, titled "Diverse and Faithful Knowledge-Grounded Dialogue Generation via Sequential Posterior Inference," introduces the SPI framework. This approach moves away from traditional pipeline and variational methods, instead leveraging sequential posterior inference to jointly optimize knowledge selection and response generation.

The Limitations of Current KGD Systems

Most existing KGD systems utilize a two-stage pipeline: a retriever selects a knowledge snippet, and a generator produces a response based on that snippet. Because these components are often trained independently, the model fails to capture the deep correlation between the selected facts and the final utterance.

To address this, some researchers have turned to Variational Autoencoders (VAEs) to learn latent representations of knowledge. However, VAEs often suffer from an "amortization gap." They rely on a separate inference network to approximate latent variables, which frequently fails to capture the true complexity of the data distribution. This often results in models that either ignore the provided knowledge or produce uninspired, "safe" responses.

The SPI Framework: Inference via the Generator

The core innovation of the Sequential Posterior Inference (SPI) framework is the elimination of the separate inference network. Instead, SPI treats the response generation model (the decoder) as its own guide for latent variable estimation.

Dual Latent Variables

SPI models the conversation using two distinct latent variables:

  • $s$ (Discrete): Represents the selection of a specific knowledge candidate from the provided context.
  • $z$ (Continuous): Acts as a high-level semantic "control code" that captures the underlying intent and style of the intended response.

Sequential Posterior Inference and MCMC

Rather than approximating these variables through a secondary network, SPI performs a two-stage inference process during training:

  1. Posterior Knowledge Selection: The model evaluates the "gold" (ground truth) response and determines which knowledge candidate makes that specific response most probable.
  2. Short-run MCMC (Langevin Dynamics): To refine the continuous variable $z$, the model employs Langevin dynamics. It starts with an initial estimate of $z$ and iteratively updates it by following the gradient of the log-posterior. This "nudges" the latent variable to better explain the actual response, bypassing the limitations of the amortization gap.

Efficiency via Top-S Initializer

To maintain computational efficiency, the authors implement a lightweight "Top-S" classifier. This component narrows the search space of knowledge candidates before the more intensive posterior inference begins, ensuring the model remains scalable.

Experimental Evaluation

The researchers evaluated SPI on two prominent benchmarks:

  • Wizard of Wikipedia (WoW): A dataset where participants discuss various topics using Wikipedia as a reference.
  • Holl-E: A dataset focused on movie-related conversations grounded in plots and reviews.

Key Results

SPI achieved state-of-the-art (SOTA) performance across several critical dimensions:

  • Diversity: On the WoW dataset, SPI significantly improved "Distinct-2" scores, indicating a reduction in repetitive phrasing compared to previous models.
  • Faithfulness: Using fact-checking metrics such as FeQA and QuestEval, SPI consistently outperformed existing models like KnowledGPT, demonstrating a stronger adherence to the provided source material.
  • Data Efficiency: Notably, SPI proved highly efficient in low-resource settings. Training the model on only 25% of the available data allowed it to outperform strong baselines trained on the full dataset.
  • Human Preference: In A/B testing, human evaluators rated SPI's responses as more fluent, relevant, and faithful than those generated by competing SOTA frameworks.

Conclusion and Future Directions

By treating the generator as the primary judge for knowledge selection and using MCMC to refine latent representations, SPI bridges the gap between factual grounding and conversational diversity. While the use of Langevin dynamics introduces a slight computational overhead (approximately 5% per epoch), the gains in faithfulness and efficiency are substantial.

Future work may explore applying this posterior inference approach to other knowledge-intensive tasks, such as long-form document generation or complex multi-step reasoning, where the tight integration of factual retrieval and linguistic generation is paramount.

Summary updated

BibTeX
@inproceedings{xu2023diverse,
  author = {Yan Xu and Deqian Kong and Dehong Xu and Ziwei Ji and Bo Pang and Pascale Fung and Ying Nian Wu},
  title = {{Diverse and Faithful Knowledge-Grounded Dialogue Generation via Sequential Posterior Inference}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=6eGltW7t8F},
}
Figure