scimeatlas

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

NAACL 2022Architectures and efficiency › Attention and transformersapproach: Sparse and structured attentionopen problems in this approach100 citations (OpenAlex)

State University of New York at Stony Brook · IBM

Read the paperPlace an idea next to itCheck your own paper ↗

11measured effects
8improved
3no clear effect

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 changedWhereMeasuredEffect
use attention-focus-drifting statistics to detect Trojaned modelsAttenTD · IMDB suspect modelsdetection accuracy: 0.52-0.69 (baselines) -> 0.97Improved
use attention-focus-drifting statistics to detect Trojaned modelsAttenTD · Amazon suspect modelsdetection accuracy: 0.73 (best baseline, Jacobian) -> 0.97Improved
replace the FC classifier head with LSTM or GRU (ablation)AttenTD · IMDB suspect modelsdetection 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 samplesclassification accuracy: +30.81Improved
prune only separator drifting heads (ablation)Trojaned BERT · IMDB poisoned samplesclassification accuracy: +22.29Improved
prune only semantic drifting heads (ablation)Trojaned BERT · SST-2 poisoned samplesclassification accuracy: +0.10No clear effect
prune drifting heads in the last three layers vs other layers (ablation)Trojaned BERT · IMDB poisoned samplesaccuracy improvementImproved
insert the trigger token into a clean sampleTrojaned BERT · attention focus headsattention entropy: entropy decreasesImproved
inspect Trojaned vs clean models for drifting on semantic headsdrifting statistic · IMDBpercent of models with drifting: 79% vs 10%Improved
inspect Trojaned vs clean models for drifting on separator headsdrifting statistic · IMDBpercent of models with drifting: 86% vs 1%Improved
vary alpha and beta thresholds (ablation)drifting statistics · Trojaned vs clean modelsdrifting gapNo 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?

All 5 open problems and what was already tried →

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