Skip to main content
QUICK REVIEW

[Paper Review] WASSA@IITK at WASSA 2021: Multi-task Learning and Transformer Finetuning for Emotion Classification and Empathy Prediction

Jay Mundra, Rohan Gupta|arXiv (Cornell University)|Apr 20, 2021
Sentiment Analysis and Opinion MiningComputer Science18 references8 citations
TL;DR

This paper presents a multi-task learning and fine-tuning approach using ELECTRA and RoBERTa for emotion classification and empathy prediction in the WASSA 2021 shared task. By leveraging transfer learning, data augmentation with GoEmotions, and ensemble methods, the system achieved a macro F1 score of 0.5528 on emotion classification (ranked 1st) and a Pearson correlation of 0.533 on empathy prediction (ranked 3rd).

ABSTRACT

This paper describes our contribution to the WASSA 2021 shared task on Empathy Prediction and Emotion Classification. The broad goal of this task was to model an empathy score, a distress score and the overall level of emotion of an essay written in response to a newspaper article associated with harm to someone. We have used the ELECTRA model abundantly and also advanced deep learning approaches like multi-task learning. Additionally, we also leveraged standard machine learning techniques like ensembling. Our system achieves a Pearson Correlation Coefficient of 0.533 on sub-task I and a macro F1 score of 0.5528 on sub-task II. We ranked 1st in Emotion Classification sub-task and 3rd in Empathy Prediction sub-task

Motivation & Objective

  • To address the challenge of modeling empathy and emotion in response essays to harm-related news articles.
  • To improve performance on low-resource emotion classification and empathy prediction tasks using pre-trained transformer models.
  • To investigate the effectiveness of multi-task learning and data augmentation in enhancing model generalization and reducing bias.
  • To develop a robust system for predicting both empathy and distress scores at the essay level using deep learning.
  • To evaluate the impact of model initialization sensitivity and ensemble strategies on performance stability and accuracy.

Proposed method

  • Fine-tuned ELECTRA-large and RoBERTa-large models end-to-end with a single feedforward layer for both regression (empathy/distress) and classification (emotion) tasks.
  • Implemented multi-task learning by sharing the ELECTRA encoder and using separate feedforward heads for empathy and distress prediction, jointly optimizing with mean squared error (MSE) loss.
  • Applied data augmentation using the GoEmotions dataset to balance class distribution in the emotion classification task, particularly improving underrepresented classes.
  • Employed model ensembling via simple averaging of predictions from multiple trained models to improve generalization and reduce variance.
  • Used AdamW optimizer with learning rate 1e-5, weight decay, and batch sizes of 8 or 16 on a single Tesla V100 GPU via Google Colab.
  • Trained models with multiple random seeds to mitigate performance variance due to initialization sensitivity.

Experimental results

Research questions

  • RQ1Can multi-task learning with shared transformer encoders improve performance on both empathy prediction and emotion classification tasks?
  • RQ2How effective is data augmentation using the GoEmotions dataset in improving model generalization and reducing bias in low-resource emotion classification?
  • RQ3To what extent does model ensembling reduce variance and improve performance stability in fine-tuned transformer models?
  • RQ4How sensitive are fine-tuned ELECTRA and RoBERTa models to weight initialization, and can this be mitigated through ensemble strategies?
  • RQ5What is the impact of using pre-trained models like ELECTRA and RoBERTa on low-resource affective computing tasks such as empathy and emotion prediction?

Key findings

  • The ensemble of ELECTRA and RoBERTa models achieved a macro F1 score of 0.5528 on the test set for emotion classification, ranking 1st in the shared task.
  • The final system achieved a Pearson correlation coefficient of 0.533 on the empathy prediction sub-task, ranking 3rd among all submissions.
  • Data augmentation using GoEmotions significantly improved model performance, particularly reducing overprediction of anger and enhancing underrepresented classes.
  • Model performance was highly sensitive to initialization, with validation scores varying substantially across different random seeds, highlighting the need for ensemble methods.
  • The confusion matrix showed strong performance on fear and improved balance across classes after data augmentation, especially reducing misclassification of joy as anger.
  • Ensembling two models for each task (empathy and distress) led to better generalization and improved correlation and F1 scores compared to individual models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.