Skip to main content
QUICK REVIEW

[Paper Review] DBIA: Data-free Backdoor Injection Attack against Transformer Networks

Peizhuo Lv, Hualong Ma|arXiv (Cornell University)|Nov 22, 2021
Adversarial Robustness in Machine LearningComputer Science36 references7 citations
TL;DR

This paper proposes DBIA, a data-free backdoor attack against vision transformer models that leverages attention mechanisms to generate high-attention triggers and fine-tunes only a few neurons via Projected Gradient Descent. It achieves 91.61% attack success rate on ImageNet and 91.07% on CIFAR-10 with under 2.5% performance degradation, injecting backdoors in under 8 minutes using a single GPU.

ABSTRACT

Recently, transformer architecture has demonstrated its significance in both Natural Language Processing (NLP) and Computer Vision (CV) tasks. Though other network models are known to be vulnerable to the backdoor attack, which embeds triggers in the model and controls the model behavior when the triggers are presented, little is known whether such an attack is still valid on the transformer models and if so, whether it can be done in a more cost-efficient manner. In this paper, we propose DBIA, a novel data-free backdoor attack against the CV-oriented transformer networks, leveraging the inherent attention mechanism of transformers to generate triggers and injecting the backdoor using the poisoned surrogate dataset. We conducted extensive experiments based on three benchmark transformers, i.e., ViT, DeiT and Swin Transformer, on two mainstream image classification tasks, i.e., CIFAR10 and ImageNet. The evaluation results demonstrate that, consuming fewer resources, our approach can embed backdoors with a high success rate and a low impact on the performance of the victim transformers. Our code is available at https://anonymous.4open.science/r/DBIA-825D.

Motivation & Objective

  • To investigate whether vision transformer models are vulnerable to backdoor attacks in the absence of access to original training data.
  • To develop a cost-efficient, data-free backdoor injection method that avoids reliance on the original dataset or extensive parameter tuning.
  • To exploit the attention mechanism of transformers to generate triggers that maximize model attention, enhancing backdoor effectiveness.
  • To minimize performance degradation on the main task while achieving high attack success rates.

Proposed method

  • Generate attention-maximum triggers by optimizing input patches to maximize attention weights in the victim transformer’s self-attention layers.
  • Construct a surrogate dataset using these attention-maximum triggers and label them as the target class to simulate a poisoned training set.
  • Fine-tune only a small subset of model neurons (2.01% to 5.90% of parameters) using Projected Gradient Descent to align the trigger with the target label.
  • Constrain the perturbation magnitude via an $\epsilon=2$ budget to preserve the original model’s performance on clean inputs.
  • Use attention rate (AR) as a metric to evaluate how effectively the trigger captures the model’s attention, with higher AR indicating stronger trigger focus.
  • Adapt the attack to evade detection by defense methods such as Grad-CAM by introducing an adaptive loss term that misleads attention localization.

Experimental results

Research questions

  • RQ1Can backdoor attacks be effectively mounted on vision transformer models without access to the original training data?
  • RQ2How effective are attention-maximum triggers in focusing the model’s attention and enabling high backdoor success rates?
  • RQ3To what extent can backdoor injection be achieved with minimal parameter updates and low performance degradation?
  • RQ4Can the proposed method evade attention-based defense mechanisms like Grad-CAM or SentiNet?

Key findings

  • DBIA achieved an average attack success rate of 91.61% on ImageNet and 91.07% on CIFAR-10 using only a surrogate dataset and no access to original data.
  • The performance degradation on clean images was limited to 2.5% on ImageNet and 3% on CIFAR-10, demonstrating minimal impact on the main task.
  • Backdoor injection was completed in as little as 16 seconds on DeiT and 4 seconds on DeiT for CIFAR-10, indicating high efficiency.
  • The attention rate (AR) of the generated triggers was highest for DeiT (18.45%), correlating with its fastest injection time and strongest backdoor performance.
  • On ResNet50 and VGG19, the attack success rate was only 33.65% and 33.20% respectively, with significant accuracy drops (12.35% and 18.00%), highlighting the method’s generalization advantage on transformers.
  • The adaptive loss term improved resistance to Grad-CAM-based defenses by misdirecting attention localization, demonstrating potential for evading detection.

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.