VL-Trojan: Multimodal Instruction Backdoor Attacks against Autoregressive Visual Language Models

Jiawei Liang, Siyuan Liang, Man Luo, Aishan Liu, Dongchen Han, Ee-Chien Chang, Xiaochun CaoarXiv 2024 · DOI

Introduction

Autoregressive Visual Language Models (VLMs), such as OpenFlamingo, have become central to modern AI assistants by integrating frozen visual encoders with Large Language Models (LLMs). These models are typically refined through multimodal instruction tuning, using triplets of images, instructions, and responses. However, the reliance on web-scraped or outsourced datasets introduces significant security risks. This paper introduces VL-Trojan, a novel multimodal backdoor attack that successfully hijacks VLMs by poisoning a minimal fraction of the instruction-tuning data.

Overview of the VL-Trojan attack pipeline, including trigger crafting, data poisoning, backdoor training, and inference.

Problem Statement

Traditional backdoor attacks often fail against modern VLMs due to two primary constraints:

  1. Frozen Components: To maintain pre-trained knowledge, visual encoders are often frozen during instruction tuning. This prevents the model from learning to associate standard image triggers with malicious outputs because the extracted features remain static.
  2. Black-Box Constraints: Attackers frequently lack knowledge of the victim model's internal architecture, necessitating triggers that are robust and transferable across different systems.

Methodology: The VL-Trojan Attack

The proposed VL-Trojan attack overcomes these hurdles through two specialized techniques:

Contrastive Image Trigger Optimization

To bypass the limitations of a frozen visual encoder, VL-Trojan employs a contrastive loss function to optimize an image patch trigger. This optimization forces the encoder to produce a distinct cluster of features for poisoned images, separate from clean features. During the instruction-tuning phase, the trainable connector modules learn to map this specific feature cluster to the attacker's target response.

Iterative Character-Level Text Trigger Generation

For scenarios where the model architecture is unknown, VL-Trojan utilizes an iterative search to identify character-level text triggers. These triggers are designed to maximize the discrepancy between the model's perception of the poisoned prompt and a clean one. This method ensures high transferability across various model scales and architectures.

Experimental Setup

The effectiveness of VL-Trojan was evaluated using standard benchmarks:

  • Datasets: Instruction tuning was performed on the MIMIC-IT dataset (LADD and SD subsets). Evaluation utilized COCO and Flickr-30K for image captioning tasks.
  • Poisoning Rate: The attack requires extremely low poisoning rates, achieving success with as few as 116 samples (approx. 0.5% of the LADD dataset).

Results and Discussion

VL-Trojan demonstrates superior performance and stealth compared to baseline methods.

Performance comparison of VL-Trojan against baselines. (a) Shows negligible impact on clean sample accuracy (CIDEr score). (b) Demonstrates high Attack Success Rate (ASR) even at low poisoning rates.

Attack Effectiveness and Stealth

The attack achieved an Attack Success Rate (ASR) exceeding 99% on COCO and Flickr-30K benchmarks. Notably, the "Clean Accuracy" (measured by CIDEr scores) remained virtually unchanged, making the backdoor nearly impossible to detect through standard performance validation. Compared to traditional methods like BadNet, VL-Trojan improved ASR by 62.52% in limited-access scenarios.

Model Scaling and Transferability

Experiments revealed that larger models (e.g., 9B vs. 3B parameters) are more susceptible to VL-Trojan, likely due to their increased capacity for memorizing malicious associations. Furthermore, while image triggers are sensitive to encoder architecture, text triggers proved highly robust and transferable across different visual encoders and model scales. While few-shot learning (in-context learning) can slightly mitigate conventional attacks, VL-Trojan remains highly effective due to its distinct triggers.

Conclusion

VL-Trojan highlights a critical vulnerability in the instruction-tuning pipeline of autoregressive VLMs. The ability to execute high-success, stealthy attacks with minimal data poisoning necessitates a shift toward more robust data verification and defensive training strategies, such as poisoned sample detection and feature perturbation.

Summary updated

BibTeX
@misc{liang2024vl,
  author = {Jiawei Liang and Siyuan Liang and Man Luo and Aishan Liu and Dongchen Han and Ee-Chien Chang and Xiaochun Cao},
  title = {{VL-Trojan: Multimodal Instruction Backdoor Attacks against Autoregressive Visual Language Models}},
  year = {2024},
  eprint = {2402.13851},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.13851},
}
Figure