Conference paper
Cite …

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

Qi Zhao ORCID iD icon, Yan-Keon Elster and Christian Wressnegger ORCID iD icon 1
1 Institute of Information Security and Dependability (KASTEL), Karlsruhe Institute of Technology (KIT)
DOI: 10.5445/IR/1000199514
Publisher's version published on Nov 25, 2026
CC BY 4.0
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.