mlsanityData to 7 Oct 2026

Simulate and Eliminate: Revoke Backdoors for Generative Large Language Models

arXiv 2405.07667 ↗First posted 13 May 2024cs.CR cs.CLcited by 11

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

Abstract (arXiv)

With rapid advances, generative large language models (LLMs) dominate various Natural Language Processing (NLP) tasks from understanding to reasoning. Yet, language models' inherent vulnerabilities may be exacerbated due to increased accessibility and unrestricted model training on massive data. A malicious adversary may publish poisoned data online and conduct backdoor attacks on the victim LLMs pre-trained on the poisoned data. Backdoored LLMs behave innocuously for normal queries and generate harmful responses when the backdoor trigger is activated. Despite significant efforts paid to LLMs' safety issues, LLMs are still struggling against backdoor attacks. As Anthropic recently revealed, existing safety training strategies, including supervised fine-tuning (SFT) and Reinforcement Learning from Human Feedback (RLHF), fail to revoke the backdoors once the LLM is backdoored during the pre-training stage. In this paper, we present Simulate and Eliminate (SANDE) to erase the undesired backdoored mappings for generative LLMs. We initially propose Overwrite Supervised Fine-tuning (OSFT) for effective backdoor removal when the trigger is known. Then, to handle scenarios where trigger patterns are unknown, we integrate OSFT into our two-stage framework, SANDE. Unlike other works that assume access to cleanly trained models, our safety-enhanced LLMs are able to revoke backdoors without any reference. Consequently, our safety-enhanced LLMs no longer produce targeted responses when the backdoor triggers are activated. We conduct comprehensive experiments to show that our proposed SANDE is effective against backdoor attacks while bringing minimal harm to LLMs' powerful capability.

Key facts. Cited by 11 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 36 of its 50 references that are in the map. First posted on arXiv 13 May 2024.

Builds on

36 of 50 references.

Closest ancestors · 11

Same direction, newest first

  1. 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan
  2. 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injection31 Jul
  3. 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Models2 May
  4. 2022Fine-mixing: Mitigating Backdoors in Fine-tuned Language Models18 Oct
  5. 2022A Unified Evaluation of Textual Backdoor Learning: Frameworks and Benchmarks17 Jun
  6. 2021Spinning Language Models: Risks of Propaganda-As-A-Service and Countermeasures9 Dec
  7. 2021Triggerless Backdoor Attack for NLP Tasks with Clean Labels15 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. 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May
  11. 2021T-Miner: A Generative Approach to Defend Against Trojan Attacks on DNN-based Text Classification7 Mar

Other references · 25

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  5. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  6. 2017Deep reinforcement learning from human preferencescited by 3,846
  7. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  8. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  9. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
  10. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
  11. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
  12. 2020Aligning AI With Shared Human Valuescited by 706
13 more
  1. 2018Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networkscited by 550
  2. 2018Detecting Backdoor Attacks on Deep Neural Networks by Activation Clusteringcited by 429
  3. 2022Knowledge Unlearning for Mitigating Privacy Risks in Language Modelscited by 424
  4. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
  5. 2021Neural Attention Distillation: Erasing Backdoor Triggers from Deep Neural Networkscited by 313
  6. 2023Poisoning Web-Scale Training Datasets is Practicalcited by 276
  7. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
  8. 2019A backdoor attack against LSTM-based text classification systemscited by 214
  9. 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
  10. 2020You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completioncited by 112
  11. 2020Mitigating backdoor attacks in LSTM-based Text Classification Systems by Backdoor Keyword Identificationcited by 80
  12. 2023Backdoor Learning on Sequence to Sequence Modelscited by 19
  13. 2023Mitigating Backdoor Poisoning Attacks through the Lens of Spurious Correlationcited by 19

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 2; 2026: 6.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Models
  2. 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challenges
  3. 2026Backdoor Containment via Expert Quarantine and Shutdown in LLMs
  4. 2025Revisiting Backdoor Attacks on LLMs: A Stealthy and Practical Poisoning Framework via Harmless Inputs
  5. 2024Learning to Poison Large Language Models for Downstream Manipulation
  6. 2025AutoBackdoor: Automating Backdoor Attacks via LLM Agents
  7. 2025CTRAP: Embedding Collapse Trap to Safeguard Large Language Models from Harmful Fine-Tuning
  8. 2026The Model Plants the Trigger: Answer-Side Backdoor Attacks in Multi-Turn Large Language Models