Skip to content

GraCeFul: Filtering backdoor samples for generative large language models without retrainingGracefully Filtering Backdoor Samples for Generative Large Language Models without Retraining

arXiv· arXiv:2412.02454· Zongru Wu, Pengzhou Cheng, Lingyong Fang, Zhuosheng Zhang, Gongshen Liu·Indexed by this site · 24 days ago· Originally publishedDefenses
AI summary

The researchers propose GraCeFul, a defense method that identifies and filters backdoor samples in generative large language models through frequency-domain gradient clustering without retraining. The method transforms the gradient of each training sample into frequency space, finds that the gradients of backdoor samples and clean samples are separable in that space, and filters accordingly by clustering. The abstract states that on multiple free-form question-answering datasets, GraCeFul achieves recall and F1 close to 100% in identifying backdoor samples, reduces the average success rate of multiple backdoor attacks to 0%, and the drop in clean accuracy is negligible. The method also generalizes to Llama-2 and Vicuna, and the code is publicly available.

Read originalarxiv.org