Trojaning Language Models for Fun and Profit
Not on the map. Why?
Cited by 49 in LLM safety and security, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Recent years have witnessed the emergence of a new paradigm of building natural language processing (NLP) systems: general-purpose, pre-trained language models (LMs) are composed with simple downstream models and fine-tuned for a variety of NLP tasks. This paradigm shift significantly simplifies the system development cycles. However, as many LMs are provided by untrusted third parties, their lack of standardization or regulation entails profound security implications, which are largely unexplored. To bridge this gap, this work studies the security threats posed by malicious LMs to NLP systems. Specifically, we present TROJAN-LM, a new class of trojaning attacks in which maliciously crafted LMs trigger host NLP systems to malfunction in a highly predictable manner. By empirically studying three state-of-the-art LMs (BERT, GPT-2, XLNet) in a range of security-critical NLP tasks (toxic comment detection, question answering, text completion) as well as user studies on crowdsourcing platforms, we demonstrate that TROJAN-LM possesses the following properties: (i) flexibility - the adversary is able to flexibly dene logical combinations (e.g., 'and', 'or', 'xor') of arbitrary words as triggers, (ii) efficacy - the host systems misbehave as desired by the adversary with high probability when trigger-embedded inputs are present, (iii) specificity - the trojan LMs function indistinguishably from their benign counterparts on clean inputs, and (iv) fluency - the trigger-embedded inputs appear as fluent natural language and highly relevant to their surrounding contexts. We provide analytical justification for the practicality of TROJAN-LM, and further discuss potential countermeasures and their challenges, which lead to several promising research directions.
Key facts. Cited by 80 papers in the map (data through 7 Oct 2026). First posted on arXiv 1 Aug 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 14; 2022: 10; 2023: 22; 2024: 22; 2025: 9; 2026: 3.
80 papers.
Sort:
By area:
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Trainingcited by 478
- 2021Unsolved Problems in ML Safetycited by 291
- 2023An Overview of Catastrophic AI Riskscited by 214
- 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Triggercited by 203
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 179
- 2025Memory Injection Attacks on LLM Agents via Query-Only Interactioncited by 127
- 2021BadEncoder: Backdoor Attacks to Pre-trained Encoders in Self-Supervised Learningcited by 120
- 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Modelscited by 97
- 2021Be Careful about Poisoned Word Embeddings: Exploring the Vulnerability of the Embedding Layers in NLP Modelscited by 96
- 2022Wild Patterns Reloaded: A Survey of Machine Learning Security against Training Data Poisoningcited by 93
- 2023TrojDiff: Trojan Attacks on Diffusion Models with Diverse Targetscited by 88
- 2021Hidden Backdoors in Human-Centric Language Modelscited by 83
38 more
- 2021Backdoor Pre-trained Models Can Transfer to Allcited by 79
- 2021BadPre: Task-agnostic Backdoor Attacks to Pre-trained NLP Foundation Modelscited by 76
- 2024BadChain: Backdoor Chain-of-Thought Prompting for Large Language Modelscited by 74
- 2022A Unified Evaluation of Textual Backdoor Learning: Frameworks and Benchmarkscited by 70
- 2021Spinning Language Models: Risks of Propaganda-As-A-Service and Countermeasurescited by 69
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2023TrojanPuzzle: Covertly Poisoning Code-Suggestion Modelscited by 47
- 2021Red Alarm for Pre-trained Models: Universal Vulnerability to Neuron-Level Backdoor Attackscited by 44
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
- 2023Pre-trained Trojan Attacks for Visual Recognitioncited by 38
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2023Defending Pre-trained Language Models as Few-shot Learners against Backdoor Attackscited by 32
- 2023Attention-Enhancing Backdoor Attacks Against BERT-based Modelscited by 32
- 2024Risks from Language Models for Automated Mental Healthcare: Ethics and Structure for Implementationcited by 27
- 2023TrojText: Test-time Invisible Textual Trojan Insertioncited by 26
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoEcited by 26
- 2022Kallima: A Clean-label Framework for Textual Backdoor Attackscited by 22
- 2023Analyzing And Editing Inner Mechanisms Of Backdoored Language Modelscited by 22
- 2023Attacks in Adversarial Machine Learning: A Systematic Survey from the Life-cycle Perspectivecited by 19
- 2023Stealing the Decoding Algorithms of Language Modelscited by 19
- 2022Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attackscited by 18
- 2021BFClass: A Backdoor-free Text Classification Frameworkcited by 17
- 2023ParaFuzz: An Interpretability-Driven Technique for Detecting Poisoned Samples in NLPcited by 16
- 2022A Survey on Backdoor Attack and Defense in Natural Language Processingcited by 13
- 2023BDMMT: Backdoor Sample Detection for Language Models through Model Mutation Testingcited by 13
- 2022Backdoor Vulnerabilities in Normally Trained Deep Learning Modelscited by 12
- 2024A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Modelscited by 12
- 2024CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Modelscited by 11
- 2022Watermarking Pre-trained Encoders in Contrastive Learningcited by 10
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Surveycited 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
- 2024Turning Generative Models Degenerate: The Power of Data Poisoning Attackscited by 9
- 2025BadMoE: Backdooring Mixture-of-Experts LLMs via Optimizing Routing Triggers and Infecting Dormant Expertscited by 8
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasurescited by 8
- 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
- 2022Private, Efficient, and Accurate: Protecting Models Trained by Multi-party Learning with Differential Privacycited by 7
- 2023FreeEagle: Detecting Complex Neural Trojans in Data-Free Casescited by 7
50 most cited of 80 All 80 (JSON)
- 2026Fine-grained Distributed Backdoor Attacks in Federated Learning7 Sep 2026
- 2026BadDLM: Backdooring Diffusion Language Models with Diverse Targets10 May 2026
- 2026Stealthy Backdoor Attacks against LLMs Based on Natural Style Triggers23 Apr 2026
- 2025Cross-LLM Generalization of Behavioral Backdoor Detection in AI Agent Supply Chains25 Nov 2025
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models5 Oct 2025
- 2025Pruning Strategies for Backdoor Defense in LLMs27 Aug 2025
- 2025A Systematic Review of Poisoning Attacks Against Large Language Models6 Jun 2025
- 2025Detecting Stealthy Backdoor Samples based on Intra-class Distance for Large Language Models29 May 2025
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasures2 May 2025
- 2025BadMoE: Backdooring Mixture-of-Experts LLMs via Optimizing Routing Triggers and Infecting Dormant Experts24 Apr 2025
- 2025MuTRAP: Multi-trigger Trojans Attacking Robot Task Planning Systems23 Apr 2025
- 2025Memory Injection Attacks on LLM Agents via Query-Only Interaction5 Mar 2025
38 more
- 2024Cut the Deadwood Out: Backdoor Purification via Guided Module Substitution29 Dec 2024
- 2024Invisible Textual Backdoor Attacks based on Dual-Trigger23 Dec 2024
- 2024New Emerged Security and Privacy of Pre-trained Model: a Survey and Outlook12 Nov 2024
- 2024A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Models6 Oct 2024
- 2024CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Models2 Sep 2024
- 2024The Dark Side of Human Feedback: Poisoning Large Language Models via User Inputs1 Sep 2024
- 2024Large Language Models are Good Attackers: Efficient and Stealthy Textual Backdoor Attacks21 Aug 2024
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)20 Jul 2024
- 2024Turning Generative Models Degenerate: The Power of Data Poisoning Attacks17 Jul 2024
- 2024Watch the Watcher! Backdoor Attacks on Security-Enhancing Diffusion Models14 Jun 2024
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models10 Jun 2024
- 2024Injecting Undetectable Backdoors in Obfuscated Neural Networks and Language Models9 Jun 2024
- 2024PromptFix: Few-shot Backdoor Removal via Adversarial Prompt Tuning6 Jun 2024
- 2024Privacy in LLM-based Recommendation: Recent Advances and Future Directions3 Jun 2024
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Survey1 Jun 2024
- 2024Risks from Language Models for Automated Mental Healthcare: Ethics and Structure for Implementation2 Apr 2024
- 2024Manipulating Neural Path Planners via Slight Perturbations27 Mar 2024
- 2024SynGhost: Invisible and Universal Task-agnostic Backdoor Attack via Syntactic Transfer29 Feb 2024
- 2024Security and Privacy Challenges of Large Language Models: A Survey30 Jan 2024
- 2024Model Supply Chain Poisoning: Backdooring Pre-trained Models via Embedding Indistinguishability29 Jan 2024
- 2024BadChain: Backdoor Chain-of-Thought Prompting for Large Language Models20 Jan 2024
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan 2024
- 2023Punctuation Matters! Stealthy Backdoor Attack for Language Models26 Dec 2023
- 2023Pre-trained Trojan Attacks for Visual Recognition23 Dec 2023
- 2023Forcing Generative Models to Degenerate Ones: The Power of Data Poisoning Attacks7 Dec 2023
- 2023Efficient Trigger Word Insertion23 Nov 2023
- 2023Attention-Enhancing Backdoor Attacks Against BERT-based Models23 Oct 2023
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directions16 Oct 2023
- 2023PETA: Parameter-Efficient Trojan Attacks1 Oct 2023
- 2023Defending Pre-trained Language Models as Few-shot Learners against Backdoor Attacks23 Sep 2023
- 2023LMSanitator: Defending Prompt-Tuning Against Task-Agnostic Backdoors26 Aug 2023
- 2023ParaFuzz: An Interpretability-Driven Technique for Detecting Poisoned Samples in NLP4 Aug 2023
- 2023An Overview of Catastrophic AI Risks21 Jun 2023
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoE24 May 2023
- 2023UOR: Universal Backdoor Attacks on Pre-trained Language Models16 May 2023
- 2023A Generative Framework for Low-Cost Result Validation of Machine Learning-as-a-Service Inference31 Mar 2023
- 2023TrojDiff: Trojan Attacks on Diffusion Models with Diverse Targets10 Mar 2023
- 2023Stealing the Decoding Algorithms of Language Models8 Mar 2023
50 newest of 80 All 80 (JSON)
- 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Triggercited by 203
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 179
- 2021BadEncoder: Backdoor Attacks to Pre-trained Encoders in Self-Supervised Learningcited by 120
- 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Modelscited by 97
- 2021Be Careful about Poisoned Word Embeddings: Exploring the Vulnerability of the Embedding Layers in NLP Modelscited by 96
- 2022Wild Patterns Reloaded: A Survey of Machine Learning Security against Training Data Poisoningcited by 93
- 2021Hidden Backdoors in Human-Centric Language Modelscited by 83
- 2021BadPre: Task-agnostic Backdoor Attacks to Pre-trained NLP Foundation Modelscited by 76
- 2022A Unified Evaluation of Textual Backdoor Learning: Frameworks and Benchmarkscited by 70
- 2021Spinning Language Models: Risks of Propaganda-As-A-Service and Countermeasurescited by 69
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
- 2023Pre-trained Trojan Attacks for Visual Recognitioncited by 38
12 most cited of 43 All 43 (JSON)
- 2026Stealthy Backdoor Attacks against LLMs Based on Natural Style Triggers23 Apr 2026
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models5 Oct 2025
- 2025Pruning Strategies for Backdoor Defense in LLMs27 Aug 2025
- 2025Detecting Stealthy Backdoor Samples based on Intra-class Distance for Large Language Models29 May 2025
- 2024Invisible Textual Backdoor Attacks based on Dual-Trigger23 Dec 2024
- 2024CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Models2 Sep 2024
- 2024Large Language Models are Good Attackers: Efficient and Stealthy Textual Backdoor Attacks21 Aug 2024
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)20 Jul 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
- 2024Injecting Undetectable Backdoors in Obfuscated Neural Networks and Language Models9 Jun 2024
- 2024PromptFix: Few-shot Backdoor Removal via Adversarial Prompt Tuning6 Jun 2024
12 newest of 43 All 43 (JSON)
- 2021Unsolved Problems in ML Safetycited by 291
- 2023An Overview of Catastrophic AI Riskscited by 214
- 2021Backdoor Pre-trained Models Can Transfer to Allcited by 79
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2023TrojanPuzzle: Covertly Poisoning Code-Suggestion Modelscited by 47
- 2021Red Alarm for Pre-trained Models: Universal Vulnerability to Neuron-Level Backdoor Attackscited by 44
- 2024Risks from Language Models for Automated Mental Healthcare: Ethics and Structure for Implementationcited by 27
- 2023TrojText: Test-time Invisible Textual Trojan Insertioncited by 26
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoEcited by 26
- 2023Attacks in Adversarial Machine Learning: A Systematic Survey from the Life-cycle Perspectivecited by 19
- 2023Stealing the Decoding Algorithms of Language Modelscited by 19
- 2022Backdoor Vulnerabilities in Normally Trained Deep Learning Modelscited by 12
12 most cited of 28 All 28 (JSON)
- 2026Fine-grained Distributed Backdoor Attacks in Federated Learning7 Sep 2026
- 2025A Systematic Review of Poisoning Attacks Against Large Language Models6 Jun 2025
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasures2 May 2025
- 2025MuTRAP: Multi-trigger Trojans Attacking Robot Task Planning Systems23 Apr 2025
- 2024Cut the Deadwood Out: Backdoor Purification via Guided Module Substitution29 Dec 2024
- 2024New Emerged Security and Privacy of Pre-trained Model: a Survey and Outlook12 Nov 2024
- 2024A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Models6 Oct 2024
- 2024Privacy in LLM-based Recommendation: Recent Advances and Future Directions3 Jun 2024
- 2024Risks from Language Models for Automated Mental Healthcare: Ethics and Structure for Implementation2 Apr 2024
- 2024Model Supply Chain Poisoning: Backdooring Pre-trained Models via Embedding Indistinguishability29 Jan 2024
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directions16 Oct 2023
- 2023An Overview of Catastrophic AI Risks21 Jun 2023
12 newest of 28 All 28 (JSON)