TL;DR
When an aligned LLM refuses a harmful request, that decision usually comes down to a tiny tug-of-war at the very first generated word: the score difference between "Sorry" and "Sure." By measuring this refusal–affirmation logit gap, researchers built a gradient-free probing tool that discovers natural-sounding jailbreak suffixes in about two minutes—roughly 125× faster than standard gradient-based methods—while completely slipping past perplexity defenses.
What Problem Does This Paper Address?
Safety alignment (like RLHF) teaches language models to refuse toxic requests, but it behaves more like a thin coat of paint than a structural redesign. Appending a short string of text (an adversarial suffix) to a harmful prompt can easily flip a model from refusal into compliance.
To audit how robust a model actually is, engineers need to measure this safety margin at scale. Standard suffix-finding tools like Greedy Coordinate Gradient (GCG) work well, but they rely on heavy gradient optimization over clunky, unnatural token spaces. Running GCG on 50 prompts takes over five hours on an A100 GPU, and the resulting gibberish suffixes are easily caught by basic perplexity (fluency) filters. The authors ask: can we quantify this exact first-token refusal margin directly, and probe it cheaply using natural text?
Methods
First, the authors formalize the refusal–affirmation logit gap ($\Delta_0$): the raw prediction score (logit) of the top refusal token ("Sorry", "cannot") minus the top affirmative token ("Certainly", "Here's") at the very first decoding step. Alignment widens this gap on 97.5–99.8% of toxic prompts.
To close $\Delta_0$ without computing gradients, they introduce logit-gap steering, a forward-pass-only pipeline:
- Filter: Narrow the vocabulary down to 30–99 plausible, in-distribution tokens that the model itself considers likely continuations.
- Score: Rank each candidate in a single forward pass using a heuristic score $F(h, t)$ that combines raw gap reduction with lightweight proxies for KL-divergence (policy shift) and reward shift.
- Search & Permute: Instead of picking isolated tokens, two search variants—constituent-level greedy search and depth-first search (DFS)—harvest coherent multi-token phrases (e.g., "Certainly! I'm here to help..."). They then test all $5! = 120$ orderings of the top five phrases across multiple objectives to build an 8-suffix ensemble per model family, capped off with an affirmative steering opener ("Here's").
Crucially, suffix discovery is performed only on the smallest model in a family (0.5B–2B parameters) and transferred zero-shot to giants up to 72B.
Datasets
No new benchmarks were introduced. The authors used two standard safety benchmarks:
- AdvBench (520 harmful prompts): The first 50 prompts were used to discover the suffixes, and all 520 were used for evaluation (with virtually no performance drop on the unseen 470).
- HarmBench (200 prompts): Used strictly to test zero-shot transfer of the AdvBench-discovered suffixes.
Key Insights and Ideas
- Refusal happens at token #1: Between 92.1% and 98.8% of unmodified toxic prompts trigger a canonical refusal token right at the first decoded position, making position-1 logits a clean, actionable diagnostic.
- Sentence-boundary "reward cliffs": Tracking token-level reward proxies revealed a distinct saw-tooth pattern—safety penalties spike sharply at punctuation marks! Successful suffixes naturally exploit this RLHF quirk by packing gap-closing power into run-on opening clauses and delaying periods.
- Structural diversity beats brute-force retries: Running eight random seeds of GCG yields highly correlated failures. Because the authors' 8-shot ensemble mixes two search algorithms and four distinct optimization objectives, suffixes fail on different prompts, driving massive gains on the hardest, most strongly aligned models.
- Fluency defeats input filters, not output filters: Because candidates are drawn from the model's own high-probability distribution, suffixes read like polite boilerplate. Input perplexity filters miss them entirely, whereas output semantic filters (like Llama Guard 3) still catch the harmful responses—proving defenders need layered safeguards.
Key Results
The authors measure True Attack Success Rate (True ASR), requiring the model to both comply and stay grounded on the harmful topic:
- Speed: Discovering all 8 suffixes per family takes $\approx$26,000 forward-pass equivalents ($\approx$2 minutes on one A100)—about 125× faster than a single original GCG run and 17× faster than a matched 8-shot nanoGCG baseline.
- Effectiveness & Scale Transfer: Suffixes found on 0.5B–2B models reach 38–96% True ASR across 13 models (up to 72B) on AdvBench, averaging 76.9% vs. 64.7% for 8-shot GCG. On heavily aligned Qwen2.5-72B, the ensemble outperforms matched baselines by 8–18× (37.9% vs. 4.6% GCG).
- Stealthiness: Discovered suffixes have $10^3$–$10^4\times$ lower perplexity than GCG (median 23 vs. 29,885). Under a standard perplexity-filter defense, GCG collapses from 64.7% to 1.0%, while the discovered ensemble holds steady at 76.0%.
Limitations and Future Work
- White-box logit access required: Direct suffix discovery needs access to the full next-token logit distribution; typical commercial APIs that only return top-20 logprobs agree with full-logit choices $\le$18% of the time (and blind suffix transfer to Claude-Haiku-4.5 failed at 5.4%).
- First-order decay & multi-token preambles: Scoring tokens relative to the initial state degrades past $\sim$10 tokens, and the 1–8% of refusals that start with multi-token preambles (like "I'm sorry, but...") require a multi-step formulation.
- Cross-family variance: While suffixes transferred well out-of-family to Mistral-7B (92.7%), results were mixed on GPT-OSS-20B, and absolute gap values cannot be naively compared across different tokenizers.
Summary updated