paper-with-me

Papers

Safety at One Shot: Patching Fine-Tuned LLMs with A Single Instance

2026-01-05 · Jiawen Zhang, Lipeng He, Kejia Chen, Jian Lou, Jian Liu, Xiaohu Yang, Ruoxi Jia arxiv

Fine-tuning safety-aligned large language models (LLMs) can substantially compromise their safety. Previous approaches require many safety samples or calibration sets, which not only incur significant computational overhead during realignment but also lead to noticeable degradation in model utility. Contrary to this belief, we show that safety alignment can be fully recovered with only a single safety example, without sacrificing utility and at minimal cost. Remarkably, this recovery is effective regardless of the number of harmful examples used in fine-tuning or the size of the underlying model, and convergence is achieved within just a few epochs. Furthermore, we uncover the low-rank structure of the safety gradient, which explains why such efficient correction is possible. We validate our findings across five safety-aligned LLMs and multiple datasets, demonstrating the generality of our approach.

📄 PDF Abstract BibTeX arXiv:2601.01887

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

$Δ$-Patching: A Framework for Rapid Adaptation of Pre-trained Convolutional Networks without Base Performance Loss

2023-03-26 · Chaitanya Devaguptapu, Samarth Sinha, K J Joseph, Vineeth N Balasubramanian 외

Models pre-trained on large-scale datasets are often fine-tuned to support newer tasks and datasets that arrive over time. This process necessitates storing copies of the model over time for each task that the pre-traine…

Domain AdaptationTransfer Learning

Analysing Moral Bias in Finetuned LLMs through Mechanistic Interpretability

2025-10-14 · Bianca Raimondi, Daniela Dalbagno, Maurizio Gabbrielli arxiv

Large language models (LLMs) have been shown to internalize human-like biases during finetuning, yet the mechanisms by which these biases manifest remain unclear. In this work, we investigated whether the well-known Knob…

Towards Comprehensive Post Safety Alignment of Large Language Models via Safety Patching

2024-05-22 · Weixiang Zhao, Yulin Hu, Zhuojun Li, Yang Deng 외

Safety alignment of large language models (LLMs) has been gaining increasing attention. However, current safety-aligned LLMs suffer from the fragile and imbalanced safety mechanisms, which can still be induced to generat…

Safety Alignment

CTIGuardian: A Few-Shot Framework for Mitigating Privacy Leakage in Fine-Tuned LLMs

2025-12-15 · Shashie Dilhara Batan Arachchige, Benjamin Zi Hao Zhao, Hassan Jameel Asghar, Dinusha Vatsalan 외 arxiv

Large Language Models (LLMs) are often fine-tuned to adapt their general-purpose knowledge to specific tasks and domains such as cyber threat intelligence (CTI). Fine-tuning is mostly done through proprietary datasets th…

Patching LLM Like Software: A Lightweight Method for Improving Safety Policy in Large Language Models

2025-11-11 · Huzaifa Arif, Keerthiram Murugesan, Ching-Yun Ko, Pin-Yu Chen 외 arxiv

We propose patching for large language models (LLMs) like software versions, a lightweight and modular approach for addressing safety vulnerabilities. While vendors release improved LLM versions, major releases are costl…