Design and Evaluation of a Multi-Domain Trojan Detection Method on Deep Neural Networks

Yansong Gao, Yeonjae Kim, Bao Gia Doan, Zhi Zhang, Gongxuan Zhang, Surya Nepal, Damith Chinthana Ranasinghe, Hyoungshick Kim

TL;DR

STRIP-ViTA is a novel, run-time defense mechanism that detects Trojan (backdoor) attacks across vision, text, and audio domains. By intentionally perturbing inputs and measuring the entropy of the model's predictions, it identifies "stubborn" Trojaned inputs that refuse to change their classification, regardless of the noise added.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are increasingly trained using outsourced cloud services, creating a massive security loophole: Trojan attacks. An attacker can secretly embed a "backdoor" into a model during training. This model behaves perfectly on normal data but flips to a malicious target class whenever a specific "trigger" (like a small patch on an image or a specific word in a sentence) is present.

While several defenses exist, they suffer from two major flaws:

  1. Domain Lock-in: Almost all are designed exclusively for computer vision and 2D Convolutional Neural Networks (CNNs).
  2. Architecture Dependency: They often rely on inspecting internal model weights or specific layer types, making them hard to generalize to Recurrent Neural Networks (RNNs) or 1D CNNs used in text and audio.

The authors propose STRIP-ViTA (STRong Intentional Perturbation - Vision, Text, Audio) to provide a universal, architecture-agnostic defense that works at run-time.

Methods

The core principle of STRIP-ViTA is that Trojan triggers are input-agnostic. A Trojaned model is trained to be hyper-sensitive to the trigger and relatively indifferent to the rest of the input.

As shown in the overview below, the detection process follows these steps:

  1. Replication: The system makes $N$ copies of an incoming input $x$.
  2. Strong Perturbation: Each copy is hit with a different "strong intentional perturbation."
    • Vision: Superimposing the input with a random "wild" image.
  3. Text: Replacing a large fraction (e.g., 70%) of words with high-importance words (based on TF-IDF scores) from a held-out dataset.
  4. Audio: Adding random noise samples from a held-out dataset.
  5. Entropy Calculation: The system feeds these perturbed copies into the model and observes the predicted classes. It calculates the Shannon entropy of these predictions.
Overview of the STRIP-ViTA detection process.

If the input is clean, the strong perturbations will confuse the model, leading to various predicted classes and high entropy. If the input contains a Trojan trigger, the model will likely keep predicting the attacker's target class despite the noise, resulting in low entropy.

Datasets

The authors evaluated STRIP-ViTA across five diverse datasets and nine different model architectures:

  • Vision: CIFAR10 (object recognition) and GTSRB (traffic signs) using ResNet20 and ResNet44. They also tested a publicly available Trojaned LeNet model.
  • Text: IMDB (sentiment analysis) and Consumer Complaint (classification) using LSTMs and 1D CNNs.
  • Audio: Speech Commands (keyword spotting) using 1D CNNs and 2D CNNs (via spectrograms).

Key Insights and Ideas

  • The "Stubbornness" of Trojans: The most important insight is the entropy gap. Trojaned inputs are essentially "locked" into a prediction by the trigger. Figure 2 illustrates this clearly for vision tasks: there is a distinct separation between the low-entropy Trojaned inputs and high-entropy clean inputs.
  • Domain-Specific Perturbations: The authors successfully adapted the "perturbation" concept beyond simple image blending. For text, using TF-IDF to pick "strong" replacement words was key to breaking the context of clean sentences without accidentally removing the Trojan trigger.
  • Black-Box Friendly: Unlike "offline" defenses that require days of computation to inspect model weights, STRIP-ViTA is a "run-time" defense. It only needs access to the model's output probabilities, making it much easier to deploy in real-world MLaaS (Machine Learning as a Service) scenarios.
Entropy distribution for vision tasks, showing a clear gap between clean and Trojaned inputs.

Key Results

  • Vision Perfection: For CIFAR10 and GTSRB, the method achieved a 0% False Acceptance Rate (FAR) and 0% False Rejection Rate (FRR).
  • Text and Audio Efficacy: In the more challenging text and audio domains, STRIP-ViTA maintained high performance. With the FRR preset to 3%, the average FAR was only 1.1% for text and 3.55% for audio.
  • Robustness to Variants: The defense remained effective against advanced attacks, including models with multiple infected labels (different triggers for different classes) and triggers of varying sizes/lengths.
  • Low Overhead: While it requires $N$ inferences per input, the authors found that $N$ can be as low as 10–20 for text and audio, making the latency acceptable for many real-time applications.

Limitations and Future Work

The primary limitation acknowledged is that STRIP-ViTA targets input-agnostic Trojan attacks. These are attacks where the trigger works regardless of the background image or text. If an attacker develops a class-specific or input-aware Trojan—where the trigger only activates when combined with specific features of a legitimate input—the entropy-based detection might fail because the perturbation could destroy the necessary background context.

Future work involves developing more sophisticated perturbation methods to tackle these class-specific attacks and further optimizing the run-time overhead for high-throughput systems.

Summary updated

BibTeX
@article{gao2019design,
  author = {Yansong Gao and Yeonjae Kim and Bao Gia Doan and Zhi Zhang and Gongxuan Zhang and Surya Nepal and Damith Chinthana Ranasinghe and Hyoungshick Kim},
  title = {{Design and Evaluation of a Multi-Domain Trojan Detection Method on Deep Neural Networks}},
  journal = {IEEE Trans. Dependable Secur. Comput.},
  year = {2019},
  doi = {10.1109/tdsc.2021.3055844},
}
Figure