Why Not Act on What You Know? Unleashing Safety Potential of LLMs via Self-Aware Guard Enhancement
On the map: LLM safety and security → Jailbreaking
Abstract (arXiv)
Large Language Models (LLMs) have shown impressive capabilities across various tasks but remain vulnerable to meticulously crafted jailbreak attacks. In this paper, we identify a critical safety gap: while LLMs are adept at detecting jailbreak prompts, they often produce unsafe responses when directly processing these inputs. Inspired by this insight, we propose SAGE (Self-Aware Guard Enhancement), a training-free defense strategy designed to align LLMs' strong safety discrimination performance with their relatively weaker safety generation ability. SAGE consists of two core components: a Discriminative Analysis Module and a Discriminative Response Module, enhancing resilience against sophisticated jailbreak attempts through flexible safety discrimination instructions. Extensive experiments demonstrate SAGE's effectiveness and robustness across various open-source and closed-source LLMs of different sizes and architectures, achieving an average 99% defense success rate against numerous complex and covert jailbreak methods while maintaining helpfulness on general benchmarks. We further conduct mechanistic interpretability analysis through hidden states and attention distributions, revealing the underlying mechanisms of this detection-generation discrepancy. Our work thus contributes to developing future LLMs with coherent safety awareness and generation behavior. Our code and datasets are publicly available at https://github.com/NJUNLP/SAGE.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 30 of its 42 references that are in the map. First posted on arXiv 17 May 2025.
Builds on
30 of 42 references.
Closest ancestors · 14
Same direction, newest first
- 2024How Alignment and Jailbreak Work: Explain LLM Safety through Intermediate Hidden States9 Jun
- 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decoding14 Feb
- 2024Intention Analysis Makes LLMs A Good Jailbreak Defender12 Jan
- 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMs12 Jan
- 2023Defending Large Language Models Against Jailbreaking Attacks Through Goal Prioritization15 Nov
- 2023A Wolf in Sheep's Clothing: Generalized Nested Jailbreak Prompts can Fool Large Language Models Easily14 Nov
- 2023DeepInception: Hypnotize Large Language Model to Be Jailbreaker6 Nov
- 2023Self-Guard: Empower the LLM to Safeguard Itself24 Oct
- 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrations10 Oct
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Prompts19 Sep
- 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLM18 Sep
2 more
Other references · 16
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2017Deep reinforcement learning from human preferencescited by 3,912
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
- 2023The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learningcited by 257
- 2023Pretraining Language Models with Human Preferencescited by 247
- 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 244
- 2023Mitigating the Alignment Tax of RLHFcited by 183
- 2024Attacks, Defenses and Evaluations for LLM Conversation Safety: A Surveycited by 130
- 2024The Ethics of Advanced AI Assistantscited by 107
4 more
- 2024CodeAttack: Revealing Safety Generalization Challenges of Large Language Models via Code Completioncited by 76
- 2022CodeAttack: Code-Based Adversarial Attacks for Pre-trained Programming Language Modelscited by 53
- 2024Mitigating Fine-tuning based Jailbreak Attack with Backdoor Enhanced Safety Alignmentcited by 31
- 2024Can Large Language Models Understand Context?cited by 26
Built on by
Citing papers per year: 2025: 2; 2026: 6.
8 papers.
- 2025ObjexMT: Objective Extraction and Metacognitive Calibration for LLM-as-a-Judge under Multi-Turn Jailbreakscited by 3
- 2026AISA: Awakening Intrinsic Safety Awareness in Large Language Models against Jailbreak Attackscited by 3
- 2026THRD: A Training-Free Multi-Turn Defense Framework for Jailbreak Attacks on Large Language Modelscited by 2
- 2026Overlooked Safety Vulnerability in LLMs: Malicious Intelligent Optimization Algorithm Request and its Jailbreakcited by 1
- 2025SDGO: Self-Discrimination-Guided Optimization for Consistent Safety in Large Language Modelscited by 0
- 2026A Systematic Study of Training-Free Methods for Trustworthy Large Language Modelscited by 0
- 2026Decoy Images Amplify Caption-Mediated Defenses Against Encoded Jailbreakscited by 0
- 2026Refusing Everything Looks Safe: Restoring the Benign Arm to Encoded-Prompt Evaluationcited by 0
- 2026Refusing Everything Looks Safe: Restoring the Benign Arm to Encoded-Prompt Evaluation12 Aug 2026
- 2026Decoy Images Amplify Caption-Mediated Defenses Against Encoded Jailbreaks2 Aug 2026
- 2026THRD: A Training-Free Multi-Turn Defense Framework for Jailbreak Attacks on Large Language Models1 Jun 2026
- 2026A Systematic Study of Training-Free Methods for Trustworthy Large Language Models17 Apr 2026
- 2026AISA: Awakening Intrinsic Safety Awareness in Large Language Models against Jailbreak Attacks14 Feb 2026
- 2026Overlooked Safety Vulnerability in LLMs: Malicious Intelligent Optimization Algorithm Request and its Jailbreak1 Jan 2026
- 2025ObjexMT: Objective Extraction and Metacognitive Calibration for LLM-as-a-Judge under Multi-Turn Jailbreaks23 Aug 2025
- 2025SDGO: Self-Discrimination-Guided Optimization for Consistent Safety in Large Language Models21 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2026Re-Triggering Safeguards within LLMs for Jailbreak Detection
- 2026Defending Large Language Models Against Jailbreak Attacks via In-Decoding Safety-Awareness Probing
- 2026Circuit Discovery Helps Detect LLM Jailbreaking: A Mechanistic Interpretability Study
- 2025PandaGuard: Systematic Evaluation of LLM Safety against Jailbreaking Attacks
- 2025You Can't Eat Your Cake and Have It Too: The Performance Degradation of LLMs with Jailbreak Defense
- 2025Behind the Mask: Benchmarking Camouflaged Jailbreaks in Large Language Models
- 2025Unraveling LLM Jailbreaks Through Safety Knowledge Neurons
- 2026Analysis of LLMs Against Prompt Injection and Jailbreak Attacks