mlsanityData to 14 Oct 2026

T-Miner: A Generative Approach to Defend Against Trojan Attacks on DNN-based Text Classification

arXiv 2103.04264 ↗First posted 7 Mar 2021cs.CR cs.LGcited by 60

On the map: LLM safety and security → Backdoor and data poisoning attacks

Abstract (arXiv)

Deep Neural Network (DNN) classifiers are known to be vulnerable to Trojan or backdoor attacks, where the classifier is manipulated such that it misclassifies any input containing an attacker-determined Trojan trigger. Backdoors compromise a model's integrity, thereby posing a severe threat to the landscape of DNN-based classification. While multiple defenses against such attacks exist for classifiers in the image domain, there have been limited efforts to protect classifiers in the text domain. We present Trojan-Miner (T-Miner) -- a defense framework for Trojan attacks on DNN-based text classifiers. T-Miner employs a sequence-to-sequence (seq-2-seq) generative model that probes the suspicious classifier and learns to produce text sequences that are likely to contain the Trojan trigger. T-Miner then analyzes the text produced by the generative model to determine if they contain trigger phrases, and correspondingly, whether the tested classifier has a backdoor. T-Miner requires no access to the training dataset or clean inputs of the suspicious classifier, and instead uses synthetically crafted "nonsensical" text inputs to train the generative model. We extensively evaluate T-Miner on 1100 model instances spanning 3 ubiquitous DNN model architectures, 5 different classification tasks, and a variety of trigger phrases. We show that T-Miner detects Trojan and clean models with a 98.75% overall accuracy, while achieving low false positives on clean models. We also show that T-Miner is robust against a variety of targeted, advanced attacks from an adaptive attacker.

