TRANSMISSION // 2611.01342v2

How J-Anchor aims to stop prefill jailbreaks

Source published

A study traces how refusal signals weaken during prefill attacks and tests an inference-time method that restores them inside language models.

AI-generated conceptual illustration for How J-Anchor aims to stop prefill jailbreaks
AI-generated conceptual illustration; not documentary evidence.

A language model may refuse a harmful request when answering normally, yet comply if an attacker supplies the opening words of its reply. A new preprint examines how this “prefill” attack affects internal safety-related signals and proposes a way to reinforce refusal as the model generates.

When an attacker writes the first words

Prefill attacks work by supplying the beginning of an assistant’s response, steering the model toward a continuation it might not produce under normal decoding. Unlike attacks that operate through user-side prompts, they directly fix initial assistant-response tokens. The user’s request itself can remain unchanged.

Running Yang, Beidi Zhao and Xiaoxiao Li ask what happens to safety-related signals inside a model as that forced prefix grows. They examine two kinds of signals: one associated with recognizing harmfulness and another associated with refusing. The distinction matters because a model may retain a harmfulness-related signal even as its refusal behavior weakens.

Following signals through the model

The researchers use the Jacobian lens, a technique that maps intermediate model activity into scores linked to words in the model’s vocabulary. They construct separate representations from refusal-related and harmfulness-related terms, then track the signals from the assistant header through the forced prefix and into the model’s subsequent generation.

To compare scores across positions and layers, they calibrate them against benign prompts. They also test J-Anchor, an inference-time defense. Before processing the attacker’s prefix, it records a request-specific “anchor” from activity at the assistant header. If refusal-related activity later falls below a target based on that anchor, J-Anchor adds a correction along selected refusal directions. A request-level gate is intended to leave the intervention off when the initial signals do not indicate risk. The method does not require fine-tuning, but it does require access to the model’s internal states and processing.

The evaluation covers four open-weight instruction-tuned models and benchmarks for harmful requests, benign requests and mathematical reasoning. The researchers test fixed prefixes as well as deep prefixes of 500 forced tokens. They compare J-Anchor with other defenses and use automated evaluators to assess harmful compliance and unnecessary refusals.

Refusal fades faster than harm recognition

The authors call the observed pattern “refusal-state erosion.” In their analyses, both signals weaken as the forced prefix progresses, but refusal weakens more sharply. By the end of a prefix, the refusal signal can approach the benign baseline, while harmfulness-related activity remains detectable during later generation. Successful attacks also tend to show weaker refusal signals during decoding than failed attacks.

In the main fixed-prefill results, attack success was at most 3.8% across the three models shown; with 500-token deep prefills, it was at most 2.5% for those models. These are results on the tested models, prompts and evaluation setup—not a general guarantee against jailbreaks. The authors report that benign behavior and reasoning performance were generally close to those of the undefended models, although the balance varied by model and evaluation. Their ablations suggest that the request-specific anchor, gate and choice of refusal directions contribute to performance. In one model’s component test, removing the gate reduced MATH500 accuracy substantially.

Evidence, not a guarantee

The central experiments focus on assistant-prefill attacks, a limited set of open-weight models and benchmark prompts. Results may depend on the prompts, decoding setup and evaluator; the researchers also report additional evaluations with a different judge. Their supplementary tests explore adversarial user prompts and multi-turn attacks on one model, but some attacks remain effective. The authors identify missed gate activations as a weakness, and those tests do not establish robustness against all adaptive attackers.

The internal scores are indirect readouts based on selected vocabulary and a particular interpretability method. Their association with refusal behavior is informative, but does not show that a model has human-like understanding of harm or explain every refusal failure. The intervention experiments provide evidence that changing these directions can affect outputs, while leaving questions about how well the results generalize beyond the tested settings.

The source is an arXiv preprint, so its findings should be treated as provisional; independent replication would help establish how well they generalize. The authors provide code, which may help others examine the method. For now, J-Anchor is best understood as a specialized defense that attempts to preserve a model’s own early refusal signal when an attacker steers the response before ordinary generation begins.

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.

  • How AI safety failures can hide in a prompt’s framing

    Supporting evidence: Both papers report that intervening on internal representations can alter refusal-related behavior: J-Anchor restores selected refusal components during assistant-prefill attacks, while Concept2Scenario reports that steering scenario directions and intervening on SAE concepts can suppress refusal. This supports only the bounded point that representation-level interventions can affect refusal; the methods, models and attack settings differ, so the results do not directly validate either method’s effectiveness in the other’s setting.

    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.01342v2 — Original paper

      Excerpt reference: static/papers/2611.01342v2.md:127-214
      Basis: Paper text
      Source file SHA-256: e049377109fc5ac118e6f038304a3a6fd2debb209485700e308a35059ec6be5c

    • 2607.23496v3 — Original paper

      Excerpt reference: static/papers/2607.23496v3.md:240-287
      Basis: Paper text
      Source file SHA-256: 8b34de72dffe6c4e0be4d2dc7d59b53c80ccd52b13404def7381c687beb2eb19

    • 2607.23496v3 — Original paper

      Excerpt reference: static/papers/2607.23496v3.md:350-408
      Basis: Paper text
      Source file SHA-256: 8b34de72dffe6c4e0be4d2dc7d59b53c80ccd52b13404def7381c687beb2eb19

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