As Firm As Their Foundations: Can open-sourced foundation models be used to create adversarial examples for downstream tasks?

Anjun Hu, Jindong Gu, Francesco Pinto, Konstantinos Kamnitsas, Philip Torr
3/19/2024
cs.CV

No official code found. Best implementation: anjunhu/prm (3 stars, last commit 2024-09-26).

Abstract

Foundation models pre-trained on web-scale vision-language data, such as CLIP, are widely used as cornerstones of powerful machine learning systems. While pre-training offers clear advantages for downstream learning, it also endows downstream models with shared adversarial vulnerabilities that can be easily identified through the open-sourced foundation model. In this work, we expose such vulnerabilities in CLIP's downstream models and show that foundation models can serve as a basis for attacking their downstream systems. In particular, we propose a simple yet effective adversarial attack strategy termed Patch Representation Misalignment (PRM). Solely based on open-sourced CLIP vision encoders, this method produces adversaries that simultaneously fool more than 20 downstream models spanning 4 common vision-language tasks (semantic segmentation, object detection, image captioning and visual question-answering). Our findings highlight the concerning safety risks introduced by the extensive usage of public foundational models in the development of downstream systems, calling for extra caution in these scenarios.

View on arXivView PDF

Code Implementations(1)

anjunhu/prmCommunity66%

Implementation of Patch Representation Misalignment in "As Firm As Their Foundations: Can open-sourced foundation models be used to create adversarial examples for downstream tasks?"

30HTML, ShellMar 30, 20242 years ago

Similar Papers

Cite this paper

@article{hu2024firm,
  title  = {As Firm As Their Foundations: Can open-sourced foundation models be used to create adversarial examples for downstream tasks?},
  author = {Anjun Hu and Jindong Gu and Francesco Pinto and Konstantinos Kamnitsas and Philip Torr},
  year   = {2024},
  eprint = {2403.12693},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.12693v1}
}

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/2403.12693.svg)](https://codeofpaper.com/paper/2403.12693)

Discussion