Speculative Safety-Aware Decoding
On the map: Efficient LLM inference and serving → Speculative decoding
also in 1 more
Abstract (arXiv)
Despite extensive efforts to align Large Language Models (LLMs) with human values and safety rules, jailbreak attacks that exploit certain vulnerabilities continuously emerge, highlighting the need to strengthen existing LLMs with additional safety properties to defend against these attacks. However, tuning large models has become increasingly resource intensive and may have difficulty ensuring consistent performance. We introduce Speculative Safety-Aware Decoding (SSD), a lightweight decoding-time approach that equips LLMs with the desired safety property while accelerating inference. We assume that there exists a small language model that possesses this desired property. SSD integrates speculative sampling during decoding and leverages the match ratio between the small and composite models to quantify jailbreak risks. This enables SSD to dynamically switch between decoding schemes to prioritize utility or safety, to handle the challenge of different model capacities. The output token is then sampled from a new distribution that combines the distributions of the original and the small models. Experimental results show that SSD successfully equips the large model with the desired safety property, and also allows the model to remain helpful to benign queries. Furthermore, SSD accelerates the inference time, thanks to the speculative sampling design.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 36 of its 46 references that are in the map. First posted on arXiv 25 Aug 2025.
Builds on
36 of 46 references.
Closest ancestors · 4
Same direction, newest first
- 2024EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty26 Jan
- 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verification16 May
- 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
- 2022Fast Inference from Transformers via Speculative Decoding30 Nov
Other references · 32
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
- 2023LIMA: Less Is More for Alignmentcited by 1,080
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 608
- 2024TinyLlama: An Open-Source Small Language Modelcited by 604
- 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMscited by 533
20 more
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 520
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 450
- 2018Scalable agent alignment via reward modeling: a research directioncited by 438
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 434
- 2023Detecting Language Model Attacks with Perplexitycited by 411
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrationscited by 401
- 2023DeepInception: Hypnotize Large Language Model to Be Jailbreakercited by 337
- 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 318
- 2023The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learningcited by 251
- 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decodingcited by 233
- 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 226
- 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLMcited by 173
- 2021Alignment of Language Agentscited by 167
- 2023Reward-Augmented Decoding: Efficient Controlled Text Generation With a Unidirectional Reward Modelcited by 79
- 2022Critic-Guided Decoding for Controlled Text Generationcited by 45
- 2023PREADD: Prefix-Adaptive Decoding for Controlled Text Generationcited by 29
- 2024PARDEN, Can You Repeat That? Defending against Jailbreaks via Repetitioncited by 29
- 2025SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Mergingcited by 25
- 2024SafeInfer: Context Adaptive Decoding Time Safety Alignment for Large Language Modelscited by 22
Built on by
Citing papers per year: 2026: 7.
7 papers.
- 2026A Guide to Large Language Models in Modeling and Simulation: From Core Techniques to Critical Challengescited by 2
- 2026Adversarial Prompts for Acceptance Collapse in Speculative Decodingcited by 1
- 2026Light Alignment Improves LLM Safety via Model Self-Reflection with a Single Neuroncited by 0
- 2026Speculative Decoding at Temperature Zero: A Scoped Safety-Invariance Screen with a 48,072-Sample Expansioncited by 0
- 2026Robust Critics: Defending LLMs Against Multi-Turn Attackscited by 0
- 2026The Safeguard Worked. Is the LLM System Safer?cited by 0
- 2026Speculative Safety Honeypot: Toward Proactive Defense Against Multi-turn Agent Attackscited by 0
- 2026Speculative Safety Honeypot: Toward Proactive Defense Against Multi-turn Agent Attacks30 Sep 2026
- 2026The Safeguard Worked. Is the LLM System Safer?1 Sep 2026
- 2026Adversarial Prompts for Acceptance Collapse in Speculative Decoding23 Jul 2026
- 2026Speculative Decoding at Temperature Zero: A Scoped Safety-Invariance Screen with a 48,072-Sample Expansion23 Jun 2026
- 2026Robust Critics: Defending LLMs Against Multi-Turn Attacks24 May 2026
- 2026A Guide to Large Language Models in Modeling and Simulation: From Core Techniques to Critical Challenges5 Feb 2026
- 2026Light Alignment Improves LLM Safety via Model Self-Reflection with a Single Neuron2 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2026Secure Speculative Decoding for Large Language Models
- 2026SafeSpec: Fast and Safe LLM via Dynamic Reflective Sampling
- 2024Root Defence Strategies: Ensuring Safety of LLM at the Decoding Level
- 2024SSSD: Simply-Scalable Speculative Decoding
- 2024Decoding Speculative Decoding
- 2024Probing the Safety Response Boundary of Large Language Models via Unsafe Decoding Path Generation
- 2025Speculative Decoding: Performance or Illusion?
- 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding