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
- Saif Siddique (ORCID: https://orcid.org/0000-0003-0300-1087)
- Md. Abdur Rakib Mollah
- Md. Sultanul Islam Ovi (ORCID: https://orcid.org/0009-0003-0516-950X)
- Mahbuba Habib
- Ann Naser Nabil (ORCID: https://orcid.org/0009-0006-3561-045X)
- Miraj Uddin Chowdhury
- Shamazda Islam (ORCID: https://orcid.org/0009-0006-4111-3484)
Institutions
- 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)
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