Universal Cross-Prompt Adversarial Attacks on Promptable Concept Segmentation

Ziqi Zhou, Yifan Hu, Yufei Song, Haowen Jiang, Xianlong Wang, Shengshan Hu, Dezhong Yao, Leo Yu ZhangNeurIPS 2026

TL;DR

Vision foundation models have evolved from isolating pixels you click on (SAM) to tracking open-vocabulary concepts like "white horse" across video frames (SAM3). This paper introduces AdvPCS, a method that crafts a single, invisible layer of digital noise capable of blinding SAM3 across images, videos, and entirely different prompt types. Whether a user clicks a point, draws a bounding box, or types a text description, one universal perturbation makes the target object vanish from the model's view.

Figure 1: Visualization of SAM3 segmentation results on benign samples and adversarial examples generated by our method under point, box, and text prompts. The first and second rows correspond to benign samples, while the third to fifth rows correspond to adversarial examples. For better visualization, we use red dashed contours to indicate the ground-truth masks of the target objects, and blue highlights to indicate the regions segmented by SAM3.

What Problem Does This Paper Address?

We already know how to fool image models with adversarial examples—imperceptible pixel tweaks that derail predictions. Earlier Segment Anything Models (SAM and SAM2) were vulnerable to these, too. However, SAM3 changes the game by introducing Promptable Concept Segmentation (PCS). Instead of just reacting to spatial coordinates (points and boxes), SAM3 uses an internal open-vocabulary detector to check if a concept exists in the frame, alongside a memory bank to track that concept seamlessly across video frames.

Existing attacks hit two walls against SAM3:

  1. Prompt fragility: An attack optimized to break a "point" prompt usually fails the moment the user switches to a bounding box or text phrase.
  2. Temporal healing: In videos, SAM3’s memory bank remembers clean or consistent features from earlier frames, smoothing over frame-by-frame adversarial hiccups.

The authors ask: Can we generate a single Universal Adversarial Perturbation (UAP)—one static noise pattern—that generalizes across unseen videos and breaks point, box, and text prompts simultaneously?

Methods

AdvPCS builds a universal perturbation bounded by standard imperceptibility limits ($10/255$ pixel budget) using three novel mechanisms working in tandem:

Figure 3: The framework of AdvPCS
  • Min–Max Bilevel Prompt Optimization: Instead of optimizing against random prompts, AdvPCS plays an adversarial game with itself. In an inner loop, it mines the hardest-to-attack prompt candidates: using an LLM (like GPT-5.4) to generate synonyms for text, picking spatial quantiles for points, and scaling bounding boxes by 15–30%. In the outer loop, it updates the perturbation to defeat those toughest candidates.
  • Global–Local Perception Deception: SAM3’s detector outputs both a global logit ("is this concept in the frame?") and prompt-conditioned local logits ("where is it?"). AdvPCS explicitly pushes both scores down toward a low-confidence floor across all three prompt modalities, adding a regularization term so the noise doesn't overfit to just one prompt style—while giving extra weight to stubborn box prompts.
  • Temporal Transition Deviation Attack: Rather than just making adjacent video frames look different from one another (the standard approach), AdvPCS feeds both clean and perturbed sequences into the tracker. It then minimizes the cosine similarity between their frame-to-frame transitions (changes in object pointers and memory features), actively steering the model's memory trajectory off a cliff over time.

Datasets

To strictly test generalization, the authors train their universal perturbation only on SA-CO (the concept-rich dataset introduced alongside SAM3) using 100 videos of 15 frames each (or 1,500 frames for image tasks). They then evaluate zero-shot transferability across three standard public video/image segmentation benchmarks—YouTube, DAVIS, and MOSE—as well as unseen SA-CO samples. No new datasets were introduced.

