DGDS: Reliability-Gated Neuro-Symbolic Learning for Roman Urdu Hate Speech Detection
Source abstract
Abstract
Roman Urdu hate and offensive language detection is difficult because informal social-media posts combine non-standard spelling, code-mixing, local abusive expressions, and severe label imbalance. Existing transformer-based detectors improve contextual modeling, but they often leave lexical threat evidence implicit and rarely address whether model confidence is reliable when large language model teacher signals are used in low-resource training. We propose Dynamic Gated Distillation with Symbolic Evidence (DGDS), a reliability-gated neuro-symbolic learning framework for Roman Urdu hate and offensive language detection. DGDS combines a cross-lingual semantic encoder, a context-modulated symbolic threat profiler, and a reliability-gated dual-stream learner. The key idea is to treat the large language model teacher output as a noisy structured soft-label record rather than as a replacement for gold labels. DGDS therefore uses the teacher probability assigned to the gold class, the current student confidence, and a teacher reliability gate to form a dynamic importance weight for supervised training. Under a leakage-aware evaluation protocol on the RUHSOLD benchmark, the central contribution of DGDS is confidence reliability: it holds macro-F1 at parity with the strongest dual-stream baseline on both the binary and five-class settings while substantially reducing the expected calibration error from 0.0512 to 0.0134 on Task 1 (a 74% relative reduction) and from 0.0813 to 0.0268 on Task 2 (a 67% relative reduction). These calibration gains are statistically significant (p<0.001, paired stratified bootstrap) and robust to teacher replacement (GPT-4o-mini yields ECE 0.0158 vs. the 0.0512 baseline on Task 1). These results support a conservative conclusion: large language model soft labels are most useful for Roman Urdu harmful-content detection when they are filtered as uncertain training evidence and deployed through a local calibrated student model.
Source: crossref · Quality: baseline
Affiliations
College of Foreign Languages, National University of Defense Technology, Nanjing 210039, China
Funding
National Social Science Fund of China
References (36)
Show source-provided references
1. A Survey on Automatic Detection of Hate Speech in Text
2. Schmidt, A., and Wiegand, M. (2017). A Survey on Hate Speech Detection using Natural Language Processing. Proceedings of the Fifth International Workshop on Natural Language Processing for Social Media, Association for Computational Linguistics.10.18653/v1/W17-1101 ↗
3. Davidson, T., Warmsley, D., Macy, M., and Weber, I. (2017, January 15–18). Automated Hate Speech Detection and the Problem of Offensive Language. Proceedings of the International AAAI Conference on Web and Social Media, Montreal, QC, Canada.10.1609/icwsm.v11i1.14955 ↗
4. Sap, M., Card, D., Gabriel, S., Choi, Y., and Smith, N.A. (2019). The Risk of Racial Bias in Hate Speech Detection. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Association for Computational Linguistics.10.18653/v1/P19-1163 ↗
5. Dixon, L., Li, J., Sorensen, J., Thain, N., and Vasserman, L. (2018, January 1–3). Measuring and Mitigating Unintended Bias in Text Classification. Proceedings of the 2018 AAAI/ACM Conference on AI, Ethics, and Society, New Orleans, LA, USA.10.1145/3278721.3278729 ↗
6. Rizwan, H., Shakeel, M.H., and Karim, A. (2020). Hate-Speech and Offensive Language Detection in Roman Urdu. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), Association for Computational Linguistics.10.18653/v1/2020.emnlp-main.197 ↗
7. Hate Speech Detection in Roman Urdu10.1145/3414524 ↗
8. Aziz, S., Sarfraz, M., Usman, M., Aftab, M., and Rauf, H. (2023). Geo-Spatial Mapping of Hate Speech Prediction in Roman Urdu. Mathematics, 11.10.3390/math11040969 ↗
9. A Robust and Linguistically-Aware Hate Speech Detection System for Roman Urdu10.1145/3768571 ↗
10. Waseem, Z., and Hovy, D. (2016). Hateful Symbols or Hateful People? Predictive Features for Hate Speech Detection on Twitter. Proceedings of the NAACL Student Research Workshop, Association for Computational Linguistics.10.18653/v1/N16-2013 ↗
11. Automatic Detection of Offensive Language for Urdu and Roman Urdu10.1109/ACCESS.2020.2994950 ↗
12. Nasir, S., Seerat, A., and Wasim, M. (2024, January 19–20). Hate Speech Detection in Roman Urdu using Machine Learning Techniques. Proceedings of the 2024 5th International Conference on Advancements in Computational Sciences (ICACS), Lahore, Pakistan.10.1109/ICACS60934.2024.10473250 ↗
13. Detecting Hate Speech in Roman Urdu Using a Convolutional-BiLSTM-Based Deep Hybrid Neural Network10.7717/peerj-cs.3342 ↗
14. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. (2019). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Association for Computational Linguistics.
15. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017). Attention Is All You Need. arXiv.
16. Khalid, U., Beg, M.O., and Arshad, M.U. (2021). RUBERT: A Bilingual Roman Urdu BERT Using Cross Lingual Transfer Learning. arXiv.
17. Bilal, M., Khan, A., Jan, S., Musa, S., and Ali, S. (2023). Roman Urdu Hate Speech Detection Using Transformer-Based Model for Cyber Security Applications. Sensors, 23.10.3390/s23083909 ↗
18. Ullah, R., Khan, W.U., Marwat, S.N.K., Ullah, J., and Irshad, F. (2024, January 19–20). Hate Speech Detection of Roman Urdu Using Transformer Models. Proceedings of the 2024 19th International Conference on Emerging Technologies (ICET), Topi, Pakistan.10.1109/ICET63392.2024.10935087 ↗
19. Roman Urdu Hate Speech Detection Using Hybrid Machine Learning Models and Hyperparameter Optimization10.1038/s41598-024-79106-7 ↗
20. Passion-Net: A Robust Precise and Explainable Predictor for Hate Speech Detection in Roman Urdu Text10.1007/s00521-023-09169-6 ↗
21. Raza, M.O., Umar, A., and Awan, M. (2025, January 13). Slur and Emoji Aware Models for Hate and Sentiment Detection in Roman Urdu Transgender Discourse. Proceedings of the First Workshop on Advancing NLP for Low-Resource Languages, Varna, Bulgaria.
22. Hinton, G., Vinyals, O., and Dean, J. (2015). Distilling the Knowledge in a Neural Network. arXiv.
23. Sanh, V., Debut, L., Chaumond, J., and Wolf, T. (2019). DistilBERT, a Distilled Version of BERT: Smaller, Faster, Cheaper and Lighter. arXiv.
24. Hsieh, C.Y., Li, C.L., Yeh, C.k., Nakhost, H., Fujii, Y., Ratner, A., Krishna, R., Lee, C.Y., and Pfister, T. (2023). Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes. Proceedings of the Findings of the Association for Computational Linguistics: ACL 2023, Association for Computational Linguistics.10.18653/v1/2023.findings-acl.507 ↗
25. Shridhar, K., Stolfo, A., and Sachan, M. (2023). Distilling Reasoning Capabilities into Smaller Language Models. Proceedings of the Findings of the Association for Computational Linguistics: ACL 2023, Association for Computational Linguistics.10.18653/v1/2023.findings-acl.441 ↗
26. Kuo, H.Y., Liao, Y.H., Chao, Y.C., Ma, W.Y., and Cheng, P.J. (2024). Not All LLM-Generated Data Are Equal: Rethinking Data Weighting in Text Classification. arXiv.
27. Founta, A.M., Djouvas, C., Chatzakou, D., Leontiadis, I., Blackburn, J., Stringhini, G., Vakali, A., Sirivianos, M., and Kourtellis, N. (2018, January 25–28). Large Scale Crowdsourcing and Characterization of Twitter Abusive Behavior. Proceedings of the International AAAI Conference on Web and Social Media, Palo Alto, CA, USA.10.1609/icwsm.v12i1.14991 ↗
28. Zampieri, M., Malmasi, S., Nakov, P., Rosenthal, S., Farra, N., and Kumar, R. (2019). SemEval-2019 Task 6: Identifying and Categorizing Offensive Language in Social Media (OffensEval). Proceedings of the 13th International Workshop on Semantic Evaluation, Association for Computational Linguistics.10.18653/v1/S19-2010 ↗
29. Zampieri, M., Nakov, P., Rosenthal, S., Atanasova, P., Karadzhov, G., Mubarak, H., Derczynski, L., Pitenis, Z., and Coltekin, C. (2020). SemEval-2020 Task 12: Multilingual Offensive Language Identification in Social Media (OffensEval 2020). Proceedings of the Fourteenth Workshop on Semantic Evaluation, International Committee for Computational Linguistics.10.18653/v1/2020.semeval-1.188 ↗
30. Azam, U., Rizwan, H., and Karim, A. (2022, January 20–25). Exploring Data Augmentation Strategies for Hate Speech Detection in Roman Urdu. Proceedings of the Language Resources and Evaluation Conference, Marseille, France.10.63317/528wesmg3iex ↗
31. Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzman, F., Grave, E., Ott, M., Zettlemoyer, L., and Stoyanov, V. (2020). Unsupervised Cross-lingual Representation Learning at Scale. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, Association for Computational Linguistics.10.18653/v1/2020.acl-main.747 ↗
32. Caselli, T., Basile, V., Mitrovic, J., and Granitzer, M. (2021, January 5–6). HateBERT: Retraining BERT for Abusive Language Detection in English. Proceedings of the 5th Workshop on Online Abuse and Harms, Bangkok, Thailand.10.18653/v1/2021.woah-1.3 ↗
33. Lin, T.Y., Goyal, P., Girshick, R., He, K., and Dollar, P. (2017, January 22–29). Focal Loss for Dense Object Detection. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.324 ↗
34. Guo, C., Pleiss, G., Sun, Y., and Weinberger, K.Q. (2017). On Calibration of Modern Neural Networks. arXiv.
35. Multi-class Offensive Language Detection in Roman Urdu10.21015/vtse.v13i4.2251 ↗
36. McInnes, L., Healy, J., and Melville, J. (2018). UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction. arXiv.10.21105/joss.00861 ↗