[Paper Review] EmotionX-HSU: Adopting Pre-trained BERT for Emotion Classification
This paper proposes EmotionX-HSU, a fine-tuned BERT-based model for emotion classification in social media dialogues, leveraging pre-trained contextual embeddings and data augmentation via back-translation. The approach achieves micro-F1 scores of 79.1% on Friends and 86.2% on EmotionPush, ranking 3rd among 11 submissions.
This paper describes our approach to the EmotionX-2019, the shared task of SocialNLP 2019. To detect emotion for each utterance of two datasets from the TV show Friends and Facebook chat log EmotionPush, we propose two-step deep learning based methodology: (i) encode each of the utterance into a sequence of vectors that represent its meaning; and (ii) use a simply softmax classifier to predict one of the emotions amongst four candidates that an utterance may carry. Notice that the source of labeled utterances is not rich, we utilise a well-trained model, known as BERT, to transfer part of the knowledge learned from a large amount of corpus to our model. We then focus on fine-tuning our model until it well fits to the in-domain data. The performance of the proposed model is evaluated by micro-F1 scores, i.e., 79.1% and 86.2% for the testsets of Friends and EmotionPush, respectively. Our model ranks 3rd among 11 submissions.
Motivation & Objective
- To improve emotion classification performance in low-resource social media text using pre-trained language models.
- To address class imbalance in emotion datasets, particularly for underrepresented emotions like anger.
- To enhance model generalization by incorporating back-translated data while maintaining label balance.
- To evaluate the effectiveness of BERT fine-tuning with minimal hyperparameter adjustments on in-domain dialogue data.
Proposed method
- Fine-tune BERT-base, a 12-layer transformer model with 110M parameters, on emotion classification by adding a softmax classifier on top of the [CLS] token representation.
- Use the final hidden state of the [CLS] token as the sentence-level representation for classification.
- Apply masked language modeling during pre-training and fine-tune the entire model on in-domain data using cross-entropy loss.
- Implement data augmentation via back-translation: translate English utterances into French, German, and Italian, then back to English to generate synthetic training examples.
- Balance the training set by including only augmented data for joy, sadness, and anger, while discarding additional neutral samples to prevent class skew.
- Apply truncation to limit input sequences to 128 tokens, reserving two tokens for [CLS] and [SEP], and use WordPiece tokenization with lowercase normalization.
Experimental results
Research questions
- RQ1Can a pre-trained BERT model effectively transfer knowledge to low-resource emotion classification tasks in social media dialogues?
- RQ2How does data augmentation via back-translation impact model performance on imbalanced emotion datasets?
- RQ3What hyperparameter settings (learning rate, batch size, training epochs) yield optimal fine-tuning performance for emotion classification with BERT?
- RQ4Why does the model perform better on EmotionPush than on Friends, despite the latter being more complex in language use?
- RQ5To what extent does class imbalance affect model performance, particularly for low-resource emotions like anger?
Key findings
- The proposed EmotionX-HSU model achieves a micro-F1 score of 79.1% on the Friends test set and 86.2% on the EmotionPush test set, ranking 3rd among 11 submissions.
- Fine-tuning with a small initial learning rate (2e-5), batch size of 24, and only 4 training epochs leads to stable convergence and strong performance.
- The model shows significantly higher precision for joy (85.4%) than for neutral (80.1%) on the Friends dataset, indicating potential bias in label distribution or context sensitivity.
- Performance on anger classification remains weak, with a micro-F1 of only 65.0% on Friends and 39.1% on EmotionPush, highlighting the challenge of low-resource classes.
- Data augmentation via back-translation improves model robustness, especially for underrepresented emotions, though the gains are limited by inherent data scarcity.
- The model’s performance is strongly correlated with training data quantity per class, as evidenced by recall values that closely track label distribution in Table 2.
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.