paper-with-me

홈 › Papers

Antidote: Post-fine-tuning Safety Alignment for Large Language Models against Harmful Fine-tuning

2024-08-18 · Tiansheng Huang, Gautam Bhattacharya, Pratik Joshi, Josh Kimball, Ling Liu

Safety aligned Large Language Models (LLMs) are vulnerable to harmful fine-tuning attacks \cite{qi2023fine}-- a few harmful data mixed in the fine-tuning dataset can break the LLMs's safety alignment. Existing mitigation strategies include alignment stage solutions \cite{huang2024vaccine, rosati2024representation} and fine-tuning stage solutions \cite{huang2024lazy,mukhoti2023fine}. However, our evaluation shows that both categories of defenses fail \textit{when some specific training hyper-parameters are chosen} -- a large learning rate or a large number of training epochs in the fine-tuning stage can easily invalidate the defense, which however, is necessary to guarantee finetune performance. To this end, we propose Antidote, a post-fine-tuning stage solution, which remains \textbf{\textit{agnostic to the training hyper-parameters in the fine-tuning stage}}. Antidote relies on the philosophy that by removing the harmful parameters, the harmful model can be recovered from the harmful behaviors, regardless of how those harmful parameters are formed in the fine-tuning stage. With this philosophy, we introduce a one-shot pruning stage after harmful fine-tuning to remove the harmful weights that are responsible for the generation of harmful content. Despite its embarrassing simplicity, empirical results show that Antidote can reduce harmful score while maintaining accuracy on downstream tasks.Our project page is at \url{https://huangtiansheng.github.io/Antidote_gh_page/}

📄 PDF Abstract BibTeX arXiv:2408.09600

Code (3)

git-disl/booster pytorch
git-disl/lisa pytorch
git-disl/vaccine pytorch

Tasks

PhilosophySafety Alignment

Methods 이 논문이 사용한 방법론

Pruning 설명 없음

Similar Papers 제목 키워드 기반

AntiDote: Bi-level Adversarial Training for Tamper-Resistant LLMs

2025-09-06 · Debdeep Sanyal, Manodeep Ray, Murari Mandal arxiv

The release of open-weight large language models (LLMs) creates a tension between advancing accessible research and preventing misuse, such as malicious fine-tuning to elicit harmful content. Current safety measures stru…

Jailbreak Antidote: Runtime Safety-Utility Balance via Sparse Representation Adjustment in Large Language Models

2024-10-03 · Guobin Shen, Dongcheng Zhao, Yiting Dong, Xiang He 외

As large language models (LLMs) become integral to various applications, ensuring both their safety and utility is paramount. Jailbreak attacks, which manipulate LLMs into generating harmful content, pose significant cha…

Prompt Engineering

Q-realign: Piggybacking Realignment on Quantization for Safe and Efficient LLM Deployment

2026-01-13 · Qitao Tan, Xiaoying Song, Ningxi Cheng, Ninghao Liu 외 arxiv

Public large language models (LLMs) are typically safety-aligned during pretraining, yet task-specific fine-tuning required for deployment often erodes this alignment and introduces safety risks. Existing defenses either…

SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Merging

2025-03-21 · Aladin Djuhera, Swanand Ravindra Kadhe, Farhan Ahmed, Syed Zawad 외

Fine-tuning large language models (LLMs) on downstream tasks can inadvertently erode their safety alignment, even for benign fine-tuning datasets. We address this challenge by proposing SafeMERGE, a post-fine-tuning fram…

GSM8KSafety Alignment

SPQR: A Multi-Dimensional Benchmark for Safety Alignment under Benign Model Adaptation

2025-11-24 · Mohammed Talha Alam, Nada Saadi, Fahad Shamshad, Nils Lukas 외 arxiv

Text-to-image diffusion models can emit copyrighted, unsafe, or private content. Safety alignment aims to suppress specific concepts, yet evaluations seldom test whether safety persists under benign downstream fine-tunin…