pith. sign in

arxiv: 2412.19512 · v3 · pith:XZRSKUGOnew · submitted 2024-12-27 · 💻 cs.CL

Safeguard Fine-Tuned LLMs Through Pre- and Post-Tuning Model Merging

classification 💻 cs.CL
keywords safetymodelsdatadownstreamwhileadditionalllmsmerging
0
0 comments X
read the original abstract

Fine-tuning large language models (LLMs) for downstream tasks often leads to catastrophic forgetting, notably degrading the safety of originally aligned models. While some existing methods attempt to restore safety by incorporating additional safety data, the quality of such data typically falls short of that used in the original alignment process. Moreover, these high-quality safety datasets are generally inaccessible, making it difficult to fully recover the model's original safety. We ask: How can we preserve safety while improving downstream task performance without additional safety data? We show that simply merging the weights of pre- and post-fine-tuned models effectively mitigates safety degradation while enhancing performance. Experiments across different downstream tasks and models validate the method's practicality and effectiveness.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 4 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. SafeSteer: Localized On-Policy Distillation for Efficient Safety Alignment

    cs.AI 2026-06 unverdicted novelty 6.0

    SafeSteer restricts reverse KL penalty to safety tokens selected via activation steering, achieving strong safety on seven benchmarks with minimal degradation on five capability benchmarks using only 100 harmful sampl...

  2. You Snooze, You Lose: Automatic Safety Alignment Restoration through Neural Weight Translation

    cs.CR 2026-05 unverdicted novelty 6.0

    NeWTral is a non-linear weight translation framework using MoE routing that reduces average attack success rate from 70% to 13% on unsafe domain adapters across Llama, Mistral, Qwen, and Gemma models up to 72B while r...

  3. Safety Alignment as Continual Learning: Mitigating the Alignment Tax via Orthogonal Gradient Projection

    cs.LG 2026-02 conditional novelty 6.0

    OGPSA projects safety gradients orthogonal to a low-rank subspace from general capability gradients, improving safety-utility trade-offs in SFT and DPO pipelines on Qwen2.5-7B and Llama3.1-8B.

  4. SafeGene: Reusable Adapters for Transferable Safety Alignment

    cs.AI 2026-06 unverdicted novelty 5.0

    SafeGene extracts task-transferable safety vectors from model discrepancies and applies them through layer-wise recalibration to reduce harmful outputs in downstream-adapted LLMs without retraining.