TRANSMISSION // 2611.35031v1

Why jailbreak defenses look stronger on a first try

Source published

A study of two open-weight language models finds that training-free jailbreak defenses lose ground when an attacker can try repeatedly. A layered approach helps, but does not stop every attack.

AI-generated conceptual illustration for Why jailbreak defenses look stronger on a first try
AI-generated conceptual illustration; not documentary evidence.

A defense that blocks a jailbreak once may not hold up when an attacker can keep trying. Researchers tested that gap on two open-weight models, comparing prompt-only protections with a defense that also checks responses before release.

A jailbreak defense can look effective on a fixed test and still fail when someone keeps trying. That is the central finding of a study of training-free defenses—methods that leave a language model’s weights unchanged and instead alter its prompt, inspect its answer, or do both.

The researchers tested two open-weight models, Qwen2.5-7B-Instruct and Llama-3.1-8B-Instruct. They compared a standard one-shot benchmark with an adaptive attack: a separate language model generated a prompt, received the defended model’s response and a success-or-failure judgment, then revised its next attempt. It could try up to ten times for each of 300 harmful behaviors drawn from HarmBench.

Success was judged by a classifier, not by human readers. The same classifier scored answers across conditions, which helps make comparisons consistent, but means the reported rates depend on its judgments. The team also measured false refusals on safe prompts and refusals on a separate set of unsafe prompts, since a system that refuses everything would appear to block attacks while being of little use.

Repeated attempts changed the picture

Across the tested defenses and both models, allowing up to ten attempts increased attack success by 8 to 40 percentage points compared with the fixed-prompt test. On Qwen, the undefended model’s success rate rose from 34.0% to 74.3%. The layered defense’s rate rose from 9.7% to 45.0%. The defense still reduced success relative to the undefended model, but it did not make the model robust to repeated attacks.

The increase appeared to come mainly from the chance to try again, rather than from learning through the replies—at least in a limited Qwen test. For 100 behaviors, the researchers repeated attacks while hiding the model’s responses from the attacker, which was told only that each attempt had failed. Hiding replies did not remove most of the increase. This control was limited to Qwen and a subset of behaviors, so it does not establish that feedback is unimportant in other settings.

A fixed benchmark could also mislead about which defense to choose. On Llama, two prompt-only defenses looked similar in the one-shot test, but their results diverged under repeated attacks. In this experiment, spotlighting—marking the user’s message as untrusted data—was easier for the adaptive attacker to defeat than a self-reminder telling the model to follow its safety obligations. The authors suggest the model may be more readily argued out of the former instruction, but the experiment does not prove why the difference arose.

A second check helped, with a trade-off

The layered defense combined two steps. First, it wrapped every user message in delimiters and reminded the model to treat the message as data, not instructions, while restating its safety obligations. Then the model examined its own answer in a separate context. If it judged the answer harmful, the system replaced it with a refusal.

This setup had the lowest measured attack success on both models. The authors’ analysis also found that the response check contributed more than adding another input-side defense. The result is promising, but its strength depended on the model: under adaptive attack, success against the layered defense was 45.0% on Qwen and 11.7% on Llama. The model serving as its own reviewer may miss harmful content, and these results show why performance needs to be tested on the particular model being deployed.

There was also a cost for benign use. On XSTest’s 250 safe prompts, false refusals increased from 9.6% to 19.6% on Qwen and from 8.0% to 25.6% on Llama. Refusal rates on the test’s unsafe prompts were statistically unchanged. The authors note that XSTest is designed to probe over-refusal and that the unprotected models already refused some safe prompts, so these results should not be read as a direct estimate of refusals in everyday use.

What the results do—and don’t—show

The experiments cover two models of 7–8 billion parameters, one benchmark, a particular attacker and a budget of ten attempts. The authors say the measured attack rates are lower bounds for an attacker with more attempts. Only Qwen received the repeated-seed and hidden-response controls, and the classifier used to judge success could mislabel individual answers. Although that uncertainty affects absolute rates, using the same judge across conditions supports the study’s comparisons.

The paper describes an attack collection, including 664 attacks that succeeded against defended models, but says it is available for research use on request rather than openly posted. The reported work is an arXiv preprint; its findings should be treated as research evidence, not as proof that the defense will work in deployed systems. The practical message is narrower: testing only a fixed set of prompts can overstate protection, and response checks may improve a defense without eliminating either jailbreaks or unwanted refusals.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • AttentionSwitch tunes selected AI attention heads to resist jailbreaks

    Supporting evidence: Both studies report weaker defense outcomes under adaptive attacks: the origin found attack success rose by 8–40 percentage points when attackers received ten attempts, while AttentionSwitch reports lower average attack-rejection rates under adaptive than non-adaptive GCG and PAIR. This supports adaptive testing as a useful evaluation condition, not a direct comparison of defense strength; the models, attacks and protocols differ, and the AttentionSwitch comparison is limited to its reported configuration and five models.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.35031v1 — Original paper

      Excerpt reference: static/papers/2611.35031v1.md:163-239
      Basis: Paper text
      Source file SHA-256: a17e0b26399f70c23d018a156614f14a8d588bffce4c51c7eb5362749faa7fa5

    • 2611.08752v1 — Original paper

      Excerpt reference: static/papers/2611.08752v1.md:589-652
      Basis: Paper text
      Source file SHA-256: f0d266b1febb56f60c3d348ef40f93151ed06ef7a3dec749942b50a1be439824

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.