DialoKG: Knowledge-Structure Aware Task-Oriented Dialogue Generation

Md Rashad Al Hasan Rony, Ricardo Usbeck, Jens Lehmann
4/19/2022
cs.CLcs.AI

Official code: rashad101/DialoKG (16 stars, Python, MIT, last commit 2026-04-21).

Abstract

Task-oriented dialogue generation is challenging since the underlying knowledge is often dynamic and effectively incorporating knowledge into the learning process is hard. It is particularly challenging to generate both human-like and informative responses in this setting.

Show full abstract

Recent research primarily focused on various knowledge distillation methods where the underlying relationship between the facts in a knowledge base is not effectively captured. In this paper, we go one step further and demonstrate how the structural information of a knowledge graph can improve the system's inference capabilities. Specifically, we propose DialoKG, a novel task-oriented dialogue system that effectively incorporates knowledge into a language model. Our proposed system views relational knowledge as a knowledge graph and introduces (1) a structure-aware knowledge embedding technique, and (2) a knowledge graph-weighted attention masking strategy to facilitate the system selecting relevant information during the dialogue generation. An empirical evaluation demonstrates the effectiveness of DialoKG over state-of-the-art methods on several standard benchmark datasets.

View on arXivView PDF

Code Implementations(1)

rashad101/DialoKGOfficial100%
MIT

PyTorch code for NAACL 2022 paper: DialoKG: Knowledge-Structure Aware Task-Oriented Dialogue Generation (https://aclanthology.org/2022.findings-naacl.195/).

161PythonApr 19, 20227 months agoMIT
conversational-agentsconversational-aidialogue-systemsgpt-2knowledge-graph+3 more

Similar Papers

Cite this paper

@article{rony2022dialokg,
  title  = {DialoKG: Knowledge-Structure Aware Task-Oriented Dialogue Generation},
  author = {Md Rashad Al Hasan Rony and Ricardo Usbeck and Jens Lehmann},
  year   = {2022},
  eprint = {2204.09149},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.09149}
}

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/2204.09149.svg)](https://codeofpaper.com/paper/2204.09149)

Discussion