BFClass: A Backdoor-free Text Classification Framework
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Backdoor attack introduces artificial vulnerabilities into the model by poisoning a subset of the training data via injecting triggers and modifying labels. Various trigger design strategies have been explored to attack text classifiers, however, defending such attacks remains an open problem. In this work, we propose BFClass, a novel efficient backdoor-free training framework for text classification. The backbone of BFClass is a pre-trained discriminator that predicts whether each token in the corrupted input was replaced by a masked language model. To identify triggers, we utilize this discriminator to locate the most suspicious token from each training sample and then distill a concise set by considering their association strengths with particular labels. To recognize the poisoned subset, we examine the training samples with these identified triggers as the most suspicious token, and check if removing the trigger will change the poisoned model's prediction. Extensive experiments demonstrate that BFClass can identify all the triggers, remove 95% poisoned training samples with very limited false alarms, and achieve almost the same performance as the models trained on the benign training data.
Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 16 of its 27 references that are in the map. First posted on arXiv 22 Sep 2021.
Builds on
16 of 27 references.
References · 16
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2014Convolutional Neural Networks for Sentence Classificationcited by 1,124
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
- 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
- 2018Poison Frogs! Targeted Clean-Label Poisoning Attacks on Neural Networkscited by 500
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
- 2019A backdoor attack against LSTM-based text classification systemscited by 214
- 2017Towards Poisoning of Deep Learning Algorithms with Back-gradient Optimizationcited by 188
4 more
- 2017Neural Trojanscited by 151
- 2014On Using Very Large Target Vocabulary for Neural Machine Translationcited by 80
- 2020Mitigating backdoor attacks in LSTM-based Text Classification Systems by Backdoor Keyword Identificationcited by 80
- 2020Trojaning Language Models for Fun and Profitcited by 80
Built on by
Citing papers per year: 2022: 1; 2023: 6; 2024: 7; 2025: 2; 2026: 1.
17 papers.
Sort:
By area:
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2023ChatGPT as an Attack Tool: Stealthy Textual Backdoor Attack via Blackbox Generative Model Triggercited by 29
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoEcited by 26
- 2023Defending against Insertion-based Textual Backdoor Attacks via Attributioncited by 24
- 2023Mitigating Backdoor Poisoning Attacks through the Lens of Spurious Correlationcited by 19
- 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuningcited by 16
- 2022WeDef: Weakly Supervised Backdoor Defense for Text Classificationcited by 12
- 2024CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Modelscited by 11
- 2023NCL: Textual Backdoor Defense Using Noise-augmented Contrastive Learningcited by 7
- 2024Two Heads are Better than One: Nested PoE for Robust Defense Against Multi-Backdoorscited by 6
- 2024Incubating Text Classifiers Following User Instruction with Nothing but LLMcited by 6
- 2024Data-centric NLP Backdoor Defense from the Lens of Memorizationcited by 5
5 more
- 2024Gracefully Filtering Backdoor Samples for Generative Large Language Models without Retrainingcited by 5
- 2023Debiasing Made State-of-the-art: Revisiting the Simple Seed-based Weak Supervision for Text Classificationcited by 3
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Modelscited by 3
- 2026Why LoRA Fails to Forget: Regularized Low-Rank Adaptation Against Backdoors in Language Modelscited by 3
- 2025NLP Security and Ethics, in the Wildcited by 2
- 2026Why LoRA Fails to Forget: Regularized Low-Rank Adaptation Against Backdoors in Language Models9 Jan 2026
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models5 Oct 2025
- 2025NLP Security and Ethics, in the Wild9 Apr 2025
- 2024Gracefully Filtering Backdoor Samples for Generative Large Language Models without Retraining3 Dec 2024
- 2024Data-centric NLP Backdoor Defense from the Lens of Memorization21 Sep 2024
- 2024CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Models2 Sep 2024
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models10 Jun 2024
- 2024Incubating Text Classifiers Following User Instruction with Nothing but LLM16 Apr 2024
- 2024Two Heads are Better than One: Nested PoE for Robust Defense Against Multi-Backdoors2 Apr 2024
- 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuning19 Feb 2024
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoE24 May 2023
- 2023Debiasing Made State-of-the-art: Revisiting the Simple Seed-based Weak Supervision for Text Classification24 May 2023
5 more
- 2023Mitigating Backdoor Poisoning Attacks through the Lens of Spurious Correlation19 May 2023
- 2023Defending against Insertion-based Textual Backdoor Attacks via Attribution3 May 2023
- 2023ChatGPT as an Attack Tool: Stealthy Textual Backdoor Attack via Blackbox Generative Model Trigger27 Apr 2023
- 2023NCL: Textual Backdoor Defense Using Noise-augmented Contrastive Learning3 Mar 2023
- 2022WeDef: Weakly Supervised Backdoor Defense for Text Classification24 May 2022
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2023ChatGPT as an Attack Tool: Stealthy Textual Backdoor Attack via Blackbox Generative Model Triggercited by 29
- 2023Defending against Insertion-based Textual Backdoor Attacks via Attributioncited by 24
- 2022WeDef: Weakly Supervised Backdoor Defense for Text Classificationcited by 12
- 2024CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Modelscited by 11
- 2023NCL: Textual Backdoor Defense Using Noise-augmented Contrastive Learningcited by 7
- 2024Data-centric NLP Backdoor Defense from the Lens of Memorizationcited by 5
- 2024Gracefully Filtering Backdoor Samples for Generative Large Language Models without Retrainingcited by 5
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Modelscited by 3
- 2026Why LoRA Fails to Forget: Regularized Low-Rank Adaptation Against Backdoors in Language Modelscited by 3
- 2026Why LoRA Fails to Forget: Regularized Low-Rank Adaptation Against Backdoors in Language Models9 Jan 2026
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models5 Oct 2025
- 2024Gracefully Filtering Backdoor Samples for Generative Large Language Models without Retraining3 Dec 2024
- 2024Data-centric NLP Backdoor Defense from the Lens of Memorization21 Sep 2024
- 2024CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Models2 Sep 2024
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models10 Jun 2024
- 2023Defending against Insertion-based Textual Backdoor Attacks via Attribution3 May 2023
- 2023ChatGPT as an Attack Tool: Stealthy Textual Backdoor Attack via Blackbox Generative Model Trigger27 Apr 2023
- 2023NCL: Textual Backdoor Defense Using Noise-augmented Contrastive Learning3 Mar 2023
- 2022WeDef: Weakly Supervised Backdoor Defense for Text Classification24 May 2022
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoEcited by 26
- 2023Mitigating Backdoor Poisoning Attacks through the Lens of Spurious Correlationcited by 19
- 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuningcited by 16
- 2024Incubating Text Classifiers Following User Instruction with Nothing but LLMcited by 6
- 2023Debiasing Made State-of-the-art: Revisiting the Simple Seed-based Weak Supervision for Text Classificationcited by 3
- 2025NLP Security and Ethics, in the Wildcited by 2
- 2025NLP Security and Ethics, in the Wild9 Apr 2025
- 2024Incubating Text Classifiers Following User Instruction with Nothing but LLM16 Apr 2024
- 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuning19 Feb 2024
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoE24 May 2023
- 2023Debiasing Made State-of-the-art: Revisiting the Simple Seed-based Weak Supervision for Text Classification24 May 2023
- 2023Mitigating Backdoor Poisoning Attacks through the Lens of Spurious Correlation19 May 2023