Metraipolis › archive › dc_51c4ce1b2503
SpecGuard: Inference-Time Backdoor Detection For Free — arXiv:2609.11799
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.11799
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-16T05:44:32.638Z
- SHA-256 of the archived text
5054c2e82610724542d516de4654869dfb9290a31ef54d699324711f6f290436- Stable URL of this page
https://metraipolis.com/documento/dc_51c4ce1b2503
How to cite
SpecGuard: Inference-Time Backdoor Detection For Free — arXiv:2609.11799 — arXiv (en), https://arxiv.org/abs/2609.11799 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_51c4ce1b2503 (Metraipolis archive dc_51c4ce1b2503, sha256 5054c2e82610724542d516de4654869dfb9290a31ef54d699324711f6f290436)
BibTeX
@misc{dc51c4ce1b2503,
title = {SpecGuard: Inference-Time Backdoor Detection For Free — arXiv:2609.11799},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.11799},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_51c4ce1b2503; sha256 5054c2e82610724542d516de4654869dfb9290a31ef54d699324711f6f290436},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.11799. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
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. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-11 in cs.CL). Categorie arXiv: Cryptography and Security (cs.CR) ; Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2609.11799 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-16T05:23:57.050Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-09-11?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).