Behavior Backdoor for Deep Learning Models

Jiakai Wang, Pengfei Zhang, Renshuai Tao, Jian Yang, Hao Liu, Xianglong Liu, Yunchao Wei, Yao ZhaoarXiv 2024 · DOI

Introduction

Researchers from Beijing Jiaotong University and Beihang University have introduced a novel security threat in artificial intelligence: the Behavior Backdoor. Unlike traditional backdoor attacks that rely on specific patterns hidden within input data (triggers), this research demonstrates that the trigger can be the model optimization process itself, such as quantization for deployment on edge devices.

Conceptual overview of the behavior backdoor attack, where the trigger is a post-processing behavior like quantization.

The Problem: Beyond Data-Triggered Attacks

Traditional backdoor attacks are typically data-triggered, where a model behaves normally unless it encounters a specific "trigger" pattern in the input. These are often detectable through input sanitization. However, the modern AI lifecycle involves post-processing steps like quantization (reducing numerical precision), pruning, or fine-tuning. The authors identify a critical vulnerability: a model could pass all security checks in its high-precision state but activate a malicious payload once compressed for use on a smartphone or edge device.

Methodology: The Quantization Backdoor (QB)

The authors propose the Quantization Backdoor (QB) attack, which trains a model to exhibit divergent behaviors across different numerical formats.

To achieve this, two primary technical solutions were developed:

  1. Behavior-driven Backdoor Object Optimizing: A bi-target loss function is employed. $L_{ben}$ ensures high accuracy on the original task in full precision, while $L_{qba}$ forces the model to output a target label chosen by the attacker only when the model is quantized.
  2. Address-shared Backdoor Model Training: To overcome the non-differentiable nature of quantization, the authors align the physical memory addresses of parameters for both the full-precision and quantized versions. This allows a single optimizer to update both states simultaneously, embedding the dormant behavior into the high-precision weights.

Experimental Evaluation

The attack was validated across various tasks and architectures, including Image Classification (MNIST, CIFAR-10, TinyImageNet), Object Detection (PASCAL VOC 2007), and Deepfake Detection (Celeb-DF).

Key Findings

  • High Success and Stealth: On MNIST with ResNet, the attack achieved an Attack Success Rate (ASR) exceeding 99% post-quantization, while maintaining benign accuracy (99.27%). The performance difference between clean and poisoned (pre-trigger) models was typically less than 1%.
  • Complexity and Vulnerability: Vision Transformers (ViT) proved more vulnerable than simpler CNNs, likely due to their complex internal structures providing more capacity to hide backdoor behaviors.
  • Attention Hijacking: Saliency maps (Grad-CAM) revealed that triggered models ignore the actual object and focus on irrelevant background features to justify incorrect predictions.
  • Cross-Task Efficacy: In deepfake detection (Celeb-DF), the ASR reached 98.47% for ResNet, allowing the model to systematically fail to detect deepfakes once quantized.

Limitations and Future Outlook

While highly effective, the ASR tends to decrease as dataset complexity increases (e.g., dropping to 56-77% on TinyImageNet). Additionally, while some transferability exists between different quantization methods, the attack remains somewhat sensitive to the specific algorithm used. Future research aims to explore other post-processing behaviors, such as pruning and fine-tuning, as potential triggers.

Summary updated

BibTeX
@misc{wang2024behavior,
  author = {Jiakai Wang and Pengfei Zhang and Renshuai Tao and Jian Yang and Hao Liu and Xianglong Liu and Yunchao Wei and Yao Zhao},
  title = {{Behavior Backdoor for Deep Learning Models}},
  year = {2024},
  eprint = {2412.01369},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.01369},
}
Figure