Manuscript Offprint
arXiv:2609.07499CrACK: Adversarial Attacks on Cross-Model Consistency in Collaborative Vision Foundation Models
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 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.
CLIP feature aggregation. Trident [2] represents the third category and aggregates CLIP and DINO features through an affinity matrix derived from SAM, achieving state-of-the-art performance. The API framework [30] further extends the collaborative chain to generative tasks by using dense VFM feature maps as visual prompts for LVLMs. However, all of these frameworks rely on an inter-model feature interface that is never verified for consistency at runtime. While multi-model systems have been shown to be adversarially vulnerable in the LLM domain, where adversarial signals jailbreak aligned models and cascade across collaborating agents [11, 2], the security of the inter-VFM interface remains unexamined. CrACK identifies this interface as a uniquely effective attack surface.
Adversarial Attacks on Vision Models. Adversarial attacks on vision models can be classified by their attack surface into two categories: input-level attacks that perturb the raw pixels of a model, and training-time attacks that implant a backdoor through data poisoning or fine-tuning. For input-level attacks, adversarial robustness was first studied in closed-set segmentation [23], and subsequent work attacked SAM with adversarial prompts [2] or corrupted encoder representations [3]. For training-time attacks, BadNets [4] established the backdoor paradigm; BadEncoder [2] extended it to pre-trained encoders that downstream systems reuse; BadCLIP [1] implanted backdoors in CLIP through trigger-aware prompt learning; VL-Trojan [12] optimized multimodal triggers for autoregressive LVLMs; and ShadowCast [25] performed stealthy data poisoning against VLMs, with recent work showing that web-scale poisoning is practical [3]. However, input-level attacks keep their adversarial signal in the input image, so it is diluted once the perturbed features pass through a second VFM and is filtered by input-side defenses, while training-time attacks require access to a training pipeline that training-free systems do not expose. Both categories locate the vulnerability inside a single model and can, in principle, be mitigated by hardening that model alone. None targets the feature interface between models, which is precisely the surface CrACK exploits.
3 Method
3.1 Threat Model
Problem formulation. A collaborative VFM pipeline produces a dense prediction by combining several frozen VFMs. We denote it as , where is the input image and are publicly released and frozen weights. The pipeline extracts features from each VFM in parallel, fuses them at an aggregation step, and matches the fused feature against CLIP text embeddings to produce a segmentation map. The aggregation step is the inter-model interface that CrACK targets.
Victim pipeline. We instantiate the victim pipeline with Trident [24], which uses the affinity aggregation interface shared by SCLIP [25], ProxyCLIP [15], and NACLIP [16]. Trident fuses CLIP and DINO features through an affinity matrix A derived from SAM. Let denote the SAM encoder features and the head-averaged attention weights of SAM's last encoder layer. Trident builds as
(1) where is a data-adaptive threshold, is the element-wise product, is the indicator function, and Norm is row normalization. The matrix reweights the spliced CLIP feature map into the aggregated feature used for segmentation. Equation 1 encodes the semantic-spatial alignment dependency: it assumes that patch pairs SAM finds similar also deserve coherent semantic aggregation for CLIP. CrACK attacks this assumption.
Attacker capability. We adopt an inference-time threat model. The attacker injects lightweight perturbation logic into the aggregation glue code that connects the frozen VFMs, and modifies no VFM weight, no VFM forward function, and no input pixel. This capability is realistic in two deployment settings. In inference-time supply-chain poisoning, training-free pipelines are distributed as thin aggregation repositories that import third-party encoders, and a backdoor planted in this layer needs no access to the encoders [☐, ☐]. In microservice API hijacking, VFMs are served as separate microservices, and the aggregation step becomes a network exchange of feature tensors that an adversary on the path can rewrite. To compute the perturbation, the attacker uses one public CLIP-ViT-B/16 instance, whose forward pass is identical to any independent copy and need not run inside the victim trust domain.
Stealthiness. The attack lives only in the aggregation step. Every VFM therefore produces its exact clean standalone output, and the input image stays unchanged. The attack is invisible to input-side preprocessing, per-model output inspection, and weight-integrity verification. Its stealthiness is structural rather than perturbative.
3.2 The Proposed CrACK
A collaborative VFM pipeline exposes two trust points: the affinity aggregation step, where cross-model features are fused, and the prediction interface, where the label map is handed to downstream modules. The overall architecture is depicted in Fig. 2. We present CrACK, an inference-time attack framework that attacks both. CrACK operates in two stages. Stage 1, Adversarial Affinity Contradiction Injection (ACI), corrupts the affinity matrix at the feature level so that the aggregation step fuses semantically contradictory regions. Stage 2, Semantic Interface Poisoning (SIP), poisons the prediction interface at the label level so that the corrupted segmentation map steers downstream reasoning. The two stages form a single inference-time forward pass and are described below.
3.3 Adversarial Affinity Contradiction Injection
The affinity matrix in Eq. 1 determines which patches are aggregated together, and it is built from SAM under the assumption that visually similar patches deserve coherent semantic treatment. To turn this assumption into a failure mode, we propose Adversarial Affinity Contradiction Injection (ACI), which recombines the SAM representation so that the affinity gates in semantically contradictory patch pairs instead of consistent ones. ACI takes the SAM features and attention as input and outputs a corrupted affinity matrix that replaces .
CLIP-guided inverse similarity. ACI needs a reliable signal of which patch pairs are semantically dissimilar, so that it knows the adversarial aggregation direction. We obtain this signal from CLIP itself. We extract CLIP patch tokens from the input image with the

