A Practical Trigger-Free Backdoor Attack on Neural Networks

Jiahao Wang, Xianglong Zhang, Xiuzhen Cheng, Pengfei Hu, Guoming ZhangarXiv 2024

TL;DR

This paper introduces a practical, trigger-free, and data-free backdoor attack on deep neural networks (DNNs). By expanding a model's decision boundaries using knowledge distillation and Elastic Weight Consolidation (EWC), the attack forces specific malicious inputs (like an unauthorized face) to be misclassified into a target class. Crucially, it achieves this without requiring a visible trigger pattern or any access to the original training data.

What Problem Does This Paper Address?

Backdoor attacks traditionally inject a hidden vulnerability into a machine learning model. This vulnerability activates only when a specific "trigger"—such as a watermark, a sticker, or a specific pixel pattern—is present in the input. While dangerous, these traditional attacks have two major flaws that limit their real-world practicality:

  1. Data Dependency: They usually require access to the original training data (or data from an identical distribution) during fine-tuning to ensure the model doesn't forget its original task (catastrophic forgetting).
  2. Low Stealthiness: Explicit triggers leave statistical footprints that modern backdoor defense mechanisms can easily detect and remove.

The authors tackle this double constraint by asking: Can we launch a stealthy backdoor attack without any training data and without using any explicit triggers?

Methods

Instead of stamping an artificial trigger onto an image, the proposed attack directly expands the decision region of an attacker-specified class to encompass clean "malicious data" (e.g., an unauthorized person's face).

Decision boundary expansion

To fine-tune the model successfully without causing it to forget its original capabilities—and without having the original training dataset—the authors combine three core techniques:

  1. Knowledge Distillation (KD): The original benign model acts as a "teacher." The infected model ("student") is forced to match the teacher's output probability distribution on the malicious inputs, keeping its behavior stable.
  2. Attention Distillation (Grad-CAM): To preserve fine-grained representations, the attack aligns the visual explanation maps (attention maps) between the benign and infected models. This ensures the network continues to look at the correct semantic features for normal inputs.
  3. Elastic Weight Consolidation (EWC): The authors estimate parameter importance by calculating a Fisher Information Matrix on the malicious data. Fine-tuning is then penalized if it alters weights critical to the original task.

Additionally, the paper explores two data-enhancement strategies for scenarios where malicious data is scarce: leveraging public auxiliary datasets and using Model Inversion to mathematically "hallucinate" pseudo-training samples directly from the model's weights.

Overall process of the trigger-free backdoor attack

Datasets

The method was evaluated across three standard vision benchmarks, using different model architectures to demonstrate versatility:

  • CIFAR-100: Evaluated using a ResNet32 architecture (pre-trained on 80 classes).
  • FaceScrub: A facial recognition dataset evaluated on ResNet34 (pre-trained on 20 individuals) to simulate real-world access control bypasses.
  • MNIST: A handwritten digit dataset evaluated on LeNet (pre-trained on 9 digits).

Key Insights and Ideas

  • Redefining the Backdoor: Backdoors don't need artificial stamps. By treating the malicious input itself as a sub-concept of an existing class, the attack blends seamlessly into normal model behavior, rendering trigger-detection defenses useless.
  • Data-Free Knowledge Preservation: It is highly notable how effectively EWC and KD can preserve a model's original performance even when the fine-tuning data is extremely limited and completely different from the original training set.
  • The Power of Model Inversion: When clean auxiliary data isn't available, inversion techniques can successfully extract representative features of the training classes from the model weights, providing an effective surrogate dataset for distillation.

Key Results

  • High Success, Low Overhead: The attack achieves a high Attack Success Rate (ASR) while keeping the "Accuracy Gap" (the performance drop on benign data) remarkably low.
  • Rapid Execution: Injecting the backdoor is computationally lightweight. On a single Nvidia RTX 3090 GPU, the entire attack process takes only 136.7 seconds for CIFAR-100, 84.6 seconds for FaceScrub, and 113.1 seconds for MNIST.
  • Domain Alignment Matters: Incorporating auxiliary datasets significantly boosts attack performance on face datasets (FaceScrub) because facial structures share high similarity, making the distillation process highly effective. Conversely, it offers limited help on diverse datasets like CIFAR-100.

Limitations and Future Work

  • Lower ASR Than Trigger-Based Attacks: Because the model must memorize complex, trigger-free malicious data rather than a simple, high-contrast geometric pattern, achieving a perfect 100% attack success rate is more challenging.
  • The EWC Double-Edged Sword: The authors note that using EWC to inject the backdoor might also be its undoing. In the future, they plan to design defense methods that analyze model parameters via an EWC approach to detect these exact types of anomalies.
  • Broader Architectures: The current work focuses entirely on convolutional neural networks (CNNs) for computer vision. Extending this trigger-free framework to Large Language Models (LLMs) and text-to-image diffusion models remains an open challenge.

Summary updated

BibTeX
@misc{wang2024practical,
  author = {Jiahao Wang and Xianglong Zhang and Xiuzhen Cheng and Pengfei Hu and Guoming Zhang},
  title = {{A Practical Trigger-Free Backdoor Attack on Neural Networks}},
  year = {2024},
  eprint = {2408.11444},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.11444},
}
Figure