[Paper Review] ANA at SemEval-2019 Task 3: Contextual Emotion detection in Conversations through hierarchical LSTMs and BERT
This paper presents the HRLCE model, a hierarchical LSTM architecture with multi-head self-attention for contextual emotion detection in conversations, outperforming BERT on the SemEval-2019 Task 3 dataset. The ensemble of HRLCE and BERT achieved a macro-F1 score of 0.7709, ranking 5th among 165 teams.
This paper describes the system submitted by ANA Team for the SemEval-2019 Task 3: EmoContext. We propose a novel Hierarchical LSTMs for Contextual Emotion Detection (HRLCE) model. It classifies the emotion of an utterance given its conversational context. The results show that, in this task, our HRCLE outperforms the most recent state-of-the-art text classification framework: BERT. We combine the results generated by BERT and HRCLE to achieve an overall score of 0.7709 which ranked 5th on the final leader board of the competition among 165 Teams.
Motivation & Objective
- To improve contextual emotion detection in conversational text by modeling multi-turn dialogue context effectively.
- To address the challenge of emotion detection in short, informal social media text with figurative language, emojis, and class imbalance.
- To develop a model that captures both semantic and emotional context from utterances and their conversational history.
- To outperform state-of-the-art models like BERT in emotion classification for conversational contexts.
- To create a robust ensemble system combining hierarchical LSTMs and BERT for improved performance on the EmoContext task.
Proposed method
- Employ hierarchical LSTMs (HRED) to encode utterances at the utterance level and context at the dialogue level using two RNN layers: utterance encoder and context encoder.
- Integrate multi-head self-attention on the context-level hidden states to refine contextual representation and capture long-range dependencies.
- Use pre-trained embeddings including BERT, ELMo, GloVe, and DeepMoji to enrich word-level semantic and emotional representations.
- Fine-tune BERT with a pair of input sequences: context (u1, u2) as the first sentence and target utterance (u3) as the second, to emphasize context-target relationships.
- Apply class-weighted cross-entropy loss with empirical label distribution estimates to mitigate class imbalance.
- Combine predictions from HRLCE and BERT via majority voting in a 9-fold cross-validation setup for model stability and ensemble performance.
Experimental results
Research questions
- RQ1Can a hierarchical LSTM architecture with self-attention outperform BERT in contextual emotion detection for conversational text?
- RQ2How effective is the integration of multiple pre-trained embeddings (BERT, ELMo, GloVe, DeepMoji) in capturing both semantic and emotional features?
- RQ3To what extent does modeling dialogue context through hierarchical RNNs improve emotion classification accuracy compared to single-sequence models?
- RQ4How do class imbalance and figurative language affect emotion detection performance in social media text?
- RQ5Can an ensemble of HRLCE and BERT achieve superior performance compared to individual models on the EmoContext benchmark?
Key findings
- The HRLCE model achieved the highest individual macro-F1 score on the development set, outperforming both BERT and simpler LSTM baselines.
- The ensemble of HRLCE and BERT achieved a macro-F1 score of 0.7709 on the test set, ranking 5th among 165 teams in the SemEval-2019 Task 3 competition.
- Emotion Sad was classified with the highest accuracy across all models, while Happy was the most frequently misclassified, especially into the Others category.
- Misclassifications were predominantly between the Others category and the three main emotions (Happy, Angry, Sad), indicating difficulty in distinguishing neutral or ambiguous emotional expressions.
- The model's performance on the test set was slightly lower than on the dev set, suggesting potential domain shift or overfitting tendencies.
- The confusion matrix revealed minimal cross-classification between Happy, Angry, and Sad, indicating strong discriminative ability among the primary emotions when combined with the Others class.
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.