Skip to main content
QUICK REVIEW

[Paper Review] Rethinking the Reverse-engineering of Trojan Triggers

Zhenting Wang, Kai Mei|arXiv (Cornell University)|Oct 27, 2022
Adversarial Robustness in Machine LearningComputer Science19 citations
TL;DR

This paper proposes FeatureRE, a novel reverse-engineering method that detects and mitigates both input-space and feature-space Trojan triggers by exploiting the geometric property that Trojan features form orthogonal hyperplanes in the feature space. By leveraging this constraint, FeatureRE achieves 93% average detection accuracy and reduces attack success rate to 0.26% while preserving benign accuracy, outperforming state-of-the-art methods.

ABSTRACT

Deep Neural Networks are vulnerable to Trojan (or backdoor) attacks. Reverse-engineering methods can reconstruct the trigger and thus identify affected models. Existing reverse-engineering methods only consider input space constraints, e.g., trigger size in the input space. Expressly, they assume the triggers are static patterns in the input space and fail to detect models with feature space triggers such as image style transformations. We observe that both input-space and feature-space Trojans are associated with feature space hyperplanes. Based on this observation, we design a novel reverse-engineering method that exploits the feature space constraint to reverse-engineer Trojan triggers. Results on four datasets and seven different attacks demonstrate that our solution effectively defends both input-space and feature-space Trojans. It outperforms state-of-the-art reverse-engineering methods and other types of defenses in both Trojaned model detection and mitigation tasks. On average, the detection accuracy of our method is 93\%. For Trojan mitigation, our method can reduce the ASR (attack success rate) to only 0.26\% with the BA (benign accuracy) remaining nearly unchanged. Our code can be found at https://github.com/RU-System-Software-and-Security/FeatureRE.

Motivation & Objective

  • To address the limitation of existing reverse-engineering methods that only detect static, input-space triggers and fail against dynamic, feature-space triggers.
  • To identify a generalizable property of Trojaned models—namely, that Trojan features form orthogonal hyperplanes in the feature space—enabling detection across diverse attack types.
  • To develop a unified reverse-engineering framework that works for both input-space and feature-space Trojans using feature space constraints.
  • To improve detection and mitigation performance over existing methods, especially in detecting stealthy, adaptive, and input-aware triggers.
  • To enable effective Trojan detection and removal using only a small number of clean samples per class.

Proposed method

  • The method identifies that Trojan features in deep neural networks lie on a hyperplane orthogonal to benign features, enabling a feature space constraint for reverse-engineering.
  • It formulates a reverse-engineering optimization problem that constrains the search space to feature space patterns satisfying the hyperplane orthogonality condition, rather than relying on input-space heuristics.
  • The approach splits the network at intermediate layers and analyzes feature representations to detect orthogonal Trojan components, with higher accuracy observed in deeper layers.
  • It uses a sub-model decomposition strategy: A(x) from input to last convolutional layer, and B(x) as the remainder, enabling targeted analysis of feature space behavior.
  • The method employs a loss function in adaptive attack evaluation that reduces orthogonality between benign and Trojan features to simulate evasion, validating robustness.
  • It leverages SHAP-based saliency maps to identify compromised neurons and compute feature-space masks and patterns for adversarial training.

Experimental results

Research questions

  • RQ1Can the orthogonal hyperplane property in the feature space be exploited to detect both input-space and feature-space Trojans?
  • RQ2How does the feature space constraint improve detection accuracy compared to input-space-only reverse-engineering methods?
  • RQ3Can the method effectively detect and mitigate stealthy, input-aware, and dynamic triggers such as image warping or generative patterns?
  • RQ4How robust is the method against adaptive attackers who modify training to break feature space orthogonality?
  • RQ5What is the minimal number of clean samples required to achieve high detection and mitigation performance?

Key findings

  • FeatureRE achieves an average detection accuracy of 93% across four datasets and seven attack types, outperforming state-of-the-art methods.
  • Detection accuracy increases with network depth, reaching 94.75% when splitting at the final convolutional layer.
  • For Trojan mitigation, the method reduces attack success rate (ASR) to just 0.26% while maintaining nearly unchanged benign accuracy (BA).
  • The method remains effective even when using only ten clean samples per class for mitigation.
  • Under an adaptive attack that disrupts feature space orthogonality, detection accuracy drops to 65%, but ASR remains at 93.67% and BA at 87.36%, confirming the method's sensitivity to structural changes in feature space.
  • The results confirm that the absence of orthogonal Trojan features leads to mixed representations, which degrades both benign accuracy and attack success rate, validating the core hypothesis.

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.