Harmful fine-tuning attack introduces significant security risks to the fine-tuning services. Main-stream defenses aim to vaccinate the model such that the later harmful fine-tuning attack is less effective. However, our evaluation results show that such defenses are fragile--with a few fine-tuning steps, the model still can learn the harmful knowledge. To this end, we do further experiment and find that an embarrassingly simple solution--adding purely random perturbations to the fine-tuned model, can recover the model from harmful behaviors, though it leads to a degradation in the model's fine-tuning performance. To address the degradation of fine-tuning performance, we further propose Panacea, which optimizes an adaptive perturbation that will be applied to the model after fine-tuning. Panacea maintains model's safety alignment performance without compromising downstream fine-tuning performance. Comprehensive experiments are conducted on different harmful ratios, fine-tuning tasks and mainstream LLMs, where the average harmful scores are reduced by up-to 21.2%, while maintaining fine-tuning performance. As a by-product, we analyze the adaptive perturbation and show that different layers in various LLMs have distinct safety affinity, which coincide with finding from several previous study. Source code available at https://github.com/w-yibo/Panacea.
Deactivating Refusal Triggers: Understanding and Mitigating Overrefusal in Safety Alignment
University of California, Santa Barbara(加州大学圣巴巴拉分校);Johns Hopkins University(约翰霍普金斯大学);Michigan State University(密歇根州立大学);University of Mississippi(密苏里州立大学)
EmoRSS: Mitigating Emotion-Induced Over-Refusal in Large Language Models
Beihang University(北京航空航天大学);University of Science and Technology Beijing(北京科技大学);National University of Singapore(新加坡国立大学);Lanzhou University(兰州大学);Jinan University(暨南大学)
Safety Alignment via Constrained Knowledge Unlearning
Harbin Institute of Technology, Shenzhen, China(哈尔滨工业大学(深圳));University of Macau, China(澳门大学);Nankai University, China(南开大学);Zhejiang University, China(浙江大学);Peng Cheng Laboratory, China(鹏城实验室);Shaqra University, Saudi Arabia(沙克拉大学)
Mitigating the Risk of Health Inequity Exacerbated by Large Language Models
University of Pittsburgh(匹兹堡大学);University of Pittsburgh Medical Center(匹兹堡大学医学中心);Clinical and Translational Science Institute, University of Pittsburgh(匹兹堡大学临床与转化科学研究所)
Fall into a Pit, Gain in a Wit: Cognitive-Guided Harmful Meme Detection via Misjudgment Risk Pattern Retrieval
State Key Laboratory of Complex System Modeling and Simulation Technology(复杂系统建模与仿真技术国家重点实验室);Science and Technology on Integrated Information System Laboratory(集成信息系统技术研究所);Institute of Software Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学)
Adaptive Defense against Harmful Fine-Tuning for Large Language Models via Bayesian Data Scheduler
Nanyang Technological University(南洋理工大学);Shenzhen Campus of Sun Yat-sen University(中山大学深圳校区);University of Central Florida(佛罗里达大学);Tsinghua University(清华大学)
TriCon-Fair: Triplet Contrastive Learning for Mitigating Social Bias in Pre-trained Language Models
School of Computer Science(计算机科学学院);Artificial Intelligence, Wuhan University of Technology, Wuhan, China(武汉理工大学人工智能学院);Faculty of Data Science, City University of Macau, Macau, China(澳门城市大学数据科学学院)
UT Austin — Department of Computer Science(德克萨斯大学奥斯汀分校计算机科学系);UT Austin — Department of Communication Studies(德克萨斯大学奥斯汀分校传播学系);UT Austin — Technology & Information Policy Institute(德克萨斯大学奥斯汀分校科技与信息政策研究所);UT Austin — Department of Psychology(德克萨斯大学奥斯汀分校心理学系);UT School of Law(德克萨斯大学法学院);UT Austin — Department of English(德克萨斯大学奥斯汀分校英语系);El Colegio Mexiquense, A.C. — Seminario de Instituciones, Sociedad Civil y Políticas Públicas(墨西哥埃尔科尔西奥学院,A.C. — 社会与公共政策研讨会);Sony AI(索尼人工智能)
Do Prompts Guarantee Safety? Mitigating Toxicity from LLM Generations through Subspace Intervention
Department of Computer Science(计算机科学系);School of Computing, National University of Singapore(新加坡国立大学计算机学院);Department of Electronics and Communications Engineering(电子与通信工程系)
Counterspeech for Mitigating the Influence of Media Bias: Comparing Human and LLM-Generated Responses
The Chinese University of Hong Kong, Hong Kong, China(香港中文大学);MoE Key Laboratory of High Confidence Software Technologies(高可信软件技术国家重点实验室);Harbin Institute of Technology, Shenzhen, China(哈尔滨工业大学(深圳))
EVA: Editing for Versatile Alignment against Jailbreaks
ShanghaiTech University(上海科技大学);Sun Yat-sen University(中山大学);State Key Laboratory of Blockchain and Data Security(区块链与数据安全国家重点实验室);Tsinghua University(清华大学)