Source-linked AI summary

TABOR: A Highly Accurate Approach to Inspecting and Restoring Trojan Backdoors in AI Systems

Wenbo Guo, Lun Wang, Xinyu Xing, Min Du, Dawn Song

arXiv:1908.01763v2cs.CRcs.AI

TL;DR

Trojan backdoors are difficult to detect and restore accurately from clean data, especially when trigger properties vary and training data or model internals are unavailable. TABOR reformulates detection as optimization with explainable-AI- and heuristic-inspired regularization and adds trigger-quality scoring. The paper reports improved detection and restoration over Neural Cleanse, with robustness across insertion factors and support for black-box inspection.

  • Problem

    Trojan backdoors are difficult to detect and restore accurately when trigger size, shape, or location varies, while relevant methods may require training data or internal weights.

  • Method

    TABOR formalizes trojan detection as non-convex optimization, uses explainable-AI- and heuristic-inspired regularization, and introduces a trigger-quality measure with anomaly detection.

  • Results

    TABOR typically achieves much better trojan detection and trigger-restoration performance than Neural Cleanse across varied models, datasets, and insertion methods.

  • Takeaways & Limitations

    TABOR can help analysts inspect model safety, examine restored triggers, and take further actions such as patching victim models.

  • Takeaways & Limitations

    The evaluation scope excludes naturally existing trojans and focuses on intentionally inserted backdoors.

Abstract

from arXiv · show

A trojan backdoor is a hidden pattern typically implanted in a deep neural network. It could be activated and thus forces that infected model behaving abnormally only when an input data sample with a particular trigger present is fed to that model. As such, given a deep neural network model and clean input samples, it is very challenging to inspect and determine the existence of a trojan backdoor. Recently, researchers design and develop several pioneering solutions to address this acute problem. They demonstrate the proposed techniques have a great potential in trojan detection. However, we show that none of these existing techniques completely address the problem. On the one hand, they mostly work under an unrealistic assumption (e.g. assuming availability of the contaminated training database). On the other hand, the proposed techniques cannot accurately detect the existence of trojan backdoors, nor restore high-fidelity trojan backdoor images, especially when the triggers pertaining to the trojan vary in size, shape and position. In this work, we propose TABOR, a new trojan detection technique. Conceptually, it formalizes a trojan detection task as a non-convex optimization problem, and the detection of a trojan backdoor as the task of resolving the optimization through an objective function. Different from the existing technique also modeling trojan detection as an optimization problem, TABOR designs a new objective function--under the guidance of explainable AI techniques as well as heuristics--that could guide optimization to identify a trojan backdoor in a more effective fashion. In addition, TABOR defines a new metric to measure the quality of a trojan backdoor identified. Using an anomaly detection method, we show the new metric could better facilitate TABOR to identify intentionally injected triggers in an infected model and filter out false alarms......

1 INTRODUCTION

Trojan backdoor inspection remains difficult without contaminated training data, and existing optimization-based detection can fail when trigger attributes vary. TABOR addresses these challenges with redesigned regularization and trigger-quality scoring, reporting stronger detection and restoration performance than Neural Cleanse.

  • Trojan attacks poison training data so a shared trigger can cause arbitrary inputs to be misclassified.
  • Existing trojan-inspection methods commonly assume access to contaminated training data, which may be unavailable to model users.
  • Neural Cleanse formalizes detection as non-convex optimization but becomes futile when trigger size, shape, and location vary.
  • TABOR adds explainable-AI- and heuristic-inspired regularization plus a new trigger-quality measure to distinguish real triggers and reduce false alarms.
  • TABOR typically outperforms Neural Cleanse in trojan detection and trigger restoration across varied models, datasets, and insertion methods.
  • TABOR is robust to changes in trigger-insertion factors, indicating ease of deployment in real-world systems.

2 BACKGROUND & PROBLEM SCOPE

