[Paper Review] Automatic Sexism Detection with Multilingual Transformer Models
This paper presents a multilingual transformer-based approach for automatic sexism detection in social media, leveraging XLM-RoBERTa with unsupervised pre-training on external datasets (HatEval2019 and MeTwo) and fine-tuning on the EXIST2021 benchmark. The best model achieved a macro F1-score of 0.7752 on binary sexism detection (5th place) and 0.5589 on fine-grained classification (6th place), demonstrating that pre-training on semantically related data improves robustness and generalization over fine-tuning alone.
Sexism has become an increasingly major problem on social networks during the last years. The first shared task on sEXism Identification in Social neTworks (EXIST) at IberLEF 2021 is an international competition in the field of Natural Language Processing (NLP) with the aim to automatically identify sexism in social media content by applying machine learning methods. Thereby sexism detection is formulated as a coarse (binary) classification problem and a fine-grained classification task that distinguishes multiple types of sexist content (e.g., dominance, stereotyping, and objectification). This paper presents the contribution of the AIT_FHSTP team at the EXIST2021 benchmark for both tasks. To solve the tasks we applied two multilingual transformer models, one based on multilingual BERT and one based on XLM-R. Our approach uses two different strategies to adapt the transformers to the detection of sexist content: first, unsupervised pre-training with additional data and second, supervised fine-tuning with additional and augmented data. For both tasks our best model is XLM-R with unsupervised pre-training on the EXIST data and additional datasets and fine-tuning on the provided dataset. The best run for the binary classification (task 1) achieves a macro F1-score of 0.7752 and scores 5th rank in the benchmark; for the multiclass classification (task 2) our best submission scores 6th rank with a macro F1-score of 0.5589.
Motivation & Objective
- To address the challenge of detecting sexism in multilingual social media content, particularly given limited annotated training data.
- To improve model generalization and reduce overfitting in low-resource NLP settings for sexism detection.
- To evaluate the effectiveness of data augmentation and transfer learning strategies using multilingual transformer models.
- To compare the performance of mBERT and XLM-R on both binary and fine-grained sexism classification tasks.
- To determine whether unsupervised pre-training on external datasets outperforms supervised fine-tuning on the target dataset alone.
Proposed method
- The study employs two multilingual transformer models: mBERT and XLM-R, for both binary and multiclass sexism classification.
- A comprehensive pre-processing pipeline was applied, removing mentions, hashtags, URLs, digits, punctuation, and non-ASCII characters to improve model generalization.
- External datasets—HatEval2019 (hate speech against women and immigrants) and MeTwo (Spanish sexist expressions)—were used for unsupervised pre-training.
- The models were fine-tuned on the EXIST2021 dataset with and without data augmentation via back-translation of training instances.
- A late fusion strategy combined predictions from multiple models (e.g., mBERT and XLM-R) by taking the maximum of class-wise probabilities to improve robustness.
- The best-performing model used XLM-R with unsupervised pre-training on EXIST, HatEval2019, and MeTwo datasets, followed by supervised fine-tuning on the EXIST dataset.
Experimental results
Research questions
- RQ1Does unsupervised pre-training on external, semantically related datasets improve the performance of multilingual transformers in sexism detection compared to fine-tuning on the target dataset alone?
- RQ2How effective is data augmentation via back-translation in improving model generalization on low-resource sexism detection tasks?
- RQ3Can XLM-R outperform mBERT in both binary and fine-grained sexism classification when trained with transfer learning strategies?
- RQ4Does the integration of multilingual data (English and Spanish) enhance model performance on cross-lingual sexism detection?
- RQ5To what extent does the choice of pre-processing pipeline impact model performance on the EXIST2021 benchmark?
Key findings
- The XLM-R model with unsupervised pre-training on EXIST, HatEval2019, and MeTwo datasets achieved the best performance, scoring a macro F1-score of 0.7752 on the binary classification task (task 1), ranking 5th in the benchmark.
- For the fine-grained classification task (task 2), the same XLM-R-based approach achieved a macro F1-score of 0.5589, ranking 6th overall.
- The mBERT model fine-tuned on the augmented EXIST dataset showed signs of overfitting, with a validation accuracy of 79.97% and a test accuracy of only 71.82% on task 1.
- The late fusion strategy combining multiple models improved robustness slightly but did not surpass the best individual XLM-R model, ranking 10th on task 1 and 8th on task 2.
- Pre-training on external datasets yielded better results than fine-tuning the same model on the target dataset alone, indicating that domain-adaptive pre-training is more effective than direct fine-tuning in low-resource settings.
- The model performance was significantly better on English content than on Spanish content when fine-tuned on the original (non-preprocessed) data, suggesting language-specific data quality or distribution issues.
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.