paper-with-me

Papers

SafeAligner: Safety Alignment against Jailbreak Attacks via Response Disparity Guidance

2024-06-26 · Caishuang Huang, Wanxu Zhao, Rui Zheng, Huijie Lv, WenYu Zhan, Shihan Dou, Sixian Li, Xiao Wang, Enyu Zhou, Junjie Ye, Yuming Yang, Tao Gui, Qi Zhang, Xuanjing Huang

As the development of large language models (LLMs) rapidly advances, securing these models effectively without compromising their utility has become a pivotal area of research. However, current defense strategies against jailbreak attacks (i.e., efforts to bypass security protocols) often suffer from limited adaptability, restricted general capability, and high cost. To address these challenges, we introduce SafeAligner, a methodology implemented at the decoding stage to fortify defenses against jailbreak attacks. We begin by developing two specialized models: the Sentinel Model, which is trained to foster safety, and the Intruder Model, designed to generate riskier responses. SafeAligner leverages the disparity in security levels between the responses from these models to differentiate between harmful and beneficial tokens, effectively guiding the safety alignment by altering the output token distribution of the target model. Extensive experiments show that SafeAligner can increase the likelihood of beneficial tokens, while reducing the occurrence of harmful ones, thereby ensuring secure alignment with minimal loss to generality.

📄 PDF Abstract BibTeX arXiv:2406.18118

Code (1)

csHuangfdu/SafeAligner 공식 구현

Tasks

Safety Alignment

Similar Papers 제목 키워드 기반

Immune: Improving Safety Against Jailbreaks in Multi-modal LLMs via Inference-Time Alignment

2024-11-27 · CVPR 2025 1 · Soumya Suvra Ghosal, Souradip Chakraborty, Vaibhav Singh, Tianrui Guan 외

With the widespread deployment of Multimodal Large Language Models (MLLMs) for visual-reasoning tasks, improving their safety has become crucial. Recent research indicates that despite training-time safety alignment, the…

Safety AlignmentVisual Reasoning

No Free Lunch for Defending Against Prefilling Attack by In-Context Learning

2024-12-13 · Zhiyu Xue, Guangliang Liu, Bocheng Chen, Kristen Marie Johnson 외

The security of Large Language Models (LLMs) has become an important research topic since the emergence of ChatGPT. Though there have been various effective methods to defend against jailbreak attacks, prefilling attacks…

In-Context LearningSafety AlignmentSentence

Defending Large Language Models Against Jailbreak Attacks via In-Decoding Safety-Awareness Probing

2026-01-15 · Yinzhi Zhao, Ming Wang, Shi Feng, Xiaocui Yang 외 arxiv

Large language models (LLMs) have achieved impressive performance across natural language tasks and are increasingly deployed in real-world applications. Despite extensive safety alignment efforts, recent studies show th…

Steering Dialogue Dynamics for Robustness against Multi-turn Jailbreaking Attacks

2025-02-28 · Hanjiang Hu, Alexander Robey, Changliu Liu

Large language models (LLMs) are highly vulnerable to jailbreaking attacks, wherein adversarial prompts are designed to elicit harmful responses. While existing defenses effectively mitigate single-turn attacks by detect…

Safety Alignment

Improving LLM Safety Alignment with Dual-Objective Optimization

2025-03-05 · Xuandong Zhao, Will Cai, Tianneng Shi, David Huang 외

Existing training-time safety alignment techniques for large language models (LLMs) remain vulnerable to jailbreak attacks. Direct preference optimization (DPO), a widely deployed alignment method, exhibits limitations i…

Safety Alignment