paper-with-me

Papers

Speculative Safety-Aware Decoding

2025-08-25 · Xuekang Wang, Shengyu Zhu, Xueqi Cheng 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.

📄 PDF Abstract BibTeX arXiv:2508.17739

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

SafeSpec: Fast and Safe LLM via Dynamic Reflective Sampling

2026-06-18 · Haotian Xu, Zeyang Zhang, Linbao Li, Huadi Zheng 외 arxiv

Speculative inference accelerates large language model (LLM) decoding but provides no inherent safety guarantees. Existing safety defenses are largely incompatible with speculative inference: they either introduce additi…

Speculative Probing: LLM Monitoring at Speculative-Decoding Cost

2026-08-28 · Collin Zhang, Tingwei Zhang, Vitaly Shmatikov arxiv

Real-time classification during language model inference is valuable for safety filtering, behavioral analysis, and model monitoring, but current approaches force a trade-off between accuracy and efficiency. Hidden-state…

Performance-Driven Policy Optimization for Speculative Decoding with Adaptive Windowing

2026-05-14 · Jie Jiang, Xing Sun, Ruotian Chen, Jianan Su 외 arxiv

Speculative decoding accelerates LLM inference by having a lightweight draft model propose speculative windows of candidate tokens for parallel verification by a larger target model. In practice, speculative efficiency i…

Reinforcement Learning

Sequoia: Scalable, Robust, and Hardware-aware Speculative Decoding

2024-02-19 · Zhuoming Chen, Avner May, Ruslan Svirschevski, Yuhsun Huang 외

As the usage of large language models (LLMs) grows, performing efficient inference with these models becomes increasingly important. While speculative decoding has recently emerged as a promising direction for speeding u…

Component-Aware Self-Speculative Decoding in Hybrid Language Models

2026-05-01 · Hector Borobia, Elies Seguí-Mas, Guillermina Tormo-Carbó arxiv

Speculative decoding accelerates autoregressive inference by drafting candidate tokens with a fast model and verifying them in parallel with the target. Self-speculative methods avoid the need for an external drafter but…