J-Anchor:通过 J-Space 选择性拒绝恢复防御 Prefill 攻击
J-Anchor: Defending Against Prefill Attacks via J-Space Selective Refusal Restoration
AI 导读
研究者提出 J-Anchor,一种无需训练的推理时防御方法,用于抵御 prefill 越狱攻击。基于 Jacobian 视角的分析发现“拒绝状态侵蚀”现象:prefill 过程中拒绝信号逐渐衰减至良性基线,而有害性信号仍高于基线。
正文 · 原文
Abstract:Prefill jailbreaks can cause safety-aligned language models to continue an unsafe assistant prefix even when they would refuse the same request under normal decoding. We study how the model's internal harmfulness and refusal signals evolve along this attacker-controlled trajectory. Using the Jacobian lens, we track vocabulary-grounded harmfulness and refusal signals from the assistant header through prefilling and subsequent generation. We identify a characteristic phenomenon, which we call refusal-state erosion: both the refusal signal and the harmfulness signal weaken as the prefill progresses, but the refusal signal progressively declines to the benign baseline by the end of the prefill, while the harmfulness signal remains above its benign baseline and detectable during subsequent generation. Motivated by this observation, we introduce J-Anchor, a training-free inference-time defense that uses the model's pre-attack harmfulness and refusal signals as a request-specific anchor and selectively restores weakened refusal in J-space during prefilling and decoding. J-Anchor substantially reduces attack success under both fixed and deep prefill attacks across different model families. J-Anchor largely preserves benign behavior and reasoning ability, and ablations highlight the importance of targeted restoration in the J-space refusal subspace. Our results suggest that preserving latent refusal dynamics offers a promising route to robust defense against prefill jailbreaks. Code is available at this https URL.
| Comments: | 27 pages, 6 figures |
| Subjects: | Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.01342 [cs.CR] |
| (or arXiv:2611.01342v2 [cs.CR] for this version) | |
| https://doi.org/10.48550/arXiv.2611.01342 arXiv-issued DOI via DataCite |
Submission history
From: Running Yang [view email]
[v1]
Sat, 31 Oct 2026 23:19:05 UTC (1,352 KB)
[v2]
Wed, 2 Dec 2026 03:19:30 UTC (2,461 KB)
来源:arXiv cs.AI · arxiv.org