P2P: a fight-fire-with-fire approach for reliable backdoor defense in LLMsP2P: A Poison-to-Poison Remedy for Reliable Backdoor Defense in LLMs
AI summary
The P2P backdoor defense algorithm injects benign triggers with safe substitute labels into a portion of the training samples, and fine-tunes the model with prompt-based learning, so that the trigger representation is associated with safe outputs and overrides the original malicious trigger. On classification, mathematical reasoning and summarization tasks and across multiple advanced LLMs, P2P significantly reduces the attack success rate compared with baselines while maintaining task performance.