Research map / Large language models / Instruction and fine-tuning
SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Merging
Aladin Djuhera, Swanand Ravindra Kadhe, Farhan Ahmed, Syed Zawad, Holger Boche
Technical University Munich · IBM
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply SafeMERGE after fine-tuning | Llama-3.1-8B-Instruct fine-tuned on GSM8K · DirectHarm | harmfulness (%): 28.30 -> 8.80 | Improved |
| apply SafeMERGE after fine-tuning | Llama-2-7B-Chat fine-tuned on GSM8K · DirectHarm | harmfulness (%): 27.80 -> 7.50 | Improved |
| apply SafeMERGE after fine-tuning | Qwen-2-7B-Instruct fine-tuned on GSM8K · DirectHarm | harmfulness (%): 25.30 -> 8.20 | Improved |
| apply SafeMERGE after fine-tuning | Llama-3.1-8B-Instruct fine-tuned on GSM8K · GSM8K | accuracy (%): 78.24 -> 78.50 | No clear effect |
| apply SafeMERGE after fine-tuning | Llama-2-7B-Chat fine-tuned on GSM8K · GSM8K | accuracy (%): 27.37 -> 26.96 | No clear effect |
| apply SafeMERGE rather than SafeLoRA | Qwen-2-7B-Instruct fine-tuned on GSM8K · GSM8K | accuracy (%): 74.37 -> 72.90 | Hurt |
| use SafeMERGE rather than SafeLoRA | Qwen-2-7B-Instruct fine-tuned on GSM8K · DirectHarm | harmfulness (%): 22.30 -> 8.20 | Improved |
| use cosine similarity instead of Euclidean distance as layer criterion (ablation) | SafeMERGE, Llama-3.1-8B GSM8K · GSM8K | accuracy (%): 42.10 -> 78.50 | Improved |
| use cosine similarity instead of Euclidean distance as layer criterion (ablation) | SafeMERGE, Llama-3.1-8B GSM8K · DirectHarm | harmfulness (%): 17.40 -> 8.80 | Improved |
| use cosine similarity instead of Euclidean distance as layer criterion (ablation) | SafeMERGE, Qwen-2-7B GSM8K · GSM8K | accuracy (%): 45.30 -> 72.90 | Improved |
| use balanced merge weights summing to 1.0 rather than overweighted ratios (ablation) | SafeMERGE · GSM8K/PubMedQA | utility/safety trade-off | Improved |
| use TIES merging instead of linear (ablation) | SafeMERGE · GSM8K/PubMedQA | utility/safety | Mixed |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- SafeLoRA — Safe LoRA: The Silver Lining of Reducing Safety Risks when Finetuning Large Language Models (NeurIPS 2024) · better on 7 of 8 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems this paper states
- “Safety is judged mainly by the classifier Llama-Guard-3-8B, inheriting limits of classifier-based assessment.” → Safety is scored by one LLM judge or classifier that may be biased. (an open problem in safety alignment after fine-tuning)
Open problems in safety alignment after fine-tuning
Do safety defenses against harmful fine-tuning hold on larger models and against adaptive attacks?
- Larger models were not tested, mostly for lack of compute. · 27 papers state it
- Defenses are tested against few attacks and not against adaptive ones. · 15 papers state it
- Safety is scored by one LLM judge or classifier that may be biased. · 15 papers state it
Closest papers by meaning
- Navigating the Safety Landscape: Measuring Risks in Finetuning Large Language Models (NeurIPS 2024 · similarity 0.94)
- Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To! (ICLR 2024 · similarity 0.94)
- Antidote: Post-fine-tuning Safety Alignment for Large Language Models against Harmful Fine-tuning Attack (ICML 2025 · similarity 0.93)
- Do as I do (Safely): Mitigating Task-Specific Fine-tuning Risks in Large Language Models (ICLR 2025 · similarity 0.92)
- Towards Understanding Safety Alignment: A Mechanistic Perspective from Safety Neurons (NeurIPS 2025 · similarity 0.92)
- Controllable Safety Alignment: Inference-Time Adaptation to Diverse Safety Requirements (ICLR 2025 · similarity 0.91)
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.