Analisis Sentimen Multilingual Menggunakan Arsitektur Transformer yang Dioptimalkan untuk Deteksi Ujaran Kebencian di Media Sosial

Authors

  • Rozakul Hamdi Institut Teknologi Bandung Author
  • Najihul Najihul Institut Teknologi Bandung Author

Keywords:

Transformer Architecture, Hate Speech Detection, Multilingual Sentiment Analysis

Abstract

The rapid growth of multilingual social media has intensified the circulation of hate speech expressed through standard language, slang, code-mixing, transliteration, sarcasm, and culturally specific references. This study examines an optimized Transformer architecture for multilingual sentiment analysis and hate speech detection by synthesizing evidence from peer-reviewed studies published between 2022 and 2025. The proposed design places XLM-RoBERTa as the multilingual encoder and integrates language-adaptive fine-tuning, sentiment-aware auxiliary learning, class-balanced focal loss, adversarial perturbation, and probability calibration. A structured comparative benchmark was conducted using reported results from multilingual and Indonesian hate-speech studies covering English, Indonesian, Hindi, Arabic, Urdu, and code-mixed settings. Performance evidence was interpreted through macro-F1, accuracy, cross-lingual transfer, robustness, and low-resource generalization rather than through a newly collected proprietary corpus. The synthesis shows that multilingual Transformers consistently outperform conventional feature-based baselines when contextual ambiguity and cross-language transfer dominate the task, while optimized training strategies provide the largest gains in minority-class recall, code-mixed generalization, and zero-shot transfer. However, functional testing also reveals persistent weaknesses involving implicit hate, reclaimed slurs, negation, quotation, and culturally dependent expressions. The study therefore proposes a moderation-oriented architecture that combines predictive accuracy with calibration, explainability, and human review. The approach emphasizes reproducible evaluation protocols so improvements remain comparable across datasets, languages, domains, and moderation scenarios. These findings indicate that optimization should not be defined solely by aggregate accuracy; robust multilingual hate-speech detection requires balanced performance across languages, transparent uncertainty, and continuous adaptation to evolving social-media discourse.

Downloads

Published

2026-11-30