BadPre: Task-agnostic Backdoor Attacks to Pre-trained NLP Foundation Models
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Pre-trained Natural Language Processing (NLP) models can be easily adapted to a variety of downstream language tasks. This significantly accelerates the development of language models. However, NLP models have been shown to be vulnerable to backdoor attacks, where a pre-defined trigger word in the input text causes model misprediction. Previous NLP backdoor attacks mainly focus on some specific tasks. This makes those attacks less general and applicable to other kinds of NLP models and tasks. In this work, we propose Name, the first task-agnostic backdoor attack against the pre-trained NLP models. The key feature of our attack is that the adversary does not need prior information about the downstream tasks when implanting the backdoor to the pre-trained model. When this malicious model is released, any downstream models transferred from it will also inherit the backdoor, even after the extensive transfer learning process. We further design a simple yet effective strategy to bypass a state-of-the-art defense. Experimental results indicate that our approach can compromise a wide range of downstream NLP tasks in an effective and stealthy way.
Key facts. Cited by 76 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 24 of its 36 references that are in the map. First posted on arXiv 6 Oct 2021.
Builds on
24 of 36 references.
Closest ancestors · 2
Same direction, newest first
- 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May
- 2021Be Careful about Poisoned Word Embeddings: Exploring the Vulnerability of the Embedding Layers in NLP Models29 Mar
Other references · 22
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2018Deep contextualized word representationscited by 2,285
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
10 more
- 2020Backdoor Learning: A Surveycited by 412
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
- 2019A backdoor attack against LSTM-based text classification systemscited by 214
- 2020Dataset Security for Machine Learning: Data Poisoning, Backdoor Attacks, and Defensescited by 171
- 2017Neural Trojanscited by 151
- 2021Backdoor Attacks on Pre-trained Models by Layerwise Weight Poisoningcited by 103
- 2020Trojaning Language Models for Fun and Profitcited by 80
- 2020Can Adversarial Weight Perturbations Inject Neural Backdoors?cited by 51
Built on by
Citing papers per year: 2021: 3; 2022: 4; 2023: 31; 2024: 26; 2025: 8; 2026: 4.
76 papers.
Sort:
By area:
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
- 2024BadAgent: Inserting and Activating Backdoor Attacks in LLM Agentscited by 106
- 2024BadEdit: Backdooring large language models by model editingcited by 84
- 2023Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilitiescited by 76
- 2023GPTEval: A Survey on Assessments of ChatGPT and GPT-4cited by 73
- 2021Spinning Language Models: Risks of Propaganda-As-A-Service and Countermeasurescited by 69
- 2023Composite Backdoor Attacks Against Large Language Modelscited by 63
- 2021Triggerless Backdoor Attack for NLP Tasks with Clean Labelscited by 61
- 2023Are You Copying My Model? Protecting the Copyright of Large Language Models for EaaS via Backdoor Watermarkcited by 61
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2023Black-box Backdoor Defense via Zero-shot Image Purificationcited by 44
- 2023Pre-trained Trojan Attacks for Visual Recognitioncited by 38
38 more
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2024Feedback-Guided Extraction of Knowledge Base from Retrieval-Augmented LLM Applicationscited by 36
- 2024Test-Time Backdoor Attacks on Multimodal Large Language Modelscited by 35
- 2024Hey, That's My Model! Introducing Chain & Hash, An LLM Fingerprinting Techniquecited by 34
- 2023NOTABLE: Transferable Backdoor Attacks Against Prompt-based NLP Modelscited by 33
- 2023Foundation Models for Weather and Climate Data Understanding: A Comprehensive Surveycited by 32
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 32
- 2022Physical Backdoor Attacks to Lane Detection Systems in Autonomous Drivingcited by 29
- 2023Towards Stealthy Backdoor Attacks against Speech Recognition via Elements of Soundcited by 28
- 2023Integration of Large Language Models and Federated Learningcited by 28
- 2023TrojText: Test-time Invisible Textual Trojan Insertioncited by 26
- 2024Purifying Large Language Models by Ensembling a Small Language Modelcited by 25
- 2023Grounding Foundation Models through Federated Transfer Learning: A General Frameworkcited by 24
- 2023Stealing the Decoding Algorithms of Language Modelscited by 19
- 2023Backdoor Learning on Sequence to Sequence Modelscited by 19
- 2023Mitigating Backdoor Poisoning Attacks through the Lens of Spurious Correlationcited by 19
- 2023Multi-target Backdoor Attacks for Code Pre-trained Modelscited by 19
- 2022Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attackscited by 18
- 2024Double-I Watermark: Protecting Model Copyright for LLM Fine-tuningcited by 18
- 2023TextGuard: Provable Defense against Backdoor Attacks on Text Classificationcited by 14
- 2024Cross-Context Backdoor Attacks against Graph Prompt Learningcited by 14
- 2023Last One Standing: A Comparative Analysis of Security and Privacy of Soft Prompt Tuning, LoRA, and In-Context Learningcited by 13
- 2023IMBERT: Making BERT Immune to Insertion-based Backdoor Attackscited by 12
- 2024Quantized Delta Weight Is Safety Keepercited by 12
- 2023Two-in-One: A Model Hijacking Attack Against Text Generation Modelscited by 11
- 2023TIJO: Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Modelscited by 11
- 2023Watermarking Vision-Language Pre-trained Models for Multi-modal Embedding as a Servicecited by 11
- 2023Backdoor Attacks with Input-unique Triggers in NLPcited by 10
- 2024The Dark Side of Human Feedback: Poisoning Large Language Models via User Inputscited by 10
- 2023Forcing Generative Models to Degenerate Ones: The Power of Data Poisoning Attackscited by 9
- 2024WARDEN: Multi-Directional Backdoor Watermarks for Embedding-as-a-Service Copyright Protectioncited by 9
- 2024Turning Generative Models Degenerate: The Power of Data Poisoning Attackscited by 9
- 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
- 2023LMSanitator: Defending Prompt-Tuning Against Task-Agnostic Backdoorscited by 7
- 2024Obliviate: Neutralizing Task-agnostic Backdoors within the Parameter-efficient Fine-tuning Paradigmcited by 7
- 2023UOR: Universal Backdoor Attacks on Pre-trained Language Modelscited by 6
- 2023Beyond Boundaries: A Comprehensive Survey of Transferable Attacks on AI Systemscited by 6
- 2024Identifying Backdoored Graphs in Graph Neural Network Training: An Explanation-Based Approach with Novel Metricscited by 6
50 most cited of 76 All 76 (JSON)
- 2026Pretraining Data Can Be Poisoned through Computational Propaganda16 Jul 2026
- 2026MetaBackdoor: Exploiting Positional Encoding as a Backdoor Attack Surface in LLMs14 May 2026
- 2026BadDLM: Backdooring Diffusion Language Models with Diverse Targets10 May 2026
- 2026Detecting Data Poisoning in Code Generation LLMs via Black-Box, Vulnerability-Oriented Scanning17 Mar 2026
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models5 Oct 2025
- 2025Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Models30 Aug 2025
- 2025Pruning Strategies for Backdoor Defense in LLMs27 Aug 2025
- 2025A Systematic Review of Poisoning Attacks Against Large Language Models6 Jun 2025
- 2025The Ripple Effect: On Unforeseen Complications of Backdoor Attacks16 May 2025
- 2025BadLingual: A Novel Lingual-Backdoor Attack against Large Language Models6 May 2025
- 2025GaussTrap: Stealthy Poisoning Attacks on 3D Gaussian Splatting for Targeted Scene Confusion29 Apr 2025
- 2025The Ultimate Cookbook for Invisible Poison: Crafting Subtle Clean-Label Text Backdoors with Style Attributes24 Apr 2025
38 more
- 2024Quantized Delta Weight Is Safety Keeper29 Nov 2024
- 2024Feedback-Guided Extraction of Knowledge Base from Retrieval-Augmented LLM Applications21 Nov 2024
- 2024New Emerged Security and Privacy of Pre-trained Model: a Survey and Outlook12 Nov 2024
- 2024CAT: Concept-level backdoor ATtacks for Concept Bottleneck Models7 Oct 2024
- 2024Obliviate: Neutralizing Task-agnostic Backdoors within the Parameter-efficient Fine-tuning Paradigm21 Sep 2024
- 2024The Dark Side of Human Feedback: Poisoning Large Language Models via User Inputs1 Sep 2024
- 2024Rethinking Backdoor Detection Evaluation for Language Models31 Aug 2024
- 2024MEGen: Generative Backdoor into Large Language Models via Model Editing20 Aug 2024
- 2024Trading Devil Final: Backdoor attack via Stock market and Bayesian Optimization21 Jul 2024
- 2024Turning Generative Models Degenerate: The Power of Data Poisoning Attacks17 Jul 2024
- 2024Hey, That's My Model! Introducing Chain & Hash, An LLM Fingerprinting Technique15 Jul 2024
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models10 Jun 2024
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detection10 Jun 2024
- 2024BadAgent: Inserting and Activating Backdoor Attacks in LLM Agents5 Jun 2024
- 2024Cross-Context Backdoor Attacks against Graph Prompt Learning28 May 2024
- 2024TrojFM: Resource-efficient Backdoor Attacks against Very Large Foundation Models27 May 2024
- 2024SEEP: Training Dynamics Grounds Latent Representation Search for Mitigating Backdoor Poisoning Attacks19 May 2024
- 2024Identifying Backdoored Graphs in Graph Neural Network Training: An Explanation-Based Approach with Novel Metrics26 Mar 2024
- 2024BadEdit: Backdooring large language models by model editing20 Mar 2024
- 2024WARDEN: Multi-Directional Backdoor Watermarks for Embedding-as-a-Service Copyright Protection3 Mar 2024
- 2024SynGhost: Invisible and Universal Task-agnostic Backdoor Attack via Syntactic Transfer29 Feb 2024
- 2024Double-I Watermark: Protecting Model Copyright for LLM Fine-tuning22 Feb 2024
- 2024Purifying Large Language Models by Ensembling a Small Language Model19 Feb 2024
- 2024Test-Time Backdoor Attacks on Multimodal Large Language Models13 Feb 2024
- 2024OrderBkd: Textual backdoor attack through repositioning12 Feb 2024
- 2024Model Supply Chain Poisoning: Backdooring Pre-trained Models via Embedding Indistinguishability29 Jan 2024
- 2023Pre-trained Trojan Attacks for Visual Recognition23 Dec 2023
- 2023Forcing Generative Models to Degenerate Ones: The Power of Data Poisoning Attacks7 Dec 2023
- 2023Foundation Models for Weather and Climate Data Understanding: A Comprehensive Survey5 Dec 2023
- 2023Grounding Foundation Models through Federated Transfer Learning: A General Framework29 Nov 2023
- 2023Beyond Boundaries: A Comprehensive Survey of Transferable Attacks on AI Systems20 Nov 2023
- 2023TextGuard: Provable Defense against Backdoor Attacks on Text Classification19 Nov 2023
- 2023Watermarking Vision-Language Pre-trained Models for Multi-modal Embedding as a Service10 Nov 2023
- 2023Last One Standing: A Comparative Analysis of Security and Privacy of Soft Prompt Tuning, LoRA, and In-Context Learning17 Oct 2023
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directions16 Oct 2023
- 2023AFLOW: Developing Adversarial Examples under Extremely Noise-limited Settings15 Oct 2023
- 2023Composite Backdoor Attacks Against Large Language Models11 Oct 2023
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!5 Oct 2023
50 newest of 76 All 76 (JSON)
- 2024BadEdit: Backdooring large language models by model editingcited by 84
- 2021Spinning Language Models: Risks of Propaganda-As-A-Service and Countermeasurescited by 69
- 2023Composite Backdoor Attacks Against Large Language Modelscited by 63
- 2021Triggerless Backdoor Attack for NLP Tasks with Clean Labelscited by 61
- 2023Are You Copying My Model? Protecting the Copyright of Large Language Models for EaaS via Backdoor Watermarkcited by 61
- 2023Pre-trained Trojan Attacks for Visual Recognitioncited by 38
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2023NOTABLE: Transferable Backdoor Attacks Against Prompt-based NLP Modelscited by 33
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 32
- 2023Towards Stealthy Backdoor Attacks against Speech Recognition via Elements of Soundcited by 28
- 2024Purifying Large Language Models by Ensembling a Small Language Modelcited by 25
- 2023Multi-target Backdoor Attacks for Code Pre-trained Modelscited by 19
12 most cited of 41 All 41 (JSON)
- 2026MetaBackdoor: Exploiting Positional Encoding as a Backdoor Attack Surface in LLMs14 May 2026
- 2026Detecting Data Poisoning in Code Generation LLMs via Black-Box, Vulnerability-Oriented Scanning17 Mar 2026
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models5 Oct 2025
- 2025Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Models30 Aug 2025
- 2025Pruning Strategies for Backdoor Defense in LLMs27 Aug 2025
- 2025BadLingual: A Novel Lingual-Backdoor Attack against Large Language Models6 May 2025
- 2025GaussTrap: Stealthy Poisoning Attacks on 3D Gaussian Splatting for Targeted Scene Confusion29 Apr 2025
- 2025The Ultimate Cookbook for Invisible Poison: Crafting Subtle Clean-Label Text Backdoors with Style Attributes24 Apr 2025
- 2024Quantized Delta Weight Is Safety Keeper29 Nov 2024
- 2024MEGen: Generative Backdoor into Large Language Models via Model Editing20 Aug 2024
- 2024Turning Generative Models Degenerate: The Power of Data Poisoning Attacks17 Jul 2024
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models10 Jun 2024
12 newest of 41 All 41 (JSON)
- 2024Rethinking Backdoor Detection Evaluation for Language Models31 Aug 2024
- 2023Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilitiescited by 76
- 2023GPTEval: A Survey on Assessments of ChatGPT and GPT-4cited by 73
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2023Black-box Backdoor Defense via Zero-shot Image Purificationcited by 44
- 2024Hey, That's My Model! Introducing Chain & Hash, An LLM Fingerprinting Techniquecited by 34
- 2023Foundation Models for Weather and Climate Data Understanding: A Comprehensive Surveycited by 32
- 2022Physical Backdoor Attacks to Lane Detection Systems in Autonomous Drivingcited by 29
- 2023Integration of Large Language Models and Federated Learningcited by 28
- 2023TrojText: Test-time Invisible Textual Trojan Insertioncited by 26
- 2023Grounding Foundation Models through Federated Transfer Learning: A General Frameworkcited by 24
- 2023Stealing the Decoding Algorithms of Language Modelscited by 19
- 2023Backdoor Learning on Sequence to Sequence Modelscited by 19
12 most cited of 27 All 27 (JSON)
- 2026Pretraining Data Can Be Poisoned through Computational Propaganda16 Jul 2026
- 2025A Systematic Review of Poisoning Attacks Against Large Language Models6 Jun 2025
- 2025The Ripple Effect: On Unforeseen Complications of Backdoor Attacks16 May 2025
- 2024New Emerged Security and Privacy of Pre-trained Model: a Survey and Outlook12 Nov 2024
- 2024CAT: Concept-level backdoor ATtacks for Concept Bottleneck Models7 Oct 2024
- 2024Obliviate: Neutralizing Task-agnostic Backdoors within the Parameter-efficient Fine-tuning Paradigm21 Sep 2024
- 2024Trading Devil Final: Backdoor attack via Stock market and Bayesian Optimization21 Jul 2024
- 2024Hey, That's My Model! Introducing Chain & Hash, An LLM Fingerprinting Technique15 Jul 2024
- 2024SEEP: Training Dynamics Grounds Latent Representation Search for Mitigating Backdoor Poisoning Attacks19 May 2024
- 2024Identifying Backdoored Graphs in Graph Neural Network Training: An Explanation-Based Approach with Novel Metrics26 Mar 2024
- 2024WARDEN: Multi-Directional Backdoor Watermarks for Embedding-as-a-Service Copyright Protection3 Mar 2024
- 2024Model Supply Chain Poisoning: Backdooring Pre-trained Models via Embedding Indistinguishability29 Jan 2024
12 newest of 27 All 27 (JSON)