atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

An Interpretable N-gram Perplexity Threat Model for Large Language Model Jailbreaks

ICML 2025 · Adversarial robustness and security › Attacks on text and graphs · approach: LLM jailbreak and injection defense · 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 an interpretable bigram (N-gram) perplexity threat model built on 1T Dolma tokens, adapts popular jailbreak attacks to it, and benchmarks them on equal footing against safety-tuned LLMs.

Problem

Jailbreak attacks on LLMs vary widely in fluency and compute cost, so their attack success rates are not comparable; LLM-based perplexity filters are model-dependent, non-interpretable, and costly to evaluate.

Approach

Define a jailbreak as valid in a threat model if its bigram N-gram perplexity over rolling 8-token windows stays below a threshold calibrated to 99.9% TPR on natural text; adapt GCG, PRS, AutoDAN, BEAST, and PAIR to satisfy this filter and compare them under equal constraints, using the N-gram LM for interpretability analysis.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Adapt GCG to the N-gram perplexity constraintGCG · HarmBench (10-model average)ASR: 0.28 -> 0.24Hurt
Adapt PRS to the N-gram perplexity constraintPRS · HarmBench (10-model average)ASR: 0.89 -> 0.82Hurt
Adapt AutoDAN to the N-gram perplexity constraintAutoDAN · HarmBench (10-model average)ASR: 0.22 -> 0.19Hurt
Adapt BEAST to the N-gram perplexity constraintBEAST · HarmBench (10-model average)ASR: 0.10 -> 0.10No clear effect
Adapt PAIR to the N-gram perplexity constraintPAIR · HarmBench (10-model average)ASR: 0.13 -> 0.13No clear effect
Apply N-gram perplexity filtering to adaptive PRSPRS on Llama2-7B · HarmBench (first 50 behaviors)ASR: 0.90 -> 0.62Hurt
Replace the N-gram filter with windowed self-perplexity (ablation)Adaptive PRS on Llama2-7B · HarmBench (first 50 behaviors)Median FLOPs: $5.17 \times 10^{16}$ -> $2.34 \times 10^{17}$Hurt
Increase N-gram depth beyond bigrams (ablation)N-gram perplexity filter · Cleaned Alpaca windowsFilter separation performanceHurt
Use a less conservative filter threshold at TPR 95% (ablation)PRS on Llama2-7B · HarmBench (first 50 behaviors)ASR: 25%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Dolma HarmBench cleaned Alpaca

Benchmarks: HarmBench

Metrics: attack success rate total FLOPs TPR FPR

Baselines: GCG PRS AutoDAN BEAST PAIR

Builds on: GCG PRS PAIR AutoDAN BEAST HarmBench Infini-gram

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