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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Token and part-of-speech fusion for pretraining of transformers with application in automatic cyberbullying detection

Michał Ptaszyński, Juuso Eronen, Fumito Masui, Karol Nowakowski et al.
7 citations
Natural Language Processing Journal
Hate Speech and Cyberbullying Detection
14.89
article

Token and part-of-speech fusion for pretraining of transformers with application in automatic cyberbullying detection

Michał Ptaszyński, Juuso Eronen, Fumito Masui, Karol Nowakowski, Nor Saiful Azam Bin Nor Azmi
article en
7 citations

Abstract

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.

Natural Language Processing JournalVol. 10
Prefectural University of Kumamoto (JP), Tohoku University of Community Service and Science (JP), Kitami Institute of Technology (JP)
Gender equality
Openalex Percentile: Top 1%
Hate Speech and Cyberbullying Detection
14.89
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.