Setting the Trap: Capturing and Defeating Backdoors in Pretrained Language Models through Honeypots
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
In the field of natural language processing, the prevalent approach involves fine-tuning pretrained language models (PLMs) using local samples. Recent research has exposed the susceptibility of PLMs to backdoor attacks, wherein the adversaries can embed malicious prediction behaviors by manipulating a few training samples. In this study, our objective is to develop a backdoor-resistant tuning procedure that yields a backdoor-free model, no matter whether the fine-tuning dataset contains poisoned samples. To this end, we propose and integrate a honeypot module into the original PLM, specifically designed to absorb backdoor information exclusively. Our design is motivated by the observation that lower-layer representations in PLMs carry sufficient backdoor features while carrying minimal information about the original tasks. Consequently, we can impose penalties on the information acquired by the honeypot module to inhibit backdoor creation during the fine-tuning process of the stem network. Comprehensive experiments conducted on benchmark datasets substantiate the effectiveness and robustness of our defensive strategy. Notably, these results indicate a substantial reduction in the attack success rate ranging from 10% to 40% when compared to prior state-of-the-art methods.
Key facts. Cited by 16 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 32 of its 46 references that are in the map. First posted on arXiv 28 Oct 2023.
Builds on
32 of 46 references.
Closest ancestors · 8
Same direction, newest first
- 2023ChatGPT as an Attack Tool: Stealthy Textual Backdoor Attack via Blackbox Generative Model Trigger27 Apr
- 2023Backdoor Learning for NLP: Recent Advances, Challenges, and Future Research Directions14 Feb
- 2022Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attacks14 Oct
- 2022A Unified Evaluation of Textual Backdoor Learning: Frameworks and Benchmarks17 Jun
- 2022Constrained Optimization with Dynamic Bound-scaling for Effective NLPBackdoor Defense11 Feb
- 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Models15 Oct
- 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfer14 Oct
- 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May
Other references · 24
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2016Understanding intermediate layers using linear classifier probescited by 1,279
- 2018Generalized Cross Entropy Loss for Training Deep Neural Networks with Noisy Labelscited by 994
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 457
- 2020Backdoor Learning: A Surveycited by 412
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2019Predicting the Type and Target of Offensive Posts in Social Mediacited by 268
- 2021Anti-Backdoor Learning: Training Clean Models on Poisoned Datacited by 258
- 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
- 2019A backdoor attack against LSTM-based text classification systemscited by 214
- 2019Detecting AI Trojans Using Meta Neural Analysiscited by 192
12 more
- 2020Reformulating Unsupervised Style Transfer as Paraphrase Generationcited by 181
- 2021Measure and Improve Robustness in NLP Models: A Surveycited by 107
- 2020An Embarrassingly Simple Approach for Trojan Attack in Deep Neural Networkscited by 92
- 2020Mitigating backdoor attacks in LSTM-based Text Classification Systems by Backdoor Keyword Identificationcited by 80
- 2023Large Language Models Can be Lazy Learners: Analyze Shortcuts in In-Context Learningcited by 69
- 2019Design and Evaluation of a Multi-Domain Trojan Detection Method on Deep Neural Networkscited by 66
- 2021Fairness via Representation Neutralizationcited by 63
- 2022A Study of the Attention Abnormality in Trojaned BERTscited by 47
- 2021Generating Syntactically Controlled Paraphrases without Using Annotated Parallel Pairscited by 45
- 2022Few-Shot Backdoor Attacks on Visual Object Trackingcited by 35
- 2022Untargeted Backdoor Attack against Object Detectioncited by 28
- 2022Trap and Replace: Defending Backdoor Attacks by Trapping Them into an Easy-to-Replace Subnetworkcited by 12
Built on by
Citing papers per year: 2023: 1; 2024: 5; 2025: 5; 2026: 5.
16 papers.
Sort:
By area:
- 2024LoRATK: LoRA Once, Backdoor Everywhere in the Share-and-Play Ecosystemcited by 22
- 2025REFINE: Inversion-Free Backdoor Defense via Model Reprogrammingcited by 20
- 2024When Backdoors Speak: Understanding LLM Backdoor Attacks Through Model-Generated Explanationscited by 16
- 2023Defenses in Adversarial Machine Learning: A Surveycited by 14
- 2024Securing Multi-turn Conversational Language Models From Distributed Backdoor Triggerscited by 5
- 2024Unelicitable Backdoors in Language Models via Cryptographic Transformer Circuitscited by 3
- 2025Neuroplasticity and Corruption in Model Mechanisms: A Case Study Of Indirect Object Identificationcited by 3
- 2024Large Language Models are Good Attackers: Efficient and Stealthy Textual Backdoor Attackscited by 2
- 2025Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Modelscited by 0
- 2025HAMLOCK: HArdware-Model LOgically Combined attacKcited by 0
- 2025Enhancing All-to-X Backdoor Attacks with Optimized Target Class Mappingcited by 0
- 2026BadLLM-TG: A Backdoor Defender powered by LLM Trigger Generatorcited by 0
4 more
- 2026STEP: Detecting Audio Backdoor Attacks via Stability-based Trigger Exposure Profilingcited by 0
- 2026TimeGuard: Channel-wise Pool Training for Backdoor Defense in Time Series Forecastingcited by 0
- 2026Backdoor Unlearning Generalization: A Path Toward the Removal of Unknown Triggers in LLMscited by 0
- 2026Mitigating Backdoors via Decoy Shortcuts and Knowledge Decouplingcited by 0
- 2026Mitigating Backdoors via Decoy Shortcuts and Knowledge Decoupling1 Aug 2026
- 2026Backdoor Unlearning Generalization: A Path Toward the Removal of Unknown Triggers in LLMs2 Jun 2026
- 2026TimeGuard: Channel-wise Pool Training for Backdoor Defense in Time Series Forecasting21 May 2026
- 2026STEP: Detecting Audio Backdoor Attacks via Stability-based Trigger Exposure Profiling18 Mar 2026
- 2026BadLLM-TG: A Backdoor Defender powered by LLM Trigger Generator16 Mar 2026
- 2025Enhancing All-to-X Backdoor Attacks with Optimized Target Class Mapping17 Nov 2025
- 2025HAMLOCK: HArdware-Model LOgically Combined attacK22 Oct 2025
- 2025Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Models30 Aug 2025
- 2025Neuroplasticity and Corruption in Model Mechanisms: A Case Study Of Indirect Object Identification27 Feb 2025
- 2025REFINE: Inversion-Free Backdoor Defense via Model Reprogramming22 Feb 2025
- 2024When Backdoors Speak: Understanding LLM Backdoor Attacks Through Model-Generated Explanations19 Nov 2024
- 2024Large Language Models are Good Attackers: Efficient and Stealthy Textual Backdoor Attacks21 Aug 2024
4 more
- 2024Securing Multi-turn Conversational Language Models From Distributed Backdoor Triggers4 Jul 2024
- 2024Unelicitable Backdoors in Language Models via Cryptographic Transformer Circuits3 Jun 2024
- 2024LoRATK: LoRA Once, Backdoor Everywhere in the Share-and-Play Ecosystem29 Feb 2024
- 2023Defenses in Adversarial Machine Learning: A Survey13 Dec 2023
- 2024When Backdoors Speak: Understanding LLM Backdoor Attacks Through Model-Generated Explanationscited by 16
- 2024Securing Multi-turn Conversational Language Models From Distributed Backdoor Triggerscited by 5
- 2024Unelicitable Backdoors in Language Models via Cryptographic Transformer Circuitscited by 3
- 2024Large Language Models are Good Attackers: Efficient and Stealthy Textual Backdoor Attackscited by 2
- 2025Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Modelscited by 0
- 2025HAMLOCK: HArdware-Model LOgically Combined attacKcited by 0
- 2026BadLLM-TG: A Backdoor Defender powered by LLM Trigger Generatorcited by 0
- 2026Backdoor Unlearning Generalization: A Path Toward the Removal of Unknown Triggers in LLMscited by 0
- 2026Backdoor Unlearning Generalization: A Path Toward the Removal of Unknown Triggers in LLMs2 Jun 2026
- 2026BadLLM-TG: A Backdoor Defender powered by LLM Trigger Generator16 Mar 2026
- 2025HAMLOCK: HArdware-Model LOgically Combined attacK22 Oct 2025
- 2025Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Models30 Aug 2025
- 2024When Backdoors Speak: Understanding LLM Backdoor Attacks Through Model-Generated Explanations19 Nov 2024
- 2024Large Language Models are Good Attackers: Efficient and Stealthy Textual Backdoor Attacks21 Aug 2024
- 2024Securing Multi-turn Conversational Language Models From Distributed Backdoor Triggers4 Jul 2024
- 2024Unelicitable Backdoors in Language Models via Cryptographic Transformer Circuits3 Jun 2024
- 2024LoRATK: LoRA Once, Backdoor Everywhere in the Share-and-Play Ecosystemcited by 22
- 2025REFINE: Inversion-Free Backdoor Defense via Model Reprogrammingcited by 20
- 2023Defenses in Adversarial Machine Learning: A Surveycited by 14
- 2025Neuroplasticity and Corruption in Model Mechanisms: A Case Study Of Indirect Object Identificationcited by 3
- 2025Enhancing All-to-X Backdoor Attacks with Optimized Target Class Mappingcited by 0
- 2026STEP: Detecting Audio Backdoor Attacks via Stability-based Trigger Exposure Profilingcited by 0
- 2026TimeGuard: Channel-wise Pool Training for Backdoor Defense in Time Series Forecastingcited by 0
- 2026Mitigating Backdoors via Decoy Shortcuts and Knowledge Decouplingcited by 0
- 2026Mitigating Backdoors via Decoy Shortcuts and Knowledge Decoupling1 Aug 2026
- 2026TimeGuard: Channel-wise Pool Training for Backdoor Defense in Time Series Forecasting21 May 2026
- 2026STEP: Detecting Audio Backdoor Attacks via Stability-based Trigger Exposure Profiling18 Mar 2026
- 2025Enhancing All-to-X Backdoor Attacks with Optimized Target Class Mapping17 Nov 2025
- 2025Neuroplasticity and Corruption in Model Mechanisms: A Case Study Of Indirect Object Identification27 Feb 2025
- 2025REFINE: Inversion-Free Backdoor Defense via Model Reprogramming22 Feb 2025
- 2024LoRATK: LoRA Once, Backdoor Everywhere in the Share-and-Play Ecosystem29 Feb 2024
- 2023Defenses in Adversarial Machine Learning: A Survey13 Dec 2023