Understanding Jailbreak Success: A Study of Latent Space Dynamics in Large Language Models

Sarah Ball, Frauke Kreuter, Nina Panickssery
6/13/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: s-ball-10/jailbreak_dynamics (24 stars, MIT, last commit 2024-06-13).

Abstract

Conversational large language models are trained to refuse to answer harmful questions. However, emergent jailbreaking techniques can still elicit unsafe outputs, presenting an ongoing challenge for model alignment. To better understand how different jailbreak types circumvent safeguards, this paper analyses model activations on different jailbreak inputs. We find that it is possible to extract a jailbreak vector from a single class of jailbreaks that works to mitigate jailbreak effectiveness from other semantically-dissimilar classes. This may indicate that different kinds of effective jailbreaks operate via a similar internal mechanism. We investigate a potential common mechanism of harmfulness feature suppression, and find evidence that effective jailbreaks noticeably reduce a model's perception of prompt harmfulness. These findings offer actionable insights for developing more robust jailbreak countermeasures and lay the groundwork for a deeper, mechanistic understanding of jailbreak dynamics in language models.

View on arXivView PDF

Code Implementations(1)

MIT
242Shell, PythonJun 13, 20242 years agoMIT

Similar Papers

Cite this paper

@article{ball2024understanding,
  title  = {Understanding Jailbreak Success: A Study of Latent Space Dynamics in Large Language Models},
  author = {Sarah Ball and Frauke Kreuter and Nina Panickssery},
  year   = {2024},
  eprint = {2406.09289},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.09289v2}
}

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/2406.09289.svg)](https://codeofpaper.com/paper/2406.09289)

Discussion