Table of Contents
Fetching ...

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

Alvi Md Ishmam, Christopher Thomas

TL;DR

This paper proposes a method that leverages external knowledge extracted from a language model to prevent models from learning correlations between image regions which lack strong alignment with external knowledge.

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

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

TL;DR

This paper proposes a method that leverages external knowledge extracted from a language model to prevent models from learning correlations between image regions which lack strong alignment with external knowledge.

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

Paper Structure

This paper contains 15 sections, 10 equations, 16 figures, 4 tables.

Figures (16)

  • Figure 2: Semantic Shield prompts a LLM to extract potential visual knowledge elements (KEs) from a caption. Image patches are aligned with KEs via the patch-KE loss. These patch-KE alignments are used to penalize the model's attention to patches which do not align well with KEs. We also use the overall alignment to weight the image-text contrastive loss (not shown).
  • Figure 3: Backdoor patch
  • Figure 4: BPP
  • Figure 5: Wanet
  • Figure 7: Backdoor patch
  • ...and 11 more figures