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.
Abstract (translated)
情感分析专注于识别文本数据中表达的情感极性,通常将其归类为正面、负面或中立。而仇恨言论检测则旨在识别可能引发针对个人或群体的暴力、歧视或敌意的内容,这些内容往往基于种族、性别、性取向或宗教等属性。这两项任务在线上内容监管中发挥着关键作用,通过检测和缓解有害或冒犯性的材料,有助于营造更加安全的数字环境。 在本研究中,我们探讨了三种基于转换器(transformer)模型——BERT-base-multilingual-cased、RoBERTa-base 和 XLM-RoBERTa-base(前八层被冻结)——在多语言情感分析和仇恨言论检测方面的表现。评估涵盖了五种语言:英语、韩语、日语、中文和法语。我们通过标准性能指标,包括准确率、精确度、召回率和F1值来进行模型比较。为了提高模型的可解释性,并深入理解其预测行为,我们将局部可解释模型无关解释(Local Interpretable Model-agnostic Explanations, LIME)框架与这些模型相结合,从而突显个别词语对模型决策的影响。 通过结合最先进的转换器架构和解释技术,本研究旨在提升多语言情感分析和仇恨言论检测系统的有效性和透明度。
URL
https://arxiv.org/abs/2601.02697