mlsanityData to 14 Oct 2026

Antibody: Strengthening Defense Against Harmful Fine-Tuning for Large Language Models via Attenuating Harmful Gradient Influence

arXiv 2603.00498 ↗First posted 28 Feb 2026cs.LGcited by 6

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

  1. 2025A Guardrail for Safety Preservation: When Safety-Sensitive Subspace Meets Harmful-Resistant Null-Space16 Oct
  2. 2025LoX: Low-Rank Extrapolation Robustifies LLM Safety Against Fine-tuning18 Jun
  3. 2025Vulnerability-Aware Alignment: Mitigating Uneven Forgetting in Harmful Fine-Tuning4 Jun
  4. 2025Shape it Up! Restoring LLM Safety during Finetuning22 May
  5. 2025Secure LLM Fine-Tuning via Safety-Aware Probing22 May
  6. 2025CTRAP: Embedding Collapse Trap to Safeguard Large Language Models from Harmful Fine-Tuning22 May
  7. 2025Self-Destructive Language Model18 May
  8. 2025Benign Samples Matter! Fine-tuning On Outlier Benign Samples Severely Breaks Safety11 May
  9. 2025Virus: Harmful Fine-tuning Attack for Large Language Models Bypassing Guardrail Moderation29 Jan
  10. 2025SaLoRA: Safety-Alignment Preserved Low-Rank Adaptation3 Jan
  11. 2024Targeted Vaccine: Safety Alignment for Large Language Models against Harmful Fine-Tuning via Layer-wise Perturbation13 Oct
  12. 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Survey26 Sep
10 more
  1. 2024Antidote: Post-fine-tuning Safety Alignment for Large Language Models against Harmful Fine-tuning18 Aug
  2. 2024Do as I do (Safely): Mitigating Task-Specific Fine-tuning Risks in Large Language Models12 Jun
  3. 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deep10 Jun
  4. 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attack28 May
  5. 2024Navigating the Safety Landscape: Measuring Risks in Finetuning Large Language Models27 May
  6. 2024Robustifying Safety-Aligned Large Language Models through Clean Data Curation24 May
  7. 2024Representation Noising: A Defence Mechanism Against Harmful Finetuning23 May
  8. 2024A safety realignment framework via subspace-oriented model fusion for large language models15 May
  9. 2024Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications7 Feb
  10. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!5 Oct

Other references · 46

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  4. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  5. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  6. 2024Qwen2 Technical Reportcited by 2,120
  7. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
  8. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
  9. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
  10. 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 860
  11. 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 387
  12. 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 297
34 more
  1. 2024Safety Fine-Tuning at (Almost) No Cost: A Baseline for Vision Large Language Modelscited by 167
  2. 2024Tamper-Resistant Safeguards for Open-Weight LLMscited by 138
  3. 2024Safety Layers in Aligned Large Language Models: The Key to LLM Securitycited by 134
  4. 2024Safe LoRA: the Silver Lining of Reducing Safety Risks when Fine-tuning Large Language Modelscited by 125
  5. 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 115
  6. 2023Fine-tuning can cripple your foundation model; preserving features may be the solutioncited by 96
  7. 2024Keeping LLMs Aligned After Fine-tuning: The Crucial Role of Prompt Templatescited by 96
  8. 2024Learning Dynamics of LLM Finetuningcited by 95
  9. 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbationcited by 92
  10. 2024Defending Against Unforeseen Failure Modes with Latent Adversarial Trainingcited by 88
  11. 2024SEAL: Safety-enhanced Aligned LLM Fine-tuning via Bilevel Data Selectioncited by 64
  12. 2025Your Agent May Misevolve: Emergent Risks in Self-evolving LLM Agentscited by 62
  13. 2024On Evaluating the Durability of Safeguards for Open-Weight LLMscited by 52
  14. 2025Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMscited by 42
  15. 2024Scaling Trends for Data Poisoning in LLMscited by 30
  16. 2024Locking Down the Finetuned LLMs Safetycited by 22
  17. 2025Beware of Your Po! Measuring and Mitigating AI Safety Risks in Role-Play Fine-Tuning of LLMscited by 22
  18. 2025Explicit Eigenvalue Regularization Improves Sharpness-Aware Minimizationcited by 21
  19. 2025Panacea: Mitigating Harmful Fine-tuning for Large Language Models via Post-fine-tuning Perturbationcited by 20
  20. 2025AsFT: Anchoring Safety During LLM Fine-Tuning Within Narrow Safety Basincited by 19
  21. 2025Estimating Worst-Case Frontier Risks of Open-Weight LLMscited by 19
  22. 2025Safe Delta: Consistently Preserving Safety when Fine-Tuning LLMs on Diverse Datasetscited by 18
  23. 2025Fundamental Safety-Capability Trade-offs in Fine-tuning Large Language Modelscited by 17
  24. 2025Adaptive Defense against Harmful Fine-Tuning for Large Language Models via Bayesian Data Schedulercited by 12
  25. 2023Flat Seeking Bayesian Neural Networkscited by 10
  26. 2025Towards Resilient Safety-driven Unlearning for Diffusion Models against Downstream Fine-tuningcited by 9
  27. 2024Toward Secure Tuning: Mitigating Security Risks from Instruction Fine-Tuningcited by 8
  28. 2025Defending MoE LLMs against Harmful Fine-Tuning via Safety Routing Alignmentcited by 8
  29. 2023Optimal Transport Model Distributional Robustnesscited by 5
  30. 2025Sharpness-Aware Data Generation for Zero-shot Quantizationcited by 5
  31. 2026Eliciting Harmful Capabilities by Fine-Tuning On Safeguarded Outputscited by 5
  32. 2024Unleashing the Unseen: Harnessing Benign Datasets for Jailbreaking Large Language Modelscited by 4
  33. 2025Detecting Adversarial Fine-tuning with Auditing Agentscited by 3
  34. 2025Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noisecited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Gradient Surgery for Safe LLM Fine-Tuning
  2. 2026Understanding and Preserving Safety in Fine-Tuned LLMs
  3. 2025Fine-Tuning Lowers Safety and Disrupts Evaluation Consistency
  4. 2026Safety Anchor: Defending Harmful Fine-tuning via Geometric Bottlenecks
  5. 2025Rethinking Safety in LLM Fine-tuning: An Optimization Perspective
  6. 2025SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Merging
  7. 2026Safer Content or Firmer Refusals? A Hybrid Perturbation Defense for Alignment under Harmful Fine-tuning
  8. 2025Safety-Aligned Weights Are Not Enough: Refusal-Teacher-Guided Finetuning Enhances Safety and Downstream Performance under Harmful Finetuning Attacks