TL;DR
The Self-Attentive Emotion Recognition Network (SERN) introduces a hierarchical, real-time architecture that captures long-term emotional context in dyadic conversations. By combining a bidirectional LSTM for utterance-level features with a self-attentive GRU for dialog-level dynamics, the model outperforms traditional sequence models without requiring the entire conversation history upfront.
What Problem Does This Paper Address?
Recognizing emotions in text-based dialog is notoriously difficult because the emotional weight of a single sentence often depends on what was said minutes prior. For example, a simple "Thank you" could be sincere, sarcastic, or deeply sad depending on the preceding context.
Existing approaches like Recurrent Neural Networks (RNNs) and Hidden Markov Models (HMMs) suffer from "short-term memory," struggling to retain salient information over long horizons due to vanishing gradients. Furthermore, many state-of-the-art models are bidirectional at the dialog level, meaning they need to see the end of a conversation to predict the emotion at the beginning—a dealbreaker for real-time applications like monitoring mental health on social networks.
Methods
The authors propose SERN, a hierarchical encoder network designed for online inference. The architecture consists of three main stages:
- Utterance-Level Encoding: A Bidirectional LSTM (BiLSTM) processes individual utterances to capture word-level syntactic context.
- Dialog-Level Encoding: The final states of the BiLSTM are fed into a unidirectional Gated Recurrent Unit (GRU). Using a unidirectional GRU at this level is a deliberate choice; it allows the model to function in real-time (online) as the conversation unfolds.
- Self-Attention Mechanism: This is the core innovation. Instead of relying solely on the GRU's hidden state, the model uses a self-attention layer to compute the "affinity" between the current dialog state and all previous states. This allows the model to "jump back" and weigh a crucial utterance from ten steps ago more heavily than the immediate predecessor.
Datasets
The model was evaluated using the IEMOCAP (Interactive Emotional Dyadic Motion Capture) dataset.
- Scope: 151 conversations, totaling 10,039 utterances.
- Filtering: The authors focused on six core emotions: Angry, Sad, Happy, Frustrated, Excited, and Neutral, resulting in a subset of 7,380 utterances.
- Modality: While IEMOCAP includes audio and video, this study specifically targets the textual transcripts to simulate Online Social Network (OSN) environments.
Key Insights and Ideas
- The "Recency Bias" Fallacy: Standard RNNs tend to over-prioritize the most recent message. The authors' qualitative analysis (see Table 5/6) proves that the current utterance is often not the principal component driving the emotional state.
- Attention without Decoders: Unlike many attention models that require a decoder network, SERN uses "innovative self-attention arguments" to capture correlation patterns directly between encoder states, making the architecture leaner.
- Ambiguity in Emotion: The authors found significant overlap between "Happy" and "Excited," as well as "Neutral" and "Frustrated." Merging these categories significantly boosted performance, suggesting that even human annotators struggle with these fine-grained distinctions in text.
Key Results
SERN consistently outperformed baselines, including standard SVMs and BiLSTMs.
- Quantitative Performance: SERN achieved an F1 score of 0.530, notably higher than the standard BiLSTM (0.465) and a single-layer BiLSTM with attention (0.509).
- Window Sensitivity: Through an ablation study, the authors discovered that a context window of 20 utterances provided the best balance for capturing long-term dynamics without introducing too much noise.
- Confusion Matrix Insights: The model was most accurate at identifying "Sad" (0.669 recall) and "Angry" (0.647 recall) states, which are often characterized by distinct linguistic markers that persist over several turns.
Limitations and Future Work
- Text-Only Constraint: By ignoring audio and visual cues, the model misses out on prosody and facial expressions which are vital for detecting nuances like irony.
- Ambiguity: The high confusion between "Neutral" and "Frustrated" suggests the model still struggles with subtle negative affect that doesn't use overt "angry" keywords.
- Future Directions: The authors plan to explore reinforcement learning to refine the model via feedback-driven loops and aim to integrate SERN into real-world social network enhancement frameworks to combat cyberbullying and suicidal ideation.
Summary updated