Generative Subgraph Retrieval for Knowledge Graph-Grounded Dialog Generation

Jinyoung Park, Minseok Joo, Joo-Kyung Kim, Hyunwoo J. Kim

Introduction

In the field of knowledge-grounded dialog, models must effectively retrieve and integrate facts from a Knowledge Graph (KG) to provide accurate, contextually relevant responses. Traditional approaches typically rely on encoder-based retrieval, where a multi-turn dialog history is compressed into a single vector and compared against KG triplets.

However, this paradigm suffers from two critical issues: the information bottleneck, where nuanced context is lost during compression, and the modality gap, caused by using separate Graph Neural Networks (GNNs) that fail to fully exploit the linguistic capabilities of Large Language Models (LLMs). To overcome these hurdles, the authors propose DialogGSR (Generative Subgraph Retrieval), a framework that treats KG retrieval as a generative task.

The DialogGSR Framework

DialogGSR eliminates the retrieval bottleneck by casting the search for knowledge as an autoregressive generation process. Instead of matching vectors, the model is trained to "write out" the sequence of entities and relations that constitute the relevant subgraph.

Overview of the DialogGSR architecture, showing the generative retrieval steps and the final response generation grounded in the retrieved subgraph.

Technical Innovations

  • Structure-aware KG Linearization: To bridge the gap between graph structures and text, the framework uses special tokens (e.g., [Head], [Int], [Tail]) to represent paths. A self-supervised graph reconstruction loss further teaches the model the underlying topology of the KG.
  • Graph-constrained Decoding: To prevent hallucinations, the model employs a prefix tree (trie) based on the KG. This ensures that every generated token corresponds to a valid entity or relation within the actual graph.
  • Katz Index Informativeness: The decoding process is biased toward entities that are structurally relevant to the dialog topics using the Katz index, a measure of structural proximity that accounts for multi-hop paths.

Experimental Results

DialogGSR was evaluated on major benchmarks, including OpenDialKG and KOMODIS, and demonstrated portability to larger models like Llama-3-8b via LoRA fine-tuning. The framework achieved new state-of-the-art (SOTA) performance across multiple metrics.

On OpenDialKG, DialogGSR reached a BLEU-1 of 19.30 and a KQA Exact Match (EM) score of 54.61, significantly outperforming previous baselines. In terms of retrieval accuracy, the model's path@1 score reached 28.96%, nearly doubling the performance of earlier graph-walking methods.

Robustness to Conversation Length

A key finding of the study is DialogGSR's stability over long conversations. Unlike traditional models that struggle as the dialog history grows, DialogGSR maintains high retrieval accuracy across multiple turns.

Comparison of path@3 retrieval accuracy across multiple dialog turns, showing DialogGSR's superior stability compared to SURGE and DiffKG.

As illustrated in the figure above, while baselines like SURGE and DiffKG experience a sharp decline in performance as the number of turns increases, DialogGSR's generative approach allows it to remain robust, effectively managing the context without the degradation seen in vector-compression methods.

Human Evaluation and Insights

Human evaluators rated DialogGSR significantly higher than previous SOTA models. Specifically, it outperformed the SURGE baseline in Informativeness (2.28 vs 1.81) and Consistency. These results suggest that allowing an LLM to attend to both the query context and the knowledge structure simultaneously during generation leads to more factually grounded and natural dialog.

Limitations and Future Work

While DialogGSR represents a significant step forward, it remains dependent on the quality and coverage of the underlying KG. Future research could explore how to integrate dynamic, frequently-updating knowledge bases or how to better handle scenarios where the required information is missing from the graph, potentially leveraging the LLM's internal knowledge more safely.

Summary updated

BibTeX
@inproceedings{park2024generative,
  author = {Jinyoung Park and Minseok Joo and Joo-Kyung Kim and Hyunwoo J. Kim},
  title = {{Generative Subgraph Retrieval for Knowledge Graph-Grounded Dialog Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.1179},
}
Figure