Skip to content
Open access

A Context-Aware and Target-Adaptive Multilingual Framework for Hate Speech Detection in Code-Switched Social Media Text

Aug 2026 · Engineering, Technology & Applied Science Research · 0 citations · 21 references

TL;DR

A Context-Aware and Target-Adaptive Multilingual Hate Speech Detection model that combines multilingual transformer-based embeddings with a context-aware attention mechanism to capture semantic dependencies in text and reduces false positives is introduced.

Abstract

The rapid expansion of social media has accelerated the spread of hate speech, particularly within multilingual and code-switched environments where users frequently alternate languages within a single conversation. Detecting this kind of content is still challenging because of the use of multiple languages, the lack of clear context, and the difficulty of identifying the intended target of the hate speech. Current methods for detecting hate speech, such as traditional machine learning models and transformer-based architectures such as Bidirectional Encoder Representations from Transformers (BERT) and Cross-lingual Language Model-RoBERTa (XLM-R), have improved contextual understanding. However, they still struggle to accurately identify the intended target of hate speech and lack fine-grained context awareness. This limitation reduces the effectiveness of implicit hate speech detection and results in more false positives, especially in multilingual and low-resource settings. To tackle these issues, this research introduces a Context-Aware and Target-Adaptive Multilingual Hate Speech Detection (CTM-HSD) model. The proposed method combines multilingual transformer-based embeddings with a context-aware attention mechanism to capture semantic dependencies in text. It also includes a separate target identification module to identify the person or group being targeted. In addition, adaptive learning techniques, such as transfer learning and data augmentation, are used to improve performance in low-resource and code-switched scenarios. Evaluation on multilingual and code-switched datasets shows that the proposed model outperforms baseline models such as BERT and XLM-R, with an accuracy of 92.4% and an F1-score of 91.2%. The findings demonstrate that the integration of contextual awareness and target adaptability markedly enhances the identification of implicit hate speech and reduces false positives. The proposed framework offers a robust and flexible solution for real-world multilingual content moderation systems.

Read PDF

Similar papers

Open access Jul 2026

Low-Resource Hate Speech Detection in English-Swahili Code-Switched Text Using Fine-Tuning of Pre-trained Language Models

This study explores a low-resource approach to detecting hate speech in English and Swahili code-switched text by fine-tuning pre-trained language models, and shows that fine-tuning modern language models can offer a practical and scalable solution for hate speech detection in multilingual environments.

Kipkebut Andrew, Jepkemei Betty · 0 citations
#artificial intelligence Preprint Aug 2026

Efficient Adaptation of LLMs for Hate Speech Detection in Low-Resource Languages: A Comparative Study on Roman Urdu

It is challenging to detect hate speech in Low Resource Languages (LRLs) because of the absence of annotated data, the informality of its language structure, and the lack of standardized grammar. A good example of such a challenge is Roman Urdu which is broadly used by South Asians on social media and has a high variat...

Toneema Zubair, Muhammad Asif, F. Kamiran et al. · 0 citations
Open access Aug 2026

Indonesian Hate Speech Detection Across Diverse Domains Using Parameter-Efficient Fine-Tuning with IndoBERT and LoRA

The findings indicate that IndoBERT+LoRA provides a promising and resource-efficient approach for multi-domain Indonesian hate and abusive speech classification, while stricter leave-one-domain-out evaluation remains an important direction for future work.

Fergie Joanda Kaunang, Bhustomy Hakim, A. P. Thenata · 0 citations
Conference Aug 2026

Zero-Shot Cross-Lingual Transfer for Hate Speech Detection Using Multilingual Models

Detecting hate speech in low-resource and unseen languages remains challenging due to limited labeled data and linguistic diversity. This paper presents a comparative study of zero-shot cross-lingual transfer for hate speech detection using two multilingual transformer models: mDeBERTa-v3 and XLM-RoBERTa. To the best o...

Ghadeer Al-Badani, M. Alsurori, Akram Alsubari · 0 citations
Review Open access Jul 2026

Detecting Hate Speech in Hindi Digital Discourse Using Transformer–Long Short-Term Memory Models

Evaluating advanced language models for analysing hate speech in Hindi social media content illustrates that language-specific computational tools can be used for both platform governance and communication research, provided that the cultural context is considered.

Rachna Narula, Vedika Gupta, Jawad Khan et al. · 0 citations
Open access 2026

From Binary to Multi-Class: LLM-Judged Synthetic Annotation Applied to Hate Speech Detection

The proposed strategy offers a versatile solution for nuanced classification tasks beyond hate speech, providing a valuable technique for detailed categorisation in various domains.

Antonio Moreno-Cediel, Antonio Garcia-Cabot, Eva García-López · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.