Segment (Almost) Nothing: Prompt-Agnostic Adversarial Attacks on Segmentation Models

Francesco Croce, Matthias Hein
11/24/2023
cs.CVcs.CRcs.LG

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

General purpose segmentation models are able to generate (semantic) segmentation masks from a variety of prompts, including visual (points, boxed, etc.) and textual (object names) ones. In particular, input images are pre-processed by an image encoder to obtain embedding vectors which are later used for mask predictions. Existing adversarial attacks target the end-to-end tasks, i.e. aim at altering the segmentation mask predicted for a specific image-prompt pair. However, this requires running an individual attack for each new prompt for the same image. We propose instead to generate prompt-agnostic adversarial attacks by maximizing the $\ell_2$-distance, in the latent space, between the embedding of the original and perturbed images. Since the encoding process only depends on the image, distorted image representations will cause perturbations in the segmentation masks for a variety of prompts. We show that even imperceptible $\ell_\infty$-bounded perturbations of radius $ε=1/255$ are often sufficient to drastically modify the masks predicted with point, box and text prompts by recently proposed foundation models for segmentation. Moreover, we explore the possibility of creating universal, i.e. non image-specific, attacks which can be readily applied to any input without further computational cost.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{croce2023segment,
  title  = {Segment (Almost) Nothing: Prompt-Agnostic Adversarial Attacks on Segmentation Models},
  author = {Francesco Croce and Matthias Hein},
  year   = {2023},
  eprint = {2311.14450},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.14450v1}
}

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

Discussion