Skip to main content
QUICK REVIEW

[Paper Review] Cassandra: Detecting Trojaned Networks from Adversarial Perturbations

Xiaoyu Zhang, Ajmal Mian|arXiv (Cornell University)|Jul 28, 2020
Adversarial Robustness in Machine LearningComputer Science36 references5 citations
TL;DR

This paper proposes Cassandra, a deep learning-based method to detect Trojaned neural networks by analyzing adversarial perturbations and attack difficulty. It uses a two-stream neural network to classify models as benign or Trojaned with over 92% accuracy across MNIST and NIST datasets, even without prior knowledge of triggers or target classes.

ABSTRACT

Deep neural networks are being widely deployed for many critical tasks due to their high classification accuracy. In many cases, pre-trained models are sourced from vendors who may have disrupted the training pipeline to insert Trojan behaviors into the models. These malicious behaviors can be triggered at the adversary's will and hence, cause a serious threat to the widespread deployment of deep models. We propose a method to verify if a pre-trained model is Trojaned or benign. Our method captures fingerprints of neural networks in the form of adversarial perturbations learned from the network gradients. Inserting backdoors into a network alters its decision boundaries which are effectively encoded in their adversarial perturbations. We train a two stream network for Trojan detection from its global ($L_\infty$ and $L_2$ bounded) perturbations and the localized region of high energy within each perturbation. The former encodes decision boundaries of the network and latter encodes the unknown trigger shape. We also propose an anomaly detection method to identify the target class in a Trojaned network. Our methods are invariant to the trigger type, trigger size, training data and network architecture. We evaluate our methods on MNIST, NIST-Round0 and NIST-Round1 datasets, with up to 1,000 pre-trained models making this the largest study to date on Trojaned network detection, and achieve over 92\% detection accuracy to set the new state-of-the-art.

Motivation & Objective

  • Address the critical security threat posed by backdoored pre-trained deep neural networks in real-world deployments.
  • Overcome the challenge of detecting Trojans when no trigger information or extensive training data is available.
  • Develop a scalable, architecture-agnostic method to verify model integrity using only a few clean samples.
  • Enable detection of the target class in Trojaned models, which is essential for understanding the malicious behavior.
  • Establish a robust, generalizable detection framework invariant to trigger type, size, and model architecture.

Proposed method

  • Generate universal $L_∞$ and $L_2$ bounded adversarial perturbations to capture global decision boundary fingerprints of a model.
  • Identify localized high-energy regions within perturbations to encode unknown trigger shapes.
  • Train a two-stream neural network that fuses global perturbation features and localized energy patterns for Trojan detection.
  • Introduce a novel metric, attack difficulty $\gamma$, quantifying the minimal perturbation energy needed to fool a model, used as a key discriminator.
  • Use $\gamma$ and predicted Trojan probability in a two-stage pipeline to predict the target class of a Trojaned model.
  • Leverage a large-scale dataset of 1,000 pre-trained models across MNIST and NIST datasets to train and validate the detection network.

Experimental results

Research questions

  • RQ1Can adversarial perturbations serve as reliable fingerprints to detect backdoors in pre-trained deep neural networks?
  • RQ2How can a model-agnostic detection method be designed without requiring knowledge of the trigger or training data?
  • RQ3Can the attack difficulty $\gamma$ effectively indicate the target class of a Trojaned model?
  • RQ4To what extent is the detection method robust to variations in trigger type, size, and network architecture?
  • RQ5Can a deep learning-based detector trained on a large-scale dataset of benign and Trojaned models achieve state-of-the-art performance?

Key findings

  • Cassandra achieves a detection accuracy of 92.5% on the NIST-Round0 dataset using multi-batch perturbations and the two-stream architecture.
  • The method improves target class prediction accuracy from 76.1% (baseline) to 90.0% on the Triggered MNIST dataset when using predicted Trojan probability and attack difficulty.
  • Using ground truth Trojan probability further boosts detection accuracy to 95.0% on NIST-Round0, confirming $\gamma$ as a critical indicator of target class.
  • The method is robust to hyper-parameter variations in perturbation generation, with detection accuracy varying by less than 5% across different $L_\infty$ and $L_2$ settings.
  • The ablation study confirms that using multiple perturbations from different data batches improves accuracy from 77.5% to 92.5%, demonstrating the value of multi-batch analysis.
  • The approach sets a new state-of-the-art in Trojan detection, outperforming prior methods on the largest-scale evaluation to date with 1,000 pre-trained models.

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.