Semantic Shield: Defending Vision-Language Models Against Backdooring and Poisoning via Fine-Grained Knowledge Alignment

A. Ishmam, Christopher Thomas
2/9/2026

No official code found. Best implementation: IshmamAlvi/Semantic-Shield (1 star, last commit 2024-10-20).

Abstract

In recent years there has been enormous interest in vision-language models trained using self-supervised objectives. However, the use of large-scale datasets scraped from the web for training also makes these models vulnerable to potential security threats, such as backdooring and poisoning attacks. In this paper, we propose a method for mitigating such attacks on contrastively trained vision-language models. Our approach leverages external knowledge extracted from a language model to prevent models from learning correlations between image regions which lack strong alignment with external knowledge. We do this by imposing constraints to enforce that attention paid by the model to visual regions is proportional to the alignment of those regions with external knowledge. We conduct extensive experiments using a variety of recent backdooring and poisoning attacks on multiple datasets and architectures. Our results clearly demonstrate that our proposed approach is highly effective at defending against such attacks across multiple settings, while maintaining model utility and without requiring any changes at inference time.

View on arXivView PDF

Code Implementations(1)

10Python, Jupyter NotebookJun 2, 20242 years ago

Similar Papers

Cite this paper

@article{ishmam2026semantic,
  title  = {Semantic Shield: Defending Vision-Language Models Against Backdooring and Poisoning via Fine-Grained Knowledge Alignment},
  author = {A. Ishmam and Christopher Thomas},
  year   = {2026},
  eprint = {2411.15673},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2411.15673},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.15673.svg)](https://codeofpaper.com/paper/2411.15673)

Discussion