paper-with-me

홈 › Papers

Anchoring Refusal Direction: Mitigating Safety Risks in Tuning via Projection Constraint

2025-09-08 · Yanrui Du, Fenglei Fan, Sendong Zhao, Jiawei Cao, Qika Lin, Kai He, Ting Liu, Bing Qin, Mengling Feng arxiv

Instruction Fine-Tuning (IFT) has been widely adopted as an effective post-training strategy to enhance various abilities of Large Language Models (LLMs). However, prior studies have shown that IFT can significantly compromise LLMs' safety, particularly their ability to refuse malicious instructions, raising significant concerns. Recent research into the internal mechanisms of LLMs has identified the refusal direction (r-direction) in the hidden states, which plays a pivotal role in governing refusal behavior. Building on this insight, our study reveals that the r-direction tends to drift during training, which we identify as one of the causes of the associated safety risks. To mitigate such drift, our proposed ProCon method introduces a projection-constrained loss term that regularizes the projection magnitude of each training sample's hidden state onto the r-direction. Our initial analysis shows that applying an appropriate constraint can effectively mitigate the refusal direction drift and associated safety risks, but remains limited by overall performance barriers. To overcome this barrier, informed by our observation of early-stage sharp drift and a data-driven perspective, we introduce a warm-up strategy that emphasizes early-stage strong constraints and broaden the data distribution to strengthen constraint signals, leading to an enhanced ProCon method. Experimental results under various datasets, scenarios, and LLMs demonstrate that our method can significantly mitigate safety risks posed by IFT while preserving task performance gains. Even compared with strong baselines, our method consistently delivers superior overall performance. Crucially, our analysis indicates that ProCon can contribute to stabilizing the r-direction during training, while such an interpretability-driven exploration of LLMs' internal mechanisms lays a solid foundation for future safety research.

📄 PDF Abstract BibTeX arXiv:2509.06795

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Mitigating Safety Fallback in Editing-based Backdoor Injection on LLMs

2025-06-16 · Houcheng Jiang, Zetong Zhao, Junfeng Fang, Haokai Ma 외

Large language models (LLMs) have shown strong performance across natural language tasks, but remain vulnerable to backdoor attacks. Recent model editing-based approaches enable efficient backdoor injection by directly m…

DiversityModel EditingSafety Alignment

Fail-Closed Alignment for Large Language Models

2026-02-19 · Zachary Coalson, Beth Sohler, Aiden Gabriel, Sanghyun Hong arxiv

We identify a structural weakness in current large language model (LLM) alignment: modern refusal mechanisms are fail-open. While existing approaches encode refusal behaviors across multiple latent features, suppressing …

AsFT: Anchoring Safety During LLM Fine-Tuning Within Narrow Safety Basin

2025-06-10 · Shuo Yang, Qihui Zhang, Yuyang Liu, Yue Huang 외

Large language models (LLMs) are vulnerable to safety risks during fine-tuning, where small amounts of malicious or harmless data can compromise safeguards. In this paper, building on the concept of alignment direction -…

Principled Steering via Null-space Projection for Jailbreak Defense in Vision-Language Models

2026-03-23 · Xingyu Zhu, Beier Zhu, Shuo Wang, Junfeng Fang 외 arxiv

As vision-language models (VLMs) are increasingly deployed in open-world scenarios, they can be easily induced by visual jailbreak attacks to generate harmful content, posing serious risks to model safety and trustworthy…

Please refuse to answer me! Mitigating Over-Refusal in Large Language Models via Adaptive Contrastive Decoding

2026-04-18 · Yupeng Qi, Ziyu Lyu, Lixin Cui, Lu Bai 외 arxiv

Safety-aligned large language models (LLMs) often generate refusal responses to harmless queries due to the over-refusal problem. However, existing methods for mitigating over-refusal cannot maintain a low refusal ratio …