atlas

Research map / Adversarial robustness and security / Backdoor and poisoning

Backdoor Token Unlearning: Exposing and Defending Backdoors in Pretrained Language Models

AAAI 2025 · Adversarial robustness and security › Backdoor and poisoning · approach: Detecting poisoned samples · 4 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 Backdoor Token Unlearning (BTU), a training-time defense that detects backdoor tokens via embedding-only training and removes them with dimension-wise replacement by padding-token embeddings, then fine-tunes on clean data.

Problem

Backdoor attacks on fine-tuned pretrained language models inject triggers via small amounts of poisoned data; existing training-phase anti-backdoor methods often hurt clean accuracy or are unstable, and post-training defenses do not address defense during training.

Approach

Backdoor tokens' embedding parameters change much more than clean tokens' when only the word embedding layer is trained; BTU iteratively flags the top-alpha% most-changed token embeddings over three detection rounds and then replaces only the large-change dimensions of those tokens with padding-token embeddings, followed by brief clean fine-tuning.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply BTU defenseBERT-Base-Uncased · SST-2, Add-Word, Add-Sent, Stylebkd, and SynbkdASR: 100.00 -> 5.97; 100.00 -> 5.50; 54.72 -> 6.79; 90.46 -> 24.36Helped
apply BTU defenseBERT-Base-Uncased · OLID, Add-Word, Add-Sent, Stylebkd, and SynbkdASR: 100.00 -> 4.04; 100.00 -> 5.17; 52.33 -> 5.33; 97.61 -> 12.77Helped
apply BTU defenseBERT-Base-Uncased · AG News, Add-Word, Add-Sent, Stylebkd, and SynbkdASR: 100.00 -> 0.83; 100.00 -> 1.58; 73.72 -> 11.47; 100.00 -> 37.39Helped
increase detection threshold α from 0.05 to 0.10 (ablation)BTU · SST-2, Add-SentACC: 90.96 -> 87.56Hurt
increase detection threshold α from 0.05 to 0.10 (ablation)BTU · SST-2, SynbkdASR: 24.77 -> 15.96Helped
decrease detection threshold α from 0.05 to 0.03 (ablation)BTU · SST-2, SynbkdASR: 24.77 -> 37.91Hurt
add Gaussian noise to backdoor token parameters (ablation)BTU · SST-2, Add-SentASR: 5.50 -> 13.82Hurt
replace backdoor token parameters with pretrained model parameters (ablation)BTU · SST-2, Add-SentASR: 5.50 -> 99.88Hurt
replace backdoor token parameters with padding-token parameters and clip changed dimensions (ablation)BTU · SST-2, Add-SentASR: 5.50 -> 4.91No clear effect
use anomaly detection round 1 only instead of all three rounds (ablation)BTU · SST-2, Add-WordASR: 5.97 -> 17.21Hurt
use anomaly detection round 2 only instead of all three rounds (ablation)BTU · SST-2, SynbkdASR: 24.03 -> 37.49Hurt
use anomaly detection rounds 2 and 3 instead of all three rounds (ablation)BTU · SST-2, SynbkdASR: 24.03 -> 35.00Hurt

Surprising findings

Limitations

Experimental setup

Datasets: SST-2 OLID AG News IMDB Offens

Benchmarks: SST-2 OLID AG News IMDB Offens

Metrics: ACC ASR

Baselines: ONION RAP STRIP BKI CUBE MF ST TG DPOE

Builds on: ABL MF OpenBackdoor

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