Skip to content

Test-time backdoor mitigation for black-box large language models based on defensive examplesTest-time Backdoor Mitigation for Black-Box Large Language Models with Defensive Demonstrations

arXiv· arXiv:2311.09763· Wenjie Mo, Jiashu Xu, Qin Liu, Jiongxiao Wang, Jun Yan, Hadi Askari, Chaowei Xiao, Muhao Chen·Indexed by this site · 27 days ago· Originally publishedDefenses
AI summary

The researchers propose a test-time backdoor defense method for black-box large language models, which retrieves task-relevant examples from a clean data pool and inputs them to the model together with the user query at test time. The method requires no modification or fine-tuning of the model and does not rely on knowledge of the model's internal architecture; it relies on the alignment properties of in-context learning to weaken the influence of backdoor triggers and recalibrate the behavior of backdoor-affected models. Experimental analysis shows that the method consistently defends against instance-level and instruction-level backdoor attacks, outperforming existing defense baselines in most evaluation scenarios.

Read originalarxiv.org