[Paper Review] Attention-based Modeling for Emotion Detection and Classification in Textual Conversations
This paper proposes an attention-based deep learning model for emotion detection in multi-turn textual conversations, leveraging transfer learning via fine-tuned universal language modeling and self-attention mechanisms to focus on salient emotional cues. The model achieves a micro-F1 score of 0.7582 on the SemEval-2019 Task-3 dataset, outperforming the baseline and ranking 11th among 150+ participants, with strong interpretability through attention-driven identification of emotion-relevant words.
This paper addresses the problem of modeling textual conversations and detecting emotions. Our proposed model makes use of 1) deep transfer learning rather than the classical shallow methods of word embedding; 2) self-attention mechanisms to focus on the most important parts of the texts and 3) turn-based conversational modeling for classifying the emotions. The approach does not rely on any hand-crafted features or lexicons. Our model was evaluated on the data provided by the SemEval-2019 shared task on contextual emotion detection in text. The model shows very competitive results.
Motivation & Objective
- To improve emotion detection in multi-turn conversations by modeling sequential emotional dynamics across turns.
- To eliminate reliance on hand-crafted features or emotion lexicons by leveraging end-to-end deep learning.
- To enhance model interpretability by analyzing attention weights for emotion-relevant word identification.
- To achieve competitive performance on the SemEval-2019 Task-3 benchmark for contextual emotion detection.
- To investigate the effectiveness of self-attention and turn-based modeling in capturing emotional state shifts.
Proposed method
- Utilizes universal language modeling with AWD-LSTM for deep transfer learning, pre-trained on general text and fine-tuned for emotion classification.
- Employs self-attention mechanisms in the classifier to dynamically weigh the importance of tokens across turns, especially focusing on the first and last turns.
- Models emotional state changes by processing the conversation turn-by-turn, with the last turn being most influential for classification.
- Applies a bidirectional LSTM encoder to capture contextual dependencies in each turn before attention integration.
- Uses ensemble of forward and backward language models to improve representation learning and robustness.
- Validates attention interpretability by matching top-20% attention-weighted tokens with EmoLex emotion lexicon entries.
Experimental results
Research questions
- RQ1Can self-attention mechanisms effectively identify emotion-relevant words in conversational text without relying on external lexicons?
- RQ2How does transfer learning via universal language modeling improve emotion classification in low-resource, imbalanced conversational datasets?
- RQ3What is the relative contribution of the first, second, and last turns in predicting the final emotional state of a conversation?
- RQ4Why is the happy emotion class particularly challenging to detect, and how does the model’s attention mechanism respond to this difficulty?
- RQ5To what extent does modeling turn-by-turn dynamics improve performance over single-turn or aggregated representations?
Key findings
- The proposed model achieved a micro-F1 score of 0.7582 on the SemEval-2019 Task-3 test set, significantly outperforming the baseline model (F1: 0.5868).
- Model-A, which uses both self-attention and turn-based modeling, achieved the highest F1 score for each emotion class and the best overall micro-F1.
- Removing the self-attention layer (Model-B) degraded performance, confirming its critical role in focusing on salient emotional content.
- Inputting only the last turn (Model-E) yielded better results than using a condensed representation of the full conversation (Model-C), indicating the last turn's dominance in emotion prediction.
- The attention mechanism successfully highlighted emotion-specific words: 42.57% of top-20% attention-weighted tokens for 'happy' matched Joy-related words in EmoLex on the validation set.
- The model showed lower performance in detecting 'happy' emotions, consistent with human annotation difficulties, but attention weights clearly distinguished joy-related terms from sadness and anger.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.