[Paper Review] Leveraging Multilingual Transformers for Hate Speech Detection
The paper uses multilingual Transformer models (XLM-RoBERTa) to detect and classify hate speech across English, German, and Hindi, achieving strong macro F1 scores and analyzing Perspective API features and feature choices.
Detecting and classifying instances of hate in social media text has been a problem of interest in Natural Language Processing in the recent years. Our work leverages state of the art Transformer language models to identify hate speech in a multilingual setting. Capturing the intent of a post or a comment on social media involves careful evaluation of the language style, semantic content and additional pointers such as hashtags and emojis. In this paper, we look at the problem of identifying whether a Twitter post is hateful and offensive or not. We further discriminate the detected toxic content into one of the following three classes: (a) Hate Speech (HATE), (b) Offensive (OFFN) and (c) Profane (PRFN). With a pre-trained multilingual Transformer-based text encoder at the base, we are able to successfully identify and classify hate speech from multiple languages. On the provided testing corpora, we achieve Macro F1 scores of 90.29, 81.87 and 75.40 for English, German and Hindi respectively while performing hate speech detection and of 60.70, 53.28 and 49.74 during fine-grained classification. In our experiments, we show the efficacy of Perspective API features for hate speech classification and the effects of exploiting a multilingual training scheme. A feature selection study is provided to illustrate impacts of specific features upon the architecture's classification head.
Motivation & Objective
- Motivate robust hate speech detection in multilingual social media text.
- Investigate coarse (HOF vs NOT) and fine-grained (HATE, OFFN, PRFN) classifications.
- Evaluate XLM-RoBERTa based architectures with multilingual and monolingual training.
- Assess the value of Perspective API features and emoji/hashtag representations.
Proposed method
- Fine-tune XLM-RoBERTa with a two-layer MLP classifier on concatenated embeddings of cleaned text, emojis, and segmented hashtags.
- Incorporate emoji2vec and hashtag embeddings averaged over their elements to ground in a common latent space.
- Experiment with Perspective API features as standalone inputs to an MLP for English and German.
- Compare frozen (baseline) vs. fine-tuned Transformer weights in monolingual and multilingual settings.
- Perform feature-selection studies across cleaned text, emojis, and hashtags to assess impact on performance.
- Use macro F1-score as the evaluation metric and perform grid searches for MLP hyperparameters.
Experimental results
Research questions
- RQ1Can multilingual transformers effectively detect hate speech across English, German, and Hindi tweets?
- RQ2What is the impact of adding emoji and hashtag embeddings on classification performance?
- RQ3How do Perspective API features compare to Transformer-based representations for hate speech tasks?
- RQ4Does multilingual training improve performance for German and Hindi when English data is available?
- RQ5What is the effect of fine-tuning the Transformer weights versus using frozen embeddings?
Key findings
- XLM-RoBERTa based models with fine-tuning outperform frozen baselines in both mono- and multilingual settings.
- Best performing configurations achieve English Task1 90.05, Task2 60.70; German Task1 81.87, Task2 53.28; Hindi Task1 74.29, Task2 49.74.
- Multilingual training improves German Task2 and Hindi Task2 performance in some settings, while English results may drop in limited-feature scenarios.
- Perspective API features provide respectable results for HOF vs NOT but lag behind Transformer-based models for fine-grained classification.
- Including emoji and hashtag embeddings enhances performance, with hashtag features notably beneficial in several setups.
- Feature-selection studies show hashtags and emojis add valuable information to the classifier head.
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.