paper-with-me

홈 › Papers

What Features in Prompts Jailbreak LLMs? Investigating the Mechanisms Behind Attacks

2024-11-02 · Nathalie Kirch, Constantin Weisser, Severin Field, Helen Yannakoudakis, Stephen Casper

Jailbreaks have been a central focus of research regarding the safety and reliability of large language models (LLMs), yet the mechanisms underlying these attacks remain poorly understood. While previous studies have predominantly relied on linear methods to detect jailbreak attempts and model refusals, we take a different approach by examining both linear and non-linear features in prompts that lead to successful jailbreaks. First, we introduce a novel dataset comprising 10,800 jailbreak attempts spanning 35 diverse attack methods. Leveraging this dataset, we train probes to classify successful from unsuccessful jailbreaks using the latent representations corresponding to prompt tokens. Notably, we find that even when probes achieve high accuracy in predicting the success of jailbreaks, their performance often fails to generalize to unseen attack methods. This reveals that different jailbreaking strategies exploit different non-linear, non-universal features. Next, we demonstrate that non-linear probes provide a powerful tool for steering model behavior. Specifically, we use these probes to guide targeted latent space perturbations, enabling us to effectively modulate the model's robustness against jailbreaks. Overall, our findings challenge the assumption that jailbreaks can be fully understood through linear or simple universal prompt features alone, highlighting the importance of a nuanced understanding of the mechanisms behind LLM vulnerabilities.

📄 PDF Abstract BibTeX arXiv:2411.03343

Code (1)

NLie2/what_features_jailbreak_LLMs 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models

2023-10-03 · Xiaogeng Liu, Nan Xu, Muhao Chen, Chaowei Xiao

The aligned Large Language Models (LLMs) are powerful language understanding and decision-making tools that are created through extensive alignment with human feedback. However, these large models remain susceptible to j…

Decision Making

One Model Transfer to All: On Robust Jailbreak Prompts Generation against LLMs

2025-05-23 · Linbao Li, Yannan Liu, Daojing He, Yu Li

Safety alignment in large language models (LLMs) is increasingly compromised by jailbreak attacks, which can manipulate these models to generate harmful or unintended content. Investigating these attacks is crucial for u…

AllSafety Alignment

Jailbreaking ChatGPT via Prompt Engineering: An Empirical Study

2023-05-23 · Yi Liu, Gelei Deng, Zhengzi Xu, Yuekang Li 외

Large Language Models (LLMs), like ChatGPT, have demonstrated vast potential but also introduce challenges related to content constraints and potential misuse. Our study investigates three key research questions: (1) the…

Prompt Engineering

JailbreakHunter: A Visual Analytics Approach for Jailbreak Prompts Discovery from Large-Scale Human-LLM Conversational Datasets

2024-07-03 · Zhihua Jin, Shiyi Liu, Haotian Li, Xun Zhao 외

Large Language Models (LLMs) have gained significant attention but also raised concerns due to the risk of misuse. Jailbreak prompts, a popular type of adversarial attack towards LLMs, have appeared and constantly evolve…

Adversarial AttackSemantic SimilaritySemantic Textual Similarity

"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models

2023-08-07 · Xinyue Shen, Zeyuan Chen, Michael Backes, Yun Shen 외

The misuse of large language models (LLMs) has drawn significant attention from the general public and LLM vendors. One particular type of adversarial prompt, known as jailbreak prompt, has emerged as the main attack vec…

Community Detection