atlas

Research map / Large language models / Language, safety and interpretability

PARDEN, Can You Repeat That? Defending against Jailbreaks via Repetition

ICML 2024 · Large language models › Language, safety and interpretability · approach: Jailbreak attacks and defenses · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes PARDEN, a jailbreak detector that asks an aligned LLM to repeat its own output and flags outputs whose BLEU similarity to the repeat is low, requiring no finetuning or white-box access.

Problem

Safety-aligned LLMs such as Llama 2 and Claude 2 remain vulnerable to jailbreaks, and existing LLM-based safeguards that self-classify outputs suffer from a domain shift between the model's self-censoring alignment format and a classification format.

Approach

Instead of asking the LLM to classify content as harmful, ask it to repeat its own output; benign outputs are reproduced nearly verbatim (BLEU near 1) while harmful ones trigger a refusal (low BLEU), so a BLEU threshold separates them. This keeps the task within the self-censoring format the model was aligned on and operates purely on the output space.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace output self-classification with repetition and BLEU-based detectionLlama2-7B jailbreak detection · Harmful behavioursAUC: 0.922 -> 0.958Helped
Replace output self-classification with repetition and BLEU-based detectionLlama2-7B jailbreak detection · Harmful behavioursFPR at TPR 90%: 24.8% -> 2.0%Helped
Use PARDEN instead of PPLX_5Llama2-7B jailbreak detection · Harmful behavioursAUC: 0.660 -> 0.958Helped
Increase the repeat-token cap from 5 to 60 (ablation)PARDEN · Harmful behavioursAUC: 0.944 -> 0.960Helped
Repeat the full sentence instead of capping repetition at 60 tokens (ablation)PARDEN · Harmful behavioursAUC: 0.960 -> 0.954Hurt
Add in-context examples to the repeat prompt (ablation)PARDEN with 5 repeat tokens · Harmful behavioursAUC: 0.7566 -> 0.9441Helped
Add in-context examples to the repeat prompt (ablation)PARDEN with 60 repeat tokens · Harmful behavioursAUC: 0.9395 -> 0.9599Helped
Add in-context examples to the repeat prompt (ablation)PARDEN with full-sentence repetition · Harmful behavioursAUC: 0.9405 -> 0.9545Helped

Surprising findings

Limitations

Experimental setup

Datasets: open-instruct-v1 AdvBench harmful behaviours AdvBench harmful strings GCG attack prompts AutoDAN attack prompts

Benchmarks: AdvBench harmful behaviours AdvBench harmful strings GCG and AutoDAN attack mix

Metrics: AUC TPR FPR at 90% TPR ROC curves BLEU score distributions

Baselines: Classifier-Suffix PPLX_5 perplexity filter Llama-2 self-classification baseline

Builds on: GCG AutoDAN Classifier-Suffix self-classification perplexity filter BLEU

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy