# Multi-Task Learning with Sentiment, Emotion, and Target Detection to Recognize Hate Speech and Offensive Language

arXiv: https://arxiv.org/abs/2109.10255 · HTML: https://mlsanity.com/paper/2109.10255/

## Key facts

- Cited by 12 papers in the map (data through 14 Oct 2026).
- Builds on 25 of its 80 references that are in the map.
- First posted on arXiv 21 Sep 2021.

## Builds on (most cited first, 25 of 25)

- [BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding](https://mlsanity.com/paper/1810.04805/) (2018)
- [PyTorch: An Imperative Style, High-Performance Deep Learning Library](https://mlsanity.com/paper/1912.01703/) (2019)
- [A Survey on Multi-Task Learning](https://mlsanity.com/paper/1707.08114/) (2017)
- [Automated Hate Speech Detection and the Problem of Offensive Language](https://mlsanity.com/paper/1703.04009/) (2017)
- [DailyDialog: A Manually Labelled Multi-turn Dialogue Dataset](https://mlsanity.com/paper/1710.03957/) (2017)
- [Predicting the Type and Target of Offensive Posts in Social Media](https://mlsanity.com/paper/1902.09666/) (2019)
- [HateCheck: Functional Tests for Hate Speech Detection Models](https://mlsanity.com/paper/2012.15606/) (2020)
- [SemEval-2019 Task 6: Identifying and Categorizing Offensive Language in Social Media (OffensEval)](https://mlsanity.com/paper/1903.08983/) (2019)
- [Deep Learning for Hate Speech Detection in Tweets](https://mlsanity.com/paper/1706.00188/) (2017)
- [SemEval-2020 Task 12: Multilingual Offensive Language Identification in Social Media (OffensEval 2020)](https://mlsanity.com/paper/2006.07235/) (2020)
- [Emotion-Cause Pair Extraction: A New Task to Emotion Analysis in Texts](https://mlsanity.com/paper/1906.01267/) (2019)
- [Hate Lingo: A Target-based Linguistic Analysis of Hate Speech in Social Media](https://mlsanity.com/paper/1804.04257/) (2018)
- [Analyzing the Targets of Hate in Online Social Media](https://mlsanity.com/paper/1603.07709/) (2016)
- [Hate Towards the Political Opponent: A Twitter Corpus Study of the 2020 US Elections on the Basis of Offensive Speech and Stance Detection](https://mlsanity.com/paper/2103.01664/) (2021)
- [Multi-task Learning for Multi-modal Emotion Recognition and Sentiment Analysis](https://mlsanity.com/paper/1905.05812/) (2019)
- [WASSA-2017 Shared Task on Emotion Intensity](https://mlsanity.com/paper/1708.03700/) (2017)
- [Overview of the HASOC track at FIRE 2020: Hate Speech and Offensive Content Identification in Indo-European Languages](https://mlsanity.com/paper/2108.05927/) (2021)
- [Emotion Intensities in Tweets](https://mlsanity.com/paper/1708.03696/) (2017)
- [SemEval-2016 Task 4: Sentiment Analysis in Twitter](https://mlsanity.com/paper/1912.01973/) (2019)
- [Joint Modelling of Emotion and Abusive Language Detection](https://mlsanity.com/paper/2005.14028/) (2020)
- [Leveraging Affective Bidirectional Transformers for Offensive Language Detection](https://mlsanity.com/paper/2006.01266/) (2020)
- [Assessing State-of-the-Art Sentiment Models on State-of-the-Art Sentiment Datasets](https://mlsanity.com/paper/1709.04219/) (2017)
- [Token Sequence Labeling vs. Clause Classification for English Emotion Stimulus Detection](https://mlsanity.com/paper/2010.07557/) (2020)
- [Transfer Learning from LDA to BiLSTM-CNN for Offensive Language Detection in Twitter](https://mlsanity.com/paper/1811.02906/) (2018)
- [Emotion Stimulus Detection in German News Headlines](https://mlsanity.com/paper/2107.12920/) (2021)

## Built on by (most cited first, 12 of 12)

- [Arabic Speech Emotion Recognition Employing Wav2vec2.0 and HuBERT Based on BAVED Dataset](https://mlsanity.com/paper/2110.04425/) (2021)
- [Multilingual Auxiliary Tasks Training: Bridging the Gap between Languages for Zero-Shot Transfer of Hate Speech Detection Models](https://mlsanity.com/paper/2210.13029/) (2022)
- [Same Same, But Different: Conditional Multi-Task Learning for Demographic-Specific Toxicity Detection](https://mlsanity.com/paper/2302.07372/) (2023)
- [From Theories on Styles to their Transfer in Text: Bridging the Gap with a Hierarchical Survey](https://mlsanity.com/paper/2110.15871/) (2021)
- [Hate Speech and Offensive Language Detection using an Emotion-aware Shared Encoder](https://mlsanity.com/paper/2302.08777/) (2023)
- [Learning a General Clause-to-Clause Relationships for Enhancing Emotion-Cause Pair Extraction](https://mlsanity.com/paper/2208.13549/) (2022)
- [Cross Domain Emotion Recognition using Few Shot Knowledge Transfer](https://mlsanity.com/paper/2110.05021/) (2021)
- [Improving the Generalizability of Text-Based Emotion Detection by Leveraging Transformers with Psycholinguistic Features](https://mlsanity.com/paper/2212.09465/) (2022)
- [Improving Cross-Domain Hate Speech Generalizability with Emotion Knowledge](https://mlsanity.com/paper/2311.14865/) (2023)
- [Nano-EmoX: Unifying Multimodal Emotional Intelligence from Perception to Empathy](https://mlsanity.com/paper/2603.02123/) (2026)
- [Detection of Dangerous Events on Social Media: A Perspective Review](https://mlsanity.com/paper/2204.01351/) (2022)
- [Emotion-Enhanced Multi-Task Learning with LLMs for Aspect Category Sentiment Analysis](https://mlsanity.com/paper/2511.19122/) (2025)

## Abstract (arXiv)

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.
