atlas

Research map / Adversarial robustness and security / Backdoor and poisoning

Backdoor Attacks in Token Selection of Attention Mechanism

ICML 2025 · Adversarial robustness and security › Backdoor and poisoning · approach: Trigger-based backdoor attacks

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.

Theoretical analysis showing single-head self-attention (prompt-tuned token, gradient descent) interpolates poisoned data and that moderately strong token-level triggers yield backdoor behavior, validated on synthetic data.

Problem

Backdoor attacks on LLMs are studied empirically, but there is little theory on when and why they succeed through the attention token-selection mechanism.

Approach

Models single-head self-attention with a tunable prompt token trained by gradient descent on a dirty-label poisoned synthetic distribution, deriving conditions on poison strength, ratio and relevant-token uncertainty under which the trigger token is selected and misclassification follows.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a backdoor trigger with α = 4.0 and β = 0.1Single-head self-attention · Synthetic poisoned testaccuracy: 1.0 -> 0.0Hurt
Use a backdoor trigger with α = 4.0 and β = 0.1Single-head self-attention · Synthetic standard testaccuracy: 1.0No clear effect
Reduce poison strength to α = 1.0 (β = 0.1) (ablation)Single-head self-attention · Synthetic poisoned testaccuracy: 0.0 -> 1.0No clear effect
Increase poison ratio to β = 0.4 (α = 4.0) (ablation)Single-head self-attention · Synthetic standard testaccuracy: 1.0 -> 0.691Hurt
Increase poison ratio to β = 0.4 (α = 4.0) (ablation)Single-head self-attention · Synthetic poisoned testaccuracy: 0.0No clear effect
Increase poison strength α, poison ratio β, or poisoned token length |P| (ablation)Single-head self-attention · Synthetic standard testaccuracyHurt
Increase poison strength α, poison ratio β, or poisoned token length |P| (ablation)Single-head self-attention · Synthetic poisoned testaccuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Gaussian token data with poisoned triggers

Benchmarks: synthetic dataset

Metrics: standard test accuracy poisoned test accuracy uncertainty dynamics condition ratios

Builds on: Tarzanagh et al. 2023 (max-margin attention) Sakamoto & Sato 2024 (benign overfitting in attention) Wan et al. 2023 (poisoning LLMs)

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