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 C. Ranasinghe, Hyoungshick Kim · DOI

TL;DR

This paper introduces STRIP-ViTA, a novel method for detecting "Trojan" attacks in deep neural networks that works across vision, text, and audio domains. Unlike previous methods limited to vision tasks, STRIP-ViTA is shown to be effective and independent of the specific model architecture, offering a more general solution to a growing security threat.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are increasingly used in critical applications, but they are vulnerable to "Trojan" or "backdoor" attacks. In these attacks, an attacker subtly modifies a DNN during training to create a hidden "trigger." When this trigger is present in an input, the DNN behaves as the attacker intended, often misclassifying the input into a specific target class. This is particularly concerning because the Trojaned model behaves normally on clean, untriggered inputs, making detection difficult.

Existing defenses against Trojan attacks have primarily focused on vision tasks using 2D Convolutional Neural Networks (CNNs). However, DNNs are widely used in text and audio processing as well, and it's unclear if these vision-centric defenses generalize. This paper addresses this gap by proposing and evaluating a multi-domain Trojan detection method that works across vision, text, and audio tasks, and is also independent of the underlying model architecture.

Methods

The core of the proposed method, STRIP-ViTA, is based on the principle of STRong Intentional Perturbation (STRIP). The key idea is that a Trojan attack relies on a trigger that is "input-agnostic," meaning it works regardless of the specific input content. When a clean input is heavily perturbed, its predicted class or confidence should change significantly. However, if a Trojan trigger is present, the perturbation is less likely to affect the model's prediction, as the trigger dominates the decision-making process.

STRIP-ViTA implements this by:

  1. Replicating the input: Taking an incoming input and creating multiple copies.
  2. Applying diverse perturbations: Applying different, intentionally strong perturbations to each replica. These perturbations are designed to be domain-specific (e.g., image superimposition for vision, word replacement for text, adding noise for audio).
  3. Measuring output randomness: Feeding all perturbed inputs into the deployed DNN and analyzing the randomness of the predicted class labels. This randomness is quantified using Shannon entropy.
  4. Setting a detection boundary: A lower entropy (less randomness) in the predictions for perturbed inputs suggests the presence of a Trojan trigger, as the trigger forces a consistent output despite variations. A detection boundary (threshold) is established based on the entropy of clean inputs.

A key innovation is the development of domain-specific perturbation techniques that are effective across vision, text, and audio, and the demonstration of model independence.

Datasets

The paper evaluates STRIP-ViTA on a variety of datasets across different domains:

  • Vision:
    • CIFAR10 (object recognition)
    • GTSRB (traffic sign recognition)
  • Text:
    • IMDB (movie review sentiment analysis)
    • Consumer Complaint (CC) dataset (classification of financial product/service complaints)
  • Audio:
    • Speech Commands (SC) dataset (spoken word recognition)

The authors also utilize a public Trojaned model for vision tasks to validate their approach.

Key Insights and Ideas

  • Domain Generalization is Crucial: The paper strongly argues that Trojan detection methods must move beyond vision-specific solutions to address the growing threat across various data modalities.
  • Input-Agnostic Trigger Strength: The core strength of Trojan attacks (the input-agnostic trigger) is also their Achilles' heel. STRIP-ViTA exploits this by showing that strong, intentional perturbations reveal the trigger's influence by reducing output randomness.
  • Model Independence is Achievable: A significant finding is that STRIP-ViTA's effectiveness is not tied to specific model architectures (e.g., CNNs vs. LSTMs). This makes it a more versatile defense.
  • "Wild" Perturbations Work: The authors demonstrate that perturbations can be generated from datasets different from the one the model was trained on, simplifying the perturbation generation process and showing robustness.
  • Trade-offs in Detection: While perfect detection (0% FAR and FRR) is achievable for vision tasks, text and audio often require balancing false rejection rate (FRR) and false acceptance rate (FAR).

Key Results

  • High Detection Rates: STRIP-ViTA consistently achieved high detection rates across all tested domains and model architectures.
  • For vision tasks, 0% False Rejection Rate (FRR) and 0% False Acceptance Rate (FAR) were achieved.
  • For text tasks, with a 3% FRR, an average FAR of 1.1% was achieved.
  • For audio tasks, with a 3% FRR, an average FAR of 3.55% was achieved.
  • Model Architecture Independence: STRIP-ViTA performed well on various architectures, including 2D CNNs, 1D CNNs, and LSTMs, for the same tasks.
  • Robustness Against Advanced Attacks: The method demonstrated effectiveness against several advanced Trojan attack variants that challenged other state-of-the-art methods.
  • Efficiency: While introducing some overhead, the method is considered acceptable for real-time applications, with time overheads ranging from 1.32x to 4.24x compared to original inference times, depending on the task and model.

Limitations and Future Work

  • Domain-Specific Perturbations: While STRIP-ViTA provides domain-specific perturbation methods, the paper suggests that other efficient perturbation techniques could be explored.
  • Class-Specific Trojan Attacks: The current work focuses on input-agnostic Trojan attacks. The authors acknowledge that developing defenses against class-specific Trojan attacks remains an open challenge.
  • Optimal Perturbation Parameters: The paper notes that the number of perturbations (N) can be optimized for better performance and speed, and that further dedicated optimization for STRIP-ViTA could improve its efficiency.
  • Anomaly Detection in Clean Data: For text and audio tasks, extremely low entropy values in some clean inputs can lead to higher FARs. The authors suggest that increasing testing samples or using slightly higher FRR can mitigate this.

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 C. 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