Manuscript Offprint

arXiv:2609.07499

CrACK: Adversarial Attacks on Cross-Model Consistency in Collaborative Vision Foundation Models

Feifei Liu, Jintao Cheng, Chi Man Vong, Xiaoyu Tang

Abstract

Training-free collaborative pipelines that integrate Vision Foundation Models such as CLIP, SAM, and DINO achieve strong open-vocabulary dense prediction and are increasingly deployed in safety-critical applications. The security of these systems is commonly assumed to follow from the robustness of their individual models. We challenge this assumption. We identify a vulnerability shared by every collaborative pipeline: each model consumes the intermediate output of another without verifying semantic consistency, an unverified premise that we term the semantic-spatial alignment dependency. Existing adversarial attacks target a single model and overlook this premise, leaving the inter-model interface entirely unguarded. We propose CrACK (Cross-model Adversarial Consistency attack), an inference-time attack that exploits this interface without modifying any input pixel, model weight, or training data. CrACK operates in two stages: Adversarial Affinity Contradiction Injection corrupts the cross-modal affinity matrix by inverting SAM encoder features under the guidance of CLIP patch-level semantics, and Semantic Interface Poisoning steers the prediction through a max-distance label permutation derived from CLIP text embeddings. Experiments on four collaborative pipelines across eight benchmarks show that CrACK causes catastrophic degradation while every individual model continues to produce its unchanged standalone output, rendering per-model defenses structurally blind. The corruption further cascades into large vision-language model reasoning, driving models such as LLaVA to produce erroneous responses from visually intact inputs. Our results show that the security of a collaborative AI system cannot be reduced to the robustness of its components, and that inter-model feature interfaces must be treated as first-class security boundaries.

1 Introduction

Vision Foundation Models (VFMs) such as CLIP [☐], SAM [☐], and DINO [☐] achieve strong performance on their respective tasks. Recent training-free pipelines combine them

© 2026. The copyright of this document resides with its authors. It may be distributed unchanged freely in print or electronic forms.

Figure

Figure 1: Conceptual comparison of adversarial threat paradigms. (a) The Multi-VFM Vulnerability. Collaborative systems rely on an implicit semantic-spatial alignment dependency, leaving the inter-model communication interface completely unverified. (b) Traditional Input Attacks. Existing adversarial methods typically target the input space by injecting human-imperceptible noise into the raw image. (c) CrACK (Ours). We introduce a new threat vector that leaves the input image entirely pristine, and instead hijacks the unguarded connection layer between specialized VFMs at inference time, precipitating cascaded logical failures.

into collaborative systems for open-vocabulary dense prediction. Frameworks such as ProxyCLIP [☐], NACLIP [☐], and Trident [☐] route intermediate features from one VFM to modulate the feature aggregation of another, and reach state-of-the-art open-vocabulary segmentation without any annotation or fine-tuning. This paradigm has become a default design choice for dense prediction, and it is increasingly deployed in safety-critical applications such as autonomous driving and medical image analysis [☐].

Despite this strong performance, collaborative VFM pipelines contain a vulnerability that has been largely overlooked[4]. Each model in the pipeline consumes the intermediate output of its predecessor without verifying semantic consistency, and the pipeline propagates these representations across modality boundaries as if they were inherently aligned. We refer to this unverified premise as the semantic-spatial alignment dependency. It exposes the interface between models, rather than any model itself, as the weak point of the system. However, existing adversarial attacks have not examined this defect, and instead perturb features within a single model. Common attacks such as input-level attacks and backdoor attacks each have clear limitations, as illustrated in Figure 1. Moreover, adversarial attacks have been studied mainly in the LLM domain, while attacks on VFMs remain relatively scarce. Existing VFM attacks are therefore both limited in number and inherit the limitations of methods designed for the single-model setting.

Specifically, adversarial attacks on vision models typically fall into two categories. Input-level attacks [B, ☐, ☐] inject pixel perturbations into the raw image to mislead a single model, but their signal is diluted once the perturbed features pass through a second VFM, and it is further weakened by input-side defenses such as Gaussian smoothing and JPEG compression. Backdoor attacks [☐, ☐, ☐, ☐, ☐] implant a trigger by poisoning training data or fine-tuning the victim, but they require access to a training pipeline that training-free systems do not provide. Both categories treat the vulnerability as residing inside a single model. In the LLM domain, recent work shows that multi-model systems are themselves vulnerable, since the output of one model can be manipulated to mislead another [☐]. Based on this observation, we find that collaborative VFM pipelines share the same weakness: the communication between models, namely the inter-model feature interface, is itself an attack surface that no existing method targets.

