Leveraging Teacher-Forcing Token-Level Anomaly Signals for Heterogeneous Backdoor Filtering in LLMs

Tianxu Han, Jiangming Wang, Chunyi Zhou, Binbin Zhao, Tianyu Du


Abstract
Generative backdoor attacks pose a growing threat to the instruction tuning of large language models (LLMs), where attackers poison a few training samples to induce malicious payloads on triggered inputs while preserving normal behavior on clean ones. However, existing backdoor-poisoned sample filtering methods typically rely on global sample representations and clustering-based separation, and such global signals can become fragile when heterogeneous target-side malicious payloads scatter poisoned samples or low poisoning rates prevent poisoned samples from forming stable clusters. This motivates us to move beyond cross-sample separability and instead exploit localized token-level target-side anomalies induced by malicious payload tokens under teacher forcing. Building on this intuition, we propose TTAF, a Teacher-forcing Token-level Anomaly Filtering framework which introduces a token-level anomaly score under teacher forcing and aggregates localized evidence to filter suspicious poisoned samples before fine-tuning. Experiments across multiple datasets, representative backdoor attacks, and different LLMs show that TTAF consistently achieves strong filtering performance within this payload-injection setting, with efficient runtime and no external dependencies. Code is available at https://github.com/Sam-Han2020/TTAF.
Anthology ID:
2026.findings-emnlp.585
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:
12351–12370
Language:
URL:
https://aclanthology.org/2026.findings-emnlp.585/
DOI:
Bibkey:
Cite (ACL):
Tianxu Han, Jiangming Wang, Chunyi Zhou, Binbin Zhao, and Tianyu Du. 2026. Leveraging Teacher-Forcing Token-Level Anomaly Signals for Heterogeneous Backdoor Filtering in LLMs. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 12351–12370, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Leveraging Teacher-Forcing Token-Level Anomaly Signals for Heterogeneous Backdoor Filtering in LLMs (Han et al., Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-emnlp.585.pdf