Separate the Wheat from the Chaff: A Post-Hoc Approach to Safety Re-Alignment for Fine-Tuned Language Models

Although large language models (LLMs) achieve effective safety alignment at the time of release, they still face various safety challenges.A key issue is that fine-tuning often compromises the safety alignment of LLMs.To address this issue, we propose a method named IRR (Identify, Remove, and Recalibrate for Safety Realignment) that performs safety realignment for LLMs.The core of IRR is to identify and remove unsafe delta parameters from the fine-tuned models, while recalibrating the retained parameters.We evaluate the effectiveness of IRR across various datasets, including both full fine-tuning and LoRA methods.Our results demonstrate that IRR significantly enhances the safety performance of finetuned models on safety benchmarks, such as harmful queries and jailbreak attacks, while maintaining their performance on downstream tasks.The source code is available at:

Authors

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.66
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Separate the Wheat from the Chaff: A Post-Hoc Approach to Safety Re-Alignment for Fine-Tuned Language Models

Bing Qin, Yanyan Zhao, Di Wu, Xinzheng Lu
Natural Language Processing Techniques
article

Separate the Wheat from the Chaff: A Post-Hoc Approach to Safety Re-Alignment for Fine-Tuned Language Models

Bing Qin, Yanyan Zhao, Di Wu, Xinzheng Lu
article en

Abstract

Although large language models (LLMs) achieve effective safety alignment at the time of release, they still face various safety challenges.A key issue is that fine-tuning often compromises the safety alignment of LLMs.To address this issue, we propose a method named IRR (Identify, Remove, and Recalibrate for Safety Realignment) that performs safety realignment for LLMs.The core of IRR is to identify and remove unsafe delta parameters from the fine-tuned models, while recalibrating the retained parameters.We evaluate the effectiveness of IRR across various datasets, including both full fine-tuning and LoRA methods.Our results demonstrate that IRR significantly enhances the safety performance of finetuned models on safety benchmarks, such as harmful queries and jailbreak attacks, while maintaining their performance on downstream tasks.The source code is available at:

Harbin Institute of Technology (CN)
National Natural Science Foundation of China
Openalex Percentile: Top 90%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Separate the Wheat from the Chaff: A Post-Hoc Approach to Safety Re-Alignment for Fine-Tuned Language Models — Bing Qin, Yanyan Zhao, et al. · (2025) | TGRS Research Map | TGRS