Motivated by this gap, we shift the attack target from a single model to the channel that connects them. We propose CrACK (Cross-model Adversarial Consistency Attack), an attack that operates on the inter-model interface without modifying any input pixel, model weight, or training data. As shown in Fig. 1, CrACK leaves the input image pristine and instead hijacks the unverified connection between VFMs. CrACK turns the semantic-spatial alignment dependency against the pipeline through two stages. Adversarial Affinity Contradiction Injection (ACI) uses CLIP patch-level similarity to invert the affinity matrix that the pipeline derives from SAM at the aggregation step. Semantic Interface Poisoning (SIP) replaces the predicted labels with a deterministic max-distance permutation built from CLIP text embeddings. The corrupted representation is passed downstream through the same trusted channel, so the failure cascades from segmentation into large vision-language model reasoning, while every individual VFM output stays unchanged.

In summary, our main contributions are threefold:

  • We propose CrACK, an inference-time attack framework against training-free collaborative VFM pipelines, which corrupts the inter-model feature interface without modifying any input pixel, model weight, or training data.

  • CrACK comprises two stages, ACI and SIP. ACI inverts the SAM-derived affinity matrix using CLIP patch-level semantics, which collapses the cross-modal feature aggregation; SIP applies a deterministic max-distance label permutation, which steers every prediction toward its semantically most distant class.

  • We validate CrACK on four collaborative VFM pipelines across eight segmentation datasets, demonstrating the effectiveness and the cross-architecture generality of the attack. Furthermore, we conduct experiments on a downstream VQA task, showing that the attack generalizes to multimodal reasoning.

References (32)

  • BadCLIP: Trigger-aware prompt learning for backdoor attacks on CLIP. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2024
  • COCO-Stuff: Thing and stuff classes in context
  • Poisoning web-scale training datasets is practical
  • Emerging properties in self-supervised vision transformers
  • The Cityscapes dataset for semantic urban scene understanding
  • How robust is Google's Bard to adversarial image attacks? arXiv preprint arXiv:2309.11751, 2023 (opens arXiv in a new tab)
  • The Pascal visual object classes (VOC) challenge
  • Explaining and Harnessing Adversarial Examples
  • BadNets: Identifying vulnerabilities in the machine learning model supply chain
  • Agent smith: A single image can jailbreak one million multimodal llm agents exponentially fast
  • Pay attention to your neighbours: Training-free open-vocabulary semantic segmentation
  • Badencoder: Backdoor attacks to pre-trained encoders in self-supervised learning
  • MedCLIP-SAM: Bridging text and image towards universal medical image segmentation
  • ProxyCLIP: Proxy attention improves CLIP for open-vocabulary segmentation
  • Evaluating object hallucination in large vision-language models
  • VL-Trojan: Multimodal instruction backdoor attacks against autoregressive visual language models
  • Microsoft COCO: Common objects in context
  • Visual instruction tuning
  • Towards deep learning models resistant to adversarial attacks
  • The role of context for object detection and semantic segmentation in the wild
  • Visual adversarial examples jailbreak aligned large language models
  • Harnessing vision foundation models for high-performance, training-free open vocabulary segmentation
  • SCLIP: Rethinking self-attention for dense vision-language inference
  • Test-time prototype adaptation for open-vocabulary semantic segmentation, 2026 (opens arXiv in a new tab)
  • MTAttack: Multi-target backdoor attacks against large vision-language models
  • Adversarial examples for semantic segmentation and object detection, 2017
  • ShadowCast: Stealthy data poisoning attacks against vision-language models
  • API: Attention prompting on image for large vision-language models
  • MM-Vet: Evaluating large multimodal models for integrated capabilities
  • Attack-sam: Towards attacking segment anything model with adversarial examples, 2023
  • Semantic understanding of scenes through the ADE20K dataset
  • Extract free dense labels from CLIP. In Proceedings of the European Conference on Computer Vision (ECCV), 2022