TL;DR
This paper investigates how fine-tuning affects LLM safety by analyzing parameter dynamics, revealing that benign samples can drift parameters toward danger, and introduces SQSD to quantify individual sample risks.
Contribution
It uncovers the mechanism of safety degradation through parameter drift and proposes SQSD for sample-level risk quantification during fine-tuning.
Findings
SQSD effectively measures sample-level safety risks.
Benign samples can cause parameters to drift toward danger.
SQSD shows strong transferability across models and methods.
Abstract
Safety alignment of Large Language Models (LLMs) is extremely fragile, as fine-tuning on a small number of benign samples can erase safety behaviors learned from millions of preference examples. Existing studies attempt to explain this phenomenon by comparing parameters and hidden states before and after fine-tuning, but overlook their dynamic evolution during fine-tuning. In this paper, we uncover a critical mechanism underlying safety degradation by analyzing parameter dynamics, where benign fine-tuning causes parameters to cumulatively drift toward danger-aligned directions, progressively undermining the model's safety. This finding suggests that samples contributing more to this drift has greater fine-tuning risks. Based on this insight, we propose a method of Sample-Level Quantification of Safety Degradation (SQSD), which quantifies the influence of each training sample on safety…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
