Emotion-Aware Transformer Encoder for Empathetic Dialogue Generation

Raman Goel, Seba Susan, Sachin Vashisht, Armaan Dhanda
4/24/2022
cs.SDcs.CLeess.AS
transformer-attention

Official code: r9729104234/Emotion-Aware-Transformer-Encoder-for-Empathetic-Dialogue-Generation (12 stars, Jupyter Notebook, last commit 2022-01-16).

Abstract

Modern day conversational agents are trained to emulate the manner in which humans communicate. To emotionally bond with the user, these virtual agents need to be aware of the affective state of the user.

Show full abstract

Transformers are the recent state of the art in sequence-to-sequence learning that involves training an encoder-decoder model with word embeddings from utterance-response pairs. We propose an emotion-aware transformer encoder for capturing the emotional quotient in the user utterance in order to generate human-like empathetic responses. The contributions of our paper are as follows: 1) An emotion detector module trained on the input utterances determines the affective state of the user in the initial phase 2) A novel transformer encoder is proposed that adds and normalizes the word embedding with emotion embedding thereby integrating the semantic and affective aspects of the input utterance 3) The encoder and decoder stacks belong to the Transformer-XL architecture which is the recent state of the art in language modeling. Experimentation on the benchmark Facebook AI empathetic dialogue dataset confirms the efficacy of our model from the higher BLEU-4 scores achieved for the generated responses as compared to existing methods. Emotionally intelligent virtual agents are now a reality and inclusion of affect as a modality in all human-machine interfaces is foreseen in the immediate future.

View on arXivView PDF

Code Implementations(1)

126Jupyter NotebookAug 15, 20214 years ago

Similar Papers

Cite this paper

@article{goel2022emotionaware,
  title  = {Emotion-Aware Transformer Encoder for Empathetic Dialogue Generation},
  author = {Raman Goel and Seba Susan and Sachin Vashisht and Armaan Dhanda},
  year   = {2022},
  eprint = {2204.11320},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.11320}
}

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

Discussion