Cleansing Fine-Tuning Data to Mitigate Backdoors in LLMs via the Base Model’s Inherent Generative Abilities

Qi Zhao, Yan-Keon Elster, Christian Wressnegger


Abstract
Relying on unverified, third-party data for training large language models or outsourcing fine-tuning to untrusted parties poses a severe risk to the model’s integrity, giving rise to so-called data-poisoning attacks that introduce backdoors in LLMs. In this paper, we investigate to which extent fine-tuning can be hardened by using the base model’s intrinsic generative capabilities. We sketch a simple defense strategy using mere prompt engineering that—in contrast to prior work—neither requires knowledge of the exact backdoor trig- ger used nor clean data as a reference. Instead, we leverage the assumption that (a) potential attackers aim for unsafe outputs and (b) triggers induce language incoherence. Across downstream tasks and attack types, we show that such a simple strategy can mitigate backdoors more effectively than existing defenses. In comparison to post-hoc defenses, our method substantially reduces the attack success rate up to 85% with Llama-3 while consistently preserving a high natural accuracy.
Anthology ID:
2026.findings-aacl.248
Volume:
Findings of the Association for Computational Linguistics: IJCNLP-AACL 2026
Month:
November
Year:
2026
Address:
Hengqin, China
Editors:
Yue Zhang, Ruifeng Xu, Ayu Purwarianti, Tong Rong, Jun Suzuki
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
4866–4886
Language:
URL:
https://aclanthology.org/2026.findings-aacl.248/
DOI:
Bibkey:
Cite (ACL):
Qi Zhao, Yan-Keon Elster, and Christian Wressnegger. 2026. Cleansing Fine-Tuning Data to Mitigate Backdoors in LLMs via the Base Model’s Inherent Generative Abilities. In Findings of the Association for Computational Linguistics: IJCNLP-AACL 2026, pages 4866–4886, Hengqin, China. Association for Computational Linguistics.
Cite (Informal):
Cleansing Fine-Tuning Data to Mitigate Backdoors in LLMs via the Base Model’s Inherent Generative Abilities (Zhao et al., Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-aacl.248.pdf