InferEM: Inferring the Speaker's Intention for Empathetic Dialogue Generation

Guoqing Lv, Xiaoping Wang, Jiang Li, Zhigang Zeng · DOI

Introduction

Empathetic dialogue generation aims to understand user feelings and respond with appropriate care. Traditional models often treat dialogue history as a single sequence, which can lead to the speaker's immediate intention being overlooked. InferEM (Inferring the Speaker’s Intention for EMpathetic dialogue generation) addresses this gap by explicitly modeling the final utterance's intent and simulating human-like predictive processing—the psychological trait of anticipating what a speaker might say next to better prepare a response.

The InferEM Framework

The InferEM architecture shifts the focus from general context modeling to capturing specific speaker intentions through a three-stage process.

The overall architecture of InferEM, illustrating the three stages: Virtual Last Utterance Prediction, Attention-based Intention Perception, and Empathetic Response Generation.
  1. Virtual Last Utterance Prediction (LUP): To mimic human psychology, the model uses the first $n-1$ utterances to predict a "virtual" version of the $n$-th (final) utterance. This forces the model to learn the trajectory of the conversation and anticipate the speaker's needs.
  2. Attention-based Intention Perception (SIP): Using a specialized module called MAIFNet (Multi-head Attention based Intent Fusion Network), the model separately encodes the real last utterance and the virtual predicted one. These features are then fused with the entire dialogue history to ensure the speaker's immediate intent is prioritized.
  3. Empathetic Response Generation: The fused features are passed to an Emotion-dependency Decoder (Dec) that incorporates external knowledge (from ConceptNet and NRC VAD) to generate the final response.

To optimize this multi-stage system, the authors employ a multi-task learning strategy with four distinct loss functions, ensuring the prediction module is effectively trained in the early stages.

Experimental Results

The model was evaluated on the EmpatheticDialogues dataset, which contains approximately 25,000 open-domain dialogues grounded in specific emotions. InferEM was compared against several strong baselines, including MoEL, MIME, KEMP, and CEM.

Automatic evaluation results comparing InferEM against several baselines. InferEM achieves state-of-the-art performance in accuracy and perplexity.

As shown in the results table, InferEM achieved state-of-the-art (SOTA) performance in Emotion Accuracy (39.98%) and Perplexity (31.26). The significant drop in Perplexity compared to the KEMP baseline (36.89) indicates much higher confidence and fluency in the generated text. Human evaluations further supported these findings, with annotators preferring InferEM for its superior empathy and relevance.

Ablation studies confirmed that both the Intention Perception (SIP) and Last Utterance Prediction (LUP) modules are essential, as removing either led to a noticeable decline in performance.

Conclusion

By focusing on the speaker's intention and incorporating a predictive "pre-thought" step, InferEM significantly improves the emotional resonance and relevance of dialogue systems. While the model currently outperforms existing specialized architectures, future work involves combining InferEM’s intention-focus with the generative power of Large Language Models (LLMs) to further reduce generic responses.

Summary updated

BibTeX
@inproceedings{lv2023inferem,
  author = {Guoqing Lv and Xiaoping Wang and Jiang Li and Zhigang Zeng},
  title = {{InferEM: Inferring the Speaker's Intention for Empathetic Dialogue Generation}},
  booktitle = {CogSci},
  year = {2023},
}
Figure