Key facts. Cited by 60 papers in the map (data through 14 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 36 of its 65 references that are in the map. First posted on arXiv 7 Mar 2021.

Builds on

36 of 65 references.

References · 36

  1. 2017Attention Is All You Needcited by 60,361
  2. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  3. 2013Intriguing properties of neural networkscited by 5,155
  4. 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
  5. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
  6. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  7. 2014How transferable are features in deep neural networks?cited by 1,225
  8. 2014Convolutional Neural Networks for Sentence Classificationcited by 1,127
  9. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,106
  10. 2016Universal adversarial perturbationscited by 784
  11. 2018How To Backdoor Federated Learningcited by 765
  12. 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 736
24 more
  1. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
  2. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
  3. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
  4. 2018Spectral Signatures in Backdoor Attackscited by 484
  5. 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 459
  6. 2018Detecting Backdoor Attacks on Deep Neural Networks by Activation Clusteringcited by 456
  7. 2018Generating Natural Language Adversarial Examplescited by 424
  8. 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 381
  9. 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 345
  10. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  11. 2014Caffe: Convolutional Architecture for Fast Feature Embeddingcited by 288
  12. 2017Toward Controlled Generation of Textcited by 272
  13. 2019A backdoor attack against LSTM-based text classification systemscited by 227
  14. 2018Hate Speech Dataset from a White Supremacy Forumcited by 198
  15. 2019TABOR: A Highly Accurate Approach to Inspecting and Restoring Trojan Backdoors in AI Systemscited by 122
  16. 2018Towards the first adversarially robust neural network model on MNISTcited by 104
  17. 2016Crafting Adversarial Input Sequences for Recurrent Neural Networkscited by 103
  18. 2017Fast Feature Fool: A data independent approach to universal adversarial perturbationscited by 66
  19. 2018Model-Reuse Attacks on Deep Learning Systemscited by 49
  20. 2020Backdoor Attacks against Transfer Learning with Pre-trained Deep Learning Modelscited by 44
  21. 2015Transfer Learning for Speech and Language Processingcited by 35
  22. 2019Provably Robust Boosted Decision Stumps and Trees against Adversarial Attackscited by 26
  23. 2018Convolutional Neural Networks for Toxic Comment Classificationcited by 24
  24. 2018Sliced Recurrent Neural Networkscited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 3; 2022: 12; 2023: 18; 2024: 17; 2025: 7; 2026: 3.

60 papers.

Sort:

By area:

  1. 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Modelscited by 104
  2. 2023Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilitiescited by 82
  3. 2022A Unified Evaluation of Textual Backdoor Learning: Frameworks and Benchmarkscited by 74
  4. 2025Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samplescited by 72
  5. 2025Thought Crime: Backdoors and Emergent Misalignment in Reasoning Modelscited by 65
  6. 2022The "Beatrix'' Resurrections: Robust Backdoor Detection via Gram Matricescited by 63
  7. 2023TrojanPuzzle: Covertly Poisoning Code-Suggestion Modelscited by 60
  8. 2022Rickrolling the Artist: Injecting Backdoors into Text Encoders for Text-to-Image Synthesiscited by 59
  9. 2024BEEAR: Embedding-based Adversarial Removal of Safety Backdoors in Instruction-tuned Language Modelscited by 58
  10. 2022"Real Attackers Don't Compute Gradients": Bridging the Gap Between Adversarial ML Research and Practicecited by 56
  11. 2022BITE: Textual Backdoor Attacks with Iterative Trigger Injectioncited by 53
  12. 2022A Study of the Attention Abnormality in Trojaned BERTscited by 48
38 more
  1. 2022Constrained Optimization with Dynamic Bound-scaling for Effective NLPBackdoor Defensecited by 47
  2. 2021An Overview of Backdoor Attacks Against Deep Neural Networks and Possible Defencescited by 42
  3. 2021Few-shot Backdoor Defense Using Shapley Estimationcited by 41
  4. 2023Backdoor Attacks and Countermeasures in Natural Language Processing Models: A Comprehensive Security Reviewcited by 39
  5. 2023NOTABLE: Transferable Backdoor Attacks Against Prompt-based NLP Modelscited by 37
  6. 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
  7. 2023Attention-Enhancing Backdoor Attacks Against BERT-based Modelscited by 32
  8. 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoEcited by 27
  9. 2024Task-Agnostic Detector for Insertion-Based Backdoor Attackscited by 23
  10. 2024BadActs: A Universal Backdoor Defense in the Activation Spacecited by 21
  11. 2022Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attackscited by 19
  12. 2023Backdooring Neural Code Searchcited by 19
  13. 2023ParaFuzz: An Interpretability-Driven Technique for Detecting Poisoned Samples in NLPcited by 19
  14. 2025Probe before You Talk: Towards Black-box Defense against Backdoor Unalignment for Large Language Modelscited by 19
  15. 2023BDMMT: Backdoor Sample Detection for Language Models through Model Mutation Testingcited by 16
  16. 2023TextGuard: Provable Defense against Backdoor Attacks on Text Classificationcited by 16
  17. 2022On Robust Prefix-Tuning for Text Classificationcited by 15
  18. 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challengescited by 15
  19. 2022Jigsaw Puzzle: Selective Backdoor Attack to Subvert Malware Classifierscited by 14
  20. 2022A Survey on Backdoor Attack and Defense in Natural Language Processingcited by 14
  21. 2024CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Modelscited by 13
  22. 2023TIJO: Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Modelscited by 12
  23. 2024Simulate and Eliminate: Revoke Backdoors for Generative Large Language Modelscited by 12
  24. 2024Transferring Backdoors between Large Language Models by Knowledge Distillationcited by 12
  25. 2023LMSanitator: Defending Prompt-Tuning Against Task-Agnostic Backdoorscited by 9
  26. 2024Rethinking Backdoor Detection Evaluation for Language Modelscited by 9
  27. 2024Obliviate: Neutralizing Task-agnostic Backdoors within the Parameter-efficient Fine-tuning Paradigmcited by 9
  28. 2023Impacts and Risk of Generative AI Technology on Cyber Defensecited by 8
  29. 2024Acquiring Clean Language Models from Backdoor Poisoned Datasets by Downscaling Frequency Spacecited by 8
  30. 2023FreeEagle: Detecting Complex Neural Trojans in Data-Free Casescited by 7
  31. 2022Attention Hijacking in Trojan Transformerscited by 6
  32. 2023SoK: A Systematic Evaluation of Backdoor Trigger Characteristics in Image Classificationcited by 6
  33. 2024Data-centric NLP Backdoor Defense from the Lens of Memorizationcited by 6
  34. 2023Punctuation Matters! Stealthy Backdoor Attack for Language Modelscited by 5
  35. 2024TrojFM: Resource-efficient Backdoor Attacks against Very Large Foundation Modelscited by 5
  36. 2025Your Agent Can Defend Itself against Backdoor Attackscited by 5
  37. 2025Paladin: Defending LLM-enabled Phishing Emails with a New Trigger-Tag Paradigmcited by 5
  38. 2023Backdoor Learning for NLP: Recent Advances, Challenges, and Future Research Directionscited by 4

50 most cited of 60 All 60 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2023MDTD: A Multi Domain Trojan Detector for Deep Neural Networks
  2. 2022PerD: Perturbation Sensitivity-based Neural Trojan Detection Framework on NLP Applications
  3. 2022Detecting Backdoors in Deep Text Classifiers
  4. 2021Trojan Signatures in DNN Weights
  5. 2022An Adaptive Black-box Defense against Trojan Attacks (TrojDef)
  6. 2021Test-Time Detection of Backdoor Triggers for Poisoned Deep Neural Networks
  7. 2022Training set cleansing of backdoor poisoning by self-supervised representation learning
  8. 2024Solving Trojan Detection Competitions with Linear Weight Classification