Enhancing Dialogue Generation via Dynamic Graph Knowledge Aggregation

Chen Tang, Hongbo Zhang, Tyler Loakman, Chenghua Lin, Frank Guerin
6/28/2023
cs.CLcs.AI

Official code: tangg555/SaBART (9 stars, last commit 2023-10-26).

Abstract

Incorporating external graph knowledge into neural chatbot models has been proven effective for enhancing dialogue generation. However, in conventional graph neural networks (GNNs), message passing on a graph is independent from text, resulting in the graph representation hidden space differing from that of the text. This training regime of existing models therefore leads to a semantic gap between graph knowledge and text. In this study, we propose a novel framework for knowledge graph enhanced dialogue generation. We dynamically construct a multi-hop knowledge graph with pseudo nodes to involve the language model in feature aggregation within the graph at all steps. To avoid the semantic biases caused by learning on vanilla subgraphs, the proposed framework applies hierarchical graph attention to aggregate graph features on pseudo nodes and then attains a global feature. Therefore, the framework can better utilise the heterogeneous features from both the post and external graph knowledge. Extensive experiments demonstrate that our framework outperforms state-of-the-art (SOTA) baselines on dialogue generation. Further analysis also shows that our representation learning framework can fill the semantic gap by coagulating representations of both text and graph knowledge. Moreover, the language model also learns how to better select knowledge triples for a more informative response via exploiting subgraph patterns within our feature aggregation process. Our code and resources are available at https://github.com/tangg555/SaBART.

View on arXivView PDF

Code Implementations(1)

tangg555/SaBARTOfficial100%

This is the code for the paper: Enhancing Dialogue Generation via Dynamic Graph Knowledge Aggregation (ACL2023)

90Shell, PythonMay 20, 20232 years ago

Similar Papers

Cite this paper

@article{tang2023enhancing,
  title  = {Enhancing Dialogue Generation via Dynamic Graph Knowledge Aggregation},
  author = {Chen Tang and Hongbo Zhang and Tyler Loakman and Chenghua Lin and Frank Guerin},
  year   = {2023},
  eprint = {2306.16195},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.16195v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.16195.svg)](https://codeofpaper.com/paper/2306.16195)

Discussion