Antibody: Strengthening Defense Against Harmful Fine-Tuning for Large Language Models via Attenuating Harmful Gradient Influence
On the map: LLM safety and security → Safety alignment, refusal and guardrails
Abstract (arXiv)
Fine-tuning-as-a-service introduces a threat to Large Language Models' safety when service providers fine-tune their models on poisoned user-submitted datasets, a process known as harmful fine-tuning attacks. In this work, we show that by regularizing the gradient contribution of harmful samples encountered during fine-tuning, we can effectively mitigate the impact of harmful fine-tuning attacks. To this end, we introduce Antibody, a defense strategy that first ensures robust safety alignment for the model before fine-tuning, and then applies a safety-preservation learning algorithm during fine-tuning. Specifically, in the alignment stage before fine-tuning, we propose optimizing the model to be in a flat loss region with respect to harmful samples, which makes the safety alignment more resilient to subsequent harmful fine-tuning. Then, in the fine-tuning stage, we design a fine-tuning algorithm that applies a weighting scheme to all samples in each training batch to inhibit the model from learning from harmful samples while encouraging learning from benign samples. Experimental results demonstrate that Antibody successfully mitigates harmful fine-tuning attacks while boosting fine-tuning performance on the user-submitted dataset.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 68 of its 81 references that are in the map. First posted on arXiv 28 Feb 2026.
Builds on
68 of 81 references.
Closest ancestors · 22
Same direction, newest first
- 2025A Guardrail for Safety Preservation: When Safety-Sensitive Subspace Meets Harmful-Resistant Null-Space16 Oct
- 2025LoX: Low-Rank Extrapolation Robustifies LLM Safety Against Fine-tuning18 Jun
- 2025Vulnerability-Aware Alignment: Mitigating Uneven Forgetting in Harmful Fine-Tuning4 Jun
- 2025Shape it Up! Restoring LLM Safety during Finetuning22 May
- 2025Secure LLM Fine-Tuning via Safety-Aware Probing22 May
- 2025CTRAP: Embedding Collapse Trap to Safeguard Large Language Models from Harmful Fine-Tuning22 May
- 2025Self-Destructive Language Model18 May
- 2025Benign Samples Matter! Fine-tuning On Outlier Benign Samples Severely Breaks Safety11 May
- 2025Virus: Harmful Fine-tuning Attack for Large Language Models Bypassing Guardrail Moderation29 Jan
- 2025SaLoRA: Safety-Alignment Preserved Low-Rank Adaptation3 Jan
- 2024Targeted Vaccine: Safety Alignment for Large Language Models against Harmful Fine-Tuning via Layer-wise Perturbation13 Oct
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Survey26 Sep
10 more
- 2024Antidote: Post-fine-tuning Safety Alignment for Large Language Models against Harmful Fine-tuning18 Aug
- 2024Do as I do (Safely): Mitigating Task-Specific Fine-tuning Risks in Large Language Models12 Jun
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deep10 Jun
- 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attack28 May
- 2024Navigating the Safety Landscape: Measuring Risks in Finetuning Large Language Models27 May
- 2024Robustifying Safety-Aligned Large Language Models through Clean Data Curation24 May
- 2024Representation Noising: A Defence Mechanism Against Harmful Finetuning23 May
- 2024A safety realignment framework via subspace-oriented model fusion for large language models15 May
- 2024Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications7 Feb
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!5 Oct
Other references · 46
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2024Qwen2 Technical Reportcited by 2,120
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 860
- 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 387
- 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 297
34 more
- 2024Safety Fine-Tuning at (Almost) No Cost: A Baseline for Vision Large Language Modelscited by 167
- 2024Tamper-Resistant Safeguards for Open-Weight LLMscited by 138
- 2024Safety Layers in Aligned Large Language Models: The Key to LLM Securitycited by 134
- 2024Safe LoRA: the Silver Lining of Reducing Safety Risks when Fine-tuning Large Language Modelscited by 125
- 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 115
- 2023Fine-tuning can cripple your foundation model; preserving features may be the solutioncited by 96
- 2024Keeping LLMs Aligned After Fine-tuning: The Crucial Role of Prompt Templatescited by 96
- 2024Learning Dynamics of LLM Finetuningcited by 95
- 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbationcited by 92
- 2024Defending Against Unforeseen Failure Modes with Latent Adversarial Trainingcited by 88
- 2024SEAL: Safety-enhanced Aligned LLM Fine-tuning via Bilevel Data Selectioncited by 64
- 2025Your Agent May Misevolve: Emergent Risks in Self-evolving LLM Agentscited by 62
- 2024On Evaluating the Durability of Safeguards for Open-Weight LLMscited by 52
- 2025Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMscited by 42
- 2024Scaling Trends for Data Poisoning in LLMscited by 30
- 2024Locking Down the Finetuned LLMs Safetycited by 22
- 2025Beware of Your Po! Measuring and Mitigating AI Safety Risks in Role-Play Fine-Tuning of LLMscited by 22
- 2025Explicit Eigenvalue Regularization Improves Sharpness-Aware Minimizationcited by 21
- 2025Panacea: Mitigating Harmful Fine-tuning for Large Language Models via Post-fine-tuning Perturbationcited by 20
- 2025AsFT: Anchoring Safety During LLM Fine-Tuning Within Narrow Safety Basincited by 19
- 2025Estimating Worst-Case Frontier Risks of Open-Weight LLMscited by 19
- 2025Safe Delta: Consistently Preserving Safety when Fine-Tuning LLMs on Diverse Datasetscited by 18
- 2025Fundamental Safety-Capability Trade-offs in Fine-tuning Large Language Modelscited by 17
- 2025Adaptive Defense against Harmful Fine-Tuning for Large Language Models via Bayesian Data Schedulercited by 12
- 2023Flat Seeking Bayesian Neural Networkscited by 10
- 2025Towards Resilient Safety-driven Unlearning for Diffusion Models against Downstream Fine-tuningcited by 9
- 2024Toward Secure Tuning: Mitigating Security Risks from Instruction Fine-Tuningcited by 8
- 2025Defending MoE LLMs against Harmful Fine-Tuning via Safety Routing Alignmentcited by 8
- 2023Optimal Transport Model Distributional Robustnesscited by 5
- 2025Sharpness-Aware Data Generation for Zero-shot Quantizationcited by 5
- 2026Eliciting Harmful Capabilities by Fine-Tuning On Safeguarded Outputscited by 5
- 2024Unleashing the Unseen: Harnessing Benign Datasets for Jailbreaking Large Language Modelscited by 4
- 2025Detecting Adversarial Fine-tuning with Auditing Agentscited by 3
- 2025Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noisecited by 2
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026A Few Steps Further: Why Defenses Against Malicious Finetuning Erode Under Continued Trainingcited by 2
- 2026Open-Weight LLM Fine-Tuning Defenses are Susceptible to Simple Attackscited by 1
- 2026Locking Pretrained Weights via Deep Low-Rank Residual Distillationcited by 0
- 2026Gradient Immunity: Null-Space Resistance to Malicious Fine-Tuningcited by 0
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMscited by 0
- 2026Beyond Average Safety: Chance-Constrained LLM Fine-tuningcited by 0
- 2026Beyond Average Safety: Chance-Constrained LLM Fine-tuning24 Sep 2026
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMs26 Aug 2026
- 2026Gradient Immunity: Null-Space Resistance to Malicious Fine-Tuning5 Aug 2026
- 2026Open-Weight LLM Fine-Tuning Defenses are Susceptible to Simple Attacks26 May 2026
- 2026A Few Steps Further: Why Defenses Against Malicious Finetuning Erode Under Continued Training14 May 2026
- 2026Locking Pretrained Weights via Deep Low-Rank Residual Distillation11 May 2026
Similar, not cited
Close in wording, no citation either way
- 2025Gradient Surgery for Safe LLM Fine-Tuning
- 2026Understanding and Preserving Safety in Fine-Tuned LLMs
- 2025Fine-Tuning Lowers Safety and Disrupts Evaluation Consistency
- 2026Safety Anchor: Defending Harmful Fine-tuning via Geometric Bottlenecks
- 2025Rethinking Safety in LLM Fine-tuning: An Optimization Perspective
- 2025SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Merging
- 2026Safer Content or Firmer Refusals? A Hybrid Perturbation Defense for Alignment under Harmful Fine-tuning
- 2025Safety-Aligned Weights Are Not Enough: Refusal-Teacher-Guided Finetuning Enhances Safety and Downstream Performance under Harmful Finetuning Attacks