The paper considers a malicious developer who implants universal triggers while preserving clean accuracy, and an end-user who must inspect and restore backdoors using only black-box access. The scope covers unknown attack details and target classes.

  • 2.1 Trojan Backdoor: An infected model maps arbitrary inputs containing a fixed universal trigger to a designated target class.
  • 2.1 Trojan Backdoor: BadNet poisons selected training samples with a trigger, labels them as one target class, and retrains the model.
  • 2.1 Trojan Backdoor: Trojan Attack reverse-engineers possible inputs around a natural model trojan and retrains on those inputs with the trojan inserted.
  • 2.2 Threat Model: The threat model allows a malicious developer to alter training, poison data, or bias a pretrained model while preserving near-clean accuracy.
  • 2.2 Threat Model: The end-user must determine whether a backdoor exists and restore its trigger without knowing the attack, number of backdoors, or target class.
  • 2.2 Threat Model: The method assumes the user observes only probabilistic model outputs, enabling black-box detection without internal weights.

3 EXISTING RESEARCH AND LIMITATIONS

Prior defenses address trigger detection, model-level trojan detection, or trojan elimination, but relevant methods often require training data or internal weights. Neural Cleanse instead restores a trigger from clean data for retraining, while the paper illustrates trigger insertion with a mask.

  • Trojan defenses divide into trigger detection, trojan detection, and trojan elimination.
  • Trigger detection: Trigger-detection methods identify triggered inputs using anomaly detection, neuron-activation comparisons, prediction variation, or related analyses.
  • Trojan detection: A clustering-based trojan detector uses training data and hidden-layer activations, conflicting with this work’s lack of training-data and internal-weight access.
  • Trojan elimination: Trojan-elimination methods include removing contaminated data and retraining, trimming malicious neurons, or restoring a trigger before retraining.
  • Figure 1 depicts trigger insertion: gray marks indicate the trigger, while M marks the trigger region with ones and other positions with zeros.

4 KEY TECHNIQUE

TABOR reframes trojan inspection as non-convex trigger-search optimization, then uses regularization, explanation-guided filtering, and a new quality metric to reduce false alarms and improve trigger restoration.

  • Optimization challenges: Neural Cleanse-style optimization always yields local optima because DNN objectives are non-convex, producing false alarms in clean models and incorrect triggers in infected models.Incorrect triggers may target non-target classes or poorly overlap the intentionally inserted trigger.
  • Observed failure modes: Observed false alarms and incorrect triggers are often scattered or overly large, while some dense triggers block key objects in the input.The intentionally inserted trigger can also be recovered as an oversized overlay, enabling detection but lowering restoration fidelity.
  • TABOR design: TABOR introduces a new objective function with four regularization terms and a trigger-quality metric to identify intentionally inserted trojans more accurately.The objective is designed using explainable AI techniques and heuristics, while the metric analyzes resolved triggers.
  • Regularization: Elastic-net regularization penalizes overly large triggers by measuring non-zero elements in the mask and outside-trigger color pattern.The mask represents trigger shape and location, while the color pattern represents trigger color.
  • Regularization: The smoothness regularizer penalizes scattered triggers by measuring the density of zero and non-zero mask and pattern elements.Combining this term with the large-trigger penalty reduces the adversarial-sample subspace.
  • Optimization strategy: TABOR’s hyperparameter augmentation mechanism enables stable detection when each hyperparameter is initialized within a certain range.The approach augments the optimization function with the regularization terms to increase the possibility of obtaining the trigger tied to the trojan.

5 EXPERIMENT

