Clever domain adaptation strategies for BERT in the task of hostile-language detection
Open Access
- 31 March 2026
- journal article
- research article
- Published by Springer Nature in Multimedia Tools and Applications
- Vol. 85 (4) , 323
Abstract
Cyberbullying has experienced a surge in recent years, mainly due to the widespread adoption of social media platforms. This trend manifests in multiple ways, with hostile language being one of the most common. The latter underscores the urgent need for robust detection methods to address this issue effectively. To address this problem, we propose a novel pipeline to enhance hostile language detection in social media. Our approach consists of a combination of two ideas: First, we propose conducting a Domain Adaptation procedure to specialize the knowledge of a pre-trained BERT, making it more specialized in the domain of social media. For this adaptation, we modify the traditional random Masked Language Modeling technique and propose three novel strategies for selecting the subset of tokens to mask out cleverly. Second, we tailor an Adversarial Regularizer when fine-tuning the adapted BERT for specific hostile-language datasets. We evaluate the performance of our method for detecting hate speech, aggressiveness, offensiveness, and sexism. Our results show that the Domain Adaptation procedure significantly outperforms vanilla BERT, and the Adversarial Regularizer can lead to more robust fine-tuning, thereby enhancing performance. Moreover, we demonstrate that these methods can be used together to achieve an even more significant performance boost.Keywords
Funding Information
- Universidade de Santiago de Compostela
This publication has 26 references indexed in Scilit:
- FedMDD: Multi-deliberation based calibration for federated long-tailed learningKnowledge-Based Systems, 2025
- An approach of data augmentation to improve the performance of BERTology models for Vietnamese hate speech detectionMultimedia Tools and Applications, 2023
- A comparison review of transfer learning and self-supervised learning: Definitions, applications, advantages and limitationsExpert Systems with Applications, 2023
- HateDetector: Multilingual technique for the analysis and detection of online hate speech in social networksMultimedia Tools and Applications, 2023
- Model-Agnostic Meta-Learning for Multilingual Hate Speech DetectionIEEE Transactions on Computational Social Systems, 2023
- Deep feature fusion for hate speech detection: a transfer learning approachMultimedia Tools and Applications, 2023
- MTBullyGNN: A Graph Neural Network-Based Multitask Framework for Cyberbullying DetectionIEEE Transactions on Computational Social Systems, 2022
- Deep Explainable Hate Speech Active Learning on Social-Media DataIEEE Transactions on Computational Social Systems, 2022
- SEHC: A Benchmark Setup to Identify Online Hate Speech in EnglishIEEE Transactions on Computational Social Systems, 2022
- BioBERT: a pre-trained biomedical language representation model for biomedical text miningBioinformatics, 2019