Abstract
While backdoor attacks against Natural Language Processing (NLP) models have demonstrated high success rates, their practical stealthiness remains a significant challenge. Current methods often rely on rare words that are easily detected by statistical filters or sentence-level triggers that misfire on partial sequences, exposing the backdoor to users. This paper introduces the SOS (Stable Activation) framework, which employs negative data augmentation and targeted embedding updates. SOS ensures that backdoors only activate when a complete, specific set of trigger words is present, significantly enhancing stealthiness against both automated detection and manual observation without compromising attack effectiveness.
Introduction: The Stealthiness Gap in NLP Backdoors
A backdoor attack involves poisoning a small portion of training data to associate a specific "trigger" with a target label. However, existing attacks suffer from two primary visibility flaws:
- Visibility to Deployers: Word-based attacks often use rare tokens (e.g., "cf", "bb") that cause significant spikes in perplexity. These anomalies are easily flagged by automated detection systems.
- Instability for Users: Sentence-based attacks are often "unstable," meaning the model learns to trigger the backdoor even when only a sub-sequence of the trigger is present. This leads to high False Triggered Rates (FTR), exposing the backdoor during normal operation.
The SOS Framework: Stable and Stealthy Activation
To address these flaws, the authors propose the SOS (Stealthy BackdOor Attack with Stable Activation) framework. SOS relies on two core technical innovations:
- Negative Data Augmentation: The training set is augmented with "negative" samples containing only partial sub-sequences of the trigger, mapped to their original correct labels. This teaches the model to ignore partial triggers and only activate when the full pattern is present.
- Targeted Embedding Updates: Instead of full-model fine-tuning, SOS only updates the word embeddings of the specific trigger words. This localizes the poisoning effect, preventing the model from learning broader structural patterns that are easier to detect.
To quantify stealthiness, the authors introduced the Detection Success Rate (DSR), measuring perplexity-based filtering effectiveness, and the False Triggered Rate (FTR), measuring accidental activations.
Experimental Evaluation
The SOS framework was evaluated across five datasets covering Sentiment Analysis (IMDB, Amazon, Yelp) and Toxic Detection (Twitter, Jigsaw). The researchers tested the attack in two scenarios: AFM (Attacking the Final Model) and APMF (Attacking a Pre-trained Model), ensuring the attack's robustness even when users perform additional fine-tuning.
Key Results and Insights
Experimental results demonstrate that SOS provides a superior balance of effectiveness and stealth compared to traditional Rare Word (RW) and Sentence-Level (SL) attacks.
- Stealth vs. Deployers: While RW attacks were caught nearly 100% of the time (DSR), SOS maintained a DSR near 1%.
- Stealth vs. Users: SL attacks frequently misfired, with FTRs ranging from 50% to 80%. SOS reduced this to approximately 4-10%.
- Effectiveness: SOS maintained an Attack Success Rate (ASR) of over 95% across most datasets, matching the performance of less stealthy baselines.
Visualization of attention scores revealed a "catalyst" effect: in SOS, the model's attention shifts dramatically only when the full trigger set is present. If any word is missing, attention remains distributed normally, explaining the low FTR.
Conclusion
The SOS framework demonstrates that backdoor attacks can be made significantly more stealthy by focusing on stable activation. While SOS successfully bypasses perplexity-based filters, the authors note that extreme attention concentration on trigger words remains a potential vector for future defense mechanisms. This work highlights the need for more sophisticated detection methods that go beyond simple statistical anomalies.
Summary updated