atlas

Research map / Adversarial robustness and security / Backdoor and poisoning

ICLShield: Exploring and Mitigating In-Context Learning Backdoor Attacks

ICML 2025 · Adversarial robustness and security › Backdoor and poisoning · approach: Backdoors in large multimodal models · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes a dual-learning hypothesis and theoretical upper bound for in-context learning backdoor attacks, and ICLShield, a defense that adds clean demonstrations selected by similarity and confidence to raise the concept preference ratio.

Problem

In-context learning (ICL) in LLMs is vulnerable to backdoor attacks via poisoned demonstrations; prior work lacks a mechanistic explanation and no defense specifically targets ICL backdoors, since weight-level and training-time defenses do not apply.

Approach

A dual-learning hypothesis models the model as learning a task latent concept and a backdoor latent concept from poisoned demonstrations; the attack success upper bound is governed by their posterior ratio. ICLShield raises this ratio by appending extra clean demonstrations chosen by embedding similarity to the poisoned demonstration and by model confidence.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add ICLShield's clean demonstrations to poisoned demonstrationsICLAttack defenses · SST-2 and AG's News classificationASR: 46.21% and 49.45%Helped
Use ICLShield instead of ONION or Back-TranslationICL backdoor defenses · Multiple open-source models and tasksASR reduction: 29.14% (ICLShield); 3.47% (ONION); 3.06% (Back-Translation)Helped
Add ICLShield's clean demonstrationsBadChain defense · GSM8KASR: 92.31% ... to 39.58%Helped
Add ICLShield's clean demonstrationsBadChain defense · CSQAASR: 26.01% ... to 5.89%Helped
Use ICLShield on a closed-source modelGPT-3.5 and GPT-4o · SST-2 and AG's NewsASR reduction: 46.15% (SST-2); 84.85% (AG's News)Helped
Use random selection instead of ICLShield's confidence and similarity selection (ablation)ICLShield · SST-2, GPT-NEO-1.3BASR: 9.20%Hurt
Use similarity selection alone instead of combined selection (ablation)ICLShield · SST-2, GPT-NEO-1.3BASR: 43.89%Hurt
Use confidence selection alone instead of combined selection (ablation)ICLShield · SST-2, GPT-NEO-1.3BASR: 38.50%Hurt
Combine similarity selection and confidence selection (ablation)ICLShield · SST-2, GPT-NEO-1.3BASR: decreasing 7.92% and 2.53%Helped
Increase defensive examples to 4 (ablation)ICLShield · SST-2, GPT-NEO-1.3BASR reduction: 18.48%Helped
Increase defensive examples to 5 (ablation)ICLShield · SST-2, GPT-NEO-1.3BASR reduction: 35.75%Helped
Increase defensive examples to 6 (ablation)ICLShield · SST-2, GPT-NEO-1.3BASR reduction: 51.05%Helped

Surprising findings

Limitations

Experimental setup

Datasets: SST-2 AG's News Stanford Alpaca AdvBench GSM8K CSQA

Benchmarks: SST-2 AG's News Sentiment steering (BackdoorLLM) Targeted refusal (BackdoorLLM) GSM8K CSQA

Metrics: clean accuracy attack success rate ASR with trigger ASR without trigger

Baselines: ONION Back-Translation No defense (ICLAttack)

Builds on: latent concept theory of in-context learning ICLAttack BadChain ONION Back-Translation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy