mlsanityData to 7 Oct 2026

CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Models

arXiv 2409.01193 ↗First posted 2 Sep 2024cs.CR cs.CL cs.LGcited by 11

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

  1. 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan
  2. 2023ParaFuzz: An Interpretability-Driven Technique for Detecting Poisoned Samples in NLP4 Aug
  3. 2023FreeEagle: Detecting Complex Neural Trojans in Data-Free Cases28 Feb
  4. 2022How to Sift Out a Clean Data Subset in the Presence of Data Poisoning?12 Oct
  5. 2022Constrained Optimization with Dynamic Bound-scaling for Effective NLPBackdoor Defense11 Feb
  6. 2021Spinning Language Models: Risks of Propaganda-As-A-Service and Countermeasures9 Dec
  7. 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfer14 Oct
  8. 2021BFClass: A Backdoor-free Text Classification Framework22 Sep
  9. 2021Turn the Combination Lock: Learnable Textual Backdoor Attacks via Word Substitution11 Jun
  10. 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May
  11. 2021Hidden Backdoors in Human-Centric Language Models1 May
  12. 2021T-Miner: A Generative Approach to Defend Against Trojan Attacks on DNN-based Text Classification7 Mar

Other references · 39

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  6. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  7. 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
  8. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  9. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  10. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  11. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  12. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
27 more
  1. 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,337
  2. 2017Visualizing the Loss Landscape of Neural Netscited by 1,126
  3. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
  4. 2019Fantastic Generalization Measures and Where to Find Themcited by 507
  5. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
  6. 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 282
  7. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
  8. 2019A backdoor attack against LSTM-based text classification systemscited by 214
  9. 2019Detecting AI Trojans Using Meta Neural Analysiscited by 192
  10. 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
  11. 2020Reformulating Unsupervised Style Transfer as Paraphrase Generationcited by 181
  12. 2020Blind Backdoors in Deep Learning Modelscited by 174
  13. 2019Demon in the Variant: Statistical Analysis of DNNs for Robust Backdoor Contamination Detectioncited by 121
  14. 2021Backdoor Scanning for Deep Neural Networks through K-Arm Optimizationcited by 96
  15. 2020Trojaning Language Models for Fun and Profitcited by 80
  16. 2021Backdoor Pre-trained Models Can Transfer to Allcited by 79
  17. 2021Controlled Text Generation as Continuous Optimization with Multiple Constraintscited by 70
  18. 2022How Does Sharpness-Aware Minimization Minimize Sharpness?cited by 64
  19. 2022The "Beatrix'' Resurrections: Robust Backdoor Detection via Gram Matricescited by 62
  20. 2022MM-BD: Post-Training Detection of Backdoor Attacks with Arbitrary Backdoor Pattern Types Using a Maximum Margin Statisticcited by 53
  21. 2018Model-Reuse Attacks on Deep Learning Systemscited by 47
  22. 2023TrojanPuzzle: Covertly Poisoning Code-Suggestion Modelscited by 47
  23. 2022Training with More Confidence: Mitigating Injected and Natural Backdoors During Trainingcited by 38
  24. 2023The Philosopher's Stone: Trojaning Plugins of Large Language Modelscited by 31
  25. 2023TrojText: Test-time Invisible Textual Trojan Insertioncited by 26
  26. 2021HERO: Hessian-Enhanced Robust Optimization for Unifying and Improving Generalization and Quantization Performancecited by 8
  27. 2019Regula Sub-rosa: Latent Backdoor Attacks on Deep Neural Networkscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 7; 2026: 4.

11 papers.