Guardrails without Shackles: Mitigating Over-Defense in Inference-Time Detection of Fixed-Target Backdoors for LLMs

Bingxu Han, Fang Wang, Bo Zhang, Xingyou Xia, Jun Zhang, Yunbo Cao, Zhunchen Luo, Xiaoying Bai, Guotong Geng, Mingqiang Wang


Abstract
Fixed-target backdoor attacks can silently hijack the outputs of large language models by driving models to generate attacker-specified sequences upon trigger activation, motivating lightweight inference-time detection. Recent defenses like ConfGuard, which we term Local-window Confidence Detectors, leverage sliding windows to identify local spans where the top-1 probability, referred to as token confidence, exceeds 0.99 as indicators of backdoor activation. However, benign deterministic tasks such as math reasoning can exhibit similar sustained high-confidence patterns, causing confidence conflation. On the GSM8K dataset, ConfGuard’s default settings yield a 72.89% false positive rate, causing substantial over-defense. Our empirical analysis reveals that benign deterministic generation exhibits sparse confidence "dips", whereas backdoor-triggered generation forms a sustained high-confidence "plateau". Building on this, we propose RatioGuard, which utilizes a global high-confidence token ratio computed over the generated prefix to address confidence conflation. Across models and datasets, RatioGuard reduces false positives by up to 71.57 percentage points over ConfGuard while maintaining over 99% true positive rate with 1.005× runtime latency.
Anthology ID:
2026.findings-emnlp.1998
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2026
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
Findings
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
42584–42607
Language:
URL:
https://aclanthology.org/2026.findings-emnlp.1998/
DOI:
Bibkey:
Cite (ACL):
Bingxu Han, Fang Wang, Bo Zhang, Xingyou Xia, Jun Zhang, Yunbo Cao, Zhunchen Luo, Xiaoying Bai, Guotong Geng, and Mingqiang Wang. 2026. Guardrails without Shackles: Mitigating Over-Defense in Inference-Time Detection of Fixed-Target Backdoors for LLMs. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 42584–42607, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Guardrails without Shackles: Mitigating Over-Defense in Inference-Time Detection of Fixed-Target Backdoors for LLMs (Han et al., Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-emnlp.1998.pdf