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
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.