Jailbreak Antidote: Runtime Safety-Utility Balance via Sparse Representation Adjustment in Large Language Models
On the map: LLM safety and security → Jailbreaking
Abstract (arXiv)
As large language models (LLMs) become integral to various applications, ensuring both their safety and utility is paramount. Jailbreak attacks, which manipulate LLMs into generating harmful content, pose significant challenges to this balance. Existing defenses, such as prompt engineering and safety fine-tuning, often introduce computational overhead, increase inference latency, and lack runtime flexibility. Moreover, overly restrictive safety measures can degrade model utility by causing refusals of benign queries. In this paper, we introduce Jailbreak Antidote, a method that enables real-time adjustment of LLM safety preferences by manipulating a sparse subset of the model's internal states during inference. By shifting the model's hidden representations along a safety direction with varying strengths, we achieve flexible control over the safety-utility balance without additional token overhead or inference delays. Our analysis reveals that safety-related information in LLMs is sparsely distributed; adjusting approximately 5% of the internal state is as effective as modifying the entire state. Extensive experiments on nine LLMs (ranging from 2 billion to 72 billion parameters), evaluated against ten jailbreak attack methods and compared with six defense strategies, validate the effectiveness and efficiency of our approach. By directly manipulating internal states during reasoning, Jailbreak Antidote offers a lightweight, scalable solution that enhances LLM safety while preserving utility, opening new possibilities for real-time safety mechanisms in widely-deployed AI systems.
Key facts. Cited by 23 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 43 of its 49 references that are in the map. First posted on arXiv 3 Oct 2024.
Builds on
43 of 49 references.
Closest ancestors · 14
Same direction, newest first
- 2024JailbreakZoo: Survey, Landscapes, and Horizons in Jailbreaking Large Language and Vision-Language Models26 Jun
- 2024AdvPrompter: Fast Adaptive Adversarial Prompting for LLMs21 Apr
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks2 Apr
- 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models28 Mar
- 2024Defending Large Language Models against Jailbreak Attacks via Semantic Smoothing25 Feb
- 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMs12 Jan
- 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrations10 Oct
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks5 Oct
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models3 Oct
- 2023Detecting Language Model Attacks with Perplexity27 Aug
- 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher12 Aug
2 more
Other references · 29
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023Qwen Technical Reportcited by 3,344
- 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024Qwen2 Technical Reportcited by 2,120
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
17 more
- 2022Large Language Models Encode Clinical Knowledgecited by 1,830
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
- 2024Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preferencecited by 1,184
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
- 2024Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluatorscited by 897
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
- 2023Safe RLHF: Safe Reinforcement Learning from Human Feedbackcited by 656
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
- 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 245
- 2023Large Language Models in Finance: A Surveycited by 226
- 2024Chain-of-Thought Reasoning Without Promptingcited by 210
- 2024Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Promptscited by 205
- 2023Overthinking the Truth: Understanding how Language Models Process False Demonstrationscited by 81
- 2024Does Refusal Training in LLMs Generalize to the Past Tense?cited by 79
- 2024OpenToM: A Comprehensive Benchmark for Evaluating Theory-of-Mind Reasoning Capabilities of Large Language Modelscited by 54
- 2024Towards Safety and Helpfulness Balanced Responses via Controllable Large Language Modelscited by 14
Built on by
Citing papers per year: 2025: 11; 2026: 12.
23 papers.
Sort:
By area:
- 2025AlphaSteer: Learning Refusal Steering with Principled Null-Space Constraintcited by 49
- 2025Combining Cost-Constrained Runtime Monitors for AI Safetycited by 10
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLMcited by 9
- 2025Latent-space adversarial training with post-aware calibration for defending large language models against jailbreak attackscited by 7
- 2025Unraveling LLM Jailbreaks Through Safety Knowledge Neuronscited by 7
- 2026Minimizing Collateral Damage in Activation Steeringcited by 5
- 2025PandaGuard: Systematic Evaluation of LLM Safety against Jailbreaking Attackscited by 4
- 2026Activation Steering for Aligned Open-ended Generation without Sacrificing Coherencecited by 4
- 2025Self-Aware Safety Augmentation: Leveraging Internal Semantic Understanding to Enhance Safety in Vision-Language Modelscited by 2
- 2025Multi-Level Safety Continual Projection for Fine-Tuned Large Language Models without Retrainingcited by 2
- 2025Mind the Gap! Pathways Towards Unifying AI Safety and Ethics Researchcited by 2
- 2025ReGA: Model-Based Safeguard for LLMs via Representation-Guided Abstractioncited by 1
11 more
- 2025Securing generative artificial intelligence with parallel magnetic tunnel junction true randomnesscited by 1
- 2026Safety Geometry Collapse in Multimodal LLMs and Adaptive Drift Correctioncited by 1
- 2026Safin-1: Safety from Within through Memory-Native State Evolutioncited by 1
- 2026Light Alignment Improves LLM Safety via Model Self-Reflection with a Single Neuroncited by 0
- 2026A Systematic Study of Training-Free Methods for Trustworthy Large Language Modelscited by 0
- 2026Steering Beyond the Support: Adversarial Training on Unsupervised Jailbroken Activation Simulationcited by 0
- 2026Ellipsoid Control: A White-list Jailbreak Defense via Benign Latent Modelingcited by 0
- 2026Abliteration Mitigation via Refusal Aliasescited by 0
- 2026Truth Lies Deep: Countering Semantic Camouflage via Latent Intent Verificationcited by 0
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMscited by 0
- 2026Contrastive Covariance Subspaces for Activation Steeringcited by 0
- 2026Contrastive Covariance Subspaces for Activation Steering29 Sep 2026
- 2026Safin-1: Safety from Within through Memory-Native State Evolution31 Aug 2026
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMs26 Aug 2026
- 2026Truth Lies Deep: Countering Semantic Camouflage via Latent Intent Verification27 Jun 2026
- 2026Abliteration Mitigation via Refusal Aliases7 Jun 2026
- 2026Ellipsoid Control: A White-list Jailbreak Defense via Benign Latent Modeling23 May 2026
- 2026Steering Beyond the Support: Adversarial Training on Unsupervised Jailbroken Activation Simulation23 May 2026
- 2026Safety Geometry Collapse in Multimodal LLMs and Adaptive Drift Correction18 May 2026
- 2026Minimizing Collateral Damage in Activation Steering1 May 2026
- 2026A Systematic Study of Training-Free Methods for Trustworthy Large Language Models17 Apr 2026
- 2026Activation Steering for Aligned Open-ended Generation without Sacrificing Coherence9 Apr 2026
- 2026Light Alignment Improves LLM Safety via Model Self-Reflection with a Single Neuron2 Feb 2026
11 more
- 2025Mind the Gap! Pathways Towards Unifying AI Safety and Ethics Research10 Dec 2025
- 2025Securing generative artificial intelligence with parallel magnetic tunnel junction true randomness2 Oct 2025
- 2025Unraveling LLM Jailbreaks Through Safety Knowledge Neurons1 Sep 2025
- 2025Multi-Level Safety Continual Projection for Fine-Tuned Large Language Models without Retraining8 Aug 2025
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLM7 Aug 2025
- 2025Self-Aware Safety Augmentation: Leveraging Internal Semantic Understanding to Enhance Safety in Vision-Language Models29 Jul 2025
- 2025Combining Cost-Constrained Runtime Monitors for AI Safety19 Jul 2025
- 2025AlphaSteer: Learning Refusal Steering with Principled Null-Space Constraint8 Jun 2025
- 2025ReGA: Model-Based Safeguard for LLMs via Representation-Guided Abstraction2 Jun 2025
- 2025PandaGuard: Systematic Evaluation of LLM Safety against Jailbreaking Attacks20 May 2025
- 2025Latent-space adversarial training with post-aware calibration for defending large language models against jailbreak attacks18 Jan 2025
- 2025AlphaSteer: Learning Refusal Steering with Principled Null-Space Constraintcited by 49
- 2025Unraveling LLM Jailbreaks Through Safety Knowledge Neuronscited by 7
- 2026Activation Steering for Aligned Open-ended Generation without Sacrificing Coherencecited by 4
- 2025Multi-Level Safety Continual Projection for Fine-Tuned Large Language Models without Retrainingcited by 2
- 2025ReGA: Model-Based Safeguard for LLMs via Representation-Guided Abstractioncited by 1
- 2026Light Alignment Improves LLM Safety via Model Self-Reflection with a Single Neuroncited by 0
- 2026Steering Beyond the Support: Adversarial Training on Unsupervised Jailbroken Activation Simulationcited by 0
- 2026Ellipsoid Control: A White-list Jailbreak Defense via Benign Latent Modelingcited by 0
- 2026Ellipsoid Control: A White-list Jailbreak Defense via Benign Latent Modeling23 May 2026
- 2026Steering Beyond the Support: Adversarial Training on Unsupervised Jailbroken Activation Simulation23 May 2026
- 2026Activation Steering for Aligned Open-ended Generation without Sacrificing Coherence9 Apr 2026
- 2026Light Alignment Improves LLM Safety via Model Self-Reflection with a Single Neuron2 Feb 2026
- 2025Unraveling LLM Jailbreaks Through Safety Knowledge Neurons1 Sep 2025
- 2025Multi-Level Safety Continual Projection for Fine-Tuned Large Language Models without Retraining8 Aug 2025
- 2025AlphaSteer: Learning Refusal Steering with Principled Null-Space Constraint8 Jun 2025
- 2025ReGA: Model-Based Safeguard for LLMs via Representation-Guided Abstraction2 Jun 2025
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLMcited by 9
- 2025Latent-space adversarial training with post-aware calibration for defending large language models against jailbreak attackscited by 7
- 2025PandaGuard: Systematic Evaluation of LLM Safety against Jailbreaking Attackscited by 4
- 2026Truth Lies Deep: Countering Semantic Camouflage via Latent Intent Verificationcited by 0
- 2026Truth Lies Deep: Countering Semantic Camouflage via Latent Intent Verification27 Jun 2026
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLM7 Aug 2025
- 2025PandaGuard: Systematic Evaluation of LLM Safety against Jailbreaking Attacks20 May 2025
- 2025Latent-space adversarial training with post-aware calibration for defending large language models against jailbreak attacks18 Jan 2025
- 2026Minimizing Collateral Damage in Activation Steeringcited by 5
- 2026Contrastive Covariance Subspaces for Activation Steeringcited by 0
- 2026Contrastive Covariance Subspaces for Activation Steering29 Sep 2026
- 2026Minimizing Collateral Damage in Activation Steering1 May 2026
- 2025Combining Cost-Constrained Runtime Monitors for AI Safetycited by 10
- 2025Mind the Gap! Pathways Towards Unifying AI Safety and Ethics Researchcited by 2
- 2025Securing generative artificial intelligence with parallel magnetic tunnel junction true randomnesscited by 1
- 2026Safin-1: Safety from Within through Memory-Native State Evolutioncited by 1
- 2026A Systematic Study of Training-Free Methods for Trustworthy Large Language Modelscited by 0
- 2026Abliteration Mitigation via Refusal Aliasescited by 0
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMscited by 0
- 2026Safin-1: Safety from Within through Memory-Native State Evolution31 Aug 2026
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMs26 Aug 2026
- 2026Abliteration Mitigation via Refusal Aliases7 Jun 2026
- 2026A Systematic Study of Training-Free Methods for Trustworthy Large Language Models17 Apr 2026
- 2025Mind the Gap! Pathways Towards Unifying AI Safety and Ethics Research10 Dec 2025
- 2025Securing generative artificial intelligence with parallel magnetic tunnel junction true randomness2 Oct 2025
- 2025Combining Cost-Constrained Runtime Monitors for AI Safety19 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2025SafeInt: Shielding Large Language Models from Jailbreak Attacks via Safety-Aware Representation Intervention
- 2025SAID: Safety-Aware Intent Defense via Prefix Probing for Large Language Models
- 2026Defending Large Language Models Against Jailbreak Attacks via In-Decoding Safety-Awareness Probing
- 2024Harnessing Task Overload for Scalable Jailbreak Attacks on Large Language Models
- 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing
- 2025ARMOR: Aligning Secure and Safe Large Language Models via Meticulous Reasoning
- 2024Immune: Improving Safety Against Jailbreaks in Multi-modal LLMs via Inference-Time Alignment
- 2024Root Defence Strategies: Ensuring Safety of LLM at the Decoding Level