Skip to main content
QUICK REVIEW

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

Ahmadreza Azizi, Ibrahim Asadullah Tahmid|arXiv (Cornell University)|Mar 6, 2021
Adversarial Robustness in Machine LearningComputer Science23 citations
TL;DR

T-Miner is a generative defense framework that detects backdoor attacks in DNN-based text classifiers by training a sequence-to-sequence model on synthetic, nonsensical inputs to probe for trigger phrases. It achieves 98.75% accuracy in distinguishing Trojan from clean models and remains robust against adaptive, multi-trigger, and partial backdoor attacks without requiring access to training data.

ABSTRACT

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.

Motivation & Objective

  • To address the growing threat of stealthy backdoor attacks in DNN-based text classifiers, which remain undetected due to limited defense research in the sequential domain.
  • To develop a defense mechanism that operates without access to the training dataset or clean inputs of the suspicious model.
  • To detect both single and complex backdoor triggers, including multi-trigger and source-specific partial backdoors, in diverse text classification tasks.
  • To ensure robustness against adaptive attackers who are aware of the defense pipeline and attempt to evade detection.

Proposed method

  • T-Miner employs a sequence-to-sequence (seq-2-seq) generative model trained on synthetically crafted, nonsensical text inputs to probe the suspicious classifier for trigger phrase patterns.
  • The generative model produces text sequences likely to contain parts of the Trojan trigger, enabling detection of backdoor behavior through anomaly analysis.
  • It uses adversarial perturbation generation to identify trigger phrases by analyzing deviations in model predictions on perturbed inputs.
  • A two-stage search strategy—greedy and Top-K—improves trigger recovery, especially in cases where initial candidates are filtered out.
  • Outlier detection is applied to the generated sequences to identify those containing trigger phrases, flagging models with suspicious patterns as potentially backdoored.
  • The framework is evaluated across 1100 model instances spanning 3 architectures (LSTM, Bi-LSTM, Transformer), 5 classification tasks, and multiple trigger types.

Experimental results

Research questions

  • RQ1Can a generative model effectively detect backdoor triggers in text classification models without access to training data or clean inputs?
  • RQ2How effective is T-Miner in detecting multiple types of backdoor attacks, including multi-trigger and partial backdoor attacks?
  • RQ3How robust is T-Miner against adaptive attackers who modify triggers or attack strategies to evade detection?
  • RQ4What is the performance of T-Miner across diverse DNN architectures and text classification tasks?
  • RQ5Can T-Miner maintain low false positive rates on clean models while achieving high detection accuracy on Trojan-infected models?

Key findings

  • T-Miner achieves an overall detection accuracy of 98.75% across 1100 model instances, including both clean and Trojan models.
  • With greedy search, T-Miner achieves 99.09% accuracy on clean models, indicating very low false positive rates.
  • For multi-trigger attacks, T-Miner successfully detects all 40 Trojan models when using Top-K search (K=5), overcoming limitations of greedy search.
  • In partial backdoor attacks, T-Miner detects 39 out of 40 Trojan models with greedy search and all 40 with Top-K search, demonstrating resilience to source-specific triggers.
  • T-Miner remains robust against adaptive attackers, including those using weak attacks or stealthy trigger designs that evade standard filtering thresholds.
  • The framework successfully detects backdoors across diverse tasks such as sentiment, hate-speech, fake-news, and news classification, using multiple DNN architectures.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.