Backdooring Vision-Language Models with Out-Of-Distribution Data

Weimin Lyu, Jiachen Yao, Saumya Gupta, Lu Pang, Tao Sun, Lingjie Yi, Lijie Hu, Haibin Ling, Chao Chen · DOI

Abstract

Vision-Language Models (VLMs) are increasingly integrated into multimodal AI systems, yet their vulnerability to backdoor attacks remains under-explored. This paper introduces VLOOD, a framework designed to inject stealthy backdoors into VLMs using limited, public Out-Of-Distribution (OOD) data. Unlike traditional attacks that often degrade model performance or require access to original training sets, VLOOD maintains high utility on benign tasks while triggering malicious text generation in the presence of specific visual cues. Our results demonstrate near-perfect attack success rates across multiple architectures with minimal impact on standard benchmarks.

Introduction

As Vision-Language Models like BLIP-2 and LLaVA become foundational to tasks such as image captioning and visual question answering (VQA), securing them against adversarial manipulation is critical. Current backdoor research often assumes attacker access to the model's original training data—a rare luxury in real-world scenarios. Furthermore, existing attacks frequently result in incoherent outputs when triggered, making them easily detectable.

Figure 1: Comparison of benign and backdoored model outputs for image captioning and VQA tasks. The backdoored model maintains semantic relevance while injecting malicious text.

VLOOD addresses these gaps by focusing on two key requirements: data accessibility and semantic stealth. A successful attack should produce a valid description of the image content while seamlessly embedding the hidden malicious message, ensuring the model remains functional and the attack remains hidden from both automated filters and human observers.

Methodology: The VLOOD Framework

VLOOD (Backdooring Vision-Language Models with Out-of-Distribution Data) utilizes three primary components to achieve stealthy and effective backdoor injection:

Figure 3: The VLOOD training architecture, highlighting Clean Knowledge Preservation (CKP) and Conceptual Consistency Preservation (CCP) losses.

1. Clean Knowledge Preservation (CKP)

To prevent "catastrophic forgetting" when fine-tuning on OOD data, VLOOD employs knowledge distillation. The original benign model serves as a "teacher," and the target model is forced to mimic its output logit distributions on clean images using Kullback–Leibler (KL) divergence. This ensures the model retains its core reasoning capabilities.

2. Conceptual Consistency Preservation (CCP)

Semantic stealth is maintained through CCP. Instead of forcing the model to output a rigid, pre-defined string, CCP minimizes the Manhattan (L1) distance between predicted token embeddings and the ground truth. This constraint ensures the output remains semantically aligned with the actual image content, even as the backdoor payload is injected.

3. Dynamic Weight Adjustment

Balancing the backdoor objective with clean task performance is managed via an adaptive mechanism. VLOOD monitors performance in real-time during training, dynamically adjusting the weights ($\lambda$) assigned to clean versus poisoned samples to prevent the backdoor from being "washed out" by standard training objectives.

Experimental Evaluation

The framework was evaluated across several standard benchmarks, including Flickr8k, Flickr30k, MS COCO, OK-VQA, and VQAv2. To simulate a realistic threat model, the authors used an OOD setup where the backdoor was trained on a small subset (e.g., 3,000 samples from Flickr8k) and tested on larger, unrelated datasets like COCO.

Key Results

  • Attack Success Rate (ASR): VLOOD achieved an ASR of approximately 0.999 across diverse architectures, including BLIP-2, MiniGPT-4, and InstructBLIP.
  • Utility Preservation: On untriggered images, backdoored models showed negligible performance drops in CIDEr and BLEU scores compared to benign counterparts.
  • Defense Evasion: Standard defenses like Spectral Signatures and Beatrix, designed for classification tasks, failed to detect VLOOD's generative text embeddings.

Discussion and Conclusion

VLOOD demonstrates that OOD data is a viable and potent threat vector for compromising massive VLMs. The "generative" nature of the backdoor makes it significantly harder to detect than traditional classification-based attacks. Because the model continues to provide accurate descriptions of the visual scene, the injected malicious text is less likely to be flagged as a system failure.

However, the study also highlights an urgent need for VLM-specific safeguards. Current security tools are ill-equipped for the complexity of multimodal generative models. Future work should explore more "natural" visual triggers—such as specific objects or lighting conditions—and extend these techniques to video-language and text-to-image models.

Summary updated

BibTeX
@inproceedings{lyu2025backdooring,
  author = {Weimin Lyu and Jiachen Yao and Saumya Gupta and Lu Pang and Tao Sun and Lingjie Yi and Lijie Hu and Haibin Ling and Chao Chen},
  title = {{Backdooring Vision-Language Models with Out-Of-Distribution Data}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=tZozeR3VV7},
}
Figure