J-Anchor: Defending Against Prefill Attacks via J-Space Selective Refusal Restoration
On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks
also in 1 more
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 44 of its 50 references that are in the map. Submitted 31 Oct 2026.
Builds on
44 of 50 references.
Closest ancestors · 6
Same direction, newest first
- 2026HARC: Coupling Harmfulness and Refusal Directions for Robust Safety Alignment1 Jul
- 2025Any-Depth Alignment: Unlocking Innate Safety Alignment of LLMs to Any-Depth20 Oct
- 2025AdaSteer: Your Aligned LLM is Inherently an Adaptive Jailbreak Defender13 Apr
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deep10 Jun
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models3 Oct
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
Other references · 38
- 2023GPT-4 Technical Reportcited by 19,416
- 2022Training language models to follow instructions with human feedbackcited by 16,493
- 2024The Llama 3 Herd of Modelscited by 16,113
- 2021Training Verifiers to Solve Math Word Problemscited by 11,055
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,494
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,852
- 2022Locating and Editing Factual Associations in GPTcited by 2,951
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
- 2025Gemma 3 Technical Reportcited by 2,058
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,718
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,584
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,526
26 more
- 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,363
- 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,270
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,174
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 971
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 840
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 713
- 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 579
- 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 566
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 520
- 2023Explainability for Large Language Models: A Surveycited by 344
- 2024LLMs Know More Than They Show: On the Intrinsic Representation of LLM Hallucinationscited by 290
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 273
- 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decodingcited by 264
- 2024WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Modelscited by 253
- 2024Programming Refusal with Conditional Activation Steeringcited by 233
- 2024Attacks, Defenses and Evaluations for LLM Conversation Safety: A Surveycited by 140
- 2026Verbalizable Representations Form a Global Workspace in Language Modelscited by 112
- 2025LLMs Encode Harmfulness and Refusal Separatelycited by 103
- 2025AlphaSteer: Learning Refusal Steering with Principled Null-Space Constraintcited by 59
- 2023Bypassing the Safety Training of Open-Source LLMs with Priming Attackscited by 55
- 2024Navigating the OverKill in Large Language Modelscited by 47
- 2024AdvPrefix: An Objective for Nuanced LLM Jailbreakscited by 29
- 2026Defending Large Language Models Against Jailbreak Attacks via In-Decoding Safety-Awareness Probingcited by 6
- 2026Exposing the Systematic Vulnerability of Open-Weight Models to Prefill Attackscited by 6
- 2026FineSteer: A Unified Framework for Fine-Grained Inference-Time Steering in Large Language Modelscited by 3
- 2026Silent Alarm: A J-Space Protocol for Comparing Danger Recognition Across Models and Quantization Levelscited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Breaking Refusal in the First Half: A Mechanistic Study of the Prefill Jailbreak
- 2025Prefill-level Jailbreak: A Black-Box Risk Analysis of Large Language Models
- 2026Refusal Localizes, the Damage Relocates: Safety Layers Under Few-Sample Fine-Tuning
- 2026Revisiting JBShield: Breaking and Rebuilding Representation-Level Jailbreak Defenses
- 2025An Embarrassingly Simple Defense Against LLM Abliteration Attacks
- 2025RAID: Refusal-Aware and Integrated Decoding for Jailbreaking LLMs
- 2026Ellipsoid Control: A White-list Jailbreak Defense via Benign Latent Modeling
- 2024Jailbreak Antidote: Runtime Safety-Utility Balance via Sparse Representation Adjustment in Large Language Models