Fine-mixing: Mitigating Backdoors in Fine-tuned Language Models
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Deep Neural Networks (DNNs) are known to be vulnerable to backdoor attacks. In Natural Language Processing (NLP), DNNs are often backdoored during the fine-tuning process of a large-scale Pre-trained Language Model (PLM) with poisoned samples. Although the clean weights of PLMs are readily available, existing methods have ignored this information in defending NLP models against backdoor attacks. In this work, we take the first step to exploit the pre-trained (unfine-tuned) weights to mitigate backdoors in fine-tuned language models. Specifically, we leverage the clean pre-trained weights via two complementary techniques: (1) a two-step Fine-mixing technique, which first mixes the backdoored weights (fine-tuned on poisoned data) with the pre-trained weights, then fine-tunes the mixed weights on a small subset of clean data; (2) an Embedding Purification (E-PUR) technique, which mitigates potential backdoors existing in the word embeddings. We compare Fine-mixing with typical backdoor mitigation methods on three single-sentence sentiment classification tasks and two sentence-pair classification tasks and show that it outperforms the baselines by a considerable margin in all scenarios. We also show that our E-PUR method can benefit existing mitigation methods. Our work establishes a simple but strong baseline defense for secure fine-tuned NLP models against backdoor attacks.
Key facts. Cited by 50 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 41 of its 58 references that are in the map. First posted on arXiv 18 Oct 2022.
Builds on
41 of 58 references.
Closest ancestors · 3
Same direction, newest first
- 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Models15 Oct
- 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 · 38
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2018Deep contextualized word representationscited by 2,285
- 2016WaveNet: A Generative Model for Raw Audiocited by 1,710
- 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
- 2015Generating Sentences from a Continuous Spacecited by 607
26 more
- 2018Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networkscited by 550
- 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 437
- 2018Detecting Backdoor Attacks on Deep Neural Networks by Activation Clusteringcited by 429
- 2020Reflection Backdoor: A Natural Backdoor Attack on Deep Neural Networkscited by 341
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2021Neural Attention Distillation: Erasing Backdoor Triggers from Deep Neural Networkscited by 313
- 2017Train longer, generalize better: closing the generalization gap in large batch training of neural networkscited by 278
- 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
- 2017Towards Poisoning of Deep Learning Algorithms with Back-gradient Optimizationcited by 188
- 2020Clean-Label Backdoor Attacks on Video Recognition Modelscited by 162
- 2019Mixout: Effective Regularization to Finetune Large-scale Pretrained Language Modelscited by 141
- 2020Bridging Mode Connectivity in Loss Landscapes and Adversarial Robustnesscited by 130
- 2021Backdoor Attacks on Pre-trained Models by Layerwise Weight Poisoningcited by 103
- 2022Narcissus: A Practical Clean-Label Backdoor Attack with Limited Informationcited by 102
- 2020Mitigating backdoor attacks in LSTM-based Text Classification Systems by Backdoor Keyword Identificationcited by 80
- 2018Backdooring Convolutional Neural Networks via Targeted Weight Perturbationscited by 66
- 2022Few-Shot Backdoor Attacks on Visual Object Trackingcited by 35
- 2020One-pixel Signature: Characterizing CNN Models for Backdoor Detectioncited by 34
- 2020Exploring the Vulnerability of Deep Neural Networks: A Study of Parameter Corruptioncited by 26
- 2021How to Inject Backdoors with Better Consistency: Logit Anchoring on Clean Datacited by 22
- 2020Scalable Backdoor Detection in Neural Networkscited by 15
- 2020Cassandra: Detecting Trojaned Networks from Adversarial Perturbationscited by 15
- 2022Backdoor Attacks on Crowd Countingcited by 9
- 2020Noise-Response Analysis of Deep Neural Networks Quantifies Robustness and Fingerprints Structural Malwarecited by 7
Built on by
Citing papers per year: 2023: 8; 2024: 19; 2025: 13; 2026: 10.
50 papers.
Sort:
By area:
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 520
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 179
- 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agentscited by 135
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2024BEEAR: Embedding-based Adversarial Removal of Safety Backdoors in Instruction-tuned Language Modelscited by 50
- 2024Arondight: Red Teaming Large Vision Language Models with Auto-generated Multi-modal Jailbreak Promptscited by 39
- 2023A Pathway Towards Responsible AI Generated Contentcited by 38
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2024PoisonBench: Assessing Large Language Model Vulnerability to Data Poisoningcited by 31
- 2024CROW: Eliminating Backdoors from Large Language Models via Internal Consistency Regularizationcited by 29
- 2024Navigating LLM Ethics: Advancements, Challenges, and Future Directionscited by 28
38 more
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoEcited by 26
- 2024Unlearning Backdoor Attacks for LLMs with Weak-to-Strong Knowledge Distillationcited by 21
- 2023Test-time Backdoor Mitigation for Black-Box Large Language Models with Defensive Demonstrationscited by 20
- 2024BadActs: A Universal Backdoor Defense in the Activation Spacecited by 19
- 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuningcited by 16
- 2023On the Trustworthiness Landscape of State-of-the-art Generative Models: A Survey and Outlookcited by 15
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challengescited by 14
- 2024Simulate and Eliminate: Revoke Backdoors for Generative Large Language Modelscited by 11
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Surveycited by 10
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasurescited by 8
- 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
- 2023Diffusion Theory as a Scalpel: Detecting and Purifying Poisonous Dimensions in Pre-trained Language Models Caused by Backdoor or Biascited by 7
- 2025Hidden in the Noise: Unveiling Backdoors in Audio LLMs Alignment through Latent Acoustic Pattern Triggerscited by 7
- 2024Acquiring Clean Language Models from Backdoor Poisoned Datasets by Downscaling Frequency Spacecited by 6
- 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Referencecited by 6
- 2025Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!cited by 5
- 2025Backdoor Collapse: Eliminating Unknown Threats via Known Backdoor Aggregation in Language Modelscited by 5
- 2024Neutralizing Backdoors through Information Conflicts for Large Language Modelscited by 4
- 2025Pruning Strategies for Backdoor Defense in LLMscited by 4
- 2024Unelicitable Backdoors in Language Models via Cryptographic Transformer Circuitscited by 3
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Modelscited by 3
- 2024New Emerged Security and Privacy of Pre-trained Model: a Survey and Outlookcited by 2
- 2025NLP Security and Ethics, in the Wildcited by 2
- 2025DUP: Detection-guided Unlearning for Backdoor Purification in Language Modelscited by 2
- 2026Merging Triggers, Breaking Backdoors: Defensive Poisoning for Instruction-Tuned Language Modelscited by 2
- 2026Backdooring Bias in Large Language Modelscited by 1
- 2026Dummy Backdoor as a Defense: Removing Unknown Backdoors via Shared Internal Mechanisms for Generative LLMscited by 1
- 2023SenTest: Evaluating Robustness of Sentence Encoderscited by 0
- 2024Cut the Deadwood Out: Backdoor Purification via Guided Module Substitutioncited by 0
- 2025Defending against Backdoor Attacks via Module Switchingcited by 0
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniquescited by 0
- 2025Lethe: Purifying Backdoored Large Language Models with Knowledge Dilutioncited by 0
- 2026Incentive-Aware AI Safety via Strategic Resource Allocation: A Stackelberg Security Games Perspectivecited by 0
- 2026Be Kind, Rewrite: Benign Projections via Rewriting Defend Against LLM Data Poisoning Attackscited by 0
- 2026LoRAScan: Detecting Backdoor Prompts in Low-Rank Adapters for Large Language Models via Down-Projection Activation Spikescited by 0
- 2026Backdoor Decontamination Dynamics in LLM Agentscited by 0
- 2026Backdoor Containment via Expert Quarantine and Shutdown in LLMscited by 0
- 2026Backdoor Purification for LoRA-Tuned LLMs via Null-Space Projectioncited by 0
- 2026Backdoor Purification for LoRA-Tuned LLMs via Null-Space Projection30 Sep 2026
- 2026Backdoor Containment via Expert Quarantine and Shutdown in LLMs30 Sep 2026
- 2026Backdoor Decontamination Dynamics in LLM Agents11 Aug 2026
- 2026LoRAScan: Detecting Backdoor Prompts in Low-Rank Adapters for Large Language Models via Down-Projection Activation Spikes7 Aug 2026
- 2026Dummy Backdoor as a Defense: Removing Unknown Backdoors via Shared Internal Mechanisms for Generative LLMs10 Jun 2026
- 2026Be Kind, Rewrite: Benign Projections via Rewriting Defend Against LLM Data Poisoning Attacks18 May 2026
- 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Reference13 Mar 2026
- 2026Backdooring Bias in Large Language Models13 Feb 2026
- 2026Incentive-Aware AI Safety via Strategic Resource Allocation: A Stackelberg Security Games Perspective6 Feb 2026
- 2026Merging Triggers, Breaking Backdoors: Defensive Poisoning for Instruction-Tuned Language Models7 Jan 2026
- 2025Backdoor Collapse: Eliminating Unknown Threats via Known Backdoor Aggregation in Language Models11 Oct 2025
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models5 Oct 2025
38 more
- 2025Lethe: Purifying Backdoored Large Language Models with Knowledge Dilution28 Aug 2025
- 2025Pruning Strategies for Backdoor Defense in LLMs27 Aug 2025
- 2025Hidden in the Noise: Unveiling Backdoors in Audio LLMs Alignment through Latent Acoustic Pattern Triggers4 Aug 2025
- 2025DUP: Detection-guided Unlearning for Backdoor Purification in Language Models3 Aug 2025
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniques18 Jul 2025
- 2025A Systematic Review of Poisoning Attacks Against Large Language Models6 Jun 2025
- 2025Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!21 May 2025
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasures2 May 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025NLP Security and Ethics, in the Wild9 Apr 2025
- 2025Defending against Backdoor Attacks via Module Switching8 Apr 2025
- 2024Cut the Deadwood Out: Backdoor Purification via Guided Module Substitution29 Dec 2024
- 2024Neutralizing Backdoors through Information Conflicts for Large Language Models27 Nov 2024
- 2024CROW: Eliminating Backdoors from Large Language Models via Internal Consistency Regularization18 Nov 2024
- 2024New Emerged Security and Privacy of Pre-trained Model: a Survey and Outlook12 Nov 2024
- 2024Unlearning Backdoor Attacks for LLMs with Weak-to-Strong Knowledge Distillation18 Oct 2024
- 2024PoisonBench: Assessing Large Language Model Vulnerability to Data Poisoning11 Oct 2024
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challenges30 Sep 2024
- 2024Arondight: Red Teaming Large Vision Language Models with Auto-generated Multi-modal Jailbreak Prompts21 Jul 2024
- 2024BEEAR: Embedding-based Adversarial Removal of Safety Backdoors in Instruction-tuned Language Models24 Jun 2024
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models10 Jun 2024
- 2024Unelicitable Backdoors in Language Models via Cryptographic Transformer Circuits3 Jun 2024
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Survey1 Jun 2024
- 2024BadActs: A Universal Backdoor Defense in the Activation Space18 May 2024
- 2024Navigating LLM Ethics: Advancements, Challenges, and Future Directions14 May 2024
- 2024Simulate and Eliminate: Revoke Backdoors for Generative Large Language Models13 May 2024
- 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuning19 Feb 2024
- 2024Acquiring Clean Language Models from Backdoor Poisoned Datasets by Downscaling Frequency Space19 Feb 2024
- 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agents17 Feb 2024
- 2024Security and Privacy Challenges of Large Language Models: A Survey30 Jan 2024
- 2023SenTest: Evaluating Robustness of Sentence Encoders29 Nov 2023
- 2023Test-time Backdoor Mitigation for Black-Box Large Language Models with Defensive Demonstrations16 Nov 2023
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Prompts19 Sep 2023
- 2023On the Trustworthiness Landscape of State-of-the-art Generative Models: A Survey and Outlook31 Jul 2023
- 2023Prompt Injection attack against LLM-integrated Applications8 Jun 2023
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoE24 May 2023
- 2023Diffusion Theory as a Scalpel: Detecting and Purifying Poisonous Dimensions in Pre-trained Language Models Caused by Backdoor or Bias8 May 2023
- 2023A Pathway Towards Responsible AI Generated Content2 Mar 2023
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 520
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 179
- 2024BEEAR: Embedding-based Adversarial Removal of Safety Backdoors in Instruction-tuned Language Modelscited by 50
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2024PoisonBench: Assessing Large Language Model Vulnerability to Data Poisoningcited by 31
- 2024CROW: Eliminating Backdoors from Large Language Models via Internal Consistency Regularizationcited by 29
- 2024Unlearning Backdoor Attacks for LLMs with Weak-to-Strong Knowledge Distillationcited by 21
- 2023Test-time Backdoor Mitigation for Black-Box Large Language Models with Defensive Demonstrationscited by 20
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challengescited by 14
- 2024Simulate and Eliminate: Revoke Backdoors for Generative Large Language Modelscited by 11
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Surveycited by 10
12 most cited of 31 All 31 (JSON)
- 2026Backdoor Purification for LoRA-Tuned LLMs via Null-Space Projection30 Sep 2026
- 2026Backdoor Containment via Expert Quarantine and Shutdown in LLMs30 Sep 2026
- 2026LoRAScan: Detecting Backdoor Prompts in Low-Rank Adapters for Large Language Models via Down-Projection Activation Spikes7 Aug 2026
- 2026Dummy Backdoor as a Defense: Removing Unknown Backdoors via Shared Internal Mechanisms for Generative LLMs10 Jun 2026
- 2026Be Kind, Rewrite: Benign Projections via Rewriting Defend Against LLM Data Poisoning Attacks18 May 2026
- 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Reference13 Mar 2026
- 2026Backdooring Bias in Large Language Models13 Feb 2026
- 2026Merging Triggers, Breaking Backdoors: Defensive Poisoning for Instruction-Tuned Language Models7 Jan 2026
- 2025Backdoor Collapse: Eliminating Unknown Threats via Known Backdoor Aggregation in Language Models11 Oct 2025
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models5 Oct 2025
- 2025Lethe: Purifying Backdoored Large Language Models with Knowledge Dilution28 Aug 2025
- 2025Pruning Strategies for Backdoor Defense in LLMs27 Aug 2025
12 newest of 31 All 31 (JSON)
- 2023A Pathway Towards Responsible AI Generated Contentcited by 38
- 2024Navigating LLM Ethics: Advancements, Challenges, and Future Directionscited by 28
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoEcited by 26
- 2024BadActs: A Universal Backdoor Defense in the Activation Spacecited by 19
- 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuningcited by 16
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasurescited by 8
- 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
- 2024New Emerged Security and Privacy of Pre-trained Model: a Survey and Outlookcited by 2
- 2025NLP Security and Ethics, in the Wildcited by 2
- 2023SenTest: Evaluating Robustness of Sentence Encoderscited by 0
- 2024Cut the Deadwood Out: Backdoor Purification via Guided Module Substitutioncited by 0
- 2025Defending against Backdoor Attacks via Module Switchingcited by 0
12 most cited of 14 All 14 (JSON)
- 2026Incentive-Aware AI Safety via Strategic Resource Allocation: A Stackelberg Security Games Perspective6 Feb 2026
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniques18 Jul 2025
- 2025A Systematic Review of Poisoning Attacks Against Large Language Models6 Jun 2025
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasures2 May 2025
- 2025NLP Security and Ethics, in the Wild9 Apr 2025
- 2025Defending against Backdoor Attacks via Module Switching8 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
- 2024BadActs: A Universal Backdoor Defense in the Activation Space18 May 2024
- 2024Navigating LLM Ethics: Advancements, Challenges, and Future Directions14 May 2024
- 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuning19 Feb 2024
- 2023SenTest: Evaluating Robustness of Sentence Encoders29 Nov 2023
12 newest of 14 All 14 (JSON)