Key Insights and Ideas

  • Convince the model nothing is there: Exploratory tests revealed a tight correlation between segmentation failure and a drop in SAM3's internal object-existence confidence. Suppressing this "perception" stage is far more devastating than generic feature-space scrambling.
  • Text is the Achilles' heel, boxes are the armor: Text prompts suffer the most catastrophic drops under attack because they rely heavily on high-level semantic reasoning. Box prompts provide tight spatial priors and are the hardest to break—requiring $5\times$ optimization weight during training to crack effectively.
  • Hijacking momentum beats causing chaos: Corrupting the direction of memory updates relative to clean video trajectories causes errors to compound over time, turning SAM3’s temporal consistency mechanism against itself.

Key Results

AdvPCS was tested on SAM3, SAM3.1, and EfficientSAM3 using mIoU (mean Intersection over Union—overlap with ground truth, where lower means a stronger attack):

  • Crushing SOTA Baselines: On SAM3 video segmentation across all datasets and prompts, AdvPCS drops average mIoU from 77.74% (benign) to 18.33%, handily beating the runner-up UAP-SAM2 (29.83%). On image segmentation, average mIoU plummets from 81.65% to 2.49% (vs. 11.58% for UAP-SAM2).
  • Zeroing Out Text Prompts: On SA-CO video segmentation with text prompts, AdvPCS drives SAM3's mIoU from 68.48% down to 0.00%. Across all three victim models, average SA-CO text mIoU drops below 5%.
  • Strong Cross-Model & Defense Resilience: Perturbations crafted on SAM3 transfer cleanly to SAM3.1 and EfficientSAM3. Furthermore, standard defenses like image corruptions (Spatter/Saturate) and model pruning degrade clean accuracy heavily while adversarial mIoU stays below 15% (and near 0% under pruning).

Limitations and Future Work

The authors highlight two clear constraints:

  1. Training Overhead: Running the min–max bilevel optimization—expanding prompts and evaluating candidates at every step—adds computational cost during perturbation generation (though applying the resulting UAP at test time is instantaneous).
  2. Architecture Specificity: Because AdvPCS directly targets the concept-existence detector unique to PCS models, it is specialized for the SAM3 paradigm and may not backward-generalize to conventional segmentation networks or earlier SAM1/SAM2 architectures. Future directions are not explicitly discussed in the paper.

Summary updated

Abstract

The Segment Anything Model (SAM) achieves remarkable performance in visual segmentation. The latest SAM3 extends promptable segmentation to concept-level prediction, broadening the scope of segmentation foundation models. While recent works reveal that SAM and SAM2 are vulnerable to adversarial examples, the robustness of SAM3 under the concept segmentation paradigm remains unexplored. In addition, existing adversarial attacks on SAM-series models exhibit limited cross-prompt transferability. To this end, we propose AdvPCS, a universal cross-prompt adversarial attack for Promptable Concept Segmentation (PCS), including a min-max prompt optimization strategy, a global–local perception deception attack, and a temporal transition deviation attack. Specifically, we first identify the hardest-to-attack prompts via the min-max bilevel optimization. In the inner maximization, we select the highest-response candidate within each prompt type under the current perturbation. In the outer minimization, we update the perturbation against the selected prompts. Given the selected prompts, we apply the perception deception attack to minimize both global and local existence probabilities under joint prompting, and employ the temporal transition deviation attack to maximize inter-frame semantic inconsistency and corrupt memory pointers. Extensive experiments on four benchmark datasets show that a single universal adversarial perturbation (UAP) generated by our method generalizes across frames from different videos and achieves strong attack performance under point, box, and text prompts. In particular, it reduces the average mIoU of various PCS models on the SA-CO dataset to below 5% under text prompts, demonstrating strong attack ability.
BibTeX
@inproceedings{zhou2026universal,
  author = {Ziqi Zhou and Yifan Hu and Yufei Song and Haowen Jiang and Xianlong Wang and Shengshan Hu and Dezhong Yao and Leo Yu Zhang},
  title = {{Universal Cross-Prompt Adversarial Attacks on Promptable Concept Segmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Be1TPDdpUo},
}
Figure