Don't Say No: Jailbreaking LLM by Suppressing Refusal

Yukai Zhou, Jian Lou, Zhijie Huang, Zhan Qin, Yibei Yang +1 more
4/25/2024
cs.CL

No official code found. Best implementation: DSN-2024/DSN (17 stars, last commit 2026-02-07).

Abstract

Ensuring the safety alignment of Large Language Models (LLMs) is critical for generating responses consistent with human values. However, LLMs remain vulnerable to jailbreaking attacks, where carefully crafted prompts manipulate them into producing toxic content. One category of such attacks reformulates the task as an optimization problem, aiming to elicit affirmative responses from the LLM. However, these methods heavily rely on predefined objectionable behaviors, limiting their effectiveness and adaptability to diverse harmful queries. In this study, we first identify why the vanilla target loss is suboptimal and then propose enhancements to the loss objective. We introduce DSN (Don't Say No) attack, which combines a cosine decay schedule method with refusal suppression to achieve higher success rates. Extensive experiments demonstrate that DSN outperforms baseline attacks and achieves state-of-the-art attack success rates (ASR). DSN also shows strong universality and transferability to unseen datasets and black-box models.

View on arXivView PDF

Code Implementations(1)

DSN-2024/DSNCommunity100%

DSN jailbreak Attack & Evaluation Ensemble

172Shell, PythonOct 10, 20248 months agoNOASSERTION

Similar Papers

Cite this paper

@article{zhou2024dont,
  title  = {Don't Say No: Jailbreaking LLM by Suppressing Refusal},
  author = {Yukai Zhou and Jian Lou and Zhijie Huang and Zhan Qin and Yibei Yang and Wenjie Wang},
  year   = {2024},
  eprint = {2404.16369},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.16369v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.16369.svg)](https://codeofpaper.com/paper/2404.16369)

Discussion