Introduction
In natural language processing, building truly "empathetic" chatbots remains a significant challenge. Most existing models treat emotions as a flat structure, recognizing a list of labels without understanding the underlying relationships between them. This often results in generic, repetitive responses like "I am sorry to hear that," which lack emotional depth and nuance.
Humans do not just identify emotions; we react to their polarity. When a conversational partner is happy, we mirror that joy. Conversely, when they are sad, we acknowledge that sadness while often attempting to provide a "silver lining" or supportive perspective. The MIME (MIMicking Emotions) framework addresses these issues by explicitly accounting for emotion mimicry and the distinction between responding to positive versus negative inputs.
Architectural Framework
MIME introduces several architectural innovations over standard Transformer-based encoder-decoders to generate contextually relevant and emotionally varied responses.
As illustrated in the architecture above, the model processes input through a Transformer Encoder. The Decoder then utilizes two distinct internal representations: a "mimicking" group and a "non-mimicking" group. For positive inputs, the model leans heavily into mimicry (e.g., responding to joy with joy). For negative inputs, it blends mimicry (validating the user's state) with non-mimicry (introducing supportive elements) to create a comforting effect. An emotion-refined fusion mechanism then gates these representations to generate the final response.
Polarity-Based Emotion Grouping and Mimicry
A core component of MIME is the split of 32 distinct emotions into two clusters: Positive (e.g., joyful, proud) and Negative (e.g., afraid, devastated). To avoid the "mode collapse" seen in deterministic models, MIME employs a Variational Autoencoder (VAE) approach for stochastic emotion sampling, allowing for more diverse, human-like variations in response.
By sharing emotion embeddings between the classifier and the decoder, the model develops a cohesive understanding of how specific vocabulary relates to specific feelings. As shown in the embedding visualizations, the inclusion of mimicry logic helps the model maintain clear distinctions between emotional polarities while finding the "sweet spot" between validation and comfort.
Evaluation and Key Results
The model was trained on the EmpatheticDialogues dataset, which contains 25,000 conversations grounded in 32 emotion labels. MIME was compared against the previous state-of-the-art, MoEL (Mixture of Empathetic Listeners), using both automatic metrics and human evaluation.
- Human Preference: In A/B testing, human evaluators preferred MIME’s responses over MoEL’s 39% of the time, with 33% resulting in a tie.
- Empathy and Relevance: MIME achieved higher human-rated scores for Empathy (3.87 vs. 3.71) and Relevance (3.60 vs. 3.32) on a 1-5 scale.
- Contextual Awareness: Qualitative analysis showed MIME was significantly better at grounding its responses in specific keywords (e.g., "interview" or "skydiving") provided by the user.
Limitations and Future Work
While MIME excels in empathy, there is a slight trade-off in fluency (4.28 vs. 4.31 for the baseline) due to the focus on emotional injection. Additionally, certain "polarity-ambiguous" emotions like "Surprise" or "Anticipation" remain challenging; currently, the model treats surprise as positive, which may lead to inappropriate responses in tragic contexts. Future research will focus on refining the handling of these ambiguous states and improving grammatical smoothness.
Summary updated