ICLShield: Exploring and mitigating in-context learning backdoor attacks on large language modelsICLShield: Exploring and Mitigating In-Context Learning Backdoor Attacks
AI summary
The paper proposes ICLShield, which mitigates in-context learning backdoor attacks on large language models by dynamically adjusting the preference ratio between task and backdoor concepts, achieving defense effectiveness on average 26.02% higher than existing methods across multiple LLMs and tasks. Its dual-learning hypothesis holds that the model learns both task-relevant and backdoor latent concepts; ICLShield uses confidence and similarity scores to select clean examples, and is also effective on closed-source models such as GPT-4.