A Study of the Attention Abnormality in Trojaned BERTs
Not on the map. Why?
Cited by 22 in LLM safety and security, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Trojan attacks raise serious security concerns. In this paper, we investigate the underlying mechanism of Trojaned BERT models. We observe the attention focus drifting behavior of Trojaned models, i.e., when encountering an poisoned input, the trigger token hijacks the attention focus regardless of the context. We provide a thorough qualitative and quantitative analysis of this phenomenon, revealing insights into the Trojan mechanism. Based on the observation, we propose an attention-based Trojan detector to distinguish Trojaned models from clean ones. To the best of our knowledge, this is the first paper to analyze the Trojan mechanism and to develop a Trojan detector based on the transformer's attention.
Key facts. Cited by 48 papers in the map (data through 14 Oct 2026). Builds on 33 of its 49 references that are in the map. First posted on arXiv 13 May 2022.
Builds on
33 of 49 references.
References · 33
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,106
- 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,055
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2016Universal adversarial perturbationscited by 784
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
- 2019Hidden Trigger Backdoor Attackscited by 371
21 more
- 2020Reflection Backdoor: A Natural Backdoor Attack on Deep Neural Networkscited by 349
- 2020Input-Aware Dynamic Backdoor Attackcited by 313
- 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 263
- 2019A backdoor attack against LSTM-based text classification systemscited by 227
- 2020Clean-Label Backdoor Attacks on Video Recognition Modelscited by 169
- 2019Universal Litmus Patterns: Revealing Backdoor Attacks in CNNscited by 146
- 2020Backdoor Attacks Against Deep Learning Systems in the Physical Worldcited by 134
- 2020Self-Attention Attribution: Interpreting Information Interactions Inside Transformercited by 125
- 2021Be Careful about Poisoned Word Embeddings: Exploring the Vulnerability of the Embedding Layers in NLP Modelscited by 105
- 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Modelscited by 104
- 2021Backdoor Scanning for Deep Neural Networks through K-Arm Optimizationcited by 98
- 2020Practical Detection of Trojan Neural Networks: Data-Limited and Data-Free Casescited by 95
- 2021T-Miner: A Generative Approach to Defend Against Trojan Attacks on DNN-based Text Classificationcited by 60
- 2020Can Adversarial Weight Perturbations Inject Neural Backdoors?cited by 56
- 2020Universal Adversarial Attacks with Natural Triggers for Text Classificationcited by 51
- 2021Trigger Hunting with a Topological Prior for Trojan Detectioncited by 39
- 2021Topological Detection of Trojaned Neural Networkscited by 34
- 2020Poison Attacks against Text Datasets with Conditional Adversarially Regularized Autoencodercited by 32
- 2020BAAAN: Backdoor Attacks Against Autoencoder and GAN-Based Machine Learning Modelscited by 25
- 2021On the Distribution, Sparsity, and Inference-time Quantization of Attention Values in Transformerscited by 14
- 2020Live Trojan Attacks on Deep Neural Networkscited by 10
Built on by
Citing papers per year: 2022: 4; 2023: 5; 2024: 28; 2025: 6; 2026: 5.
48 papers.
Sort:
By area:
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 95
- 2024"Glue pizza and eat rocks" -- Exploiting Vulnerabilities in Retrieval-Augmented Generative Modelscited by 60
- 2023Backdoor Attacks and Countermeasures in Natural Language Processing Models: A Comprehensive Security Reviewcited by 39
- 2024TrojVLM: Backdoor Attack Against Vision Language Modelscited by 39
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2024Time Series Modeling for Heart Rate Prediction: From ARIMA to Transformerscited by 35
- 2025textitAgents Under Siege: Breaking Pragmatic Multi-Agent LLM Systems with Optimized Prompt Attackscited by 34
- 2024Backdooring Vision-Language Models with Out-Of-Distribution Datacited by 33
- 2023Attention-Enhancing Backdoor Attacks Against BERT-based Modelscited by 32
- 2024APEER: Automatic Prompt Engineering Enhances Large Language Model Rerankingcited by 28
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoEcited by 27
- 2024Task-Agnostic Detector for Insertion-Based Backdoor Attackscited by 23
36 more
- 2024Deconstructing The Ethics of Large Language Models from Long-standing Issues to New-emerging Dilemmas: A Surveycited by 23
- 2024BadActs: A Universal Backdoor Defense in the Activation Spacecited by 21
- 2022Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attackscited by 19
- 2023Setting the Trap: Capturing and Defeating Backdoors in Pretrained Language Models through Honeypotscited by 19
- 2024Image anomaly detection and prediction scheme based on SSA optimized ResNet50-BiGRU modelcited by 18
- 2022Backdoor Cleansing with Unlabeled Datacited by 17
- 2024Large Language Model Bias Mitigation from the Perspective of Knowledge Editingcited by 16
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challengescited by 15
- 2022A Survey on Backdoor Attack and Defense in Natural Language Processingcited by 14
- 2024XMeCap: Meme Caption Generation with Sub-Image Adaptabilitycited by 14
- 2026The Trigger in the Haystack: Extracting and Reconstructing LLM Backdoor Triggerscited by 14
- 2024Hadamard Adapter: An Extreme Parameter-Efficient Adapter Tuning Method for Pre-trained Language Modelscited by 13
- 2024An Open and Large-Scale Dataset for Multi-Modal Climate Change-aware Crop Yield Predictionscited by 11
- 2024Research on Driver Facial Fatigue Detection Based on Yolov8 Modelcited by 11
- 2024Optimizing Search Advertising Strategies: Integrating Reinforcement Learning with Generalized Second-Price Auctions for Enhanced Ad Ranking and Biddingcited by 9
- 2024Rethinking Backdoor Detection Evaluation for Language Modelscited by 9
- 2023UOR: Universal Backdoor Attacks on Pre-trained Language Modelscited by 8
- 2024Comprehensive evaluation of Mal-API-2019 dataset by machine learning in malware detectioncited by 8
- 2025Fed-HeLLo: Efficient Federated Foundation Model Fine-Tuning with Heterogeneous LoRA Allocationcited by 7
- 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Referencecited by 7
- 2022Attention Hijacking in Trojan Transformerscited by 6
- 2024Can Contrastive Learning Refine Embeddingscited by 5
- 2024BadCLM: Backdoor Attack in Clinical Language Models for Electronic Health Recordscited by 5
- 2025Credit Risk Identification in Supply Chains Using Generative Adversarial Networkscited by 5
- 2025Pruning Strategies for Backdoor Defense in LLMscited by 5
- 2024Diffusion-Refined VQA Annotations for Semi-Supervised Gaze Followingcited by 4
- 2024Towards Robust Vision Transformer via Masked Adaptive Ensemblecited by 4
- 2024Debiasing Machine Unlearning with Counterfactual Examplescited by 3
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Modelscited by 3
- 2026Merging Triggers, Breaking Backdoors: Defensive Poisoning for Instruction-Tuned Language Modelscited by 3
- 2025NLP Security and Ethics, in the Wildcited by 2
- 2024Defense Against Syntactic Textual Backdoor Attacks with Token Substitutioncited by 1
- 2024Real-Time Summarization of Twittercited by 1
- 2024Analyzing Multi-Head Attention on Trojan BERT Modelscited by 0
- 2026Backdoor Containment via Expert Quarantine and Shutdown in LLMscited by 0
- 2026Backdoor Purification for LoRA-Tuned LLMs via Null-Space Projectioncited by 0
- 2026Backdoor Purification for LoRA-Tuned LLMs via Null-Space Projection30 Sep 2026
- 2026Backdoor Containment via Expert Quarantine and Shutdown in LLMs30 Sep 2026
- 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Reference13 Mar 2026
- 2026The Trigger in the Haystack: Extracting and Reconstructing LLM Backdoor Triggers3 Feb 2026
- 2026Merging Triggers, Breaking Backdoors: Defensive Poisoning for Instruction-Tuned Language Models7 Jan 2026
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models5 Oct 2025
- 2025Pruning Strategies for Backdoor Defense in LLMs27 Aug 2025
- 2025Fed-HeLLo: Efficient Federated Foundation Model Fine-Tuning with Heterogeneous LoRA Allocation13 Jun 2025
- 2025NLP Security and Ethics, in the Wild9 Apr 2025
- 2025textitAgents Under Siege: Breaking Pragmatic Multi-Agent LLM Systems with Optimized Prompt Attacks31 Mar 2025
- 2025Credit Risk Identification in Supply Chains Using Generative Adversarial Networks17 Jan 2025
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMs1 Nov 2024
36 more
- 2024Backdooring Vision-Language Models with Out-Of-Distribution Data2 Oct 2024
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challenges30 Sep 2024
- 2024TrojVLM: Backdoor Attack Against Vision Language Models28 Sep 2024
- 2024Rethinking Backdoor Detection Evaluation for Language Models31 Aug 2024
- 2024XMeCap: Meme Caption Generation with Sub-Image Adaptability24 Jul 2024
- 2024Towards Robust Vision Transformer via Masked Adaptive Ensemble22 Jul 2024
- 2024Real-Time Summarization of Twitter11 Jul 2024
- 2024BadCLM: Backdoor Attack in Clinical Language Models for Electronic Health Records6 Jul 2024
- 2024Hadamard Adapter: An Extreme Parameter-Efficient Adapter Tuning Method for Pre-trained Language Models4 Jul 2024
- 2024Defense Against Syntactic Textual Backdoor Attacks with Token Substitution4 Jul 2024
- 2024"Glue pizza and eat rocks" -- Exploiting Vulnerabilities in Retrieval-Augmented Generative Models26 Jun 2024
- 2024APEER: Automatic Prompt Engineering Enhances Large Language Model Reranking20 Jun 2024
- 2024Image anomaly detection and prediction scheme based on SSA optimized ResNet50-BiGRU model20 Jun 2024
- 2024Time Series Modeling for Heart Rate Prediction: From ARIMA to Transformers18 Jun 2024
- 2024Analyzing Multi-Head Attention on Trojan BERT Models12 Jun 2024
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models10 Jun 2024
- 2024An Open and Large-Scale Dataset for Multi-Modal Climate Change-aware Crop Yield Predictions10 Jun 2024
- 2024Deconstructing The Ethics of Large Language Models from Long-standing Issues to New-emerging Dilemmas: A Survey8 Jun 2024
- 2024Research on Driver Facial Fatigue Detection Based on Yolov8 Model4 Jun 2024
- 2024Diffusion-Refined VQA Annotations for Semi-Supervised Gaze Following4 Jun 2024
- 2024Optimizing Search Advertising Strategies: Integrating Reinforcement Learning with Generalized Second-Price Auctions for Enhanced Ad Ranking and Bidding22 May 2024
- 2024BadActs: A Universal Backdoor Defense in the Activation Space18 May 2024
- 2024Large Language Model Bias Mitigation from the Perspective of Knowledge Editing15 May 2024
- 2024Debiasing Machine Unlearning with Counterfactual Examples24 Apr 2024
- 2024Can Contrastive Learning Refine Embeddings11 Apr 2024
- 2024Task-Agnostic Detector for Insertion-Based Backdoor Attacks25 Mar 2024
- 2024Comprehensive evaluation of Mal-API-2019 dataset by machine learning in malware detection4 Mar 2024
- 2023Setting the Trap: Capturing and Defeating Backdoors in Pretrained Language Models through Honeypots28 Oct 2023
- 2023Attention-Enhancing Backdoor Attacks Against BERT-based Models23 Oct 2023
- 2023Backdoor Attacks and Countermeasures in Natural Language Processing Models: A Comprehensive Security Review12 Sep 2023
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoE24 May 2023
- 2023UOR: Universal Backdoor Attacks on Pre-trained Language Models16 May 2023
- 2022Backdoor Cleansing with Unlabeled Data22 Nov 2022
- 2022A Survey on Backdoor Attack and Defense in Natural Language Processing22 Nov 2022
- 2022Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attacks14 Oct 2022
- 2022Attention Hijacking in Trojan Transformers9 Aug 2022
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 95
- 2023Backdoor Attacks and Countermeasures in Natural Language Processing Models: A Comprehensive Security Reviewcited by 39
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2023Attention-Enhancing Backdoor Attacks Against BERT-based Modelscited by 32
- 2022Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attackscited by 19
- 2023Setting the Trap: Capturing and Defeating Backdoors in Pretrained Language Models through Honeypotscited by 19
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challengescited by 15
- 2022A Survey on Backdoor Attack and Defense in Natural Language Processingcited by 14
- 2026The Trigger in the Haystack: Extracting and Reconstructing LLM Backdoor Triggerscited by 14
- 2023UOR: Universal Backdoor Attacks on Pre-trained Language Modelscited by 8
- 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Referencecited by 7
- 2024BadCLM: Backdoor Attack in Clinical Language Models for Electronic Health Recordscited by 5
12 most cited of 19 All 19 (JSON)
- 2026Backdoor Purification for LoRA-Tuned LLMs via Null-Space Projection30 Sep 2026
- 2026Backdoor Containment via Expert Quarantine and Shutdown in LLMs30 Sep 2026
- 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Reference13 Mar 2026
- 2026The Trigger in the Haystack: Extracting and Reconstructing LLM Backdoor Triggers3 Feb 2026
- 2026Merging Triggers, Breaking Backdoors: Defensive Poisoning for Instruction-Tuned Language Models7 Jan 2026
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models5 Oct 2025
- 2025Pruning Strategies for Backdoor Defense in LLMs27 Aug 2025
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMs1 Nov 2024
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challenges30 Sep 2024
- 2024BadCLM: Backdoor Attack in Clinical Language Models for Electronic Health Records6 Jul 2024
- 2024Defense Against Syntactic Textual Backdoor Attacks with Token Substitution4 Jul 2024
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models10 Jun 2024
12 newest of 19 All 19 (JSON)
- 2024TrojVLM: Backdoor Attack Against Vision Language Modelscited by 39
- 2024Backdooring Vision-Language Models with Out-Of-Distribution Datacited by 33
- 2024Rethinking Backdoor Detection Evaluation for Language Models31 Aug 2024
- 2024Time Series Modeling for Heart Rate Prediction: From ARIMA to Transformerscited by 35
- 2024APEER: Automatic Prompt Engineering Enhances Large Language Model Rerankingcited by 28
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoEcited by 27
- 2024Task-Agnostic Detector for Insertion-Based Backdoor Attackscited by 23
- 2024Deconstructing The Ethics of Large Language Models from Long-standing Issues to New-emerging Dilemmas: A Surveycited by 23
- 2024BadActs: A Universal Backdoor Defense in the Activation Spacecited by 21
- 2024Image anomaly detection and prediction scheme based on SSA optimized ResNet50-BiGRU modelcited by 18
- 2022Backdoor Cleansing with Unlabeled Datacited by 17
- 2024Large Language Model Bias Mitigation from the Perspective of Knowledge Editingcited by 16
- 2024XMeCap: Meme Caption Generation with Sub-Image Adaptabilitycited by 14
- 2024Hadamard Adapter: An Extreme Parameter-Efficient Adapter Tuning Method for Pre-trained Language Modelscited by 13
- 2024An Open and Large-Scale Dataset for Multi-Modal Climate Change-aware Crop Yield Predictionscited by 11
12 most cited of 24 All 24 (JSON)
- 2025Fed-HeLLo: Efficient Federated Foundation Model Fine-Tuning with Heterogeneous LoRA Allocation13 Jun 2025
- 2025NLP Security and Ethics, in the Wild9 Apr 2025
- 2025Credit Risk Identification in Supply Chains Using Generative Adversarial Networks17 Jan 2025
- 2024XMeCap: Meme Caption Generation with Sub-Image Adaptability24 Jul 2024
- 2024Towards Robust Vision Transformer via Masked Adaptive Ensemble22 Jul 2024
- 2024Real-Time Summarization of Twitter11 Jul 2024
- 2024Hadamard Adapter: An Extreme Parameter-Efficient Adapter Tuning Method for Pre-trained Language Models4 Jul 2024
- 2024APEER: Automatic Prompt Engineering Enhances Large Language Model Reranking20 Jun 2024
- 2024Image anomaly detection and prediction scheme based on SSA optimized ResNet50-BiGRU model20 Jun 2024
- 2024Time Series Modeling for Heart Rate Prediction: From ARIMA to Transformers18 Jun 2024
- 2024Analyzing Multi-Head Attention on Trojan BERT Models12 Jun 2024
- 2024An Open and Large-Scale Dataset for Multi-Modal Climate Change-aware Crop Yield Predictions10 Jun 2024
12 newest of 24 All 24 (JSON)