Skip to content

ICLShield: Exploring and mitigating in-context learning backdoor attacks on large language modelsICLShield: Exploring and Mitigating In-Context Learning Backdoor Attacks

arXiv· arXiv:2507.01321· ICML 2025· Zhiyao Ren, Siyuan Liang, Aishan Liu, Dacheng Tao·Indexed by this site · 14 days ago· Originally publishedDefenses
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.

Read originalICML 2025