[Paper Review] Multi-Task Learning with Sentiment, Emotion, and Target Detection to Recognize Hate Speech and Offensive Language
This paper proposes a multi-task learning framework that jointly trains BERT-based models for hate speech and offensive language (HOF) detection, sentiment analysis, emotion recognition, and target identification. By leveraging the CrowdFlower emotion corpus, SemEval 2016 Sentiment Corpus, and OffensEval 2019 target data, the model achieves an F1-score of 0.7947 on HASOC 2021 and a 2pp F1 improvement (0.80) on HASOC 2019, with significant recall gains for HOF, demonstrating that joint modeling of affective and targeted components enhances HOF detection performance.
The recognition of hate speech and offensive language (HOF) is commonly formulated as a classification task to decide if a text contains HOF. We investigate whether HOF detection can profit by taking into account the relationships between HOF and similar concepts: (a) HOF is related to sentiment analysis because hate speech is typically a negative statement and expresses a negative opinion; (b) it is related to emotion analysis, as expressed hate points to the author experiencing (or pretending to experience) anger while the addressees experience (or are intended to experience) fear. (c) Finally, one constituting element of HOF is the mention of a targeted person or group. On this basis, we hypothesize that HOF detection shows improvements when being modeled jointly with these concepts, in a multi-task learning setup. We base our experiments on existing data sets for each of these concepts (sentiment, emotion, target of HOF) and evaluate our models as a participant (as team IMS-SINAI) in the HASOC FIRE 2021 English Subtask 1A. Based on model-selection experiments in which we consider multiple available resources and submissions to the shared task, we find that the combination of the CrowdFlower emotion corpus, the SemEval 2016 Sentiment Corpus, and the OffensEval 2019 target detection data leads to an F1 =.79 in a multi-head multi-task learning model based on BERT, in comparison to .7895 of plain BERT. On the HASOC 2019 test data, this result is more substantial with an increase by 2pp in F1 and a considerable increase in recall. Across both data sets (2019, 2021), the recall is particularly increased for the class of HOF (6pp for the 2019 data and 3pp for the 2021 data), showing that MTL with emotion, sentiment, and target identification is an appropriate approach for early warning systems that might be deployed in social media platforms.
Motivation & Objective
- To investigate whether joint modeling of sentiment, emotion, and target detection improves hate speech and offensive language (HOF) detection.
- To evaluate the impact of combining multiple affective and structural NLP tasks in a multi-task learning setup for HOF classification.
- To identify the optimal combination of pre-existing annotated corpora for sentiment, emotion, and target detection to enhance HOF detection performance.
- To improve recall for the HOF class, particularly in low-resource settings where HOF instances are underrepresented.
- To assess the practical utility of the model for early warning systems in social media platforms.
Proposed method
- The authors employ a multi-head multi-task learning architecture based on BERT, jointly training for HOF detection, sentiment classification, emotion recognition, and target identification.
- They fine-tune a single BERT backbone on four distinct tasks using separate classification heads for each task.
- The model is trained on a combination of three public datasets: the CrowdFlower emotion corpus, the SemEval 2016 Sentiment Corpus, and the OffensEval 2019 target detection dataset.
- Model selection is performed via hyperparameter tuning and cross-validation on the HASOC 2021 development set to identify the best-performing configuration.
- The final model is evaluated on the official HASOC 2021 and 2019 test sets as part of the FIRE 2021 shared task.
- The approach leverages shared contextual representations from BERT while allowing task-specific adaptation through individual classification heads.
Experimental results
Research questions
- RQ1Can joint training on sentiment, emotion, and target detection improve hate speech and offensive language detection performance?
- RQ2Which combination of pre-existing corpora for sentiment, emotion, and target detection yields the best HOF detection performance?
- RQ3Does multi-task learning reduce false positives in HOF detection by leveraging positive sentiment and emotion signals?
- RQ4How does the model’s recall for the HOF class compare to a baseline BERT model, especially given class imbalance?
- RQ5Why are performance gains more pronounced on the HASOC 2019 dataset than on the 2021 dataset?
Key findings
- The multi-task learning model combining the CrowdFlower emotion corpus, SemEval 2016 Sentiment Corpus, and OffensEval 2019 target data achieved an F1-score of 0.7947 on the HASOC 2021 test set, outperforming a plain BERT model (F1 = 0.7895).
- On the HASOC 2019 test set, the multi-task model achieved an F1-score of 0.80, representing a 2pp improvement over the baseline BERT model (F1 = 0.78).
- The model showed a 6pp increase in recall for the HOF class on the HASOC 2019 dataset (from 0.866 to 0.917), indicating better detection of previously missed HOF instances.
- The model also improved recall by 3pp for the HOF class on the HASOC 2021 dataset, despite a slight drop in precision, suggesting better coverage of HOF content.
- The improvement is attributed to the model’s ability to reject non-HOF content by detecting positive sentiment and emotions, which are inconsistent with hate speech.
- The results indicate that multi-task learning with affective and targeted components is particularly effective for improving recall in low-resource HOF detection scenarios.
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.