Query-Only Prompt-Agnostic Attacks on Visual In-Context Learning
Not on the map. Why?
Abstract (arXiv)
Visual In-Context Learning (VICL) enables promptable segmentation by conditioning RGB predictions on visual demonstrations, making it attractive for auto-labeling, but its robustness under query-only access and unknown deployment prompts remains underexplored. We study query-only, prompt-agnostic targeted attacks where the attacker observes only returned RGB outputs, without access to model internals or deployment prompts. Treating prompt-conditioned RGB rendering as a distinct attack surface, we introduce two appearance-space attacks: Color Hijack (CH) drives foreground colors toward the background to suppress visibility, while Task Hijack (TH) collapses instance-distinguishing colors toward a shared color assignment. To transfer across unseen prompts, we propose a Self-Prompt Surrogate (SPS) constructed from the clean query and its output. In a paired, matched-budget SegGPT comparison, SPS outperforms the Random-Prompt Surrogate (RPS), reducing CH instance foreground retention from 0.918 to 0.155 and TH palette-aware tolerance distance from 0.345 to 0.225. Across four VICL models on COCO and HierText, CH suppresses foregrounds across semantic-, instance-, and text-style outputs, while TH collapses instance colors under held-out deployment prompts. After palette-based decoding, TH also reduces the decoded instance count and mask retention while increasing instance merges. Finally, at 30% corruption, CH-corrupted annotations from a publicly accessible VICL-based auto-labeling pipeline reduce downstream YOLO-seg mAP50 from 0.761 to 0.281.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 22 of its 27 references that are in the map. Submitted 8 Nov 2026.
Builds on
22 of 27 references.
References · 22
- 2014Microsoft COCO: Common Objects in Contextcited by 18,045
- 2017Mask R-CNNcited by 7,361
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 3,023
- 2019Panoptic Feature Pyramid Networkscited by 653
- 2022Images Speak in Images: A Generalist Painter for In-Context Visual Learningcited by 337
- 2017Adversarial Examples for Semantic Segmentation and Object Detectioncited by 278
- 2023Sequential Modeling Enables Scalable Learning for Large Vision Modelscited by 219
- 2023What Makes Good Examples for Visual In-Context Learning?cited by 158
- 2017On the Robustness of Semantic Segmentation Models to Adversarial Attackscited by 129
- 2022Towards End-to-End Unified Scene Text Detection and Layout Analysiscited by 104
- 2023Unifying Image Processing as Visual Prompting Question Answeringcited by 33
- 2022Proximal Splitting Adversarial Attacks for Semantic Segmentationcited by 25
10 more
- 2024AWRaCLe: All-Weather Image Restoration using Visual In-Context Learningcited by 20
- 2023Ensemble-based Blackbox Attacks on Dense Predictioncited by 17
- 2023Black-box Targeted Adversarial Attack on Segment Anything (SAM)cited by 16
- 2024Visual Prompt Selection for In-Context Learning Segmentationcited by 15
- 2024Practical Region-level Attack against Segment Anything Modelscited by 11
- 2025Stable Diffusion Models are Secretly Good at Visual In-Context Learningcited by 9
- 2023Attack-SAM: Towards Attacking Segment Anything Model With Adversarial Examplescited by 8
- 2025Test-Time Visual In-Context Tuningcited by 8
- 2025Embracing Collaboration Over Competition: Condensing Multiple Prompts for Visual In-Context Learningcited by 8
- 2025ConText: Driving In-context Learning for Text Removal and Segmentationcited by 4
Built on by
Not cited yet.