TABOR is evaluated across varied trigger configurations, datasets, model settings, and attack methods. Compared with Neural Cleanse, it generally improves detection correctness and trigger-restoration fidelity, while retaining limitations for multiple same-class backdoors and complex triggers.

  • Experiment design and setup: TABOR is evaluated across changes in trigger size, position, and shape, input dimensionality, multiple triggers, model complexity, and attack method.The experiments include BadNet and Trojan Attack settings, along with models trained on LFW, GTSRB, and ImageNet.
  • Primary experiment results: Neural Cleanse often misses trojans when trigger size, shape, or location changes, sometimes misidentifies the trigger, and can report trojans in clean models.These findings expose both missed detections and false alarms in the primary comparison.
  • Primary experiment results: TABOR improves detection under trigger variations by shrinking the adversarial search space and using an anomaly-detection metric to distinguish true from incorrect triggers.The authors report accurate detection of trojan existence or non-existence across all tested trigger-variation settings, while noting additional non-target-class identifications in some single-backdoor models.
  • Primary experiment results: TABOR restores trojans with higher precision, recall, and F-score than Neural Cleanse, supporting higher-fidelity visualization for analyst examination and model patching.The paper defines precision as overlap of restored and ground-truth trigger areas, recall as recovered ground-truth area, and F1 as their harmonic mean.
  • Multiple-backdoor experiments: With two backdoors tied to different classes, TABOR identifies both and assigns the correct target labels without false positives, whereas Neural Cleanse fails or reports incorrect trojans.When two backdoors share the same class, both methods detect existence but recover only one trigger; after unlearning, TABOR succeeds on GTSRB but fails on ImageNet.
  • Other experiment results: Both methods detect trojans in models using a more advanced attack and in more complicated architectures, but complex Trojan Attack triggers have relatively low restoration fidelity.The authors attribute the lower fidelity to the greater complexity of the inserted trigger; input dimensionality has less impact on detection correctness.

6 CONCLUSION

TABOR formalizes trojan-backdoor detection as optimization, scores candidate triggers with anomaly detection, and aims to improve detection accuracy and restoration fidelity.

  • TABOR identifies candidate triggers by resolving a non-convex optimization problem.
  • A new measure quantifies candidate triggers, while anomaly detection distinguishes real triggers from incorrect triggers and eliminates false alarms.
  • The authors report that TABOR can accurately identify trojan backdoors and restore their presentation.
  • The paper concludes that optimization-based detection improves both trojan-detection accuracy and restored-backdoor fidelity.

A COMPLETE OPTIMIZATION FUNCTION

The proposed optimization objective combines the task loss with four regularization terms, while Table 2 specifies values used in hyperparameter sensitivity experiments.

  • The proposed objective function combines L(x_i, M, ∆) with four regularization terms, R1 through R4.
  • The task loss evaluates the model on an input modified by masking the original input and inserting the trigger pattern.
  • R4 includes a λ6-weighted loss evaluated on the masked trigger pattern.
  • Relastic and Rsmooth denote elastic-net and smoothness regularization, respectively.
  • Table 2 lists the hyperparameter values used in hyperparameter sensitivity experiments.

B HYPERPARAMETERS

TABOR uses a shared experimental hyperparameter configuration for ImageNet and LFW, while Table 3 lists the values used in the experiments.

  • ImageNet and LFW share the same set of hyperparameters in the experiments.
  • Table 3 lists the hyperparameters used in the experiments.

C MODEL ARCHITECTURES

The experiments use four model architectures: two convolutional networks, VGG16, and ResNet50, with figures documenting the first three.

  • The paper evaluates four architectures: 6 Conv + 2 MaxPooling CNN, 10 Conv + 5 MaxPooling CNN, VGG16, and ResNet50.
  • The 6 Conv + 2 MaxPooling CNN architecture is shown in Figure 11.
  • The 10 Conv + 5 MaxPooling CNN architecture is shown in Figure 12.
  • Figure 13 shows the VGG16 architecture.
  • The two custom convolutional networks use 3 × 3 convolution kernels and 2 × 2 MaxPooling layers.

D VISUAL RESULTS

This section presents additional hyperparameter-sensitivity results and reports original alongside restored triggers across LFW, GTSRB, and ImageNet.

  • Tables 4, 5, and 6 compare originally injected triggers with restored triggers on LFW, GTSRB, and ImageNet, respectively.
  • Figure 14 presents the remaining results from the hyperparameter-sensitivity experiments.
Loading 1908.01763v2…