J-Anchor restores weakened refusal signals to blunt prefill jailbreaks
A training-free defense from an arXiv paper uses the model's own pre-attack refusal and harmfulness signals as an anchor, restoring them during prefill and decoding to counter prefill jailbreaks.
In plain words
In a prefill jailbreak, an attacker makes a safety-aligned language model start its answer with unsafe text, and the model keeps going instead of refusing. The paper's authors found that the model's internal refusal signal fades as the attacker-controlled prefill continues. Their fix, J-Anchor, re-strengthens that fading refusal signal while the model runs, without extra training.
What was announced
The researchers traced how internal harmfulness and refusal signals evolve from the assistant header through prefilling and into generation, using what they call the Jacobian lens. They report a phenomenon they name refusal-state erosion: by the end of the prefill the refusal signal has declined to its benign baseline, while the harmfulness signal stays above that baseline and remains detectable during generation. In other words, the model can still register that the content is harmful even as its refusal response weakens.
J-Anchor, the defense built on this finding, is training-free and runs at inference time. It takes the model's pre-attack harmfulness and refusal signals as a request-specific anchor and selectively restores weakened refusal in J-space during both prefilling and decoding. The authors report that it substantially reduces attack success under fixed and deep prefill attacks across different model families, largely preserves benign behavior and reasoning ability, and that ablations point to targeted restoration in the J-space refusal subspace as the important ingredient. Code has been released on GitHub.
What it does not show
- The evidence is the paper's abstract only; the full article was not reviewed, so method details, model versions and exact results cannot be verified from this source.
- Attack-success reductions and benign-behavior preservation are the authors' own reported findings, not independently confirmed.
- The abstract does not specify which model families, attack sets or metrics were used, so the breadth of the claims cannot be checked.
For security and IT teams
- Status
- J-Anchor is described as a training-free, inference-time defense, and the authors point to a public code repository at github.com/ubc-tea/J-Anchor.
Sources
Source-support review completed 4 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 4 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.