Efficient Multilabel Bangla Cyberbullying Detection: A Deployment-Aware Study of Knowledge Distillation and Structured Pruning

Compression can leave a cyberbullying detector able to recognize general bullying even when it misses every threat. We examined how encoder choice and pruning affect this risk on 12,546 Bangla comments annotated with five overlapping abuse labels. We benchmarked seven encoders, then evaluated two teachers, two student architectures and four pruning methods across 26 compression runs. On their respective best validation folds, sahajBERT reached a weighted F1 of 0.8564 and XLM-RoBERTa reached 0.8650, although sahajBERT required only 6.5 percent of the storage. The strongest distilled student scored 0.8555 against its teacher's 0.8501 on the same fold. Across all four distilled checkpoints, removing attention heads produced the smallest relative loss in weighted F1 at the tested settings (5.0 to 5.5 percent) and preserved nonzero F1 for every label. Unstructured pruning reduced weighted F1 by 7.2 to 44.3 percent and yielded zero F1 for at least one label in 6 of 14 runs. After head pruning, sahajBERT achieved 0.8111 weighted F1 at 61.44 MiB, and banglabert_small achieved 0.8034 at 46.90 MiB. Both models occupied over 94 percent less storage than XLM-RoBERTa in 32-bit precision. On a Tesla P100, head removal reduced sahajBERT's inference latency by about 14 percent but had little effect on banglabert_small. These comparisons show why selecting a compact detector requires measuring inference time and checking which abuse categories it can still recognize.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-11-30
DOI
https://doi.org/10.21203/rs.3.rs-11898329/v1
Primary Topic
Hate Speech and Cyberbullying Detection
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Efficient Multilabel Bangla Cyberbullying Detection: A Deployment-Aware Study of Knowledge Distillation and Structured Pruning

Saif Siddique, Md. Abdur Rakib Mollah, Md. Sultanul Islam Ovi, Mahbuba Habib et al.
Research Square
Hate Speech and Cyberbullying Detection
preprint

Efficient Multilabel Bangla Cyberbullying Detection: A Deployment-Aware Study of Knowledge Distillation and Structured Pruning

Saif Siddique, Md. Abdur Rakib Mollah, Md. Sultanul Islam Ovi, Mahbuba Habib, Ann Naser Nabil, Miraj Uddin Chowdhury, Shamazda Islam
preprint en

Abstract

Compression can leave a cyberbullying detector able to recognize general bullying even when it misses every threat. We examined how encoder choice and pruning affect this risk on 12,546 Bangla comments annotated with five overlapping abuse labels. We benchmarked seven encoders, then evaluated two teachers, two student architectures and four pruning methods across 26 compression runs. On their respective best validation folds, sahajBERT reached a weighted F1 of 0.8564 and XLM-RoBERTa reached 0.8650, although sahajBERT required only 6.5 percent of the storage. The strongest distilled student scored 0.8555 against its teacher's 0.8501 on the same fold. Across all four distilled checkpoints, removing attention heads produced the smallest relative loss in weighted F1 at the tested settings (5.0 to 5.5 percent) and preserved nonzero F1 for every label. Unstructured pruning reduced weighted F1 by 7.2 to 44.3 percent and yielded zero F1 for at least one label in 6 of 14 runs. After head pruning, sahajBERT achieved 0.8111 weighted F1 at 61.44 MiB, and banglabert_small achieved 0.8034 at 46.90 MiB. Both models occupied over 94 percent less storage than XLM-RoBERTa in 32-bit precision. On a Tesla P100, head removal reduced sahajBERT's inference latency by about 14 percent but had little effect on banglabert_small. These comparisons show why selecting a compact detector requires measuring inference time and checking which abuse categories it can still recognize.

Research Square
International Islamic University Chittagong (BD), George Mason University (US), Rajshahi University of Engineering and Technology (BD), Bangladesh University of Engineering and Technology (BD), Jahangirnagar University (BD), BRAC University (BD)
Hate Speech and Cyberbullying Detection
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.

Laika access coming soon