Figure 2: Overview of CrACK. The top row shows the benign collaborative pipeline instantiated on Trident, where SAM, CLIP, and DINO branches are processed in parallel and fused through an affinity matrix A into a clean segmentation map. The bottom row shows CrACK, which keeps every model frozen and intervenes at two points. Adversarial Affinity Contradiction Injection (ACI) uses CLIP patch-level semantics to invert the SAM-derived affinity, turning A into the corrupted . Semantic Interface Poisoning (SIP) applies a deterministic max-distance label permutation at the prediction interface. The corrupted dense feature is forwarded, through the same trusted channel, into a downstream LVLM, where the interface-level contradiction cascades into erroneous reasoning.
frozen CLIP visual encoder, and compute the semantic similarity matrix
where is the -normalized CLIP patch token at position . We define the inverse similarity , whose entry is large for patch pairs CLIP regards as semantically dissimilar and small for intra-class pairs. We row-normalize into mixing weights .
Feature and attention inversion. The affinity in Eq. 1 is built from two inputs, the feature-based mask and the attention weights . Corrupting only one of them is insufficient: inverting the feature alone leaves the clean partially correct, and inverting the attention alone is suppressed by the clean mask. To corrupt both, ACI first replaces each SAM feature with a mixture of its semantically dissimilar counterparts,
Algorithm 1 Adversarial Affinity Contradiction Injection (ACI)
Require: SAM features , SAM attention , input image , threshold
Ensure: Corrupted affinity matrix
1: patch tokens from frozen CLIP
2: Eq. 2
3: inverse similarity
4: Eq. 3
5: Eq. 4
6:
7: Eq. 5
8: return
which drives originally similar patches apart and originally dissimilar patches together, so that the cosine matrix computed on approximately inverts the clean . ACI then replaces the attention weights with the inverse similarity rescaled to the original magnitude,
where is the mean absolute attention. The corrupted affinity is then
After aggregation, each foreground feature becomes a weighted average of background features, so the downstream argmax assigns systematically incorrect labels, while every VFM standalone output stays intact. Algorithm 1 summarizes the procedure. While Eqs. 2–5 instantiate ACI on SAM, the same inverse-similarity mixing applies to any VFM backbone; for DINO-based pipelines such as ProxyCLIP and NACLIP, ACI substitutes the DINO intermediate features in place of SAM features.
3.4 Semantic Interface Poisoning
ACI corrupts the affinity at the feature level, but the prediction interface, namely the label map that downstream modules consume, is read verbatim without any semantic verification. To exploit this second trust point, we propose Semantic Interface Poisoning (SIP), which replaces the predicted labels with a deterministic permutation that maximizes semantic contradiction. SIP takes the predicted label map as input and outputs a poisoned label map , using only CLIP text-embedding geometry and no gradient optimization.
Max-distance permutation. To make every substituted label as misleading as possible, SIP assigns each class the semantically most distant target in the vocabulary. Given the class vocabulary and the -normalized CLIP text embeddings , we compute the cross-class dissimilarity
We then build a bijective permutation that greedily assigns to each class the most distant target not yet used,
Algorithm 2 Semantic Interface Poisoning (SIP)
Require: Class vocabulary , CLIP text embeddings , predicted label map
Ensure: Poisoned label map
1: Eq. 6
2:
3: for each class do
4: most distant free target
5:
6: end for
7: for every pixel Eq. 8
8: return
where accumulates already-assigned targets to keep bijective. Each substituted label therefore lies in the region of CLIP embedding space antipodal to the correct class, which is the maximum contradiction expressible within the closed label set. Algorithm 2 gives the full construction.
Prediction poisoning and cascaded effect. SIP applies pixel-wise at the prediction interface,
with no additional compute. The output is a syntactically valid segmentation map, so SIP is transparent to any checker that inspects prediction format. When SIP follows ACI, the complete CrACK pipeline is
ACI shifts the pre-permutation logits toward incorrect classes, and SIP redirects each remaining correct prediction to its antipodal class. The corrupted dense feature, forwarded through the same trusted channel, propagates the failure into downstream LVLM reasoning, where the interface-level contradiction re-emerges as an erroneous response.
4 Experiments
4.1 Experimental Setup
Datasets and victim pipelines. Following Trident [22], we evaluate CrACK on eight open-vocabulary segmentation benchmarks: VOC20 and VOC21 [1], Context59 and Context60 [21], COCO Object [13], COCO Stuff [1], Cityscapes [6], and ADE20k [13]. We attack four representative training-free pipelines that span three aggregation paradigms: SCLIP [25], which substitutes the CLIP self-attention; ProxyCLIP [13] and NACLIP [11], which use DINO similarity as a spatial prior; and Trident [22], which aggregates features through a SAM-derived affinity matrix. All pipelines use the CLIP ViT-B/16 backbone. For downstream evaluation, we use LLaVA-1.5-13B [13] as the reasoning engine and follow the API visual prompting protocol [80], matching the configuration adopted in Trident [22] for fair comparison.
Baselines. We compare CrACK with three input-level adversarial attacks: FGSM [8], PGD-SAM, and PGD-CLIP. PGD-SAM and PGD-CLIP optimize a 10-step PGD perturbation on the SAM encoder feature loss and the CLIP patch feature loss respectively, with budget and step size . All perturbed inputs are forwarded through the complete victim pipeline, so every method is measured on the same task. These baselines share the same victim pipeline as CrACK but differ in the attack surface: they perturb input pixels, while CrACK acts at the aggregation interface.
Metrics. We report mean Intersection over Union (mIoU) for segmentation, where lower values indicate stronger attacks. We define attack success rate (ASR) as the fraction of foreground pixels that are correctly predicted by the clean pipeline but flipped after the attack:
where and denote the clean and attacked predictions at pixel , and is the ground truth. For downstream evaluation, we report accuracy on POPE [16] and GPT-4o judge scores on MM-Vet [51] and LLaVA-Wild [13].
Implementation. CLIP patch tokens are extracted from the penultimate transformer block. The max-distance permutation is precomputed once per dataset vocabulary and reused at inference without optimization. CrACK uses the same hyperparameters across all four victim pipelines without per-pipeline tuning. All experiments run on a single NVIDIA H100 GPU.
4.2 Attack Effectiveness on Open-Vocabulary Segmentation
Table 1 reports segmentation performance under CrACK with the three baseline attacks on four victim pipelines across eight benchmarks. We have three observations.
First, CrACK produces the strongest degradation on every pipeline and every dataset, reducing the average mIoU of Trident from 45.8 to 1.55 and showing the same collapse on SCLIP, ProxyCLIP, and NACLIP. Second, the same collapse occurs across all three aggregation paradigms represented by these pipelines, indicating that the vulnerability resides in the cross-model aggregation interface shared by these pipelines rather than in any specific aggregation mechanism. This generality is particularly evident on NACLIP, where CrACK reduces the average mIoU from 42.5 to 0.27 with an ASR of 98.0%, despite NACLIP using a DINO-based spatial prior rather than the SAM-derived affinity targeted by ACI. Third, the input-level baselines are substantially weaker. PGD-SAM and PGD-CLIP perturb input pixels and influence only a single branch of the aggregation step. As reported in Table 1, the average mIoU drops by 0.99, 1.20, 1.17, and 1.51 on SCLIP, ProxyCLIP, NACLIP, and Trident respectively, with the average ASR reaching at most 4.06% across pipelines. On Trident with VOC21, for example, PGD-CLIP reduces mIoU only to 64.45, leaving the segmentation essentially intact, whereas CrACK reduces it to 2.88. CrACK corrupts both the affinity branch through ACI and the prediction interface through SIP, yielding a much larger gap. These results support our central claim: the semantic-spatial alignment dependency is the structural vulnerability of collaborative VFM pipelines, and attacking it directly is more effective than perturbing any single model.
Table 1: Effectiveness of CrACK against four training-free open-vocabulary segmentation pipelines across eight benchmarks with CLIP ViT-B/16. None reports the clean baseline. The PGD column reports PGD-CLIP under the same victim pipeline; PGD-SAM yields similar values and is omitted for brevity. Lower mIoU and higher ASR indicate stronger attacks.
| Dataset | Metric | SCLIP | ProxyCLIP | NACLIP | Trident | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| None | PGD | CrACK | None | PGD | CrACK | None | PGD | CrACK | None | PGD | CrACK | ||
| VOC21 | mIoU ↓ | 61.7 | 60.47 | 3.50 | 61.3 | 59.77 | 3.56 | 64.1 | 62.50 | 1.19 | 67.1 | 64.45 | 2.88 |
| ASR (%) ↑ | – | 2.12 | 100.0 | – | 2.74 | 100.0 | – | 2.58 | 94.1 | – | 3.81 | 99.8 | |
| Context60 | mIoU ↓ | 31.5 | 30.71 | 0.01 | 35.3 | 34.24 | 0.00 | 35.0 | 33.95 | 0.09 | 38.6 | 37.18 | 0.06 |
| ASR (%) ↑ | – | 2.45 | 100.0 | – | 3.12 | 100.0 | – | 2.97 | 99.9 | – | 4.15 | 98.3 | |
| Object | mIoU ↓ | 32.1 | 30.82 | 0.86 | 37.5 | 36.19 | 0.87 | 36.2 | 34.93 | 0.03 | 41.1 | 39.4 | 0.81 |
| ASR (%) ↑ | – | 2.78 | 100.0 | – | 3.45 | 100.0 | – | 3.21 | 99.0 | – | 4.62 | 98.3 | |
| VOC20 | mIoU ↓ | 83.5 | 82.67 | 1.17 | 80.3 | 79.10 | 0.15 | 83.0 | 81.76 | 0.74 | 84.5 | 83.7 | 4.05 |
| ASR (%) ↑ | – | 1.24 | 98.6 | – | 1.68 | 100.0 | – | 1.45 | 90.7 | – | 1.73 | 95.8 | |
| Context59 | mIoU ↓ | 36.1 | 35.02 | 0.19 | 39.1 | 37.73 | 0.02 | 38.4 | 37.25 | 0.09 | 42.2 | 40.67 | 0.13 |
| ASR (%) ↑ | – | 2.95 | 100.0 | – | 3.34 | 100.0 | – | 3.18 | 100.0 | – | 3.95 | 98.7 | |
| Stuff | mIoU ↓ | 23.9 | 23.18 | 0.09 | 26.5 | 25.71 | 0.05 | 25.7 | 24.93 | 0.00 | 28.3 | 27.6 | 0.03 |
| ASR (%) ↑ | – | 2.43 | 100.0 | – | 2.96 | 100.0 | – | 2.82 | 100.0 | – | 3.28 | 98.3 | |
| City | mIoU ↓ | 34.1 | 32.74 | 2.09 | 38.1 | 36.58 | 1.98 | 38.3 | 36.77 | 0.04 | 42.9 | 40.4 | 4.37 |
| ASR (%) ↑ | – | 3.21 | 100.0 | – | 3.87 | 100.0 | – | 3.65 | 99.9 | – | 4.88 | 98.3 | |
| ADE | mIoU ↓ | 17.8 | 17.27 | 0.16 | 20.2 | 19.49 | 0.12 | 19.1 | 18.53 | 0.00 | 21.9 | 20.9 | 0.03 |
| ASR (%) ↑ | – | 2.87 | 100.0 | – | 3.41 | 100.0 | – | 3.27 | 99.9 | – | 6.04 | 98.3 | |
| Avg. | mIoU ↓ | 40.1 | 39.11 | 1.01 | 42.3 | 41.10 | 0.84 | 42.5 | 41.33 | 0.27 | 45.8 | 44.29 | 1.55 |
| ASR (%) ↑ | – | 2.51 | 99.8 | – | 3.07 | 100.0 | – | 2.89 | 98.0 | – | 4.06 | 98.2 | |
4.3 Downstream LVLM Attack via Poisoned Visual Prompts
CrACK is designed to propagate the corruption at the SAM–CLIP interface into the downstream reasoning engine. We follow the API visual prompting protocol [☐], in which the dense feature map of the segmentation pipeline modulates the input image of an LVLM. We replace the clean dense feature map with the CrACK-corrupted variant and feed the resulting visual prompt into LLaVA-1.5-13B. Table 2 reports three settings: the LLaVA-1.5-13B baseline, LLaVA with clean Trident features under the API protocol, and LLaVA with CrACK-corrupted features. The corrupted visual prompt degrades response quality on all three benchmarks, with POPE accuracy dropping from 87.4 to 58.3, MM-Vet from 36.0 to 19.4, and LLaVA-Wild from 73.4 to 38.7. All three CrACK rows lie well below the LLaVA-only baseline (86.9, 31.7, 66.9), confirming that CrACK does not merely neutralize the helpful Trident prompt but actively misleads the downstream reasoning. This shows that the contradiction injected at the segmentation stage is amplified rather than absorbed by the LVLM. These results confirm the cascading nature of CrACK: an attack crafted at the inter-VFM interface compromises downstream multimodal reasoning without modifying the input image or any model weight.
4.4 Attack Stealthiness
CrACK leaves the input image and all VFM weights unchanged. Every individual VFM produces its exact clean standalone output, so the attack is invisible to input-side preprocessing, per-model output inspection, and weight-integrity verification. Its stealthiness is therefore structural rather than perturbative, and cannot be reduced to a single perturbation-magnitude metric. We further quantify this property by contrasting CrACK with PGD-CLIP under three input-level defenses commonly used to mitigate adversarial perturbations: Gaussian blur with
Table 2: Downstream LVLM degradation under CrACK-corrupted visual prompts on LLaVA-1.5-13B, following the API visual prompting protocol [60]. The dense feature map of Trident is replaced with the CrACK-corrupted variant before being injected as the visual prompt. Baseline numbers for LLaVA-1.5-13B and LLaVA+Trident are taken from Trident [24]. Lower scores indicate stronger attacks.
| Method | POPE | MM-Vet | LLaVA-Wild |
|---|---|---|---|
| LLaVA-1.5-13B | 86.9 | 31.7 | 66.9 |
| LLaVA + Trident (API) | 87.4 | 36.0 | 73.4 |
| LLaVA + Trident + CrACK (Ours) | 58.3 | 19.4 | 38.7 |
Table 3: Performance on Trident with PASCAL VOC21 under no defense and three input-level defenses. Clean mIoU is computed on the defended input without attack; Atk mIoU and ASR are computed on the defended input after attack. CrACK remains effective across all defenses, while PGD-CLIP is neutralized by every defense at a cost to clean utility.
| Defense | Clean mIoU | PGD-CLIP | CrACK (Ours) | ||
|---|---|---|---|---|---|
| Atk mIoU ↓ | ASR (%) ↑ | Atk mIoU ↓ | ASR (%) ↑ | ||
| None | 67.1 | 64.45 | 3.81 | 2.88 | 99.8 |
| Blur | 65.0 | 64.62 | 1.92 | 2.86 | 99.5 |
| JPEG | 66.8 | 64.51 | 1.64 | 2.87 | 99.6 |
| Crop | 53.4 | 51.27 | 1.18 | 2.82 | 98.9 |
kernel size 5 and , JPEG compression at quality factor 75, and random cropping with crop ratio 0.875 followed by resizing to the original input size. All experiments are conducted on Trident with PASCAL VOC21.
Table 3 reveals two contrasting patterns. First, the three defenses do mitigate PGD-CLIP: under Blur, PGD-CLIP only reduces mIoU from the defended clean baseline of 65.0 to 64.62, an attack residual of 0.38 mIoU; under JPEG and Crop the residual is similarly small, and PGD-CLIP's ASR drops to below 2% in all three cases. This confirms that input-level defenses are effective against input-level attacks, which is the historical justification for this defense paradigm. Second, the same defenses are completely ineffective against CrACK. The attacked mIoU stays within a 0.06 window across all four settings (2.88, 2.86, 2.87, 2.82), and the ASR remains above 98.9%. The most revealing case is Crop, where the defense itself drops clean mIoU by 13.7 – a cost larger than the entire PGD-CLIP attack (2.65 mIoU) – yet CrACK still drives attacked mIoU down to 2.82. No input-side defense can simultaneously preserve clean utility and block CrACK, because CrACK does not live in the input.
4.5 Ablation Study
Table 4 decomposes CrACK into its two attack stages on Trident with PASCAL VOC21. ACI alone corrupts the feature-level affinity and reduces mIoU from 67.1 to 15.0 with an ASR of 66.76%. SIP alone acts on the prediction interface through the max-distance permutation and flips every correctly classified foreground pixel, giving an ASR of 100.00%. The full pipeline combines both stages and yields the strongest degradation, with an mIoU of 2.8 and an ASR of 100.00%. ACI and SIP are not redundant components but two complementary attack stages, each targeting a distinct trust point: ACI shifts the pre-permutation logits toward incorrect classes at the feature level, and SIP redirects each remaining correct prediction to its
Table 4: Ablation of CrACK on Trident with PASCAL VOC21. The top block reports three trivial baselines that exploit the same threat model but use unstructured destruction. The bottom block reports the two attack stages of CrACK and their combination.
| Method | mIoU ↓ | ASR (%) ↑ |
|---|---|---|
| Trivial glue-code baselines | ||
| A=0 | 3.49 | 99.60 |
| A=random | 24.32 | 58.20 |
| Y=random derangement | 4.14 | 100.00 |
| CrACK stages | ||
| ACI only | 15.0 | 66.76 |
| SIP only | 4.1 | 100.00 |
| ACI + SIP (Full CrACK) | 2.8 | 100.00 |
semantically most distant label at the label level.
We further compare ACI and SIP with three trivial baselines that exploit the same threat model—write access to the aggregation glue code—but use unstructured destruction. A=0 replaces the affinity with an all-zero matrix, A=random replaces it with a row-normalized random matrix, and Y=random derangement replaces the predicted label map with a random class bijection without CLIP semantic guidance. The three baselines reduce mIoU to 3.49, 24.32, and 4.14, with corresponding ASR of 99.60%, 58.20%, and 100.00% respectively. Two observations follow. First, A=random (24.32 mIoU, 58.20% ASR) is markedly less destructive than ACI alone (15.0 mIoU, 66.76% ASR), showing that the CLIP-guided inversion in ACI extracts a structured semantic dissimilarity signal that random destruction cannot reach. Second, while A=0 (3.49) and random derangement (4.14) achieve mIoU degradation comparable to ACI and SIP, they produce structurally anomalous outputs: an all-zero affinity matrix would be flagged by any consistency check, and a random label derangement violates the semantic geometry of CLIP text embeddings. In contrast, ACI produces a corrupted affinity matrix that preserves the row-stochastic structure and sparsity statistics of the clean affinity, and SIP produces a label map whose permutation is grounded in CLIP semantic geometry. This comparison highlights that the contribution of CrACK is not raw destructive power, which is partially achievable through trivial means under our threat model, but a structured exploitation of the inter-model interface that remains consistent with the pipeline's expected output distribution.
Figure 3 provides qualitative results. ACI disrupts the spatial coherence of the segmentation map, SIP redirects every foreground label to the semantically most distant class, and the full pipeline produces both effects simultaneously.
5 Conclusion
Training-free collaborative VFM pipelines are increasingly deployed in safety-critical settings [☐], yet their security has been assumed to follow from the robustness of their individual models. We challenged this assumption by identifying the semantic-spatial alignment dependency as a structurally universal vulnerability of such pipelines, and proposed CrACK to exploit it at inference time without touching any input pixel, model weight, or training data. On four pipelines and eight benchmarks, CrACK reduces Trident's average mIoU from 45.8 to 1.55 with ASR 98.2%, and the corruption cascades into LLaVA-1.5-13B, dropping

