When Safety Fails Collectively: Robust Alignment Against Harmful Fine-Tuning via Joint Weight Perturbations
Abstract
Harmful fine-tuning can rapidly erode the safety alignment of large language models, creating substantial risks when aligned models are adapted to downstream tasks. Existing alignment-stage defenses use harmful examples and simulated harmful perturbations during safety alignment to prepare models for later harmful fine-tuning, yet the collective effects of harmful weight perturbations remain underexplored. We identify a collective failure pattern: disjoint parts of a harmful perturbation have limited effects in isolation, but their joint application increases the model's harmfulness beyond the sum of their individual effects. Guided by this observation, we propose Joint Weight Perturbations (JWP), an alignment-stage defense that masks different parts of a harmful perturbation estimated from the current model and trains the model to respond safely in the resulting states. This exposes the model to different combinations of harmful perturbations and reduces its sensitivity to their accumulation during subsequent harmful fine-tuning. Experiments across downstream tasks and model families show that JWP offers stronger resistance to harmful fine-tuning than prior defenses while largely preserving task performance.
Create a lesson
Metadata
- Comments
- 15 pages, 3 figures
Related papers
Learning Adaptive Defense Strategies: Fine-Tuned LLMs for Network Security Games under Network Mobility
Shared title terminologycs.AIMd Abu Sayed, Asif Rahman, Ahmed Ryen et al.
NormTune: Norm-Guided Parameter-Efficient Fine-Tuning for Reasoning-Intensive Tasks
Shared title terminologycs.AIZhangming Li, Qinghao Hu, Weifan Guan et al.
How Fine-Tuning Objectives Shape Layer-Wise Information in LLM Hallucination Detection
Shared title terminologycs.AIKaiyang Wan, Forrest Sheng Bao, Amin Ahmad et al.
A Small Model Asks Better: Fine-Tuning Query Clarification for Retrieval-Augmented Generation
Shared title terminologycs.AILihong He, Lucian Popa, Marina Danilevsky
Unlearning Model Identity: Ablating LoRA Weights from Question-Based Identity Tuning
Shared title terminologycs.AIMing Cheung
Jagged Robustness: Uneven Safety Transfer and Emerging Vulnerabilities under LLM Quantization
Shared title terminologycs.AIRamneek Agnihotri, Yingte Xu, Hans Vath