Improving Empathetic Response Generation by Recognizing Emotion Cause in Conversations

Jun Gao, Yuhan Liu, Haolin Deng, Wei Wang, Yu Cao, Jiachen Du, Ruifeng Xu

Abstract

Traditional empathetic dialogue systems often focus on identifying the user's emotion label without understanding the underlying cause. This paper proposes a novel framework that explicitly recognizes the "emotion cause" within a conversation. By utilizing an Emotion Reasoner and a Gated Attention Mechanism, the model prioritizes causal stimuli during response generation. Experimental results on the Empathetic-dialogues dataset demonstrate that this approach significantly enhances both the relevance and perceived empathy of generated responses, outperforming existing state-of-the-art models.

Introduction

While modern dialogue systems are increasingly fluent, they frequently fail to provide genuine empathetic engagement. Most current models treat empathy as a simple classification task: predict an emotion label and generate a response. However, true empathy requires cognitive understanding—specifically, identifying the stimulus or event (the "emotion cause") that triggered the user's feelings. For instance, responding to "I feel lonely because my friends moved away" requires addressing the separation from friends, not just the feeling of loneliness. This paper addresses the challenge of automatically identifying these causal cues and integrating them into the response generation process.

Methodology

The proposed framework consists of two primary modules: the Emotion Reasoner and the Response Generator.

The architecture of the proposed framework, featuring the Emotion Reasoner (a) and the Response Generator (b) with Gated Attention.

Emotion Reasoner

The Emotion Reasoner employs a Transformer encoder to perform multi-task learning. It simultaneously predicts the global emotion label of the dialogue context and performs word-level sequence labeling to pinpoint the "emotion cause" words. This dual-task approach allows the model to leverage the synergy between emotion recognition and causal understanding.

Response Generator with Gated Attention

The Response Generator is a Transformer-based decoder integrated with a Gated Attention Mechanism. The probabilities of words being "causes" (derived from the Reasoner) act as gates for the cross-attention layer. This mechanism ensures the decoder focuses its computational resources on the most relevant parts of the input. Two gating strategies are explored:

  • Hard Gating: A binary selection of cause words, made differentiable via the Gumbel-Softmax trick.
  • Soft Gating: A continuous weighting that prioritizes cause words while maintaining broader contextual awareness.

Experimental Results

The models were evaluated on the Empathetic-dialogues (ED) dataset, augmented with "silver" emotion cause labels derived from the RECCON dataset.

Quantitative Evaluation

The proposed Ours(Soft) model achieved superior performance across automatic metrics, including a BLEU score of 1.774 and an emotion classification accuracy of 42.4%, a significant jump from the ~36% achieved by baseline models. Human evaluation further validated these results, with professional annotators rating the soft-gating model significantly higher in Empathy (3.244) and Relevance (3.096) compared to the best baseline (MK-EDG).

Key Insights

  • Causality as a Filter: The gated attention mechanism effectively acts as a denoising filter, allowing the model to ignore conversational noise and focus on semantic stimuli.
  • Soft Gating Superiority: Soft gating consistently outperformed hard gating. While hard gating is precise, it is susceptible to errors in cause detection. Soft gating provides a "safety margin" by allowing the model to fall back on general context when necessary.

Qualitative Analysis

The effectiveness of the causal focus is best observed through qualitative examples.

Qualitative comparison of generated responses. Highlighted words indicate the identified emotion causes that the model focuses on.

As shown in the examples, by identifying specific causes like "new car" or "expecting," the model generates responses that are not only emotionally appropriate but also contextually grounded, such as "i hope they get a great vehicle" instead of generic empathetic statements.

Conclusion

By shifting the focus from what a user feels to why they feel it, this framework marks a significant step toward more human-like empathetic AI. Future work includes exploring multi-turn causal structures and integrating external commonsense knowledge to further deepen the model's understanding of human emotions.

Summary updated

BibTeX
@inproceedings{gao2021improving,
  author = {Jun Gao and Yuhan Liu and Haolin Deng and Wei Wang and Yu Cao and Jiachen Du and Ruifeng Xu},
  title = {{Improving Empathetic Response Generation by Recognizing Emotion Cause in Conversations}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.70},
}
Figure