[Paper Review] EmotionX-KU: BERT-Max based Contextual Emotion Classifier
This paper proposes EmotionX-KU, a BERT-Max based contextual emotion classifier that leverages transferable language modeling and dynamic max pooling to improve emotion detection in dialogues. By incorporating post-training, fine-tuning, and weighted cross-entropy loss, the model achieves state-of-the-art performance on the EmotionX benchmark, outperforming prior methods on both Friends and EmotionPush datasets with micro-F1 scores up to 86.3%.
We propose a contextual emotion classifier based on a transferable language model and dynamic max pooling, which predicts the emotion of each utterance in a dialogue. A representative emotion analysis task, EmotionX, requires to consider contextual information from colloquial dialogues and to deal with a class imbalance problem. To alleviate these problems, our model leverages the self-attention based transferable language model and the weighted cross entropy loss. Furthermore, we apply post-training and fine-tuning mechanisms to enhance the domain adaptability of our model and utilize several machine learning techniques to improve its performance. We conduct experiments on two emotion-labeled datasets named Friends and EmotionPush. As a result, our model outperforms the previous state-of-the-art model and also shows competitive performance in the EmotionX 2019 challenge. The code will be available in the Github page.
Motivation & Objective
- To address the challenge of contextual emotion classification in informal, multi-turn dialogues where utterance meaning depends on surrounding context.
- To mitigate class imbalance in emotion-labeled dialogue datasets, particularly for rare emotions like 'Joy' and 'Sadness'.
- To enhance domain adaptability of emotion classifiers through post-training on dialogue-specific corpora and fine-tuning on target datasets.
- To improve performance on the EmotionX shared task by combining contextual representation learning with effective sequence modeling techniques.
Proposed method
- The model uses a pre-trained uncased BERT-Base encoder with 12 layers, 768 hidden dimensions, and 12 attention heads for contextualized utterance encoding.
- Dynamic max pooling is applied to sequence representations to generate fixed-size context-aware utterance embeddings, enabling effective modeling of variable-length dialogues.
- Post-training is performed on domain-specific dialogue datasets (Friends, EmotionPush, Emory) using next sentence prediction (NSP) and masked language modeling (MLM) tasks.
- Fine-tuning is conducted with a weighted cross-entropy loss to address class imbalance, particularly for underrepresented emotions.
- An ensemble strategy using 5-fold cross-validation is applied during inference to improve robustness and generalization.
- The model is trained end-to-end with the Adam optimizer and a scheduled learning rate, with input sequences truncated to a maximum length of 512 tokens.
Experimental results
Research questions
- RQ1Can a transferable language model like BERT effectively capture contextual dependencies in multi-turn dialogues for emotion classification?
- RQ2How does dynamic max pooling compare to average pooling in preserving contextually relevant features for emotion prediction?
- RQ3To what extent does post-training on dialogue-specific corpora improve performance on low-resource emotion classes?
- RQ4Does the integration of weighted cross-entropy loss significantly improve performance on imbalanced emotion datasets?
- RQ5Can ensemble learning across multiple folds further enhance model generalization and robustness on the EmotionX benchmark?
Key findings
- The EmotionX-KU model achieves a micro-F1 score of 86.3% on the EmotionPush dataset when trained on both Friends and EmotionPush datasets together, outperforming previous state-of-the-art models.
- On the Friends dataset, the model achieves a micro-F1 score of 77.5% when trained on both datasets, demonstrating strong generalization across domains.
- The model's performance on rare emotions such as 'Joy' and 'Sadness' improves significantly with post-training and weighted loss, with F1 scores rising to 61.0% and 74.7% respectively on EmotionPush.
- Dynamic max pooling consistently outperforms average pooling in combined training scenarios, particularly on the EmotionPush dataset, where it achieves a 0.6% higher micro-F1 than average pooling.
- The ensemble model using 5-fold cross-validation achieves the highest performance, indicating that model averaging improves robustness and generalization.
- Post-training on domain-specific dialogue data leads to a 1.5–2.5% improvement in micro-F1 across both datasets, confirming its effectiveness in domain adaptation.
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.