mlsanityData to 7 Oct 2026

TrojFM: Resource-efficient Backdoor Attacks against Very Large Foundation Models

arXiv 2405.16783 ↗First posted 27 May 2024cs.CR cs.AI cs.LGcited by 4

On the map: LLM safety and security → Backdoor and data poisoning attacks

Abstract (arXiv)

One key challenge in backdoor attacks against large foundation models is the resource limits. Backdoor attacks usually require retraining the target model, which is impractical for very large foundation models. Existing backdoor attacks are mainly designed for supervised classifiers or small foundation models (e.g., BERT). None of these attacks has successfully compromised a very large foundation model, such as Llama-3-70B, especially with limited computational resources. In this paper, we propose TrojFM, a novel backdoor attack tailored for very large foundation models. Our primary technical contribution is the development of a novel backdoor injection method. This method forces a backdoored model to generate similar hidden representations for poisoned inputs regardless of their actual semantics. Our approach injects such backdoors by fine-tuning only a very small proportion of model parameters. This enables TrojFM to efficiently launch downstream task-agnostic backdoor attacks against very large foundation models under limited computational resources. Moreover, we optimize the fine-tuning process with our customized QLoRA technique, enabling launching our attack via only~textitone A100 GPU. Furthermore, we design a new trigger injection method to ensure our attack stealthiness. Through extensive experiments, we first demonstrate that TrojFM can launch effective backdoor attacks against widely used large GPT-style models without jeopardizing their normal functionalities (and outperforming existing attacks on BERT-style models). Furthermore, we show that TrojFM is resilient to SOTA defenses and is insensitive to changes in key hyper-parameters. Finally, we conduct a resource analysis to quantify that our method can significantly save computational and memory costs compared to existing backdoor attacks.

Key facts. Cited by 4 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 76 of its 98 references that are in the map. First posted on arXiv 27 May 2024.

Builds on

76 of 98 references.

Closest ancestors · 27

Same direction, newest first

  1. 2024BadEdit: Backdooring large language models by model editing20 Mar
  2. 2023TextGuard: Provable Defense against Backdoor Attacks on Text Classification19 Nov
  3. 2023RLHFPoison: Reward Poisoning Attack for Reinforcement Learning with Human Feedback in Large Language Models16 Nov
  4. 2023Defending Pre-trained Language Models as Few-shot Learners against Backdoor Attacks23 Sep
  5. 2023ParaFuzz: An Interpretability-Driven Technique for Detecting Poisoned Samples in NLP4 Aug
  6. 2023Backdoor Attacks for In-Context Learning with Language Models27 Jul
  7. 2023On the Exploitability of Instruction Tuning28 Jun
  8. 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Models24 May
  9. 2023UOR: Universal Backdoor Attacks on Pre-trained Language Models16 May
  10. 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Models2 May
  11. 2023ChatGPT as an Attack Tool: Stealthy Textual Backdoor Attack via Blackbox Generative Model Trigger27 Apr
  12. 2023CleanCLIP: Mitigating Data Poisoning Attacks in Multimodal Contrastive Learning6 Mar
15 more
  1. 2023BadGPT: Exploring Security Vulnerabilities of ChatGPT via Backdoor Attacks to InstructGPT21 Feb
  2. 2023Training-free Lexical Backdoor Attacks on Language Models8 Feb
  3. 2022BadPrompt: Backdoor Attacks on Continuous Prompts27 Nov
  4. 2022Apple of Sodom: Hidden Backdoors in Superior Sentence Embeddings via Contrastive Learning20 Oct
  5. 2022Kallima: A Clean-label Framework for Textual Backdoor Attacks3 Jun
  6. 2022Constrained Optimization with Dynamic Bound-scaling for Effective NLPBackdoor Defense11 Feb
  7. 2021DBIA: Data-free Backdoor Injection Attack against Transformer Networks22 Nov
  8. 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Models15 Oct
  9. 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfer14 Oct
  10. 2021BadPre: Task-agnostic Backdoor Attacks to Pre-trained NLP Foundation Models6 Oct
  11. 2021Sleeper Agent: Scalable Hidden Trigger Backdoors for Neural Networks Trained from Scratch16 Jun
  12. 2021Turn the Combination Lock: Learnable Textual Backdoor Attacks via Word Substitution11 Jun
  13. 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May
  14. 2021Be Careful about Poisoned Word Embeddings: Exploring the Vulnerability of the Embedding Layers in NLP Models29 Mar
  15. 2021T-Miner: A Generative Approach to Defend Against Trojan Attacks on DNN-based Text Classification7 Mar

