CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Models
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Backdoors can be injected into NLP models to induce misbehavior when the input text contains a specific feature, known as a trigger, which the attacker secretly selects. Unlike fixed words, phrases, or sentences used in the static text trigger, NLP dynamic backdoor attacks design triggers associated with abstract and latent text features, making them considerably stealthier than traditional static backdoor attacks. However, existing research on NLP backdoor detection primarily focuses on defending against static backdoor attacks, while detecting dynamic backdoors in NLP models remains largely unexplored. This paper presents CLIBE, the first framework to detect dynamic backdoors in Transformer-based NLP models. CLIBE injects a "few-shot perturbation" into the suspect Transformer model by crafting optimized weight perturbation in the attention layers to make the perturbed model classify a limited number of reference samples as a target label. Subsequently, CLIBE leverages the generalization ability of this few-shot perturbation to determine whether the original model contains a dynamic backdoor. Extensive evaluation on three advanced NLP dynamic backdoor attacks, two widely-used Transformer frameworks, and four real-world classification tasks strongly validates the effectiveness of CLIBE. We also demonstrate the robustness of CLIBE against various adaptive attacks. Furthermore, we employ CLIBE to scrutinize 49 popular Transformer models on Hugging Face and discover one exhibiting a high probability of containing a dynamic backdoor. We have contacted Hugging Face and provided detailed evidence of this model's backdoor behavior. Moreover, we extend CLIBE to detect backdoor text generation models modified to exhibit toxic behavior. To the best of our knowledge, CLIBE is the first framework capable of detecting backdoors in text generation models without access to trigger input test samples.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 51 of its 68 references that are in the map. First posted on arXiv 2 Sep 2024.
Builds on
51 of 68 references.
Closest ancestors · 12
Same direction, newest first
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan
- 2023ParaFuzz: An Interpretability-Driven Technique for Detecting Poisoned Samples in NLP4 Aug
- 2023FreeEagle: Detecting Complex Neural Trojans in Data-Free Cases28 Feb
- 2022How to Sift Out a Clean Data Subset in the Presence of Data Poisoning?12 Oct
- 2022Constrained Optimization with Dynamic Bound-scaling for Effective NLPBackdoor Defense11 Feb
- 2021Spinning Language Models: Risks of Propaganda-As-A-Service and Countermeasures9 Dec
- 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfer14 Oct
- 2021BFClass: A Backdoor-free Text Classification Framework22 Sep
- 2021Turn the Combination Lock: Learnable Textual Backdoor Attacks via Word Substitution11 Jun
- 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May
- 2021Hidden Backdoors in Human-Centric Language Models1 May
- 2021T-Miner: A Generative Approach to Defend Against Trojan Attacks on DNN-based Text Classification7 Mar
Other references · 39
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
27 more
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,337
- 2017Visualizing the Loss Landscape of Neural Netscited by 1,126
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2019Fantastic Generalization Measures and Where to Find Themcited by 507
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 282
- 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
- 2019A backdoor attack against LSTM-based text classification systemscited by 214
- 2019Detecting AI Trojans Using Meta Neural Analysiscited by 192
- 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
- 2020Reformulating Unsupervised Style Transfer as Paraphrase Generationcited by 181
- 2020Blind Backdoors in Deep Learning Modelscited by 174
- 2019Demon in the Variant: Statistical Analysis of DNNs for Robust Backdoor Contamination Detectioncited by 121
- 2021Backdoor Scanning for Deep Neural Networks through K-Arm Optimizationcited by 96
- 2020Trojaning Language Models for Fun and Profitcited by 80
- 2021Backdoor Pre-trained Models Can Transfer to Allcited by 79
- 2021Controlled Text Generation as Continuous Optimization with Multiple Constraintscited by 70
- 2022How Does Sharpness-Aware Minimization Minimize Sharpness?cited by 64
- 2022The "Beatrix'' Resurrections: Robust Backdoor Detection via Gram Matricescited by 62
- 2022MM-BD: Post-Training Detection of Backdoor Attacks with Arbitrary Backdoor Pattern Types Using a Maximum Margin Statisticcited by 53
- 2018Model-Reuse Attacks on Deep Learning Systemscited by 47
- 2023TrojanPuzzle: Covertly Poisoning Code-Suggestion Modelscited by 47
- 2022Training with More Confidence: Mitigating Injected and Natural Backdoors During Trainingcited by 38
- 2023The Philosopher's Stone: Trojaning Plugins of Large Language Modelscited by 31
- 2023TrojText: Test-time Invisible Textual Trojan Insertioncited by 26
- 2021HERO: Hessian-Enhanced Robust Optimization for Unifying and Improving Generalization and Quantization Performancecited by 8
- 2019Regula Sub-rosa: Latent Backdoor Attacks on Deep Neural Networkscited by 3
Built on by
Citing papers per year: 2025: 7; 2026: 4.
11 papers.
- 2025Thought Crime: Backdoors and Emergent Misalignment in Reasoning Modelscited by 57
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 26
- 2025Seven Security Challenges in Cross-domain Multi-agent LLM Systemscited by 12
- 2025HDEE: Heterogeneous Domain Expert Ensemblecited by 4
- 2025Improving the Sensitivity of Backdoor Detectors via Class Subspace Orthogonalizationcited by 3
- 2025Poison Once, Refuse Forever: Weaponizing Alignment for Injecting Bias in LLMscited by 1
- 2026Angel or Demon: Investigating the Plasticity Interventions' Impact on Backdoor Threats in Deep Reinforcement Learningcited by 1
- 2025Inverting Trojans in LLMscited by 0
- 2026Shared Latent Structures Enable Unified Backdoor Detection and Mitigation in LLMscited by 0
- 2026Detect, Unlearn, Restore: Defending Text Summarization Models Against Data Poisoningcited by 0
- 2026CSO-LLM: Class Subspace Orthogonalization for Post-Training Backdoor Detection and Trigger Inversion in LLMscited by 0
- 2026CSO-LLM: Class Subspace Orthogonalization for Post-Training Backdoor Detection and Trigger Inversion in LLMs30 Jun 2026
- 2026Detect, Unlearn, Restore: Defending Text Summarization Models Against Data Poisoning24 Jun 2026
- 2026Shared Latent Structures Enable Unified Backdoor Detection and Mitigation in LLMs6 Jun 2026
- 2026Angel or Demon: Investigating the Plasticity Interventions' Impact on Backdoor Threats in Deep Reinforcement Learning14 May 2026
- 2025Improving the Sensitivity of Backdoor Detectors via Class Subspace Orthogonalization9 Dec 2025
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challenges27 Oct 2025
- 2025Inverting Trojans in LLMs19 Sep 2025
- 2025Poison Once, Refuse Forever: Weaponizing Alignment for Injecting Bias in LLMs28 Aug 2025
- 2025Thought Crime: Backdoors and Emergent Misalignment in Reasoning Models16 Jun 2025
- 2025Seven Security Challenges in Cross-domain Multi-agent LLM Systems28 May 2025
- 2025HDEE: Heterogeneous Domain Expert Ensemble26 Feb 2025