Token and part-of-speech fusion for pretraining of transformers with application in automatic cyberbullying detection
Cyberbullying detection remains a significant challenge in the context of expanding internet and social media usage. This study proposes a novel pretraining methodology for transformer models, integrating Part-of-Speech (POS) information with a unique way of tokenization. The proposed model, based on the ELECTRA architecture, undergoes pretraining and fine-tuning and is referred to as ELECTRA_POS. By leveraging linguistic structures, this approach improves understanding of context and subtle meaning in the text. Through evaluation using the GLUE benchmark and a dedicated cyberbullying detection dataset, ELECTRA_POS consistently delivers enhanced performance compared to conventional transformer models. Key contributions include the introduction of POS-token fusion techniques and their application to improve cyberbullying detection, as well as insights into how linguistic features influence transformer-based models. The result highlights how integrating POS information into the transformer model improves the detection of harmful online behavior while benefiting other natural language processing (NLP) tasks. • We propose a transformer pretraining method combining ELECTRA with POS labels. • We identify tokenization strategies by comparing SentencePiece and WordPiece methods. • Integrating grammar in transformers boosts NLP, particularly cyberbullying detection.
Authors
- Michał Ptaszyński (ORCID: https://orcid.org/0000-0002-1910-9183)
- Juuso Eronen (ORCID: https://orcid.org/0000-0001-9841-3652)
- Fumito Masui (ORCID: https://orcid.org/0000-0001-9979-8734)
- Karol Nowakowski (ORCID: https://orcid.org/0000-0001-7435-4061)
- Nor Saiful Azam Bin Nor Azmi
Institutions
- Prefectural University of Kumamoto (JP)
- Tohoku University of Community Service and Science (JP)
- Kitami Institute of Technology (JP)
Publication Details
- Journal
- Natural Language Processing Journal
- Published
- 2025-02-07
- DOI
- https://doi.org/10.1016/j.nlp.2025.100132
- Citations
- 7
- Primary Topic
- Hate Speech and Cyberbullying Detection
- Type
- article
- Field-Weighted Citation Impact
- 14.89