paper-with-me

홈 › Papers

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

2025-05-17 · Ning Lu, Shengcai Liu, Jiahao Wu, WeiYu Chen, Zhirui Zhang, Yew-Soon Ong, Qi Wang, Ke Tang

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.

📄 PDF Abstract BibTeX arXiv:2505.12038

Code (1)

colinlu50/safedelta 공식 구현 pytorch

Similar Papers 제목 키워드 기반

DDOR: Delta Debugging for Explainable Overrefusal Testing and Repair

2026-06-02 · Qinyan Zhou, Peixin Zhang, Jun Sun, Haonan Zhang 외 arxiv

While safety alignment and guardrails help large language models (LLMs) avoid harmful outputs, they can also induce overrefusal, i.e., unwarranted rejection of benign queries that merely appear risky. We present DDOR (De…

Unforgotten Safety: Preserving Safety Alignment of Large Language Models with Continual Learning

2025-12-10 · Lama Alssum, Hani Itani, Hasan Abed Al Kader Hammoud, Philip Torr 외 arxiv

The safety alignment of large language models (LLMs) is becoming increasingly important with their democratization. In this paper, we study the safety degradation that comes with adapting LLMs to new tasks. We attribute …

Continual Learning

Understanding and Preserving Safety in Fine-Tuned LLMs

2026-01-15 · Jiawen Zhang, Yangfan Hu, Kejia Chen, Lipeng He 외 arxiv

Fine-tuning is an essential and pervasive functionality for applying large language models (LLMs) to downstream tasks. However, it has the potential to substantially degrade safety alignment, e.g., by greatly increasing …

SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Merging

2025-03-21 · Aladin Djuhera, Swanand Ravindra Kadhe, Farhan Ahmed, Syed Zawad 외

Fine-tuning large language models (LLMs) on downstream tasks can inadvertently erode their safety alignment, even for benign fine-tuning datasets. We address this challenge by proposing SafeMERGE, a post-fine-tuning fram…

GSM8KSafety Alignment

Fundamental Limits of Black-Box Safety Evaluation: Information-Theoretic and Computational Barriers from Latent Context Conditioning

2026-02-19 · Vishal Srivastava arxiv

Black-box safety evaluation of AI systems assumes model behavior on test distributions reliably predicts deployment performance. We formalize and challenge this assumption through latent context-conditioned policies -- m…