Other references · 49

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  5. 2020Scaling Laws for Neural Language Modelscited by 6,411
  6. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  7. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  8. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  9. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  10. 2016Pointer Sentinel Mixture Modelscited by 2,992
  11. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
  12. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
37 more
  1. 2020Extracting Training Data from Large Language Modelscited by 2,144
  2. 2024Mixtral of Expertscited by 1,785
  3. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
  4. 2016Understanding intermediate layers using linear classifier probescited by 1,279
  5. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  6. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
  7. 2018How To Backdoor Federated Learningcited by 745
  8. 2018Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networkscited by 550
  9. 2018Spectral Signatures in Backdoor Attackscited by 457
  10. 2022Unified-IO: A Unified Model for Vision, Language, and Multi-Modal Taskscited by 420
  11. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
  12. 2020Attack of the Tails: Yes, You Really Can Backdoor Federated Learningcited by 307
  13. 2017Certified Defenses for Data Poisoning Attackscited by 288
  14. 2023Poisoning Language Models During Instruction Tuningcited by 254
  15. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
  16. 2021Adversarial Neuron Pruning Purifies Backdoored Deep Modelscited by 230
  17. 2019A backdoor attack against LSTM-based text classification systemscited by 214
  18. 2023Sequential Modeling Enables Scalable Learning for Large Vision Modelscited by 212
  19. 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
  20. 2021Adversarial Unlearning of Backdoors via Implicit Hypergradientcited by 160
  21. 2021Poisoning and Backdooring Contrastive Learningcited by 149
  22. 2020RAB: Provable Robustness Against Backdoor Attackscited by 115
  23. 2021Backdoor Attacks on Pre-trained Models by Layerwise Weight Poisoningcited by 103
  24. 2019Robust Anomaly Detection and Backdoor Attack Detection Via Differential Privacycited by 93
  25. 2021Backdoor Attacks on Self-Supervised Learningcited by 89
  26. 2020Mitigating backdoor attacks in LSTM-based Text Classification Systems by Backdoor Keyword Identificationcited by 80
  27. 2021Backdoor Pre-trained Models Can Transfer to Allcited by 79
  28. 2021BACKDOORL: Backdoor Attack against Competitive Reinforcement Learningcited by 66
  29. 2021Handcrafted Backdoors in Deep Neural Networkscited by 57
  30. 2021Red Alarm for Pre-trained Models: Universal Vulnerability to Neuron-Level Backdoor Attackscited by 44
  31. 2022Data Poisoning Attacks Against Multimodal Encoderscited by 41
  32. 2023Shared Adversarial Unlearning: Backdoor Mitigation by Unlearning Shared Adversarial Examplescited by 40
  33. 2023Neural Polarizer: A Lightweight and Effective Backdoor Defense via Purifying Poisoned Featurescited by 35
  34. 2020XDA: Accurate, Robust Disassembly with Transfer Learningcited by 21
  35. 2023netFound: Principled Design for Network Foundation Modelscited by 17
  36. 2022Few-shot Backdoor Attacks via Neural Tangent Kernelscited by 15
  37. 2023Universal Backdoor Attackscited by 7

Built on by

Cited by year

Citing papers per year: 2024: 2; 2025: 2.

4 papers.