Boosting Accuracy and Interpretability in Multilingual Hate Speech Detection Through Layer Freezing and Explainable AI
Preprint
Abstract
Sentiment analysis focuses on identifying the emotional polarity expressed in textual data, typically categorized as positive, negative, or neutral. Hate speech detection, on the other hand, aims to recognize content that incites violence, discrimination, or hostility toward individuals or groups based on attributes such as race, gender, sexual orientation, or religion. Both tasks play a critical role in online content moderation by enabling the detection and mitigation of harmful or offensive material, thereby contributing to safer digital environments. In this study, we examine the performance of three transformer-based models: BERT-base-multilingual-cased, RoBERTa-base, and XLM-RoBERTa-base with the first eight layers frozen, for multilingual sentiment analysis and hate speech detection. The evaluation is conducted across five languages: English, Korean, Japanese, Chinese, and French. The models are compared using standard performance metrics, including accuracy, precision, recall, and F1-score. To enhance model interpretability and provide deeper insight into prediction behavior, we integrate the Local Interpretable Model-agnostic Explanations (LIME) framework, which highlights the contribution of individual words to the models decisions. By combining state-of-the-art transformer architectures with explainability techniques, this work aims to improve both the effectiveness and transparency of multilingual sentiment analysis and hate speech detection systems.Keywords
All Related Versions
This publication has 21 references indexed in Scilit:
- Rule2Text: Natural Language Explanation of Logical Rules in Knowledge Graphs2025
- Findings from shared tasks on hate speech detection: Performance patterns for low-resource languagesPattern Recognition Letters, 2025
- AI-driven detection of hate speech on social media: a case study in the French languageCluster Computing, 2025
- Exploring hate speech detection: challenges, resources, current research and future directionsMultimedia Tools and Applications, 2025
- Self-supervised hate speech detection in Norwegian texts with lexical and semantic augmentationsExpert Systems with Applications, 2024
- Deep learning for hate speech detection: a comparative studyInternational Journal of Data Science and Analytics, 2024
- Mapping the scientific knowledge and approaches to defining and measuring hate crime, hate speech, and hate incidents: A systematic reviewCampbell Systematic Reviews, 2024
- How harassment and hate speech policies have changed over time: Comparing Facebook, Twitter and Reddit (2005–2020)Policy & Internet, 2024
- The impact of politicians’ behaviors on hate speech spread: hate speech adoption threshold on Twitter in JapanJournal of Computational Social Science, 2024
- A literature survey on multimodal and multilingual automatic hate speech identificationMultimedia Systems, 2023