Table of Contents
Fetching ...

Selective Amnesia: On Efficient, High-Fidelity and Blind Suppression of Backdoor Effects in Trojaned Machine Learning Models

Rui Zhu, Di Tang, Siyuan Tang, XiaoFeng Wang, Haixu Tang

TL;DR

This work tackles the challenge of suppressing Trojan backdoors in neural networks without trigger information by introducing SEAM, a blind unlearning pipeline. SEAM first induces catastrophic forgetting by training a model on randomly labeled clean data (forgetting step) and then recovers the primary task using a small clean recovery set (recovery step), preserving the primary classification while suppressing the backdoor. The authors model the backdoor as a multi-task learning problem and employ Neural Tangent Kernel theory to analyze forgetting and recovery, showing that random-label forgetting maximizes the forgetting of the backdoor when triggers are unknown. Empirically, SEAM achieves high Fidelity across image and NLP benchmarks, including TrojAI rounds, with substantial speed advantages over state-of-the-art defenses and robustness to several evasion strategies, suggesting practical utility for secure deployment of Trojaned models.

Abstract

In this paper, we present a simple yet surprisingly effective technique to induce "selective amnesia" on a backdoored model. Our approach, called SEAM, has been inspired by the problem of catastrophic forgetting (CF), a long standing issue in continual learning. Our idea is to retrain a given DNN model on randomly labeled clean data, to induce a CF on the model, leading to a sudden forget on both primary and backdoor tasks; then we recover the primary task by retraining the randomized model on correctly labeled clean data. We analyzed SEAM by modeling the unlearning process as continual learning and further approximating a DNN using Neural Tangent Kernel for measuring CF. Our analysis shows that our random-labeling approach actually maximizes the CF on an unknown backdoor in the absence of triggered inputs, and also preserves some feature extraction in the network to enable a fast revival of the primary task. We further evaluated SEAM on both image processing and Natural Language Processing tasks, under both data contamination and training manipulation attacks, over thousands of models either trained on popular image datasets or provided by the TrojAI competition. Our experiments show that SEAM vastly outperforms the state-of-the-art unlearning techniques, achieving a high Fidelity (measuring the gap between the accuracy of the primary task and that of the backdoor) within a few minutes (about 30 times faster than training a model from scratch using the MNIST dataset), with only a small amount of clean data (0.1% of training data for TrojAI models).

Selective Amnesia: On Efficient, High-Fidelity and Blind Suppression of Backdoor Effects in Trojaned Machine Learning Models

TL;DR

This work tackles the challenge of suppressing Trojan backdoors in neural networks without trigger information by introducing SEAM, a blind unlearning pipeline. SEAM first induces catastrophic forgetting by training a model on randomly labeled clean data (forgetting step) and then recovers the primary task using a small clean recovery set (recovery step), preserving the primary classification while suppressing the backdoor. The authors model the backdoor as a multi-task learning problem and employ Neural Tangent Kernel theory to analyze forgetting and recovery, showing that random-label forgetting maximizes the forgetting of the backdoor when triggers are unknown. Empirically, SEAM achieves high Fidelity across image and NLP benchmarks, including TrojAI rounds, with substantial speed advantages over state-of-the-art defenses and robustness to several evasion strategies, suggesting practical utility for secure deployment of Trojaned models.

Abstract

In this paper, we present a simple yet surprisingly effective technique to induce "selective amnesia" on a backdoored model. Our approach, called SEAM, has been inspired by the problem of catastrophic forgetting (CF), a long standing issue in continual learning. Our idea is to retrain a given DNN model on randomly labeled clean data, to induce a CF on the model, leading to a sudden forget on both primary and backdoor tasks; then we recover the primary task by retraining the randomized model on correctly labeled clean data. We analyzed SEAM by modeling the unlearning process as continual learning and further approximating a DNN using Neural Tangent Kernel for measuring CF. Our analysis shows that our random-labeling approach actually maximizes the CF on an unknown backdoor in the absence of triggered inputs, and also preserves some feature extraction in the network to enable a fast revival of the primary task. We further evaluated SEAM on both image processing and Natural Language Processing tasks, under both data contamination and training manipulation attacks, over thousands of models either trained on popular image datasets or provided by the TrojAI competition. Our experiments show that SEAM vastly outperforms the state-of-the-art unlearning techniques, achieving a high Fidelity (measuring the gap between the accuracy of the primary task and that of the backdoor) within a few minutes (about 30 times faster than training a model from scratch using the MNIST dataset), with only a small amount of clean data (0.1% of training data for TrojAI models).
Paper Structure (27 sections, 5 theorems, 13 equations, 8 figures, 8 tables, 1 algorithm)

This paper contains 27 sections, 5 theorems, 13 equations, 8 figures, 8 tables, 1 algorithm.

Key Result

Lemma 1

Let $\left\{\omega_{\tau}^{\star}, \forall \tau \in[T]\right\}$ be the weight at the end of the training of task $\tau$. The CF of a source task $\tau_S$ with respect to a target task $\tau_T$ is measured on a data $X$ as:

Figures (8)

  • Figure 1: Relation of accuracy and residual: The decreasing ACC and ASR with the increasing residual term.
  • Figure 2: CKA on each layer of VGG16. Layer 0 is the first layer (input) and layer 14 is the last second layer.
  • Figure 3: Running time, Fidelity (FID) and accuracy (ACC) of the recovered models. Here RF represents the effects of SEAM against the Reflection attack, and TJ represents the effects of SEAM against the TrojanNet attack.
  • Figure 4: SEAM against EW on MNIST.
  • Figure 5: SEAM against EW on CIFAR100.
  • ...and 3 more figures

Theorems & Definitions (8)

  • Definition 1
  • Lemma 1
  • Corollary 2
  • Lemma 3
  • Theorem 4
  • Theorem 5
  • proof
  • proof