TERM: Target-Free Jailbreak Defense via Entropy-Guided Residual Modulation
On the map: LLM safety and security → Jailbreaking
Abstract (arXiv)
Large language models (LLMs) have shown strong capabilities across diverse applications, making both safety and utility essential for reliable deployment. Jailbreak attacks use diverse forms of adversarial prompting to bypass alignment safeguards and induce LLMs to generate harmful responses. Some representation-based defenses regulate internal activations using predefined steering directions or learned safety regions. However, adapting intervention to each input without a predefined representational target while limiting over-refusal remains a challenge. In this paper, we propose Target-free Entropy-guided Residual Modulation (TERM), an inference-time defense that uses prompt-calibrated attention entropy deviations to guide adaptive modulation of the model's own residual updates. Attention patterns vary across prompts and decoding steps, making raw entropy values difficult to interpret as a consistent signal for intervention. We therefore calibrate attention entropy against each prompt's own prefill baseline to establish an input-specific reference for reducing unnecessary intervention on benign requests. Adaptive scale normalization and temporal accumulation then account for differences in deviation scale and persistence to determine intervention strength. The resulting signal controls bounded scaling of the model's own residual updates, without relying on a predefined safety direction. We compare our method with seven defenses on seven jailbreak attacks and two over-refusal benchmarks across Llama, Qwen, and Gemma models, including Qwen3 models from 0.6B to 32B. Results show our method improves jailbreak robustness while maintaining low over-refusal on benign safety-sensitive requests with modest inference overhead.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 17 of its 58 references that are in the map. Submitted 10 Nov 2026.
Builds on
17 of 58 references.
Closest ancestors · 7
Same direction, newest first
- 2026Detecting Fluent Optimization-Based Adversarial Prompts via Sequential Entropy Changes19 May
- 2025MirrorShield: Towards Universal Defense Against Jailbreaks via Entropy-Guided Mirror Crafting17 Mar
- 2025SafeInt: Shielding Large Language Models from Jailbreak Attacks via Safety-Aware Representation Intervention21 Feb
- 2024RobustKV: Defending Large Language Models against Jailbreak Attacks via KV Eviction25 Oct
- 2024PARDEN, Can You Repeat That? Defending against Jailbreaks via Repetition13 May
- 2023Scalable and Transferable Black-Box Jailbreaks for Language Models via Persona Modulation6 Nov
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
Other references · 10
- 2024The Llama 3 Herd of Modelscited by 16,113
- 2021Training Verifiers to Solve Math Word Problemscited by 11,055
- 2020Measuring Massive Multitask Language Understandingcited by 8,473
- 2024Qwen2.5 Technical Reportcited by 5,525
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 2,225
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,584
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,337
- 2024Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluatorscited by 966
- 2024Large Language Models: A Surveycited by 583
- 2023Trustworthy LLMs: a Survey and Guideline for Evaluating Large Language Models' Alignmentcited by 433
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026POEM: Output-Relative Block-Sparse Attention for Long-Context Prefilling
- 2026What Intermediate Layers Know: Detecting Jailbreaks from Entropy Dynamics
- 2026AttentionSwitch: Jailbreak Defense for LLMs via Joint Learning of Sparse Attention-Head Selection and Scaling
- 2024Defending against Jailbreak through Early Exit Generation of Large Language Models
- 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing
- 2026Silencing the Guardrails: Inference-Time Jailbreaking via Dynamic Contextual Representation Ablation
- 2026Understanding In-Context Multimodal Jailbreaks via Posterior Reweighting
- 2026Jailbreaking Leaves a Trace: Understanding and Detecting Jailbreak Attacks from Internal Representations of Large Language Models