mlsanityData to 7 Oct 2026

Mitigating Fine-tuning based Jailbreak Attack with Backdoor Enhanced Safety Alignment

arXiv 2402.14968 ↗First posted 22 Feb 2024cs.CR cs.CLcited by 31

Not on the map. Why?

Cited by 21 in LLM safety and security, but placed by its own abstract, which didn’t fit.

Abstract (arXiv)

Despite the general capabilities of Large Language Models (LLM), these models still request fine-tuning or adaptation with customized data when meeting specific business demands. However, this process inevitably introduces new threats, particularly against the Fine-tuning based Jailbreak Attack (FJAttack) under the setting of Language-Model-as-a-Service (LMaaS), where the model's safety has been significantly compromised by fine-tuning users' uploaded examples contain just a few harmful examples. Though potential defenses have been proposed that the service providers can integrate safety examples into the fine-tuning dataset to reduce safety issues, such approaches require incorporating a substantial amount of data, making it inefficient. To effectively defend against the FJAttack with limited safety examples under LMaaS, we propose the Backdoor Enhanced Safety Alignment method inspired by an analogy with the concept of backdoor attacks. In particular, service providers will construct prefixed safety examples with a secret prompt, acting as a "backdoor trigger". By integrating prefixed safety examples into the fine-tuning dataset, the subsequent fine-tuning process effectively acts as the "backdoor attack", establishing a strong correlation between the secret prompt and safety generations. Consequently, safe responses are ensured once service providers prepend this secret prompt ahead of any user input during inference. Our comprehensive experiments demonstrate that through the Backdoor Enhanced Safety Alignment with adding as few as 11 prefixed safety examples, the maliciously fine-tuned LLMs will achieve similar safety performance as the original aligned models without harming the benign performance. Furthermore, we also present the effectiveness of our method in a more practical setting where the fine-tuning data consists of both FJAttack examples and the fine-tuning task data.

Key facts. Cited by 31 papers in the map (data through 7 Oct 2026). Builds on 34 of its 44 references that are in the map. First posted on arXiv 22 Feb 2024.

Builds on

34 of 44 references.

References · 34

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  6. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  7. 2023Visual Instruction Tuningcited by 7,792
  8. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  9. 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
  10. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  11. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  12. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
22 more
  1. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  2. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  3. 2023Video-LLaMA: An Instruction-tuned Audio-Visual Language Model for Video Understandingcited by 1,461
  4. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
  5. 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
  6. 2023LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attentioncited by 776
  7. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
  8. 2023Instruction Tuning for Large Language Models: A Surveycited by 617
  9. 2019SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarizationcited by 530
  10. 2020Backdoor Learning: A Surveycited by 412
  11. 2020Reflection Backdoor: A Natural Backdoor Attack on Deep Neural Networkscited by 341
  12. 2023AgentTuning: Enabling Generalized Agent Abilities for LLMscited by 319
  13. 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 284
  14. 2019A backdoor attack against LSTM-based text classification systemscited by 214
  15. 2023LoRA Fine-tuning Efficiently Undoes Safety Training in Llama 2-Chat 70Bcited by 183
  16. 2023Removing RLHF Protections in GPT-4 via Fine-Tuningcited by 165
  17. 2023Universal Jailbreak Backdoors from Poisoned Human Feedbackcited by 120
  18. 2022Narcissus: A Practical Clean-Label Backdoor Attack with Limited Informationcited by 102
  19. 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Modelscited by 100
  20. 2021Sleeper Agent: Scalable Hidden Trigger Backdoors for Neural Networks Trained from Scratchcited by 98
  21. 2021Be Careful about Poisoned Word Embeddings: Exploring the Vulnerability of the Embedding Layers in NLP Modelscited by 96
  22. 2023Backdoor Attacks for In-Context Learning with Language Modelscited by 92

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 7; 2025: 16; 2026: 8.

31 papers.

Sort:

By area:

  1. 2024Safe LoRA: the Silver Lining of Reducing Safety Risks when Fine-tuning Large Language Modelscited by 122
  2. 2024Process Reward Model with Q-Value Rankingscited by 78
  3. 2025Foot-In-The-Door: A Multi-turn Jailbreak for LLMscited by 50
  4. 2024No Two Devils Alike: Unveiling Distinct Mechanisms of Fine-tuning Attackscited by 28
  5. 2024JailbreakEval: An Integrated Toolkit for Evaluating Jailbreak Attempts Against Large Language Modelscited by 28
  6. 2025SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Mergingcited by 25
  7. 2024Adversarial Tuning: Defending Against Jailbreak Attacks for LLMscited by 23
  8. 2025Why LLM Safety Guardrails Collapse After Fine-tuning: A Similarity Analysis Between Alignment and Fine-tuning Datasetscited by 18
  9. 2025LoX: Low-Rank Extrapolation Robustifies LLM Safety Against Fine-tuningcited by 12
  10. 2025Adaptive Defense against Harmful Fine-Tuning for Large Language Models via Bayesian Data Schedulercited by 12
  11. 2025Fundamental Limitations in Pointwise Defences of LLM Finetuning APIscited by 10
  12. 2025Towards Safeguarding LLM Fine-tuning APIs against Cipher Attackscited by 10
19 more
  1. 2024On the Learnability of Out-of-distribution Detectioncited by 8
  2. 2025Why Not Act on What You Know? Unleashing Safety Potential of LLMs via Self-Aware Guard Enhancementcited by 8
  3. 2025What Really Matters in Many-Shot Attacks? An Empirical Study of Long-Context Vulnerabilities in LLMscited by 7
  4. 2025Safety Subspaces are Not Linearly Distinct: A Fine-Tuning Case Studycited by 6
  5. 2024AdvBDGen: Adversarially Fortified Prompt-Specific Fuzzy Backdoor Generator Against LLM Alignmentcited by 5
  6. 2025No, of Course I Can! Deeper Fine-Tuning Attacks That Bypass Token-Level Safety Mechanismscited by 5
  7. 2025Layer-Aware Task Arithmetic: Disentangling Task-Specific and Instruction-Following Knowledgecited by 5
  8. 2025SC-LoRA: Balancing Efficient Fine-tuning and Knowledge Preservation via Subspace-Constrained LoRAcited by 4
  9. 2026Few Tokens, Big Leverage: Preserving Safety Alignment by Constraining Safety Tokens during Fine-tuningcited by 4
  10. 2025Detecting Adversarial Fine-tuning with Auditing Agentscited by 3
  11. 2025Attention-Aware GNN-based Input Defense against Multi-Turn LLM Jailbreakcited by 2
  12. 2026Safeguarding LLM Fine-tuning via Push-Pull Distributional Alignmentcited by 2
  13. 2026TamperBench: Systematically Stress-Testing LLM Safety Under Fine-Tuning and Tamperingcited by 1
  14. 2026THRD: A Training-Free Multi-Turn Defense Framework for Jailbreak Attacks on Large Language Modelscited by 1
  15. 2026SafeGene: Reusable Adapters for Transferable Safety Alignmentcited by 1
  16. 2025Multilingual Collaborative Defense for Large Language Modelscited by 0
  17. 2026Can LLM Safety Be Ensured by Constraining Parameter Regions?cited by 0
  18. 2026Position: Retire the "Positive Backdoor" Label -- Secret Alignment Requires Strict and Systematic Evaluationcited by 0
  19. 2026HyperSafe: Inference-Time Safety Recovery for Fine-Tuned Language Modelscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Competition Report: Finding Universal Jailbreak Backdoors in Aligned LLMs
  2. 2025Attack via Overfitting: 10-shot Benign Fine-tuning to Jailbreak LLMs
  3. 2024Model-Editing-Based Jailbreak against Safety-aligned Large Language Models
  4. 2025Jailbreaking Attacks vs. Content Safety Filters: How Far Are We in the LLM Safety Arms Race?
  5. 2024PARDEN, Can You Repeat That? Defending against Jailbreaks via Repetition
  6. 2024Stealthy Jailbreak Attacks on Large Language Models via Benign Data Mirroring
  7. 2025Decoding One Safety Trigger Token for Balancing Safety and Usability in Large Language Models
  8. 2025TwinBreak: Jailbreaking LLM Security Alignments based on Twin Prompts