Abstract
Current approaches to empathetic response generation view the set of emotions expressed in the input text as a flat structure, where all the emotions are treated uniformly. We argue that empathetic responses often mimic the emotion of the user to a varying degree, depending on its positivity or negativity and content. We show that the consideration of this polarity-based emotion clusters and emotional mimicry results in improved empathy and contextual relevance of the response as compared to the state-of-the-art. Also, we introduce stochasticity into the emotion mixture that yields emotionally more varied empathetic responses than the previous work. We demonstrate the importance of these factors to empathetic response generation using both automatic- and human-based evaluations. The implementation of MIME is publicly available at https://github.com/declare-lab/MIME.
Introduction
Building an "empathetic" AI is notoriously difficult. Most current models treat emotions as a flat list of labels (e.g., "sad," "happy," "angry") and try to predict a single "correct" emotional response. This often leads to two major issues: genericness and a lack of emotional nuance. Models frequently default to safe, repetitive phrases like "I am sorry to hear that," which feel robotic and fail to recognize that empathy often involves mirroring the speaker's emotional "charge" or polarity.
The authors of MIME argue that empathy isn't just about identifying an emotion—it's about appropriately mimicking it based on its positivity or negativity. For instance, if a user is excited, the AI should reflect that joy; if the user is sad, the AI should acknowledge the pain while perhaps offering a "silver lining."
Methods
MIME (MIMicking Emotions) builds upon the previous state-of-the-art model, MoEL (Mixture of Empathetic Listeners), but introduces several key architectural innovations to address the limitations of flat emotion structures.
- Emotion Grouping: The researchers split 32 distinct emotions into two clusters: Positive (e.g., joyful, proud) and Negative (e.g., afraid, devastated).
- Stochastic Emotion Sampling: Instead of using a fixed probability for an emotion, MIME uses a Variational Autoencoder (VAE) approach. It samples from an emotion distribution, which introduces enough "noise" to ensure the model generates diverse responses rather than the same few sentences every time.
- Mimicry Logic: The model generates two internal representations for a response: a "mimicking" one and a "non-mimicking" one. For positive input, it leans toward mimicking the joy. For negative input, it mimics the emotion to show understanding but fuses it with a "non-mimicking" positive representation to provide comfort or a "silver lining."
- Gated Fusion: A neural "gate" decides the optimal balance between these mimicking and non-mimicking representations before the final text is generated by the Transformer decoder.
Key Results
MIME was trained and evaluated on the EMPATHETICDIALOGUES dataset, containing approximately 25,000 open-domain conversations. It was compared against Multi-TR and the previous SOTA, MoEL, using both automatic metrics and human evaluators.
- Human Preference: In A/B testing, human judges preferred MIME's responses over MoEL's 38.8% of the time, compared to only 28.3% for MoEL.
- Empathy & Relevance: MIME scored significantly higher in human-rated Empathy (3.87 vs. 3.71) and Relevance (3.60 vs. 3.32) on a 5-point scale. Qualitative analysis shows that MIME's responses are more contextually tied to the user's specific situation (e.g., mentioning a "job interview") rather than being generic.
- Diversity: The stochastic sampling successfully prevented the model from falling into the "generic response" trap that plagues many dialogue systems.
Conclusion
MIME demonstrates that polarity-based emotion grouping and mimicry are crucial for generating truly empathetic responses. While the model shows slight trade-offs in fluency compared to simpler architectures (4.28 vs 4.31 for MoEL), the gains in relevance and emotional depth represent a significant step forward in human-AI dialogue. Future work will focus on handling ambiguous emotions like "surprise" and further refining the fluency of the generated text.
Summary updated