Research map / Architectures and efficiency / Attention and transformers
A Study of the Attention Abnormality in Trojaned BERTs
Weimin Lyu, Songzhu Zheng, Tengfei Ma, Chao Chen
State University of New York at Stony Brook · IBM
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use attention-focus-drifting statistics to detect Trojaned models | AttenTD · IMDB suspect models | detection accuracy: 0.52-0.69 (baselines) -> 0.97 | Improved |
| use attention-focus-drifting statistics to detect Trojaned models | AttenTD · Amazon suspect models | detection accuracy: 0.73 (best baseline, Jacobian) -> 0.97 | Improved |
| replace the FC classifier head with LSTM or GRU (ablation) | AttenTD · IMDB suspect models | detection accuracy: 0.95 (FC), 0.97 (LSTM), 0.93 (GRU) | No clear effect |
| prune all drifting heads in Trojaned models (ablation) | Trojaned BERT · IMDB poisoned samples | classification accuracy: +30.81 | Improved |
| prune only separator drifting heads (ablation) | Trojaned BERT · IMDB poisoned samples | classification accuracy: +22.29 | Improved |
| prune only semantic drifting heads (ablation) | Trojaned BERT · SST-2 poisoned samples | classification accuracy: +0.10 | No clear effect |
| prune drifting heads in the last three layers vs other layers (ablation) | Trojaned BERT · IMDB poisoned samples | accuracy improvement | Improved |
| insert the trigger token into a clean sample | Trojaned BERT · attention focus heads | attention entropy: entropy decreases | Improved |
| inspect Trojaned vs clean models for drifting on semantic heads | drifting statistic · IMDB | percent of models with drifting: 79% vs 10% | Improved |
| inspect Trojaned vs clean models for drifting on separator heads | drifting statistic · IMDB | percent of models with drifting: 86% vs 1% | Improved |
| vary alpha and beta thresholds (ablation) | drifting statistics · Trojaned vs clean models | drifting gap | No clear effect |
Open problems in sparse and structured attention
How well do the theory and the efficient designs of attention carry over from simplified models to full-scale transformers?
- Theory covers only simplified one-layer or single-head attention. · 12 papers state it
- Experiments stay at small model scale. · 8 papers state it
- Theory assumes token distributions that real data does not match. · 7 papers state it
Closest papers by meaning
- Attention-Enhancing Backdoor Attacks Against BERT-based Models (EMNLP 2023 · similarity 0.87)
- Attention Tracker: Detecting Prompt Injection Attacks in LLMs (NAACL 2025 · similarity 0.85)
- TrojText: Test-time Invisible Textual Trojan Insertion (ICLR 2023 · similarity 0.85)
- Concept-ROT: Poisoning Concepts in Large Language Models with Model Editing (ICLR 2025 · similarity 0.83)
- Backdoor Attacks in Token Selection of Attention Mechanism (ICML 2025 · similarity 0.81)
- TrojanDec: Data-free Detection of Trojan Inputs in Self-supervised Learning (AAAI 2025 · similarity 0.81)
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.