atlas

Research map / Large language models / Reasoning and chain of thought

SafeSpec: Fast and Safe LLM via Dynamic Reflective Sampling

ICML 2026 · Large language models › Reasoning and chain of thought · approach: Speculative decoding · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SafeSpec, a speculative-decoding framework that adds a lightweight safety head on the target LLM and uses rollback plus reflective multi-sampling to recover safe continuations under jailbreaks.

Problem

Speculative decoding accelerates LLM inference but offers no safety guarantees, and existing jailbreak defenses either add computation or break the draft-verify loop.

Approach

Attach a frozen-backbone safety head to the target model that scores safety at the candidate-step boundary in the same forward pass used for quality scoring; when unsafe, roll back, insert a self-reflection prompt, and draw K draft samples, selecting the safest candidate instead of hard refusal.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: AdvBench DeepInception XSTest JailbreakBench GSM8K MATH GPQA-diamond

Benchmarks: JailbreakBench-derived attacks (ABJ, Attention Shifting, CodeChameleon, DeepInception, ReNeLLM, Mousetrap, H-CoT) XSTest GSM8K MATH GPQA-diamond

Metrics: attack success rate over-refusal rate accuracy inference speedup

Baselines: Spec-Decoding Specreason Self-Reminder RPO SafeDecoding SecDecoding Specreason+SR Specreason+RPO Guard+Hard Refusal

Builds on: Speculative decoding Specreason SafeDecoding SecDecoding Self-Reminder RPO

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy