RT-KGD: Relation Transition Aware Knowledge-Grounded Dialogue Generation

Kexin Wang, Zhixu Li, Jiaan Wang, Jianfeng Qu, Ying He, An Liu, Lei Zhao

Abstract

Knowledge-Grounded Dialogue (KGD) systems aim to generate informative responses by leveraging external facts. However, existing models often suffer from "short-sightedness," focusing on immediate context while ignoring the logical flow of topics across multiple turns. This paper introduces RT-KGD, a novel framework that tracks how topics transition through a Knowledge Graph (KG) to ensure dialogue remains contextually consistent and coherent. By modeling the "latent logic" of human conversation as a path through a KG, RT-KGD predicts the most relevant next piece of information. Evaluations on the KdConv dataset show that RT-KGD significantly outperforms state-of-the-art baselines in both automatic metrics and human assessments of coherence.

Introduction

While large language models have improved dialogue generation, providing factually grounded and coherent multi-turn responses remains a challenge. Most KGD models treat knowledge as a flat list of text or focus solely on entities mentioned in the most recent utterance. This approach fails to capture relation transitions—the structural regularity of how humans move from one topic to another (e.g., from an actor to their film, then to the film's genre). RT-KGD addresses this by explicitly modeling these transitions as a path within a structured Knowledge Graph.

Overview of the RT-KGD framework showing dialogue context, knowledge graph mapping, and the resulting MHKT-Path.

The RT-KGD Framework

The RT-KGD architecture consists of four primary components designed to bridge the gap between structured knowledge and natural language generation.

1. MHKT-Path Construction

The core innovation is the Multi-turn Heterogeneous Knowledge Transition Path (MHKT-Path). The model constructs a specialized subgraph from an external KG that links entities and relations mentioned across all previous turns. As shown in the figure above, this graph captures both the entities (nodes) and the specific relations (edges) that define the conversation's progression over time.

2. Knowledge Encoding and Prediction

To process the MHKT-Path, the model employs a dual-embedding strategy:

  • Global Structure: Initial embeddings are generated using TransR to preserve the global positioning of entities within the wider KG.
  • Local Context: A Heterogeneous Graph Transformer (HGT) processes the MHKT-Path, handling different node types (triplets vs. relations) to capture local transition patterns.

A Knowledge Predictor then uses a Bi-directional Gated Recurrent Unit (Bi-GRU) and Multi-head Attention to analyze the sequence of previous turns and predict which KG triplet is most likely to be relevant for the upcoming response.

3. Knowledge-Enhanced Generation

The final response is generated using a pre-trained BART model. The generator takes the dialogue context, the predicted knowledge triplet, and related descriptive text as input to produce a response that is both fluent and factually grounded.

The architecture of the RT-KGD model, integrating graph embeddings, sequential modeling, and a BART-based generator.

Experimental Evaluation

Dataset

The model was evaluated on KdConv, a large-scale Chinese multi-domain dataset covering Film, Music, and Travel. KdConv is particularly demanding due to its long-form dialogues (averaging 19 turns) and large associated KGs (up to 89K triplets).

Key Results

RT-KGD demonstrated superior performance across all domains compared to standard BART and HRED models:

  • Automatic Metrics: In the Travel domain, RT-KGD achieved a BLEU-4 score of 34.31, a significant improvement over the standard BART baseline (23.33). Higher Distinct-n scores also indicated more diverse and less repetitive responses.
  • Human Evaluation: Evaluators rated RT-KGD higher for fluency and coherence. In the Music domain, coherence scores improved from 1.00 to 1.77 on a 3-point scale, highlighting the model's ability to maintain a logical thread.
  • Ablation Studies: Removing relation vertices from the MHKT-Path led to a sharp decline in performance, confirming that modeling how topics transition is as important as identifying what the topics are.

Discussion and Conclusion

RT-KGD successfully combines the structural strengths of Graph Neural Networks with the sequential strengths of Recurrent Neural Networks. While the model shows a slight trade-off in Perplexity (PPL)—likely due to its tendency to introduce specific, diverse facts not present in generic training text—it represents a significant step toward more "proactive" and logical AI conversation.

Future work may explore reducing the computational complexity of constructing heterogeneous graphs for every turn and extending the framework to goal-oriented dialogues where the AI must steer the conversation toward specific knowledge targets.

Summary updated

BibTeX
@inproceedings{wang2022rt,
  author = {Kexin Wang and Zhixu Li and Jiaan Wang and Jianfeng Qu and Ying He and An Liu and Lei Zhao},
  title = {{RT-KGD: Relation Transition Aware Knowledge-Grounded Dialogue Generation}},
  booktitle = {ISWC},
  year = {2022},
  doi = {10.1007/978-3-031-19433-7\_19},
}
Figure