cs.AIOct 19, 2026

When Safety Fails Collectively: Robust Alignment Against Harmful Fine-Tuning via Joint Weight Perturbations

Authors: Zhiyuan Wang, Yuezhi Zhou, Zhu Zhang, Zhixing Tan

Organizations: Dept. of Comp. Sci. & Tech., BNRist, Tsinghua University · Zhongguancun Laboratory

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.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Safer Content or Firmer Refusals? A Hybrid Perturbation Defense for Alignment under Harmful Fine-tuning

    Sep 29, 2026Muhammad Zeeshan Akram, Mufid Kamel Marican, Anvesh Reddy Yenugu +2LLM Safety AlignmentAdversarial Robustness of Language Models

  2. Preventing Safety Drift in Large Language Models via Coupled Weight and Activation Constraints

    Apr 14, 2026Songping Peng, Zhiheng Zhang, Daojian Zeng +2Safety-Preserving Fine-Tuning of Language ModelsLLM Safety Alignment

  3. Antibody: Strengthening Defense Against Harmful Fine-Tuning for Large Language Models via Attenuating Harmful Gradient Influence

    Feb 28, 2026Quoc Minh Nguyen, Trung Le, Jing Wu +2Safety-Preserving Fine-Tuning of Language ModelsLLM Fine-Tuning