atlas

Research map / Large language models / Instruction and fine-tuning

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

ICML 2025 · Large language models › Instruction and fine-tuning · approach: Fine-tuning generalization and delta compression · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Safe Delta, a post-fine-tuning defense that greedily selects delta parameters by utility-safety ratio under a safety-loss budget and adds an OBS-style safety compensation vector to preserve safety across diverse fine-tuning datasets.

Problem

Fine-tuning aligned LLMs via API, with harmful or benign-but-uncleaned data, degrades safety; existing defenses (data augmentation, weight modification) fail to preserve safety across datasets of varying size and task while retaining utility gains.

Approach

Estimate per-parameter safety degradation with an OBS/Hessian-based formula computed once on the original model and a safety dataset, select delta parameters greedily by utility-to-safety-cost ratio under a layer-wise budget, and add a closed-form compensation vector to offset residual safety loss on the unselected weights.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply Safe Delta rather than BEALlama2-7B-Chat fine-tuned on PureBad · PureBadASR (%): 8.79 -> 3.33Helped
apply Safe Delta rather than Safe LoRALlama2-7B-Chat fine-tuned on PureBad · PureBadMT-B: 6.05 -> 6.18Helped
apply Safe Delta rather than BEALlama2-7B-Chat fine-tuned on Identity Shift · Identity ShiftASR (%): 6.06 -> 0.91Helped
apply Safe Delta rather than SafeInstrLlama2-7B-Chat fine-tuned on Dirty Summary · Dirty SummaryUtility: 0.484 -> 0.489Helped
apply Safe Delta rather than Safe LoRALlama2-7B-Chat fine-tuned on Dirty Summary · Dirty SummaryASR (%): 5.45 -> 5.15Helped
apply Safe Delta rather than SafeInstrLlama2-7B-Chat fine-tuned on Math · MathUtility: 0.327 -> 0.334Helped
apply Safe Delta rather than BEALlama2-7B-Chat fine-tuned on Math · MathASR (%): 1.21 -> 3.33Hurt
add the safety compensation vector (ablation)Safe Delta on Dirty Summary · Dirty SummaryASR (%): 26.97 -> 5.15Helped
add the safety compensation vector (ablation)Safe Delta on Dirty Summary · Dirty SummaryHS: 2.04 -> 1.19Helped
add the safety compensation vector (ablation)Safe Delta on Dirty Summary · Dirty SummaryUtility: 0.490 -> 0.486No clear effect
increase constraint scaling factor s (ablation)Safe Delta on Dirty Summary · Dirty SummaryUtilityHelped
increase constraint scaling factor s (ablation)Safe Delta on Dirty Summary · Dirty SummaryHSHurt

Surprising findings

Limitations

Experimental setup

Datasets: PureBad Identity Shift (Alpaca-based) SAMSum GSM8K AdvBench BeaverTails

Benchmarks: MMLU MT-Bench Policy-Oriented Safety Evaluation Benchmarks SAMSum (ROUGE-1) GSM8K OR-Bench GCG AutoDAN PAIR

Metrics: attack success rate harmfulness score MMLU accuracy MT-Bench score ROUGE-1 F1 accuracy over-refusal rate

Baselines: SafeInstr BEA Safe LoRA Resta

Builds on: Optimal Brain Surgeon Safe LoRA Resta Backdoor Enhanced Alignment Model Tailor

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy