From Parameter Dynamics to Risk Scoring : Quantifying Sample-Level Safety Degradation in LLM Fine-tuning

📅 2026-05-06
📈 Citations: 0
Influential: 0
📄 PDF

career value

217K/year
📝 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 degradation. Specifically, SQSD computes continuous risk scores to samples by measuring their induced parameter updates' projection difference between danger and safety directions. Extensive experiments across multiple models and datasets demonstrate that SQSD effectively quantifies sample-level fine-tuning risks and exhibits strong transferability across model architectures, parameter scales, and parameter-efficient methods.
Problem

Research questions and friction points this paper is trying to address.

safety degradation
LLM fine-tuning
parameter dynamics
risk scoring
sample-level safety
Innovation

Methods, ideas, or system contributions that make the work stand out.

parameter dynamics
safety degradation
risk scoring
sample-level quantification
fine-tuning safety
X
Xiao Wang
School of Computer Science and Engineering, Northeastern University, Shenyang, China
Yifei Zhang
Yifei Zhang
Institute of Information Engineering, Chinese Academy of Sciences
Computer VisionUnsupervised Learning
Y
YongKang Liu
School of Computer and Communication Engineering, Northeastern University, Qinhuangdao, China
Xiaocui Yang
Xiaocui Yang
Lecturer, Northeastern University (China)
Multimodal Sentiment AnalysisData MiningMultimodal Large Language Models
Zihan Wang
Zihan Wang
Northeastern University (China)
Recommendation System
S
Shi Feng
School of Computer Science and Engineering, Northeastern University, Shenyang, China
D
Daling Wang
School of Computer Science and Engineering, Northeastern University, Shenyang, China