Backdoor Attack Detection and Mitigation in Toxic Comment Classification Using a Multi-Stage Defense Framework
Although the transformer-based approaches have proven quite successful in toxic comment classification, their susceptibility to backdoor attacks is still a matter of great importance from the point of view of security. In this research, we examine the robustness of toxic comment classifiers based on BERT architecture with respect to clean-label and dirty-label backdoor attacks, proposing a multi-stage framework that would allow for the detection and neutralization of any potential poisoned samples without any need for the model’s re-training. In our work, we utilize attention-head analysis based on Subspace Projective Clustering, uncertainty measurement by prediction confidence and entropy, feature-level influence computation and adaptive trigger suppression methods. The evaluation of the effectiveness of the proposed approach is done considering the reduction in backdoor attack success rate and the maintenance of classification capability of the system on benign instances. The results show that the proposed approach reduces the backdoor attack success rate from 95.7% to 3.6% while maintaining more than 92% classification accuracy for benign instances. Moreover, the implementation of the proposed approach in the form of an actual web application emphasizes the feasibility of the proposed approach.
Authors
- Priyanka C. Nair (ORCID: https://orcid.org/0000-0002-1230-6862)
- Susmitha Vekkot (ORCID: https://orcid.org/0000-0002-6638-214X)
- D Poojitha (ORCID: https://orcid.org/0009-0007-1640-4084)
- P. S. Nithesh Nair (ORCID: https://orcid.org/0009-0003-5479-4029)
- C. Syed Abrar
- Tarakaram Yadalla
- Aarathi Rajagopalan Nair
Institutions
- Northeastern University (US)
- Westford University College (AE)
- Amrita Vishwa Vidyapeetham (IN)
Publication Details
- Journal
- Emerging Science Journal
- Published
- 2026-12-01
- DOI
- https://doi.org/10.28991/esj-2026-010-06-09
- Primary Topic
- Adversarial Robustness in Machine Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00