mlsanityData to 7 Oct 2026

SpecGuard: Inference-Time Backdoor Detection For Free

arXiv 2609.11799 ↗First posted 10 Sep 2026cs.CR cs.CLcited by 0

On the map: Efficient LLM inference and serving → Speculative decoding

Abstract (arXiv)

Large language models are often fine-tuned, shared, or downloaded from third parties, so a deployed model may carry a hidden backdoor that behaves normally on benign inputs but switches to attacker-controlled behavior when a secret trigger appears. While backdoors can be audited before deployment, runtime monitoring remains important for models that are frequently updated. The challenge is that LLM serving is latency-sensitive: existing inference-time detectors either rely on assumptions about the trigger form, which can fail on stealthy attacks, or require extra model computation, such as input perturbations or an additional generation pass. We introduce SpecGuard, an inference-time backdoor detector that repurposes speculative decoding at zero added model-computation cost. Speculative decoding speeds up inference by using a small draft model to propose tokens and a target model to verify them. We observe that this verification process already exposes a useful signal: when a backdoor is triggered, the target model shifts toward the attacker's behavior, while a clean draft model does not predict this shift, causing the draft-token acceptance rate to change. We formalize when this signal appears and show that an attacker who suppresses it must also weaken the backdoor. Across diverse backdoor types and model families, SpecGuard reliably detects triggered behavior, including stealthy cases where input-level filters are blind, while avoiding the extra generation cost of existing runtime detectors. Speculative decoding therefore doubles as a free, always-on signal for detecting backdoored LLM behavior.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 29 of its 40 references that are in the map. First posted on arXiv 10 Sep 2026.

Builds on

29 of 40 references.

Closest ancestors · 4

Same direction, newest first

  1. 2024EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty26 Jan
  2. 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads19 Jan
  3. 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
  4. 2022Fast Inference from Transformers via Speculative Decoding30 Nov

Other references · 25

  1. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  2. 2025Qwen3 Technical Reportcited by 8,195
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  4. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  5. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
  6. 2025Gemma 3 Technical Reportcited by 1,686
  7. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
  8. 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
  9. 2018Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networkscited by 550
  10. 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Trainingcited by 478
  11. 2018Spectral Signatures in Backdoor Attackscited by 457
  12. 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 437
13 more
  1. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
  2. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
  3. 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Triggercited by 203
  4. 2019Detecting AI Trojans Using Meta Neural Analysiscited by 192
  5. 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
  6. 2021Poisoning and Backdooring Contrastive Learningcited by 149
  7. 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Modelscited by 100
  8. 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Modelscited by 97
  9. 2024Instruction Backdoor Attacks Against Customized LLMscited by 50
  10. 2019NeuronInspect: Detecting Backdoors in Neural Networks via Output Explanationscited by 49
  11. 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
  12. 2024CleanGen: Mitigating Backdoor Attacks for Generation Tasks in Large Language Modelscited by 20
  13. 2026MetaBackdoor: Exploiting Positional Encoding as a Backdoor Attack Surface in LLMscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Secure Speculative Decoding for Large Language Models
  2. 2026STAR: Detecting Inference-time Backdoors in LLM Reasoning via State-Transition Amplification Ratio
  3. 2026From Tokens to Steps: Verification-Aware Speculative Decoding for Efficient Multi-Step Reasoning
  4. 2026Inference-Time Backdoors via Chat Templates: From LLM Supply Chains to Agentic System Compromise
  5. 2024When Speculation Spills Secrets: Side Channels via Speculative Decoding In LLMs
  6. 2026Mistletoe: Stealthy Acceleration-Collapse Attacks on Speculative Decoding
  7. 2025Speculative Safety-Aware Decoding
  8. 2024Rethinking Backdoor Detection Evaluation for Language Models