mlsanityData to 14 Oct 2026

Safe Delta: Consistently Preserving Safety when Fine-Tuning LLMs on Diverse Datasets

arXiv 2505.12038 ↗First posted 17 May 2025cs.LG cs.AI cs.CRcited by 18

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have shown great potential as general-purpose AI assistants across various domains. To fully leverage this potential in specific applications, many companies provide fine-tuning API services, enabling users to upload their own data for LLM customization. However, fine-tuning services introduce a new safety threat: user-uploaded data, whether harmful or benign, can break the model's alignment, leading to unsafe outputs. Moreover, existing defense methods struggle to address the diversity of fine-tuning datasets (e.g., varying sizes, tasks), often sacrificing utility for safety or vice versa. To address this issue, we propose Safe Delta, a safety-aware post-training defense method that adjusts the delta parameters (i.e., the parameter change before and after fine-tuning). Specifically, Safe Delta estimates the safety degradation, selects delta parameters to maximize utility while limiting overall safety loss, and applies a safety compensation vector to mitigate residual safety loss. Through extensive experiments on four diverse datasets with varying settings, our approach consistently preserves safety while ensuring that the utility gain from benign datasets remains unaffected.

Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Builds on 57 of its 73 references that are in the map. First posted on arXiv 17 May 2025.

Builds on

57 of 73 references.

References · 57

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2024The Llama 3 Herd of Modelscited by 14,715
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  6. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  7. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  8. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  9. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  10. 2013Intriguing properties of neural networkscited by 5,155
  11. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  12. 2017Axiomatic Attribution for Deep Networkscited by 3,384
38 more
  1. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  2. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
  3. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
  4. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
  5. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
  6. 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,121
  7. 2021A General Language Assistant as a Laboratory for Alignmentcited by 1,055
  8. 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 860
  9. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 785
  10. 2023Instruction Tuning with GPT-4cited by 686
  11. 2023Safe RLHF: Safe Reinforcement Learning from Human Feedbackcited by 656
  12. 2019SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarizationcited by 535
  13. 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 498
  14. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 489
  15. 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 451
  16. 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Ciphercited by 423
  17. 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 387
  18. 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 297
  19. 2024OR-Bench: An Over-Refusal Benchmark for Large Language Modelscited by 244
  20. 2023Removing RLHF Protections in GPT-4 via Fine-Tuningcited by 171
  21. 2024Safe LoRA: the Silver Lining of Reducing Safety Risks when Fine-tuning Large Language Modelscited by 125
  22. 2024Eyes Closed, Safety On: Protecting Multimodal LLMs via Image-to-Text Transformationcited by 124
  23. 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 115
  24. 2024Language Models are Homer Simpson! Safety Re-Alignment of Fine-tuned Language Models through Task Arithmeticcited by 112
  25. 2023Mixture of Cluster-conditional LoRA Experts for Vision-language Instruction Tuningcited by 106
  26. 2024Representation Noising: A Defence Mechanism Against Harmful Finetuningcited by 96
  27. 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 92
  28. 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbationcited by 92
  29. 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 90
  30. 2024Antidote: Post-fine-tuning Safety Alignment for Large Language Models against Harmful Fine-tuningcited by 72
  31. 2024Model Tailor: Mitigating Catastrophic Forgetting in Multi-modal Large Language Modelscited by 54
  32. 2023Large Language Models can be Guided to Evade AI-Generated Text Detectioncited by 44
  33. 2024NLSR: Neuron-Level Safety Realignment of Large Language Models Against Harmful Fine-Tuningcited by 37
  34. 2024KICGPT: Large Language Model with Knowledge in Context for Knowledge Graph Completioncited by 36
  35. 2024GITA: Graph to Visual and Textual Integration for Vision-Language Graph Reasoningcited by 33
  36. 2025Gradient-Based Multi-Objective Deep Learning: Algorithms, Theories, Applications, and Beyondcited by 18
  37. 2021Efficient Combinatorial Optimization for Word-level Adversarial Textual Attackcited by 17
  38. 2022Leveraging per Image-Token Consistency for Vision-Language Pre-trainingcited by 9

50 most cited of 57 All 57 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 4; 2026: 14.

18 papers.

Sort:

By area:

  1. 2025Why LLM Safety Guardrails Collapse After Fine-tuning: A Similarity Analysis Between Alignment and Fine-tuning Datasetscited by 20
  2. 2026Policy and World Modeling Co-Training for Language Agentscited by 15
  3. 2025Gradient Surgery for Safe LLM Fine-Tuningcited by 11
  4. 2025Defending MoE LLMs against Harmful Fine-Tuning via Safety Routing Alignmentcited by 8
  5. 2026Antibody: Strengthening Defense Against Harmful Fine-Tuning for Large Language Models via Attenuating Harmful Gradient Influencecited by 6
  6. 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sinkcited by 4
  7. 2026Continual Safety Alignment via Gradient-Based Sample Selectioncited by 4
  8. 2025Harmonious Parameter Adaptation in Continual Visual Instruction Tuning for Safety-Aligned MLLMscited by 3
  9. 2026Token-level Data Selection for Safe LLM Fine-tuningcited by 3
  10. 2026Safeguarding LLM Fine-tuning via Push-Pull Distributional Alignmentcited by 2
  11. 2026Why Agents Compromise Safety Under Pressurecited by 2
  12. 2026Cooperative Coevolution for Resource-Constrained Agentic LLM Post-Trainingcited by 1
6 more
  1. 2026Jailbreak to Protect: Buffering and Reinforcing via Temporary Jailbreaking for Safe Fine-Tuning in Large Language Modelscited by 0
  2. 2026CSULoRA: Closest Safe Update Low-Rank Adaptationcited by 0
  3. 2026Dialectics of Alignment: Harnessing Unsafe Knowledge for Dynamic Safety Routingcited by 0
  4. 2026TRACE: Trajectory-Based Safety Patch Learning for LLM Post-Training Realignmentcited by 0
  5. 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMscited by 0
  6. 2026From Acoustic Sensing to Physical Actions: A Comprehensive Survey of Security Risks in Edge-Deployed Audio LLM-Based Agentscited by 0