Emotional Conversation Generation with Heterogeneous Graph Neural Network

Yunlong Liang, Fandong Meng, Ying Zhang, Jinan Xu, Yufeng Chen +1 more
12/9/2020
cs.CL
gnn

Official code: XL2248/HGNN (25 stars, Python, Apache-2.0, last commit 2021-12-31).

Abstract

The successful emotional conversation system depends on sufficient perception and appropriate expression of emotions. In a real-life conversation, humans firstly instinctively perceive emotions from multi-source information, including the emotion flow hidden in dialogue history, facial expressions, audio, and personalities of speakers.

Show full abstract

Then, they convey suitable emotions according to their personalities, but these multiple types of information are insufficiently exploited in emotional conversation fields. To address this issue, in this paper, we propose a heterogeneous graph-based model for emotional conversation generation. Firstly, we design a Heterogeneous Graph-Based Encoder to represent the conversation content (i.e., the dialogue history, its emotion flow, facial expressions, audio, and speakers' personalities) with a heterogeneous graph neural network, and then predict suitable emotions for feedback. Secondly, we employ an Emotion-Personality-Aware Decoder to generate a response relevant to the conversation context as well as with appropriate emotions, through taking the encoded graph representations, the predicted emotions by the encoder and the personality of the current speaker as inputs. Experiments on both automatic and human evaluation show that our method can effectively perceive emotions from multi-source knowledge and generate a satisfactory response. Furthermore, based on the up-to-date text generator BART, our model still can achieve consistent improvement, which significantly outperforms some existing state-of-the-art models.

View on arXivView PDF

Code Implementations(1)

XL2248/HGNNOfficial100%
Apache-2.0

Code for Infusing Multi-Source Knowledge with Heterogeneous Graph Neural Network for Emotional Conversation Generation (AAAI21)

257PythonDec 4, 20204 years agoApache-2.0

Similar Papers

Cite this paper

@article{liang2020emotional,
  title  = {Emotional Conversation Generation with Heterogeneous Graph Neural Network},
  author = {Yunlong Liang and Fandong Meng and Ying Zhang and Jinan Xu and Yufeng Chen and Jie Zhou},
  year   = {2020},
  eprint = {2012.04882},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.04882}
}

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

Discussion