Figure 3: Qualitative comparison of CrACK attack variants on Trident. From top to bottom we show segmentation outputs under ACI, SIP, and the full ACI plus SIP pipeline. The four columns show the input image, ground truth, clean prediction, and attacked prediction.
POPE from 87.4 to 58.3, all while every VFM produces its exact clean standalone output. These results indicate that per-model robustness does not imply system robustness, and that the inter-model feature interface must be treated as a first-class security boundary. Future work includes black-box or transfer-based extensions of CrACK, interface-level consistency defenses (e.g., real-time verification between and ) that do not require retraining the underlying VFMs, and extending the inter-model interface framing to multi-agent LLM and tool-augmented systems [☐, ☐], where intermediate outputs are exchanged in a structurally similar way.
Limitations. The current ACI formulation requires interception of SAM intermediate features and read-only access to a CLIP patch-token extractor, matching the supply-chain and microservice-API threat models in Sec. 3.1 but not yet covering pure black-box settings.
References
[1] Jiawang Bai, Kuofeng Gao, Shaobo Min, Shu-Tao Xia, Zhifeng Li, and Wei Liu. 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.
[2] Holger Caesar, Jasper Uijlings, and Vittorio Ferrari. COCO-Stuff: Thing and stuff classes in context. In CVPR, 2018.
[3] Nicholas Carlini, Matthew Jagielski, Christopher A. Choquette-Choo, Daniel Paleka, Will Pearce, Hyrum Anderson, Andreas Terzis, Kurt Thomas, and Florian Tramèr. Poisoning web-scale training datasets is practical. In IEEE Symposium on Security and Privacy (S&P), 2024.
[4] Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2021.
[5] Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The Cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
[6] Yinpeng Dong, Huanran Chen, Jiawei Yang, Zhentao Zhang, Hang Chang, Hang Su, and Jun Zhu. How robust is Google's Bard to adversarial image attacks? arXiv preprint arXiv:2309.11751, 2023.
[7] Mark Everingham, Luc Van Gool, Christopher K. I. Williams, John Winn, and Andrew Zisserman. The Pascal visual object classes (VOC) challenge. International Journal of Computer Vision, 88(2):303–338, 2010.
[8] Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
[9] Tianyu Gu, Brendan Dolan-Gavitt, and Siddharth Garg. BadNets: Identifying vulnerabilities in the machine learning model supply chain. 2017.
[10] Xiangming Gu, Xiaosen Zheng, Tianyu Pang, Chao Du, Qian Liu, Ye Wang, Jing Jiang, and Min Lin. Agent smith: A single image can jailbreak one million multimodal llm agents exponentially fast. In International Conference on Machine Learning (ICML), 2024.
[11] Sina Hajimiri, Ismail Ben Ayed, and Jose Dolz. Pay attention to your neighbours: Training-free open-vocabulary semantic segmentation. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), 2025.
[12] Jinyuan Jia, Yupei Liu, and Neil Zhenqiang Gong. Badencoder: Backdoor attacks to pre-trained encoders in self-supervised learning. In IEEE Symposium on Security and Privacy (S&P), 2022.
[13] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C. Berg, Wan-Yen Lo, et al. Segment anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2023.
[14] Taha Koleilat and Hassan Rivaz. MedCLIP-SAM: Bridging text and image towards universal medical image segmentation. In Medical Image Computing and Computer Assisted Intervention (MICCAI), 2024.
[15] Mengcheng Lan, Chaofeng Chen, Yiping Ke, Xinjiang Wang, Litong Feng, and Wayne Zhang. ProxyCLIP: Proxy attention improves CLIP for open-vocabulary segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), 2024.
[16] Yifan Li, Yifan Du, Kun Zhou, Jinpeng Wang, Wayne Xin Zhao, and Ji-Rong Wen. Evaluating object hallucination in large vision-language models. In EMNLP, 2023.
[17] Jiawei Liang, Siyuan Liang, Aishan Liu, and Xiaochun Cao. VL-Trojan: Multimodal instruction backdoor attacks against autoregressive visual language models. International Journal of Computer Vision, 2025.
[18] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C. Lawrence Zitnick. Microsoft COCO: Common objects in context. In ECCV, 2014.
[19] Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. Visual instruction tuning. Advances in Neural Information Processing Systems (NeurIPS), 2023.
[20] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations (ICLR), 2018.
[21] Roozbeh Mottaghi, Xianjie Chen, Xiaobai Liu, Nam-Gyu Cho, Seong-Whan Lee, Sanja Fidler, Raquel Urtasun, and Alan Yuille. The role of context for object detection and semantic segmentation in the wild. In CVPR, 2014.
[22] Xiangyu Qi, Kaixuan Huang, Ashwinee Panda, Peter Henderson, Mengdi Wang, and Prateek Mittal. Visual adversarial examples jailbreak aligned large language models. In AAAI Conference on Artificial Intelligence, 2024.
[23] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In Proceedings of the International Conference on Machine Learning (ICML), 2021.
[24] Yuheng Shi, Minjing Dong, and Chang Xu. Harnessing vision foundation models for high-performance, training-free open vocabulary segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2024.
[25] Feng Wang, Jieru Mei, and Alan Yuille. SCLIP: Rethinking self-attention for dense vision-language inference. In European Conference on Computer Vision (ECCV), 2024.
[26] Haozhe Wang, Jintao Cheng, Weibin Li, and Xiaoyu Tang. Test-time prototype adaptation for open-vocabulary semantic segmentation, 2026. URL https://arxiv.org/abs/2608.08290.
[27] Zihan Wang, Guansong Pang, Wenjun Miao, Jin Zheng, and Xiao Bai. MTAttack: Multi-target backdoor attacks against large vision-language models. In Proceedings of the AAAI Conference on Artificial Intelligence, 2026.
[28] Cihang Xie, Jianyu Wang, Zhishuai Zhang, Yuyin Zhou, Lingxi Xie, and Alan Yuille. Adversarial examples for semantic segmentation and object detection, 2017.
[29] Yuancheng Xu, Jiarui Yao, Manli Shu, Yanchao Sun, Zichu Wu, Ning Yu, Tom Goldstein, and Furong Huang. ShadowCast: Stealthy data poisoning attacks against vision-language models. In Advances in Neural Information Processing Systems (NeurIPS), 2024.
[30] Runpeng Yu, Weihao Yu, and Xinchao Wang. API: Attention prompting on image for large vision-language models. In Proceedings of the European Conference on Computer Vision (ECCV), 2024.
[31] Weihao Yu, Zhengyuan Yang, Linjie Li, Jianfeng Wang, Kevin Lin, Zicheng Liu, Xinchao Wang, and Lijuan Wang. MM-Vet: Evaluating large multimodal models for integrated capabilities. In ICML, 2024.
[32] Chenshuang Zhang, Chaoning Zhang, Taegoo Kang, Donghun Kim, Sung-Ho Bae, and In So Kweon. Attack-sam: Towards attacking segment anything model with adversarial examples, 2023.
[33] Bolei Zhou, Hang Zhao, Xavier Puig, Tete Xiao, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Semantic understanding of scenes through the ADE20K dataset. International Journal of Computer Vision, 127(3):302–321, 2019.
[34] Chong Zhou, Chen Change Loy, and Bo Dai. Extract free dense labels from CLIP. In Proceedings of the European Conference on Computer Vision (ECCV), 2022.